Skip to contentSkip to conversation

dt-bindings: bus: Convert DA8XX MSTPRI to DT schema

PATCH Applied Eduard Bostina 3 participants 3 messages Jun 30 – Jul 7 Device tree bindings

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dt-bindings: bus: Convert DA8XX MSTPRI to DT schema

Convert the Texas Instruments DA8XX Master Peripheral Priority Registers bindings to DT schema.

Documentation:
OMAP-L138 (DA850) http://www.ti.com/lit/ug/spruh82c/spruh82c.pdf

---
 .../bindings/bus/ti,da850-mstpri.txt          | 20 ----------
 .../bindings/bus/ti,da850-mstpri.yaml         | 37 +++++++++++++++++++
 2 files changed, 37 insertions(+), 20 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/bus/ti,da850-mstpri.txt
 create mode 100644 Documentation/devicetree/bindings/bus/ti,da850-mstpri.yaml
Documentation/devicetree/bindings/bus/ti,da850-mstpri.txt deleted +0 -20
deleted file mode 100644
index 72daefc6b4a1..000000000000
@@ -1,20 +0,0 @@
-* Device tree bindings for Texas Instruments da8xx master peripheral
-  priority driver
-
-DA8XX SoCs feature a set of registers allowing to change the priority of all
-peripherals classified as masters.
-
-Documentation:
-OMAP-L138 (DA850) - http://www.ti.com/lit/ug/spruh82c/spruh82c.pdf
-
-Required properties:
-
-- compatible:		"ti,da850-mstpri" - for da850 based boards
-- reg:			offset and length of the mstpri registers
-
-Example for da850-lcdk is shown below.
-
-mstpri {
-	compatible = "ti,da850-mstpri";
-	reg = <0x14110 0x0c>;
-};
Documentation/devicetree/bindings/bus/ti,da850-mstpri.yaml new file +37 -0
new file mode 100644
index 000000000000..5b03abd3fc3b
@@ -0,0 +1,37 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/bus/ti,da850-mstpri.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Texas Instruments DA8XX Master Peripheral Priority Registers
+
+maintainers:
+  - Eduard Bostina <[email protected]>
+
+description: |
+  DA8XX SoCs feature a set of registers allowing to change the priority of all
+  peripherals classified as masters.
+
+  Documentation:
+  OMAP-L138 (DA850) - http://www.ti.com/lit/ug/spruh82c/spruh82c.pdf
+
+properties:
+  compatible:
+    const: ti,da850-mstpri
+
+  reg:
+    maxItems: 1
+
+required:
+  - compatible
+  - reg
+
+additionalProperties: false
+
+examples:
+  - |
+    mstpri@14110 {
+        compatible = "ti,da850-mstpri";
+        reg = <0x14110 0x0c>;
+    };
Signature · 1 line
2.43.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 6 lines · Eduard Bostina

Convert the Texas Instruments DA8XX Master Peripheral Priority Registers bindings to DT schema.

Documentation:
OMAP-L138 (DA850) http://www.ti.com/lit/ug/spruh82c/spruh82c.pdf

Quoted 7 lines
---
 .../bindings/bus/ti,da850-mstpri.txt          | 20 ----------
 .../bindings/bus/ti,da850-mstpri.yaml         | 37 +++++++++++++++++++
 2 files changed, 37 insertions(+), 20 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/bus/ti,da850-mstpri.txt
 create mode 100644 Documentation/devicetree/bindings/bus/ti,da850-mstpri.yaml

Best regards,
Krzysztof

maintainer Applied
#2 lore raw
In reply to Eduard Bostina
Quoted 6 lines · Eduard Bostina

Convert the Texas Instruments DA8XX Master Peripheral Priority Registers bindings to DT schema.

Documentation:
OMAP-L138 (DA850) http://www.ti.com/lit/ug/spruh82c/spruh82c.pdf

Quoted 8 lines
---
 .../bindings/bus/ti,da850-mstpri.txt          | 20 ----------
 .../bindings/bus/ti,da850-mstpri.yaml         | 37 +++++++++++++++++++
 2 files changed, 37 insertions(+), 20 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/bus/ti,da850-mstpri.txt
 create mode 100644 Documentation/devicetree/bindings/bus/ti,da850-mstpri.yaml

Applied, thanks!