Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp709758ybt; Wed, 24 Jun 2020 09:18:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy0fzhwHOuZH/gT/BCErPF2qXk9cNPnlpNUcpQ6zHkHcdCo/R3Qk5OWmSQ78iimEVAuQ53V X-Received: by 2002:a17:906:4b54:: with SMTP id j20mr21734496ejv.259.1593015528211; Wed, 24 Jun 2020 09:18:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593015528; cv=none; d=google.com; s=arc-20160816; b=ykWY2dRf4Iu9w/+CKHrnBDB18JKGxgPSNVxc2gk8G3ANE2b4VY0nDVsw+hS+7rtDZA bJUjP4XGdhnLbhnCITN96sKivE8bm93WAuI1t+9vnds2181VNawdcLT52Te6Ec2/+Jz6 H6Hfc6/NEHhQuK645f+MKD2P9te1YpRIJy1KybPzBHC2cWDqmfAc/fve6NR7WhlBsTpN bdS0UXtuFyoW8Dy+BV6aoEaGp5rDbdAzJpy52iymjSqOp+KJnF9TNho83fDjauYqCJWt Sf5GeCkfsZBeNcGnsowU6S+8B5Am3Lh3NxlQGEWeNqbN5YdpZP/lNpZyJT+NCoPXvIRI rAGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=7OXl1VWgKNRCb648iCdiM0hRIiCL6AhzBqKEHJfyjiU=; b=dEWg7NipQPfaJjZ9LzL5Md8iR7AHuaDupUWc5gPSPmFh+06mJUhgH/St0PCXbiAvk4 ONliohtdH76xLPQsU7BHKsTIX7DlJanUMxezrejSnprDuUdgQxLNoiRMbT7nryD8Tkaw GR48cYz41o0MY14j4DjcmpMl7iod7+S8IFTxx+S/62VnKpRMvxaVj7n80JGEj1zq+GRs InxyYPDIIKwI9Fs6o0d70+CcLYW0fbhkuL579RiMa854i0qYtYcTkBwb8BHhnxoqdH6C Uv1NsPO9VU0wFhcOXoSourErjkNPO4IgdwMyRJUdUsxci56uEj9qwhw/7m2kcVhvZgxJ Odog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=qB6nG+KN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id fi17si6592032ejb.724.2020.06.24.09.18.24; Wed, 24 Jun 2020 09:18:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=qB6nG+KN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2405076AbgFXQQP (ORCPT + 99 others); Wed, 24 Jun 2020 12:16:15 -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-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