dt-bindings: thermal: st,thermal-spear1340: convert to dtschema
Subsystems (3)
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
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
@@ -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
@@ -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
Quoted 6 lines · Gopi Krishna Menon
Convert the SPEAr Thermal Sensor bindings to DT schema.
Signed-off-by Gopi Krishna Menon <[email protected]>---
Changes since v1:
- Changed unevaluatedProperties to additionalProperties
Best regards,
Krzysztof
PATCH v2 2/2 ARM: dts: st: spear: rename thermal_flags to st,thermal-flags
In reply to Gopi Krishna Menonst,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
@@ -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
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_flagsinspear13xx.dtsi.Rename
thermal_flagsto 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
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_flagsinspear13xx.dtsi.Rename
thermal_flagsto st,thermal-flags to fix the property nameDoes 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