Skip to contentSkip to conversation

of: Add bindings of hw-trips for soctherm

PATCH Superseded Wei Ni 2 participants 5 messages Jan 18, 2016 – Jan 25, 2016

Subsystems (3)

v3 of 9 Superseded Latest is v9 →

lore
Share & tools
lore

Wei Ni

author
#0 lore raw

PATCH v3 7/11 of: Add bindings of hw-trips for soctherm

Add hw-trips sub-node for soctherm, which is
used to describe the hardware trip points for
each soctherm sensors.

---
 .../devicetree/bindings/thermal/tegra-soctherm.txt | 24 ++++++++++++++++++++++
 1 file changed, 24 insertions(+)
Documentation/devicetree/bindings/thermal/tegra-soctherm.txt +24 -0
index 6b68cd150405..75dc9dbe7e1a 100644
@@ -26,6 +26,15 @@ Required properties :
     of this property. See <dt-bindings/thermal/tegra124-soctherm.h> for a
     list of valid values when referring to thermal sensors.
 
+Optional properties:
+- hw-trip-points : A sub-node which is a container of hardware trip points
+    for each sensors.
+  * sensors: Sub-nodes which are used to describe the HW trip points info,
+        must be named as "cpu", "gpu", "mem", "pll".
+      Properties:
+      - thermtrip-temperature : Shutdown or reset temperature in millicelsius,
+        once the temperature of this sensor is higher than the
+        thermtrip-temperature, the system will be shutdown or reset.
 
 Example :
 
@@ -40,6 +49,21 @@ Example :
 		reset-names = "soctherm";
 
 		#thermal-sensor-cells = <1>;
+
+		hw-trip-points {
+			cpu {
+				thermtrip-temperature = <103000>;
+			};
+			gpu {
+				thermtrip-temperature = <103500>;
+			};
+			mem {
+				thermtrip-temperature = <103500>;
+			};
+			pll {
+				thermtrip-temperature = <105000>;
+			};
+		};
 	};
 
 Example: referring to thermal sensors :
Signature · 1 line
1.9.1
#1 lore raw
Quoted 3 lines · Wei Ni

Add hw-trips sub-node for soctherm, which is
used to describe the hardware trip points for
each soctherm sensors.

Please make use of the full 78 characters in each line. Otherwise looks good to me.

Oh, also make sure to Cc: [email protected] on device tree binding patches. Doing that now, hence quoting verbatim.

Thierry

Quoted 51 lines
---
 .../devicetree/bindings/thermal/tegra-soctherm.txt | 24 ++++++++++++++++++++++
 1 file changed, 24 insertions(+)
Documentation/devicetree/bindings/thermal/tegra-soctherm.txt +24 -0
index 6b68cd150405..75dc9dbe7e1a 100644
@@ -26,6 +26,15 @@ Required properties :
     of this property. See <dt-bindings/thermal/tegra124-soctherm.h> for a
     list of valid values when referring to thermal sensors.
 
+Optional properties:
+- hw-trip-points : A sub-node which is a container of hardware trip points
+    for each sensors.
+  * sensors: Sub-nodes which are used to describe the HW trip points info,
+        must be named as "cpu", "gpu", "mem", "pll".
+      Properties:
+      - thermtrip-temperature : Shutdown or reset temperature in millicelsius,
+        once the temperature of this sensor is higher than the
+        thermtrip-temperature, the system will be shutdown or reset.
 
 Example :
 
@@ -40,6 +49,21 @@ Example :
 		reset-names = "soctherm";
 
 		#thermal-sensor-cells = <1>;
+
+		hw-trip-points {
+			cpu {
+				thermtrip-temperature = <103000>;
+			};
+			gpu {
+				thermtrip-temperature = <103500>;
+			};
+			mem {
+				thermtrip-temperature = <103500>;
+			};
+			pll {
+				thermtrip-temperature = <105000>;
+			};
+		};
 	};
 
 Example: referring to thermal sensors :
Signature · 1 line
1.9.1
#3 lore raw
In reply to Wei Ni
Quoted 3 lines · Wei Ni

Add hw-trips sub-node for soctherm, which is
used to describe the hardware trip points for
each soctherm sensors.

Also the subject and commit message should be updated to reflect the new sub-node name.

Thierry

author
#2 lore raw
In reply to Thierry Reding
Quoted 9 lines · Thierry Reding

* PGP Signed by an unknown key

Quoted 3 lines · Wei Ni

Add hw-trips sub-node for soctherm, which is
used to describe the hardware trip points for
each soctherm sensors.

Please make use of the full 78 characters in each line. Otherwise looks good to me.

Ok, I will check it again.

Quoted 3 lines

Oh, also make sure to Cc: [email protected] on device tree binding patches. Doing that now, hence quoting verbatim.

Sure, will do it.

Quoted 58 lines

Thierry

Quoted 51 lines
---
 .../devicetree/bindings/thermal/tegra-soctherm.txt | 24 ++++++++++++++++++++++
 1 file changed, 24 insertions(+)
Documentation/devicetree/bindings/thermal/tegra-soctherm.txt +24 -0
index 6b68cd150405..75dc9dbe7e1a 100644
@@ -26,6 +26,15 @@ Required properties :
     of this property. See <dt-bindings/thermal/tegra124-soctherm.h> for a
     list of valid values when referring to thermal sensors.
 
+Optional properties:
+- hw-trip-points : A sub-node which is a container of hardware trip points
+    for each sensors.
+  * sensors: Sub-nodes which are used to describe the HW trip points info,
+        must be named as "cpu", "gpu", "mem", "pll".
+      Properties:
+      - thermtrip-temperature : Shutdown or reset temperature in millicelsius,
+        once the temperature of this sensor is higher than the
+        thermtrip-temperature, the system will be shutdown or reset.
 
 Example :
 
@@ -40,6 +49,21 @@ Example :
 		reset-names = "soctherm";
 
 		#thermal-sensor-cells = <1>;
+
+		hw-trip-points {
+			cpu {
+				thermtrip-temperature = <103000>;
+			};
+			gpu {
+				thermtrip-temperature = <103500>;
+			};
+			mem {
+				thermtrip-temperature = <103500>;
+			};
+			pll {
+				thermtrip-temperature = <105000>;
+			};
+		};
 	};
 
 Example: referring to thermal sensors :
Signature · 1 line
1.9.1

* Unknown Key
* 0x7F3EB3A1

author
#4 lore raw
In reply to Thierry Reding
Quoted 9 lines · Thierry Reding

* PGP Signed by an unknown key

Quoted 3 lines · Wei Ni

Add hw-trips sub-node for soctherm, which is
used to describe the hardware trip points for
each soctherm sensors.

Also the subject and commit message should be updated to reflect the new sub-node name.

Yes, will fix it.

Quoted 6 lines

Thierry

* Unknown Key
* 0x7F3EB3A1