From: Anson Huang Subject: [PATCH] ARM64: dts: imx: add i.MX8QXP thermal support Date: Tue, 27 Nov 2018 06:18:52 +0000 Message-ID: <1543299200-8526-1-git-send-email-Anson.Huang@nxp.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org To: "robh+dt@kernel.org" , "mark.rutland@arm.com" , Aisheng DONG , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "shawnguo@kernel.org" Cc: dl-linux-imx List-Id: devicetree@vger.kernel.org Add i.MX8QXP CPU thermal zone support. Signed-off-by: Anson Huang --- arch/arm64/boot/dts/freescale/imx8qxp.dtsi | 27 ++++++++++++++++++++++++++= + 1 file changed, 27 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8qxp.dtsi b/arch/arm64/boot/d= ts/freescale/imx8qxp.dtsi index da99b6f..9155d45 100644 --- a/arch/arm64/boot/dts/freescale/imx8qxp.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8qxp.dtsi @@ -9,6 +9,7 @@ #include #include #include +#include =20 #include "imx8-ca35.dtsi" =20 @@ -85,6 +86,32 @@ }; }; =20 + tsens: thermal-sensor { + compatible =3D "nxp,imx8qxp-sc-thermal"; + tsens-num =3D <1>; + #thermal-sensor-cells =3D <1>; + }; + + thermal_zones: thermal-zones { + cpu-thermal0 { + polling-delay-passive =3D <250>; + polling-delay =3D <2000>; + thermal-sensors =3D <&tsens 355>; + trips { + cpu_alert0: trip0 { + temperature =3D <107000>; + hysteresis =3D <2000>; + type =3D "passive"; + }; + cpu_crit0: trip1 { + temperature =3D <127000>; + hysteresis =3D <2000>; + type =3D "critical"; + }; + }; + }; + }; + adma_subsys: bus@59000000 { compatible =3D "simple-bus"; #address-cells =3D <1>; --=20 2.7.4