]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
dt-bindings: firmware: Convert cznic,turris-mox-rwtm to DT schema
authorRob Herring (Arm) <robh@kernel.org>
Mon, 15 Dec 2025 21:25:43 +0000 (15:25 -0600)
committerRob Herring (Arm) <robh@kernel.org>
Wed, 4 Feb 2026 02:58:09 +0000 (20:58 -0600)
Convert the CZ.NIC Turris Mox rWTM firmware binding to DT schema format.
Add the "marvell,armada-3700-rwtm-firmware" compatible which was not
documented.

Link: https://patch.msgid.link/20251215212545.3318816-1-robh@kernel.org
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
Documentation/devicetree/bindings/firmware/cznic,turris-mox-rwtm.txt [deleted file]
Documentation/devicetree/bindings/firmware/cznic,turris-mox-rwtm.yaml [new file with mode: 0644]
MAINTAINERS

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 (file)
index 338169d..0000000
+++ /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 (file)
index 0000000..28caec1
--- /dev/null
@@ -0,0 +1,40 @@
+# 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: CZ.NIC Turris Mox rWTM firmware
+
+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:
+      - items:
+          - const: marvell,armada-3700-rwtm-firmware
+          - const: cznic,turris-mox-rwtm
+      - const: marvell,armada-3700-rwtm-firmware
+
+  mboxes:
+    maxItems: 1
+
+required:
+  - compatible
+  - mboxes
+
+additionalProperties: false
+
+examples:
+  - |
+    turris-mox-rwtm {
+        compatible = "marvell,armada-3700-rwtm-firmware", "cznic,turris-mox-rwtm";
+        mboxes = <&rwtm 0>;
+    };
index cfd00518df3c02255481ce2ab06be8ad221665c3..beb371e8c541da1ca57f4ea2e78ebd5527850c26 100644 (file)
@@ -2711,7 +2711,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