Skip to contentSkip to conversation

dt-bindings: thermal: st,thermal-spear1340: convert to dtschema

PATCH Superseded Gopi Krishna Menon 2 participants 6 messages Mar 29

Subsystems (3)

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

v2 cover dt-bindings: thermal: st,thermal-spear1340: convert to dtschema

This patch series converts SPEAr Thermal Sensor bindings to DT schema and corrects the thermal_flags property in spear13xx.dtsi to st,thermal-flags.

Changes since v1:
- Changed unevaluatedProperties to additionalProperties in the binding
- Reword the commit message and subject in the second patch

Note:
* This patch is part of the GSoC2026 application process for device tree bindings conversions
* https://github.com/LinuxFoundationGSoC/ProjectIdeas/wiki/GSoC-2026-Device-Tree-Bindings

Gopi Krishna Menon (2):
dt-bindings: thermal: st,thermal-spear1340: convert to dtschema
ARM: dts: st: spear: rename thermal_flags to st,thermal-flags

 .../bindings/thermal/spear-thermal.txt        | 14 --------
 .../thermal/st,thermal-spear1340.yaml         | 36 +++++++++++++++++++
 arch/arm/boot/dts/st/spear13xx.dtsi           |  2 +-
 3 files changed, 37 insertions(+), 15 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/thermal/spear-thermal.txt
 create mode 100644 Documentation/devicetree/bindings/thermal/st,thermal-spear1340.yaml
Signature · 1 line
2.52.0
#1 lore raw

PATCH v2 1/2 dt-bindings: thermal: st,thermal-spear1340: convert to dtschema

Convert the SPEAr Thermal Sensor bindings to DT schema.

---
Changes since v1:
- Changed unevaluatedProperties to additionalProperties

Note:
* This patch is part of the GSoC2026 application process for device tree bindings conversions
* https://github.com/LinuxFoundationGSoC/ProjectIdeas/wiki/GSoC-2026-Device-Tree-Bindings

 .../bindings/thermal/spear-thermal.txt        | 14 --------
 .../thermal/st,thermal-spear1340.yaml         | 36 +++++++++++++++++++
 2 files changed, 36 insertions(+), 14 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/thermal/spear-thermal.txt
 create mode 100644 Documentation/devicetree/bindings/thermal/st,thermal-spear1340.yaml
Documentation/devicetree/bindings/thermal/spear-thermal.txt deleted +0 -14
deleted file mode 100644
index 93e3b67c102d..000000000000
@@ -1,14 +0,0 @@
-* SPEAr Thermal
-
-Required properties:
-- compatible : "st,thermal-spear1340"
-- reg : Address range of the thermal registers
-- st,thermal-flags: flags used to enable thermal sensor
-
-Example:
-
-	thermal@fc000000 {
-		compatible = "st,thermal-spear1340";
-		reg = <0xfc000000 0x1000>;
-		st,thermal-flags = <0x7000>;
-	};
Documentation/devicetree/bindings/thermal/st,thermal-spear1340.yaml new file +36 -0
new file mode 100644
index 000000000000..e3462a974691
@@ -0,0 +1,36 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/thermal/st,thermal-spear1340.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: SPEAr Thermal Sensor
+
+maintainers:
+  - Viresh Kumar <[email protected]>
+
+properties:
+  compatible:
+    const: st,thermal-spear1340
+
+  reg:
+    maxItems: 1
+
+  st,thermal-flags:
+    description: flags used to enable thermal sensor
+    $ref: /schemas/types.yaml#/definitions/uint32
+
+required:
+  - compatible
+  - reg
+  - st,thermal-flags
+
+additionalProperties: false
+
+examples:
+  - |
+    thermal@fc000000 {
+      compatible = "st,thermal-spear1340";
+      reg = <0xfc000000 0x1000>;
+      st,thermal-flags = <0x7000>;
+    };
Signature · 1 line
2.52.0
#3 lore raw

PATCH v2 2/2 ARM: dts: st: spear: rename thermal_flags to st,thermal-flags

In reply to Gopi Krishna Menon

st,thermal-flags is a required property in SPEAr Thermal Sensor node, which is incorrectly written as thermal_flags in spear13xx.dtsi.

Rename thermal_flags to st,thermal-flags to fix the property name

---
Changes since v1:
- Reword the commit message and subject

Note:
* This patch is part of the GSoC2026 application process for device tree bindings conversions
* https://github.com/LinuxFoundationGSoC/ProjectIdeas/wiki/GSoC-2026-Device-Tree-Bindings

 arch/arm/boot/dts/st/spear13xx.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/st/spear13xx.dtsi +1 -1
index 159e941708ca..97357680dd51 100644
@@ -332,7 +332,7 @@ wdt@ec800620 {
 			thermal@e07008c4 {
 				compatible = "st,thermal-spear1340";
 				reg = <0xe07008c4 0x4>;
-				thermal_flags = <0x7000>;
+				st,thermal-flags = <0x7000>;
 			};
 		};
 	};
Signature · 1 line
2.52.0
#4 lore raw

Re: [PATCH v2 2/2] ARM: dts: st: spear: rename thermal_flags to st,thermal-flags

Quoted 4 lines · Gopi Krishna Menon

st,thermal-flags is a required property in SPEAr Thermal Sensor node, which is incorrectly written as thermal_flags in spear13xx.dtsi.

Rename thermal_flags to st,thermal-flags to fix the property name

Does this have an impact? If yes, then why no fixes? If no, then why not? How this could ever worked? Maybe this is completely unnecessary.

We already talked about this and I don't get why this change is neeeded and why we discuss the same problem.

Best regards,
Krzysztof

#5 lore raw

Re: [PATCH v2 2/2] ARM: dts: st: spear: rename thermal_flags to st,thermal-flags

Quoted 11 lines · Krzysztof Kozlowski
Quoted 4 lines · Gopi Krishna Menon

st,thermal-flags is a required property in SPEAr Thermal Sensor node, which is incorrectly written as thermal_flags in spear13xx.dtsi.

Rename thermal_flags to st,thermal-flags to fix the property name

Does this have an impact? If yes, then why no fixes? If no, then why not? How this could ever worked? Maybe this is completely unnecessary.

We already talked about this and I don't get why this change is neeeded and why we discuss the same problem.

and by "this change" I meant, "rename" part, instead of "removal".

Your task is analyze entire code, understand what was wrong and provide proper solution.

Best regards,
Krzysztof