[SRU,Bionic,v2,5/5] ARM: dts: imx6: add thermal sensor and cooling cells
diff mbox series

Message ID 20190819034240.6569-6-shrirang.bagul@canonical.com
State New
Headers show
Series
  • Support cpufreq, thermal sensors & cooling cells on iMX6Q based Nitrogen6x board
Related show

Commit Message

Shrirang Bagul Aug. 19, 2019, 3:42 a.m. UTC
From: Lucas Stach <l.stach@pengutronix.de>

BugLink: https://bugs.launchpad.net/bugs/1840437

This allows a board to specify a custom thermal zone configuration
involving the SoC internal sensor, CPU and GPU nodes without having
to change those nodes.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
(backported from commit 4951c2da1a3a8b56d4ef0659d80938942307a8a3)
Signed-off-by: Shrirang Bagul <shrirang.bagul@canonical.com>
---
 arch/arm/boot/dts/imx6q.dtsi   | 1 +
 arch/arm/boot/dts/imx6qdl.dtsi | 3 +++
 2 files changed, 4 insertions(+)

Patch
diff mbox series

diff --git a/arch/arm/boot/dts/imx6q.dtsi b/arch/arm/boot/dts/imx6q.dtsi
index b049794467f8..6073d2039894 100644
--- a/arch/arm/boot/dts/imx6q.dtsi
+++ b/arch/arm/boot/dts/imx6q.dtsi
@@ -208,6 +208,7 @@ 
 				 <&clks IMX6QDL_CLK_GPU2D_CORE>;
 			clock-names = "bus", "core";
 			power-domains = <&pd_pu>;
+			#cooling-cells = <2>;
 		};
 
 		ipu2: ipu@2800000 {
diff --git a/arch/arm/boot/dts/imx6qdl.dtsi b/arch/arm/boot/dts/imx6qdl.dtsi
index 3372308974bf..f85d7c2d87a6 100644
--- a/arch/arm/boot/dts/imx6qdl.dtsi
+++ b/arch/arm/boot/dts/imx6qdl.dtsi
@@ -157,6 +157,7 @@ 
 				 <&clks IMX6QDL_CLK_GPU3D_SHADER>;
 			clock-names = "bus", "core", "shader";
 			power-domains = <&pd_pu>;
+			#cooling-cells = <2>;
 		};
 
 		gpu_2d: gpu@134000 {
@@ -167,6 +168,7 @@ 
 				 <&clks IMX6QDL_CLK_GPU2D_CORE>;
 			clock-names = "bus", "core";
 			power-domains = <&pd_pu>;
+			#cooling-cells = <2>;
 		};
 
 		timer@a00600 {
@@ -735,6 +737,7 @@ 
 				fsl,tempmon = <&anatop>;
 				fsl,tempmon-data = <&ocotp>;
 				clocks = <&clks IMX6QDL_CLK_PLL3_USB_OTG>;
+				#thermal-sensor-cells = <0>;
 			};
 
 			usbphy1: usbphy@20c9000 {