From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.0 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id AA83CC433E0 for ; Wed, 24 Jun 2020 16:16:20 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 858F220781 for ; Wed, 24 Jun 2020 16:16:20 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=baylibre-com.20150623.gappssmtp.com header.i=@baylibre-com.20150623.gappssmtp.com header.b="qB6nG+KN" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2405080AbgFXQQR (ORCPT ); Wed, 24 Jun 2020 12:16:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38916 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404629AbgFXQPd (ORCPT ); Wed, 24 Jun 2020 12:15:33 -0400 Received: from mail-wm1-x342.google.com (mail-wm1-x342.google.com [IPv6:2a00:1450:4864:20::342]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5AC9EC061573 for ; Wed, 24 Jun 2020 09:15:33 -0700 (PDT) Received: by mail-wm1-x342.google.com with SMTP id o8so2858556wmh.4 for ; Wed, 24 Jun 2020 09:15:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=7OXl1VWgKNRCb648iCdiM0hRIiCL6AhzBqKEHJfyjiU=; b=qB6nG+KNrKtiZam3wMwJAbHJsDTlEi5ywCENbJGiAy/9gUHQzrWo/mlMOiLbh1UY45 FrhwaE4dGPrFpoPYUGYx0/+QyOMPd9NhTaEp0tECkuEMTB5zenR1AEnWfsuHPecIaS40 zPG2T3KkeE85K7IkzsqLajVYG6iStaPm93IThbUtJhjIy2Zr98UAhnToy2fIRJAClJRw KVQcZijjd4K8ZIU86mrCYHcIKXSAWJOpajk1oWIuxk7mMZEVxYjwD3J6ubhspYyde2yl tX0V6GpKBC+i2WCzq9B/yUkQnm+3BcWSMnFxexBGt582WyL6gYuSjcvkZVkqLOC8dZog PP/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=7OXl1VWgKNRCb648iCdiM0hRIiCL6AhzBqKEHJfyjiU=; b=M2FCyviHEd3I1tUpcju5pp4AfXW1KpS3SLLj08F0Ks3aRlEcGuz/cD/YQJNiotOPey zroDkv2oAKTwAm1E9pGP8jYZdkKWw18fD13Kd27GGFf/wTD3fjWpjOrlwV2DxG8TDS5m n1qD5v1RH9ZlMzi7/GG1FmHAHSFYrsghyhfDrBxsaA/2CiXONcbpMbsrASL82qz+zK8F UFAhBvo2ynuclo6GHmhghbvY/PouJt7m1tNi6C81wjChn5/v8vfxfc2Y8QkUuVjt9kC3 zeRXX4yHaPbTGzFDdLAlRdUwggKqp9dNEJYAn/bGgbrkUywxXdwloYW1v9IDphwIxLu8 vhGA== X-Gm-Message-State: AOAM532YFHGkVYXAU3Lmt7V32mSE92LNvRtzPPF7mBIzH1QBHpp1u5kb 9mll1giniggxw5OZU4Nk8mRp3g== X-Google-Smtp-Source: ABdhPJwfsCqowmEbq8vy1eMaii9xA0WfQR0mUXBz8KRSJZyN8d8xCxvc1FQZ4gDIDuT/R9Xz5DEVdw== X-Received: by 2002:a1c:2b81:: with SMTP id r123mr2106109wmr.72.1593015331738; Wed, 24 Jun 2020 09:15:31 -0700 (PDT) Received: from bender.baylibre.local ([2a01:e35:2ec0:82b0:89ac:d9e8:f44c:b137]) by smtp.gmail.com with ESMTPSA id t15sm8716207wmj.14.2020.06.24.09.15.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Jun 2020 09:15:30 -0700 (PDT) From: Neil Armstrong To: khilman@baylibre.com, lee.jones@linaro.org Cc: Neil Armstrong , linux-amlogic@lists.infradead.org, linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, rui.zhang@intel.com, daniel.lezcano@linaro.org, amit.kucheria@verdurent.com Subject: [PATCH v5 0/2] *mfd: Add support for Khadas Microcontroller Date: Wed, 24 Jun 2020 18:15:26 +0200 Message-Id: <20200624161528.12664-1-narmstrong@baylibre.com> X-Mailer: git-send-email 2.22.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The new Khadas VIM2, VIM3 and Edge boards embeds an on-board microcontroller connected via I2C. This Microcontroller is present on the Khadas VIM1, VIM2, VIM3 and Edge boards. It has multiple boot control features like password check, power-on options, power-off control and system FAN control on recent boards. Thie serie adds : - the Thermal Cooling cell driver - add support into the Khadas VIM3/VIM3L DT Changes since v4 at [5]: - Removed ctx checks in thermal driver - Removed the useless khadas_mcu_fan_disable() helper in thermal driver - Fixed a small indentation issue in thermal driver Changes since v3 at [4]: - Removed Applied patches 1, 2 & 4 - Added reviewed-by tags for patch 3 & 5 Changes since v2 at [3]: - Removed NVMEM driver for separate submission - fixed MFD driver, header and Kconfig - fixed Thermal Kconfig - fixed MAINTAINERS files and path Changes since RFC v1 at [2]: - moved hwmon driver to thermal-only - moved the SM1 thermal nodes in a separate serie - added the bindings review tag from rob [1] http://lore.kernel.org/r/20200512093916.19676-1-narmstrong@baylibre.com [2] http://lore.kernel.org/r/20200421080102.22796-1-narmstrong@baylibre.com [3] http://lore.kernel.org/r/20200512132613.31507-1-narmstrong@baylibre.com [4] http://lore.kernel.org/r/20200608091739.2368-1-narmstrong@baylibre.com [5] http://lore.kernel.org/r/20200618133818.15857-1-narmstrong@baylibre.com Neil Armstrong (2): thermal: add support for the MCU controlled FAN on Khadas boards arm64: dts: meson-khadas-vim3: add Khadas MCU nodes .../boot/dts/amlogic/meson-khadas-vim3.dtsi | 23 +++ drivers/thermal/Kconfig | 11 ++ drivers/thermal/Makefile | 1 + drivers/thermal/khadas_mcu_fan.c | 162 ++++++++++++++++++ 4 files changed, 197 insertions(+) create mode 100644 drivers/thermal/khadas_mcu_fan.c -- 2.22.0