devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Oleksij Rempel <o.rempel@pengutronix.de>
To: Rob Herring <robh+dt@kernel.org>, Shawn Guo <shawnguo@kernel.org>
Cc: Oleksij Rempel <o.rempel@pengutronix.de>,
	devicetree@vger.kernel.org, Fabio Estevam <festevam@gmail.com>,
	linux-arm-kernel@lists.infradead.org,
	linux-kernel@vger.kernel.org, NXP Linux Team <linux-imx@nxp.com>,
	Pengutronix Kernel Team <kernel@pengutronix.de>,
	David Jander <david@protonic.nl>,
	Robin van der Gracht <robin@protonic.nl>
Subject: [PATCH v1 17/17] arm: dts: imx6qdl-vicut1.dtsi: add thermal zone and attach tmp103 to it.
Date: Tue, 12 Apr 2022 09:40:04 +0200	[thread overview]
Message-ID: <20220412074004.2485264-18-o.rempel@pengutronix.de> (raw)
In-Reply-To: <20220412074004.2485264-1-o.rempel@pengutronix.de>

Latest version of ti,tmp103 driver supports thermal zone. So make use of
it.

Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
---
 arch/arm/boot/dts/imx6qdl-vicut1.dtsi | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/arch/arm/boot/dts/imx6qdl-vicut1.dtsi b/arch/arm/boot/dts/imx6qdl-vicut1.dtsi
index c928bd854e92..a1676b5d2980 100644
--- a/arch/arm/boot/dts/imx6qdl-vicut1.dtsi
+++ b/arch/arm/boot/dts/imx6qdl-vicut1.dtsi
@@ -153,6 +153,14 @@ simple-audio-card,codec {
 			frame-master;
 		};
 	};
+
+	thermal-zones {
+		chassis-thermal {
+			polling-delay = <20000>;
+			polling-delay-passive = <0>;
+			thermal-sensors = <&tsens0>;
+		};
+	};
 };
 
 &audmux {
@@ -323,9 +331,10 @@ rtc@51 {
 		reg = <0x51>;
 	};
 
-	temperature-sensor@70 {
+	tsens0: temperature-sensor@70 {
 		compatible = "ti,tmp103";
 		reg = <0x70>;
+		#thermal-sensor-cells = <0>;
 	};
 };
 
-- 
2.30.2


  parent reply	other threads:[~2022-04-12 10:09 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-12  7:39 [PATCH v1 00/17] protonic fixes Oleksij Rempel
2022-04-12  7:39 ` [PATCH v1 01/17] arm: dts: imx6qdl-vicut1.dtsi: remove TiWi module Oleksij Rempel
2022-04-18 11:49   ` Shawn Guo
2022-04-12  7:39 ` [PATCH v1 02/17] arm: dts: imx6qdl-vicut1.dtsi: Put nON_SWITCH in own pinctrl grp Oleksij Rempel
2022-04-12  7:39 ` [PATCH v1 03/17] arm: dts: imx6qdl-vicut1.dtsi: Remove PCIe Oleksij Rempel
2022-04-12  7:39 ` [PATCH v1 04/17] arm: dts: imx6qdl-vicut1/victgo: Remove UART2 Oleksij Rempel
2022-04-12  7:39 ` [PATCH v1 05/17] arm: dts: imx6qdl-vicut1.dtsi: Fix LED names Oleksij Rempel
2022-04-12  7:39 ` [PATCH v1 06/17] arm: dts: imx6qdl-vicut1.dtsi: Fix debug LED gpio pins Oleksij Rempel
2022-04-12  7:39 ` [PATCH v1 07/17] arm: dts: imx6qdl-vicut1.dtsi: Update GPIO line names Oleksij Rempel
2022-04-12  7:39 ` [PATCH v1 08/17] arm: dts: imx6qdl-vicut1.dtsi: Remove conflicting pinctrl entry Oleksij Rempel
2022-04-12  7:39 ` [PATCH v1 09/17] arm: dts: imx6q-vicut1.dts: remove sata node Oleksij Rempel
2022-04-18 11:53   ` Shawn Guo
2022-04-12  7:39 ` [PATCH v1 10/17] arm: dts: imx6dl-victgo.dts: update gpio names Oleksij Rempel
2022-04-12  7:39 ` [PATCH v1 11/17] arm: dts: imx6dl-victgo.dts: Factor out common parts to imx6qdl-victgo.dtsi Oleksij Rempel
2022-04-12  7:39 ` [PATCH v1 12/17] arm: dts: imx6qdl-vicut1.dtsi: Move some node out to DTS files Oleksij Rempel
2022-04-12  7:40 ` [PATCH v1 13/17] arm: dts: Remove imx6qdl-victgo.dtsi Oleksij Rempel
2022-04-12  7:40 ` [PATCH v1 14/17] arm: dts: imx6qdl-vicut1: Factor out common parts of 12inch board variants Oleksij Rempel
2022-04-12  7:40 ` [PATCH v1 15/17] arm: dts: imx6dl-victgo.dts: Remove touchscreen x axis inversion Oleksij Rempel
2022-04-12  7:40 ` [PATCH v1 16/17] arm: dts: imx6qdl-vicut1.dtsi: Add missing ISB led node Oleksij Rempel
2022-04-12  7:40 ` Oleksij Rempel [this message]
2022-04-18 11:48 ` [PATCH v1 00/17] protonic fixes Shawn Guo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220412074004.2485264-18-o.rempel@pengutronix.de \
    --to=o.rempel@pengutronix.de \
    --cc=david@protonic.nl \
    --cc=devicetree@vger.kernel.org \
    --cc=festevam@gmail.com \
    --cc=kernel@pengutronix.de \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-imx@nxp.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=robh+dt@kernel.org \
    --cc=robin@protonic.nl \
    --cc=shawnguo@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).