Skip to contentSkip to conversation

dt-bindings: arm: Convert NXP LPC32xx board/soc bindings to json-schema

PATCH New Rob Herring 1 participant 1 message Jun 18, 2019

Subsystems (2)
lore
Share & tools
lore

Rob Herring

author maintainer
#0 lore raw

PATCH 1/1 dt-bindings: arm: Convert NXP LPC32xx board/soc bindings to json-schema

Convert NXP LPC32xx SoC bindings to DT schema format using json-schema.

---
 .../devicetree/bindings/arm/nxp/lpc32xx.txt   |  8 ------
 .../devicetree/bindings/arm/nxp/lpc32xx.yaml  | 25 +++++++++++++++++++
 2 files changed, 25 insertions(+), 8 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/arm/nxp/lpc32xx.txt
 create mode 100644 Documentation/devicetree/bindings/arm/nxp/lpc32xx.yaml
Documentation/devicetree/bindings/arm/nxp/lpc32xx.txt deleted +0 -8
deleted file mode 100644
index 56ec8ddc4a3b..000000000000
@@ -1,8 +0,0 @@
-NXP LPC32xx Platforms Device Tree Bindings
-------------------------------------------
-
-Boards with the NXP LPC32xx SoC shall have the following properties:
-
-Required root node property:
-
-compatible: must be "nxp,lpc3220", "nxp,lpc3230", "nxp,lpc3240" or "nxp,lpc3250"
Documentation/devicetree/bindings/arm/nxp/lpc32xx.yaml new file +25 -0
new file mode 100644
index 000000000000..07f39d3eee7e
@@ -0,0 +1,25 @@
+# SPDX-License-Identifier: GPL-2.0
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/arm/nxp/lpc32xx.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: NXP LPC32xx Platforms Device Tree Bindings
+
+maintainers:
+  - Roland Stigge <[email protected]>
+
+properties:
+  compatible:
+    oneOf:
+      - enum:
+          - nxp,lpc3220
+          - nxp,lpc3230
+          - nxp,lpc3240
+      - items:
+        - enum:
+            - ea,ea3250
+            - phytec,phy3250
+        - const: nxp,lpc3250
+
+...
Signature · 1 line
2.20.1