All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/7] arm64: dts: ls1012a: Move cpu_thermal out of bus node
@ 2018-02-05 18:45 Fabio Estevam
  2018-02-05 18:45 ` [PATCH 2/7] arm64: dts: ls1043a: " Fabio Estevam
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: Fabio Estevam @ 2018-02-05 18:45 UTC (permalink / raw)
  To: linux-arm-kernel

From: Fabio Estevam <fabio.estevam@nxp.com>

Move cpu_thermal node from soc node to root node.

cpu_thermal node does not have any register properties and thus
shouldn't be placed on the bus.

This fixes the following build warnings with W=1:

arch/arm64/boot/dts/freescale/fsl-ls1012a-frdm.dtb: Warning (simple_bus_reg): Node /soc/thermal-zones missing or empty reg/ranges property

Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
---
 arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi | 62 +++++++++++++-------------
 1 file changed, 31 insertions(+), 31 deletions(-)

diff --git a/arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi b/arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi
index 82b272f..4e98d05 100644
--- a/arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi
+++ b/arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi
@@ -118,6 +118,37 @@
 		mask = <0x02>;
 	};
 
+	thermal-zones {
+		cpu_thermal: cpu-thermal {
+			polling-delay-passive = <1000>;
+			polling-delay = <5000>;
+			thermal-sensors = <&tmu 0>;
+
+			trips {
+				cpu_alert: cpu-alert {
+					temperature = <85000>;
+					hysteresis = <2000>;
+					type = "passive";
+				};
+
+				cpu_crit: cpu-crit {
+					temperature = <95000>;
+					hysteresis = <2000>;
+					type = "critical";
+				};
+			};
+
+			cooling-maps {
+				map0 {
+					trip = <&cpu_alert>;
+					cooling-device =
+						<&cpu0 THERMAL_NO_LIMIT
+						THERMAL_NO_LIMIT>;
+				};
+			};
+		};
+	};
+
 	soc {
 		compatible = "simple-bus";
 		#address-cells = <2>;
@@ -304,37 +335,6 @@
 			#thermal-sensor-cells = <1>;
 		};
 
-		thermal-zones {
-			cpu_thermal: cpu-thermal {
-				polling-delay-passive = <1000>;
-				polling-delay = <5000>;
-				thermal-sensors = <&tmu 0>;
-
-				trips {
-					cpu_alert: cpu-alert {
-						temperature = <85000>;
-						hysteresis = <2000>;
-						type = "passive";
-					};
-
-					cpu_crit: cpu-crit {
-						temperature = <95000>;
-						hysteresis = <2000>;
-						type = "critical";
-					};
-				};
-
-				cooling-maps {
-					map0 {
-						trip = <&cpu_alert>;
-						cooling-device =
-							<&cpu0 THERMAL_NO_LIMIT
-							THERMAL_NO_LIMIT>;
-					};
-				};
-			};
-		};
-
 		i2c0: i2c at 2180000 {
 			compatible = "fsl,vf610-i2c";
 			#address-cells = <1>;
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2018-02-08  7:20 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-02-05 18:45 [PATCH 1/7] arm64: dts: ls1012a: Move cpu_thermal out of bus node Fabio Estevam
2018-02-05 18:45 ` [PATCH 2/7] arm64: dts: ls1043a: " Fabio Estevam
2018-02-05 18:45 ` [PATCH 3/7] arm64: dts: ls1046a: " Fabio Estevam
2018-02-05 18:45 ` [PATCH 4/7] arm64: dts: ls1088a: " Fabio Estevam
2018-02-05 18:45 ` [PATCH 5/7] arm64: dts: ls208xa: " Fabio Estevam
2018-02-05 18:45 ` [PATCH 6/7] arm64: dts: ls208xa-qds: Pass unit name to dspi child nodes Fabio Estevam
2018-02-05 18:45 ` [PATCH 7/7] arm64: ls208xa-qds: Fix the 'reg' property Fabio Estevam
2018-02-08  7:20 ` [PATCH 1/7] arm64: dts: ls1012a: Move cpu_thermal out of bus node Shawn Guo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.