Skip to contentSkip to conversation

dt-bindings: PCI: ti,j721e-pci-host: Simplify 'device-id' schema

PATCH Applied Rob Herring 1 participant 2 messages Jan 25, 2023 – Jan 31, 2023

Subsystems (3)
lore
Share & tools
lore

Rob Herring

author maintainer
#0 lore raw

PATCH 1/1 dt-bindings: PCI: ti,j721e-pci-host: Simplify 'device-id' schema

'device-id' is just a scalar value, so just 'enum' is sufficient.

---
 .../devicetree/bindings/pci/ti,j721e-pci-host.yaml | 14 +++++---------
 1 file changed, 5 insertions(+), 9 deletions(-)
Documentation/devicetree/bindings/pci/ti,j721e-pci-host.yaml +5 -9
index b0513b197d08..3d7aee97353a 100644
@@ -66,15 +66,11 @@ properties:
     const: 0x104c
 
   device-id:
-    oneOf:
-      - items:
-          - const: 0xb00d
-      - items:
-          - const: 0xb00f
-      - items:
-          - const: 0xb010
-      - items:
-          - const: 0xb013
+    enum:
+      - 0xb00d
+      - 0xb00f
+      - 0xb010
+      - 0xb013
 
   msi-map: true
 
Signature · 1 line
2.39.0
author maintainer Applied
#1 lore raw
Quoted 7 lines · Rob Herring

'device-id' is just a scalar value, so just 'enum' is sufficient.

---
 .../devicetree/bindings/pci/ti,j721e-pci-host.yaml | 14 +++++---------
 1 file changed, 5 insertions(+), 9 deletions(-)

Applied, thanks!