dt-bindings: thermal: marvell,dove-thermal: Convert to DT Schema
Subsystems (2)
PATCH 1/1 dt-bindings: thermal: marvell,dove-thermal: Convert to DT Schema
Convert the Dove Thermal binding from legacy text format to YAML schema to enable validation with dtbs_check.
Signed-off-by Shaunak Datar <[email protected]>
--- .../bindings/thermal/dove-thermal.txt | 18 ---------- .../thermal/marvell,dove-thermal.yaml | 35 +++++++++++++++++++ 2 files changed, 35 insertions(+), 18 deletions(-) delete mode 100644 Documentation/devicetree/bindings/thermal/dove-thermal.txt create mode 100644 Documentation/devicetree/bindings/thermal/marvell,dove-thermal.yaml
Documentation/devicetree/bindings/thermal/dove-thermal.txt deleted +0 -18
@@ -1,18 +0,0 @@ -* Dove Thermal - -This driver is for Dove SoCs which contain a thermal sensor. - -Required properties: -- compatible : "marvell,dove-thermal" -- reg : Address range of the thermal registers - -The reg properties should contain two ranges. The first is for the -three Thermal Manager registers, while the second range contains the -Thermal Diode Control Registers. - -Example: - - thermal@10078 { - compatible = "marvell,dove-thermal"; - reg = <0xd001c 0x0c>, <0xd005c 0x08>; - };
Documentation/devicetree/bindings/thermal/marvell,dove-thermal.yaml new file +35 -0
@@ -0,0 +1,35 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/thermal/marvell,dove-thermal.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Dove Thermal + +maintainers: + - Andrew Lunn <[email protected]> + +description: + Thermal sensor present in the Marvell Dove SoCs. + +properties: + compatible: + const: marvell,dove-thermal + + reg: + items: + - description: Thermal Manager registers + - description: Thermal Diode Control registers + +required: + - compatible + - reg + +additionalProperties: false + +examples: + - | + thermal-diode@1c { + compatible = "marvell,dove-thermal"; + reg = <0x001c 0x0c>, <0x005c 0x08>; + };
Signature · 1 line
2.53.0
Quoted 4 lines · Shaunak Datar
Convert the Dove Thermal binding from legacy text format to YAML schema to enable validation with
dtbs_check.Signed-off-by Shaunak Datar <[email protected]>
Reviewed-by Krzysztof Kozlowski <[email protected]>
Best regards,
Krzysztof