mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] dt-bindings: firmware: cznic,turris-mox-rwtm: convert to DT schema
@ 2026-02-21 18:21 Gabor Juhos
  2026-02-21 18:31 ` Krzysztof Kozlowski
  2026-02-21 19:20 ` Rob Herring (Arm)
  0 siblings, 2 replies; 5+ messages in thread
From: Gabor Juhos @ 2026-02-21 18:21 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Marek Behún
  Cc: Andrew Lunn, Gregory Clement, Sebastian Hesselbarth, devicetree,
	linux-arm-kernel, linux-kernel, Gabor Juhos

Convert the Turris Mox rWTM firmware binding to YAML format. Both the
compatibles and the examples were adjusted to match with the ones used
by the existing device trees to avoid new dtb check warnings.

Signed-off-by: Gabor Juhos <j4g8y7@gmail.com>
---
 .../bindings/firmware/cznic,turris-mox-rwtm.txt    | 19 ----------
 .../bindings/firmware/cznic,turris-mox-rwtm.yaml   | 44 ++++++++++++++++++++++
 MAINTAINERS                                        |  2 +-
 3 files changed, 45 insertions(+), 20 deletions(-)

diff --git a/Documentation/devicetree/bindings/firmware/cznic,turris-mox-rwtm.txt b/Documentation/devicetree/bindings/firmware/cznic,turris-mox-rwtm.txt
deleted file mode 100644
index 338169dea7bbb69cf005d964d20d69fdb9b3c7a8..0000000000000000000000000000000000000000
--- a/Documentation/devicetree/bindings/firmware/cznic,turris-mox-rwtm.txt
+++ /dev/null
@@ -1,19 +0,0 @@
-Turris Mox rWTM firmware driver
-
-Required properties:
- - compatible		: Should be "cznic,turris-mox-rwtm"
- - mboxes		: Must contain a reference to associated mailbox
-
-This device tree node should be used on Turris Mox, or potentially another A3700
-compatible device running the Mox's rWTM firmware in the secure processor (for
-example it is possible to flash this firmware into EspressoBin).
-
-Example:
-
-	firmware {
-		turris-mox-rwtm {
-			compatible = "cznic,turris-mox-rwtm";
-			mboxes = <&rwtm 0>;
-			status = "okay";
-		};
-	};
diff --git a/Documentation/devicetree/bindings/firmware/cznic,turris-mox-rwtm.yaml b/Documentation/devicetree/bindings/firmware/cznic,turris-mox-rwtm.yaml
new file mode 100644
index 0000000000000000000000000000000000000000..2feb11103653f841b2456286b666bf523bd02e1e
--- /dev/null
+++ b/Documentation/devicetree/bindings/firmware/cznic,turris-mox-rwtm.yaml
@@ -0,0 +1,44 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/firmware/cznic,turris-mox-rwtm.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Turris Mox rWTM firmware interface
+
+maintainers:
+  - Marek Behún <kabel@kernel.org>
+
+description: |
+  This device tree node should be used on Turris Mox, or potentially
+  another A3700 compatible device running the Mox's rWTM firmware in
+  the secure processor (for example it is possible to flash this
+  firmware into EspressoBin).
+
+properties:
+  compatible:
+    oneOf:
+      - const: marvell,armada-3700-rwtm-firmware
+
+      - items:
+        - const: marvell,armada-3700-rwtm-firmware
+        - const: cznic,turris-mox-rwtm
+
+  mboxes:
+    description: Reference to the associated mailbox.
+    maxItems: 1
+
+required:
+  - compatible
+  - mboxes
+
+additionalProperties: false
+
+examples:
+  - |
+    armada-3700-rwtm {
+        compatible = "marvell,armada-3700-rwtm-firmware";
+        mboxes = <&rwtm 0>;
+    };
+
+...
diff --git a/MAINTAINERS b/MAINTAINERS
index e087673237636268346979ddc270f8cf0905c722..43ec3489898e3bd5c79924670081d4eb397e2729 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -2713,7 +2713,7 @@ F:	Documentation/ABI/testing/sysfs-bus-i2c-devices-turris-omnia-mcu
 F:	Documentation/ABI/testing/sysfs-bus-moxtet-devices
 F:	Documentation/ABI/testing/sysfs-firmware-turris-mox-rwtm
 F:	Documentation/devicetree/bindings/bus/cznic,moxtet.yaml
-F:	Documentation/devicetree/bindings/firmware/cznic,turris-mox-rwtm.txt
+F:	Documentation/devicetree/bindings/firmware/cznic,turris-mox-rwtm.yaml
 F:	Documentation/devicetree/bindings/firmware/cznic,turris-omnia-mcu.yaml
 F:	Documentation/devicetree/bindings/interrupt-controller/marvell,mpic.yaml
 F:	Documentation/devicetree/bindings/leds/cznic,turris-omnia-leds.yaml

---
base-commit: 05f7e89ab9731565d8a62e3b5d1ec206485eeb0b
change-id: 20260221-mox-rwtm-yaml-ccdf4e6e8619

Best regards,
-- 
Gabor Juhos <j4g8y7@gmail.com>


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-02-23 12:32 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-02-21 18:21 [PATCH] dt-bindings: firmware: cznic,turris-mox-rwtm: convert to DT schema Gabor Juhos
2026-02-21 18:31 ` Krzysztof Kozlowski
2026-02-23 10:57   ` Gabor Juhos
2026-02-23 12:32     ` Gabor Juhos
2026-02-21 19:20 ` 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®