OSDN Git Service

dt-bindings: arm: realtek: Tidy up conversion to json-schema
authorAndreas Färber <afaerber@suse.de>
Sat, 19 Oct 2019 18:39:39 +0000 (20:39 +0200)
committerAndreas Färber <afaerber@suse.de>
Sat, 26 Oct 2019 13:31:11 +0000 (15:31 +0200)
Restore the device names for compatible strings as comments.
Prepare for adding more SoCs by inserting oneOf.

Fixes: 693af5f3eeaa ("dt-bindings: arm: Convert Realtek board/soc bindings to json-schema")
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Andreas Färber <afaerber@suse.de>
Documentation/devicetree/bindings/arm/realtek.yaml

index 3528b61..66458a3 100644 (file)
@@ -13,11 +13,12 @@ properties:
   $nodename:
     const: '/'
   compatible:
-    # RTD1295 SoC based boards
-    items:
-      - enum:
-          - mele,v9
-          - probox2,ava
-          - zidoo,x9s
-      - const: realtek,rtd1295
+    oneOf:
+      # RTD1295 SoC based boards
+      - items:
+          - enum:
+              - mele,v9 # MeLE V9
+              - probox2,ava # ProBox2 AVA
+              - zidoo,x9s # Zidoo X9S
+          - const: realtek,rtd1295
 ...