diff mbox series

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

Message ID 20230125221432.3058405-1-robh@kernel.org
State Accepted
Commit 92ec34fecc5d0f652f5adeb0c19e051981c15b42
Headers show
Series dt-bindings: PCI: ti,j721e-pci-host: Simplify 'device-id' schema | expand

Commit Message

Rob Herring Jan. 25, 2023, 10:14 p.m. UTC
'device-id' is just a scalar value, so just 'enum' is sufficient.

Signed-off-by: Rob Herring <robh@kernel.org>
---
 .../devicetree/bindings/pci/ti,j721e-pci-host.yaml | 14 +++++---------
 1 file changed, 5 insertions(+), 9 deletions(-)

Comments

Rob Herring Jan. 31, 2023, 11:32 p.m. UTC | #1
On Wed, 25 Jan 2023 16:14:32 -0600, Rob Herring wrote:
> 'device-id' is just a scalar value, so just 'enum' is sufficient.
> 
> Signed-off-by: Rob Herring <robh@kernel.org>
> ---
>  .../devicetree/bindings/pci/ti,j721e-pci-host.yaml | 14 +++++---------
>  1 file changed, 5 insertions(+), 9 deletions(-)
> 

Applied, thanks!
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/pci/ti,j721e-pci-host.yaml b/Documentation/devicetree/bindings/pci/ti,j721e-pci-host.yaml
index b0513b197d08..3d7aee97353a 100644
--- a/Documentation/devicetree/bindings/pci/ti,j721e-pci-host.yaml
+++ b/Documentation/devicetree/bindings/pci/ti,j721e-pci-host.yaml
@@ -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