Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp614406ybp; Fri, 4 Oct 2019 02:05:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqz1R1mjLXr8nU/4zWuD26M6lXthGn9wZOaV/3rgY4Z28clxIVf2C9/8XjJJK964tIbdsk5M X-Received: by 2002:a50:fd86:: with SMTP id o6mr14132720edt.139.1570179935484; Fri, 04 Oct 2019 02:05:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570179935; cv=none; d=google.com; s=arc-20160816; b=SCUMh3OIeiDWglvAODOjceukGJABj28+UThRi0v7Ot15UnhhrOSUGO5FV8+viR0R91 l27UFjJJrRWJ8vmFEYQ91ptXAWqdXPPQcBL6jNaluSls4iw8S+h3V0w3/NgGWrtMoghx zS3a1w45TyTzE69E0K8FVlMDeZR59AxMUFS73oIHvt+osr8KGCaKfdbCzJQxmK9CIsLo nwLcRQG14Nlg/6h98e9+G8Oqi5JWuOV9ifoUBs+tPZjs+1J8cnvIOnjTFLelt658ox+p xdGTQ9ouCukd5wPnXsXKL5S8qPTJbZEmzGnAAR6P9EXnl2iBPURJtyIu6qgk4qhy0TJX NkFw== 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=EFydY0lgIP899wnAH99dy6et3EG1uYQ9KTgGCBLycYs=; b=zwNsV9c94uhsx9bON2EJpceFijxi1Jm+UbPwuAU+FSx4iyt/02mXQrOkHdzpVYDTbO RpmmkQ7FOpVQ4aFGVLRfgvl4yWOXBLhXdT5Dq24OKqxqo5hYNFILTUMUgypPeCHtmjIv JHF7hlIVMshJDlJr9Y8oMkCpP2nUdYcsxKvpi5LSS29w41ljiB/bK0i9SFnArB4wlXIb 2q+c7S4uEV9pCE3BvL9gZhOj3w8z796Es7WOL3fgy2kKrd1lZIj1WHLshkdvg4vIDDeo gYg00pyYzU5raIZMyRelpmQhk44rZhIBMfkMBWTLHhLgfv8mWGxPLikS5DEASI8jKmp5 EISw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=qF0GVukp; 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 f57si3081821edb.165.2019.10.04.02.05.11; Fri, 04 Oct 2019 02:05:35 -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=qF0GVukp; 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 S2387872AbfJDJBT (ORCPT + 99 others); Fri, 4 Oct 2019 05:01:19 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:45753 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387635AbfJDJBS (ORCPT ); Fri, 4 Oct 2019 05:01:18 -0400 Received: by mail-wr1-f68.google.com with SMTP id r5so6087777wrm.12 for ; Fri, 04 Oct 2019 02:01:16 -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=EFydY0lgIP899wnAH99dy6et3EG1uYQ9KTgGCBLycYs=; b=qF0GVukplt92gp1dIgMULefb5vjDSNNhk+Ho8zlhKs5lWbidTiPF3rXtAV/OMf/cWA YLkSKjy8nyUM1mp1oJRyBI52MX4/1ErOfaNIxvRvwAubX3kc3rBJH3v3qLHXKvMs3UbI YcI/Ok0ScCFkD8rDOZoGkYDiJwXlmBWCFD3XB2uGQSV9jjBXM70JO/9HSPqcK/BGDIEC xWpCVkzTSpsysEwc2JVgLgsC4zIZNcdtrpK7cDk+k73kpVSC7zypLxAG7HiTT1tBNPJo 6wpcKeA3yYNu+7hfFihagaIfl0fv0Ennk/vsC72bxoG/8zycuhVhESXsBE60rKCZT7qp u7MA== 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=EFydY0lgIP899wnAH99dy6et3EG1uYQ9KTgGCBLycYs=; b=raFe3Scz2YNAXraZ+hR69aFugou12K1EJUhU6kxa6h5OaAgeSCHLKqzoMg1c6nHP3L pdYXBpIw2cN8GxY0iOz761wqOF5vNr0Uxa62sLwP1FZ/5c+t3QaO6LraF1K/W6HyN753 Pq3qseWr8SpKO2cIIRNLdEEa2fJTAPi8wa+vDIgj/bj90wDFJDYfPgLkaxbNA0lw8/RN AihDe3oPwa7RlLWg/M2g15Ds6+EOcM1Sw85zbEXXbilkSpkLt9Vm4junCayb0YJNZSgQ Dp3xguCPUMypBKbe0HytSYIc+FagakFYo9Wws9NVfyGGna+8ynsfz0sq5xPTEd7SM/gF qIXw== X-Gm-Message-State: APjAAAXL3wsx0Fp/qs7pE5ZerViGCgdBVijapecluPeuTsEExwVncc8f 4iS1/Nj6lKMOC9nO9klemYd4SA== X-Received: by 2002:a5d:630d:: with SMTP id i13mr10380588wru.230.1570179676023; Fri, 04 Oct 2019 02:01:16 -0700 (PDT) Received: from glaroque-ThinkPad-T480.baylibre.local (lmontsouris-657-1-212-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.gmail.com with ESMTPSA id v8sm7765170wra.79.2019.10.04.02.01.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Oct 2019 02:01:15 -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 v7 0/7] Add support of New Amlogic temperature sensor for G12 SoCs Date: Fri, 4 Oct 2019 11:01:07 +0200 Message-Id: <20191004090114.30694-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 v6: - add missing critical trip point. 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 | 77 ++++ 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, 538 insertions(+) create mode 100644 Documentation/devicetree/bindings/thermal/amlogic,thermal.yaml create mode 100644 drivers/thermal/amlogic_thermal.c -- 2.17.1