Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp172328ybl; Wed, 21 Aug 2019 17:02:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqxSJWe+VXGwkf0BxKWiNhYkMny3MLecz7y88SZ4uO0r61XdE4/4/6PvROwbBTuTzFq71Vmo X-Received: by 2002:a17:902:1a4:: with SMTP id b33mr35491203plb.141.1566432131518; Wed, 21 Aug 2019 17:02:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566432131; cv=none; d=google.com; s=arc-20160816; b=qcRcgzTsaOAXgYspLLsp27nZGgrepIQ68r+TjFuQa4gS4i80Kbqf+UrYmm7qztybLG gXGEKCatK4tGs/8mUClCSPdk8mNi87gq60HWA42azt9JwSQli9FplnqnVhxEQ6XNkDdI H2pBYOlZXT4ivmKrNqyj12yKC3FjVOV6/EdstwcOoY6aXksHJSjbrEBpPTZC+s9xagde SeeNMXul3UvIP3T2iIneYhizkozRvTNN+vl8iR2n5AGcM+r6Pq53dL0QVvhRmoZNoZcM jakdNgNdqc3hj1ND++O788y8aoZirSPjlzXDrk1Xty8+X7VoqH+/8BWCys9GKpbpxQNX nf0A== 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=Tu9KiiAh5enRZaMkZDdS91LeJuxWDEGtNB1BXoc97Zg=; b=tRVp97xpcMYjcQFDIGB4oe8X76tQ/E+6n5UxJQqS/4mthB9W/9DZ43GTKrTaUB0uEt VJrkTtBJ4fbo9lX5CBOOVLWv6g3LLh0G/44wlXsLF0EZnZfFu2STAZqxWrKKYvERQr8J eWPNkjv+vJobKEv7k+5TI5LHQTv2QrdRcyhynUL++dzPeCgenx72X94sYabxCP/aQ3ld pJJxmOxO2P5ZkBH9Zd4P1PZGVs0J7QOttxp3sSqLRmd6+U4B1t4vVXDjuPSg5GFzZ0fv UIVm1k1d90vLdawbwGmkA/p+xmsT/o3zztzbhv6tiyO3YD6VDplYYJk+MPFPLb7eePpu ihng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=MRkGRrhQ; 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 4si1087947pjo.48.2019.08.21.17.01.56; Wed, 21 Aug 2019 17:02:11 -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=MRkGRrhQ; 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 S1731069AbfHUWY0 (ORCPT + 99 others); Wed, 21 Aug 2019 18:24:26 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:34911 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729760AbfHUWYZ (ORCPT ); Wed, 21 Aug 2019 18:24:25 -0400 Received: by mail-wr1-f66.google.com with SMTP id k2so3503973wrq.2 for ; Wed, 21 Aug 2019 15:24:24 -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=Tu9KiiAh5enRZaMkZDdS91LeJuxWDEGtNB1BXoc97Zg=; b=MRkGRrhQlHfQ4yRktSubadPo620IAnB1HEqxZ63PsnGWczv4vMBpyYL+U3jWj8imdN TxKxhI1RoA4lSnao8+T628uV9XJ2zMCFbkTmz+x3apzNy2ZZ5lF3UTo/pFbxEJb5QF8b ahDlvtEoYZISmIyZ1JuvSWZUKwo9uRlXDEOjDKhevdNOhCrvWIEFNrDlKMGTo81pI/WD jUCGVzEJtrl0lPYHRsjzzLSaOD5tbPhuY7JZwOHI08ubbCBjArReNeJnFo5JVshGIjhW F+JW8LIam4PDS/wHLtRR0EB0Dq2blhJkUK4BeZzZ8mVNyNyKlQy8Tc9lh10UG6JOx36g oQfA== 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=Tu9KiiAh5enRZaMkZDdS91LeJuxWDEGtNB1BXoc97Zg=; b=pKDYrwoKzOtAY8XRkojTlDwSKBgeFiiesVmvPXFn9go4fgQRxCA6bnql2KbW5EfONj oXTMnXqJM7FfVJQ4UAn7gd9vnCJEvKCk8KJb6Jbv55T+X5TKKjsKqZtSL+6S58Hy4Uc2 I1sMyYeVpSQo3HOVZ5r9ScRGidsnsHRZrf5scHl6N3jbnEs95pPodFf6mwZr3u20gXv9 g0vBzBfAyif1x0Hq2aaUeWRiszSjQ0Wq/meuNb7XlmRnSGqg4mDc0OVNlyAI42uRuuHi oNqGSpBuajj3pKTqqVijxO24qTbiulr53wLm/iTSbO7b0vDRqTGy4EERoQmFAQ1Cb8Zl QLcA== X-Gm-Message-State: APjAAAXJ+f6PIbNy97JfsnSBsUf6Pp8DgVgPUVNWO5s3JMomZPT+d2Dc 1+/Ngy1q+fRfsOtiN6cTJ+ClPQ== X-Received: by 2002:adf:ea87:: with SMTP id s7mr13201417wrm.256.1566426263630; Wed, 21 Aug 2019 15:24:23 -0700 (PDT) Received: from localhost.localdomain ([2a01:cb1d:6e7:d500:82a9:347a:43f3:d2ca]) by smtp.gmail.com with ESMTPSA id f197sm3548549wme.22.2019.08.21.15.24.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Aug 2019 15:24:22 -0700 (PDT) From: Guillaume La Roque To: 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 v4 0/6] Add support of New Amlogic temperature sensor for G12 SoCs Date: Thu, 22 Aug 2019 00:24:15 +0200 Message-Id: <20190821222421.30242-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 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/ Tested-by: Christian Hewitt Tested-by: Kevin Hilman Guillaume La Roque (6): 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: sei510: Add minimal thermal zone arm64: dts: amlogic: odroid-n2: add minimal thermal zone MAINTAINERS: add entry for Amlogic Thermal driver .../bindings/thermal/amlogic,thermal.yaml | 54 +++ MAINTAINERS | 9 + .../boot/dts/amlogic/meson-g12-common.dtsi | 20 ++ .../boot/dts/amlogic/meson-g12a-sei510.dts | 70 ++++ .../boot/dts/amlogic/meson-g12b-odroid-n2.dts | 76 ++++ drivers/thermal/Kconfig | 11 + drivers/thermal/Makefile | 1 + drivers/thermal/amlogic_thermal.c | 335 ++++++++++++++++++ 8 files changed, 576 insertions(+) create mode 100644 Documentation/devicetree/bindings/thermal/amlogic,thermal.yaml create mode 100644 drivers/thermal/amlogic_thermal.c -- 2.17.1