Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp3814328ybn; Fri, 27 Sep 2019 11:46:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqzdzcSnj1hJgB6tlmamOuja0/m9Gl/tRQvnPHX6Ns/wweQDizAEH/ifO/xv2tduLoq8z/ts X-Received: by 2002:a05:6402:1e4:: with SMTP id i4mr6230891edy.31.1569609969750; Fri, 27 Sep 2019 11:46:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569609969; cv=none; d=google.com; s=arc-20160816; b=yhqFxKnvUa9igSHl6RARY2KE19u9DVj/zTtjeyXSQxZdmkBb2z8u8epXG67Ead+Z5L 7Wc0v8cMjfrCjlSkAqZrqdM2jSX7GRYq2zBjYX/uDqx7RR2UeBdy8DQv/mPC4djsWknw Tflly0LECfrKJ6pTys/R9enRS5f4RfXv7eqf1QKSYuXw/XK1fqWxd0fpTTYXfIRN0QKO 3CWb+HYR8H8wJXAO/0QrOyucnblFI7VX0TRSEp1Ln94c/boAp3NvsKUycAYOW+uAIKFU h3EGmsMErJM4yTXxZnEgLEKhzSMRn939gYZRQ/ikgblt16oNLnCz2unv7n/7ZNr4iE+H Xkiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=BlLuKMnAqwTIEJThXWcT+NCQrpuc31hvcyRBdlbTc+8=; b=TPogjfMeyFkPGCBapLR4sZyYjRHJEw9Mw+oAP6hcUPvmjn8EEwTdEUkfwEtxQbX1vj aU51DZY/wUlU9AICQnh7EaDjKJA13/iTv4Tip5ZlrsiI/FXFq+SCIQciBJ5SXXm7oZ+k 2kOq+CyN1QSaRVyxVaYRWZusozxbT3i3R2xAPwZPad1RlzXFyYmVGeYAaUAEcvPjnhbp xrlnRa1HXusFnEqSSGNHU6RuTwxT7+L4VgwhPdvoUq8D3xf+TbNAEIWI5nCw0Cbp95Da fVQKyLepCMb7X5r8gIaqPJh0vXJlI/VgmpA+ZHfOSCbYaTbp13xpHMD6JPHSzP0Pix7Q xq8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=gEAZsKg3; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v5si2333315ede.126.2019.09.27.11.45.44; Fri, 27 Sep 2019 11:46:09 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=gEAZsKg3; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726334AbfI0Sn5 (ORCPT + 99 others); Fri, 27 Sep 2019 14:43:57 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:34802 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725306AbfI0Sn5 (ORCPT ); Fri, 27 Sep 2019 14:43:57 -0400 Received: by mail-wr1-f67.google.com with SMTP id a11so4340465wrx.1 for ; Fri, 27 Sep 2019 11:43:55 -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; bh=BlLuKMnAqwTIEJThXWcT+NCQrpuc31hvcyRBdlbTc+8=; b=gEAZsKg36xaTruyiqdmuUhST/Lw16pTt6NvZCi8oFmvWKVaq3wQVtqci8/3EnBkk3/ HT5sfz/tfMSyCyYHnRd+jOUKuOOSIPtna3cgYa8t9fGu0Km8O+zeG01iQQDUfpt6GBLh ica5zJitiOvbmJYuWnzr36l++X1vsvvRL/75xfhhdgQPJrjIKByvv2yWVEy5hH3INNpM aQLPAjfgmHfpfOcOslLrksDQ4eocq/BBrKJuIDXSHOXOu6Yt8wYBjF/bGiga2KeX8BaY +J/l5zJGL0WzQQhwA8w3RegQUC/JiwnokFq4w3ogg04g3OxBn4YF7WuXF73uOTmPlnW0 kCNw== 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; bh=BlLuKMnAqwTIEJThXWcT+NCQrpuc31hvcyRBdlbTc+8=; b=Ulrh8+4l+IyWrqaF6DUfYGDt0z1WomXCigxWj+mDw1rf3SVT9cJjDKXm9FIifZ25uW eyGJGJsHPdf0JV4rRUqdQ6MxF5GjVMMpWERqaSEUAQHSbAprUysTxkNaZ7LiMv9cfdO2 uOWTkVx98rjWk4stWH690oyY2eV4TOjvd5ExSCMd25IL4jR659i09QX2i2w0et62h+0F srsBC5gC5zn5SJHCgYr4+OT5FeUUjrIaKWLO0a9cXZEmdLxRAciqH7n39In2IRWQyqNG ikeq93pXCVpF5ZxJl3Jc1Lo0J9vFH3wg/sLwyBAZ1hpQxWa8IAnF5f1Db1cwYTNokR7u lc3w== X-Gm-Message-State: APjAAAWqx0ICYLTYsvWw4VdgfF/JkG32Em1SIIzxk1eMyRwMfyOJRXW6 NkStnGJ2m/v7jy14SiDHd3XIqw== X-Received: by 2002:adf:e488:: with SMTP id i8mr4333542wrm.20.1569609834506; Fri, 27 Sep 2019 11:43:54 -0700 (PDT) Received: from glaroque-ThinkPad-T480.home ([2a01:cb1d:6e7:d500:82a9:347a:43f3:d2ca]) by smtp.gmail.com with ESMTPSA id r13sm6246272wrn.0.2019.09.27.11.43.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Sep 2019 11:43:53 -0700 (PDT) From: Guillaume La Roque To: amit.kucheria@linaro.org, rui.zhang@intel.com, edubezval@gmail.com, daniel.lezcano@linaro.org Cc: linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org Subject: [PATCH v6 0/7] Add support of New Amlogic temperature sensor for G12 SoCs Date: Fri, 27 Sep 2019 20:43:45 +0200 Message-Id: <20190927184352.28759-1-glaroque@baylibre.com> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patchs series add support of New Amlogic temperature sensor and minimal thermal zone for SEI510 and ODROID-N2 boards. First implementation was doing on IIO[1] but after comments i move on thermal framework. Formulas and calibration values come from amlogic. Changes since v5: - fix patch 5 and 6 send twice Changes since v4: - Move thermal-zone in soc dtsi file - Remove critical trip point and add passive one - fix commit message - use devm_platform_ioremap_resource instead of platform_get_resource Changes since v3: - Add cooling map and trip point for hot type - move compatible on g12a instead of g12 to be aligned with others - add all reviewer, sorry for this mistake Changes since v2: - fix yaml documention - remove unneeded status variable for temperature-sensor node - rework driver after Martin review - add some information in commit message Changes since v1: - fix enum vs const in documentation - fix error with thermal-sensor-cells value set to 1 instead of 0 - add some dependencies needed to add cooling-maps Dependencies : - patch 3,4 & 5: depends on Neil's patch and series : - missing dwc2 phy-names[2] - patchsets to add DVFS on G12a[3] which have deps on [4] and [5] [1] https://lore.kernel.org/linux-amlogic/20190604144714.2009-1-glaroque@baylibre.com/ [2] https://lore.kernel.org/linux-amlogic/20190625123647.26117-1-narmstrong@baylibre.com/ [3] https://lore.kernel.org/linux-amlogic/20190729132622.7566-1-narmstrong@baylibre.com/ [4] https://lore.kernel.org/linux-amlogic/20190731084019.8451-5-narmstrong@baylibre.com/ [5] https://lore.kernel.org/linux-amlogic/20190729132622.7566-3-narmstrong@baylibre.com/ Guillaume La Roque (7): dt-bindings: thermal: Add DT bindings documentation for Amlogic Thermal thermal: amlogic: Add thermal driver to support G12 SoCs arm64: dts: amlogic: g12: add temperature sensor arm64: dts: meson: g12: Add minimal thermal zone arm64: dts: amlogic: g12a: add cooling properties arm64: dts: amlogic: g12b: add cooling properties MAINTAINERS: add entry for Amlogic Thermal driver .../bindings/thermal/amlogic,thermal.yaml | 54 +++ MAINTAINERS | 9 + .../boot/dts/amlogic/meson-g12-common.dtsi | 66 ++++ arch/arm64/boot/dts/amlogic/meson-g12a.dtsi | 24 ++ arch/arm64/boot/dts/amlogic/meson-g12b.dtsi | 29 ++ drivers/thermal/Kconfig | 11 + drivers/thermal/Makefile | 1 + drivers/thermal/amlogic_thermal.c | 333 ++++++++++++++++++ 8 files changed, 527 insertions(+) create mode 100644 Documentation/devicetree/bindings/thermal/amlogic,thermal.yaml create mode 100644 drivers/thermal/amlogic_thermal.c -- 2.17.1