Skip to contentSkip to conversation

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

PATCH In review Gopi Krishna Menon 5 participants 7 messages Mar 29 – Apr 2

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

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

This patch series converts SPEAr Thermal Sensor bindings to DT schema and removes the thermal_flags property from spear13xx.dtsi.

Changes since v2:
- Reword the commit message and subject to correct explanation in patch 2
- No changes in patch 1
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: remove undocumented thermal_flags property

 .../bindings/thermal/spear-thermal.txt        | 14 --------
 .../thermal/st,thermal-spear1340.yaml         | 36 +++++++++++++++++++
 arch/arm/boot/dts/st/spear13xx.dtsi           |  1 -
 3 files changed, 36 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 v3 1/2 dt-bindings: thermal: st,thermal-spear1340: convert to dtschema

Convert the SPEAr Thermal Sensor bindings to DT schema.

---
Changes since v2:
- No changes
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

 .../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 v3 2/2 ARM: dts: st: spear: remove undocumented thermal_flags property

In reply to Gopi Krishna Menon

spear13xx.dtsi defines a thermal_flags property in spear thermal sensor node which is both unused in kernel and undocumented in spear thermal sensor's binding.

There were no dtbs_check warnings associated with this property as the underlying spear thermal binding was not converted to DTSchema.

Most likely st,thermal-flags is a misspelling of thermal_flags in spear13xx.dtsi. Since both st/spear1310.dtsi and st/spear1340.dtsi define st,thermal-flags property in spear thermal sensor node, we can safely remove this property from spear13xx.dtsi.

---
Changes since v2:
- Reword the commit message and subject to correct explanation in patch 2 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

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

Re: [PATCH v3 2/2] ARM: dts: st: spear: remove undocumented thermal_flags property

Quoted 7 lines · Gopi Krishna Menon

spear13xx.dtsi defines a thermal_flags property in spear thermal sensor node which is both unused in kernel and undocumented in spear thermal sensor's binding.

There were no dtbs_check warnings associated with this property as the underlying spear thermal binding was not converted to DTSchema.

Quoted 6 lines

Most likely st,thermal-flags is a misspelling of thermal_flags in spear13xx.dtsi. Since both st/spear1310.dtsi and st/spear1340.dtsi define st,thermal-flags property in spear thermal sensor node, we can safely remove this property from spear13xx.dtsi.

Best regards,
Krzysztof

Acked-by on the v3 series
#5 lore raw
In reply to Gopi Krishna Menon
Quoted 18 lines · Gopi Krishna Menon

This patch series converts SPEAr Thermal Sensor bindings to DT schema and removes the thermal_flags property from spear13xx.dtsi.

Changes since v2:
- Reword the commit message and subject to correct explanation in patch 2
- No changes in patch 1
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: remove undocumented thermal_flags property

Quoted 6 lines
 .../bindings/thermal/spear-thermal.txt        | 14 --------
 .../thermal/st,thermal-spear1340.yaml         | 36 +++++++++++++++++++
 arch/arm/boot/dts/st/spear13xx.dtsi           |  1 -
 3 files changed, 36 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
viresh
#6 lore raw
In reply to Gopi Krishna Menon
This series was applied to soc/soc.git (for-next) by Arnd Bergmann <[email protected]>:

Hello:

This series was applied to soc/soc.git (for-next)
by Arnd Bergmann <[email protected]>:

Quoted 11 lines · On Sun, 29 Mar 2026 18:04:42 +0530 you wrote:

This patch series converts SPEAr Thermal Sensor bindings to DT schema and removes the thermal_flags property from spear13xx.dtsi.

Changes since v2:
- Reword the commit message and subject to correct explanation in patch 2
- No changes in patch 1
Changes since v1:
- Changed unevaluatedProperties to additionalProperties in the binding
- Reword the commit message and subject in the second patch

[...]

Here is the summary with links:
- [v3,1/2] dt-bindings: thermal: st,thermal-spear1340: convert to dtschema (no matching commit)
- [v3,2/2] ARM: dts: st: spear: remove undocumented thermal_flags property

    https://git.kernel.org/soc/soc/c/e00482b58f6d

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html