* [PATCH] dt-bindings: thermal: kirkwood-thermal: Convert to DT Schema
@ 2026-11-12 7:29 Shaunak Datar
2026-11-12 12:58 ` Rob Herring (Arm)
0 siblings, 1 reply; 2+ messages in thread
From: Shaunak Datar @ 2026-11-12 7:29 UTC (permalink / raw)
To: rafael
Cc: daniel.lezcano, rui.zhang, lukasz.luba, robh, krzk+dt, conor+dt,
linux-pm, devicetree, linux-kernel, Shaunak Datar
Convert the Kirkwood thermal binding from the legacy text format to YAML
schema to enable validation with dtbs_check.
Signed-off-by: Shaunak Datar <shaunakkdatar@gmail.com>
---
.../bindings/thermal/kirkwood-thermal.txt | 15 ---------
.../bindings/thermal/kirkwood-thermal.yaml | 32 +++++++++++++++++++
2 files changed, 32 insertions(+), 15 deletions(-)
delete mode 100644 Documentation/devicetree/bindings/thermal/kirkwood-thermal.txt
create mode 100644 Documentation/devicetree/bindings/thermal/kirkwood-thermal.yaml
diff --git a/Documentation/devicetree/bindings/thermal/kirkwood-thermal.txt b/Documentation/devicetree/bindings/thermal/kirkwood-thermal.txt
deleted file mode 100644
index 8c0f5eb86da7..000000000000
--- a/Documentation/devicetree/bindings/thermal/kirkwood-thermal.txt
+++ /dev/null
@@ -1,15 +0,0 @@
-* Kirkwood Thermal
-
-This version is for Kirkwood 88F8262 & 88F6283 SoCs. Other kirkwoods
-don't contain a thermal sensor.
-
-Required properties:
-- compatible : "marvell,kirkwood-thermal"
-- reg : Address range of the thermal registers
-
-Example:
-
- thermal@10078 {
- compatible = "marvell,kirkwood-thermal";
- reg = <0x10078 0x4>;
- };
diff --git a/Documentation/devicetree/bindings/thermal/kirkwood-thermal.yaml b/Documentation/devicetree/bindings/thermal/kirkwood-thermal.yaml
new file mode 100644
index 000000000000..1f9b97bdd48f
--- /dev/null
+++ b/Documentation/devicetree/bindings/thermal/kirkwood-thermal.yaml
@@ -0,0 +1,32 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/thermal/kirkwood-thermal.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Kirkwood Thermal
+
+maintainers: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
+
+description:
+ Thermal sensor present in the Marvell Kirkwood 88F8262 and 88F6283 SoCs.
+
+properties:
+ compatible:
+ const: marvell,kirkwood-thermal
+
+ reg:
+ maxItems: 1
+
+required:
+ - compatible
+ - reg
+
+additionalProperties: false
+
+examples:
+ - |
+ thermal@10078 {
+ compatible = "marvell,kirkwood-thermal";
+ reg = <0x10078 0x4>;
+ };
\ No newline at end of file
--
2.53.0
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] dt-bindings: thermal: kirkwood-thermal: Convert to DT Schema
2026-11-12 7:29 [PATCH] dt-bindings: thermal: kirkwood-thermal: Convert to DT Schema Shaunak Datar
@ 2026-11-12 12:58 ` Rob Herring (Arm)
0 siblings, 0 replies; 2+ messages in thread
From: Rob Herring (Arm) @ 2026-11-12 12:58 UTC (permalink / raw)
To: Shaunak Datar
Cc: devicetree, daniel.lezcano, lukasz.luba, linux-pm, conor+dt,
rafael, linux-kernel, krzk+dt, rui.zhang
On Thu, 12 Nov 2026 12:59:25 +0530, Shaunak Datar wrote:
> Convert the Kirkwood thermal binding from the legacy text format to YAML
> schema to enable validation with dtbs_check.
>
> Signed-off-by: Shaunak Datar <shaunakkdatar@gmail.com>
> ---
> .../bindings/thermal/kirkwood-thermal.txt | 15 ---------
> .../bindings/thermal/kirkwood-thermal.yaml | 32 +++++++++++++++++++
> 2 files changed, 32 insertions(+), 15 deletions(-)
> delete mode 100644 Documentation/devicetree/bindings/thermal/kirkwood-thermal.txt
> create mode 100644 Documentation/devicetree/bindings/thermal/kirkwood-thermal.yaml
>
My bot found errors running 'make dt_binding_check' on your patch:
yamllint warnings/errors:
./Documentation/devicetree/bindings/thermal/kirkwood-thermal.yaml:32:7: [error] no new line character at the end of file (new-line-at-end-of-file)
dtschema/dtc warnings/errors:
/builds/robherring/linux-dt-review/Documentation/devicetree/bindings/thermal/kirkwood-thermal.yaml: maintainers: "Nobuhiro Iwamatsu <iwamatsu@nigauri.org>" is not of type "array"
doc reference errors (make refcheckdocs):
See https://patchwork.kernel.org/project/devicetree/patch/20261112072925.22075-1-shaunakkdatar@gmail.com
The base for the series is generally the latest rc1. A different dependency
should be noted in *this* patch.
If you already ran 'make dt_binding_check' and didn't see the above
error(s), then make sure 'yamllint' is installed and dt-schema is up to
date:
pip3 install dtschema --upgrade
Please check and re-submit after running the above command yourself. Note
that DT_SCHEMA_FILES can be set to your schema file to speed up checking
your schema. However, it must be unset to test all examples with your schema.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-11-12 12:59 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-12 7:29 [PATCH] dt-bindings: thermal: kirkwood-thermal: Convert to DT Schema Shaunak Datar
2026-11-12 12:58 ` Rob Herring (Arm)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®