Skip to content

Commit

Permalink
dt-bindings: usb: Add missing properties used in examples
Browse files Browse the repository at this point in the history
With 'unevaluatedProperties' support implemented, the following warnings
are generated in the usb examples:

Documentation/devicetree/bindings/usb/intel,keembay-dwc3.example.dt.yaml: usb: usb@34000000: Unevaluated properties are not allowed ('reg' was unexpected)
Documentation/devicetree/bindings/usb/snps,dwc3.example.dt.yaml: usb@4a030000: Unevaluated properties are not allowed ('reg' was unexpected)

Add the missing property definitions.

Cc: Greg Kroah-Hartman <[email protected]>
Cc: Ahmad Zainie <[email protected]>
Cc: Felipe Balbi <[email protected]>
Cc: [email protected]
Signed-off-by: Rob Herring <[email protected]>
Acked-by: Greg Kroah-Hartman <[email protected]>
Reviewed-by: Thierry Reding <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
  • Loading branch information
robherring committed Dec 14, 2021
1 parent 9696fe2 commit b13e2bd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Documentation/devicetree/bindings/usb/intel,keembay-dwc3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ properties:
compatible:
const: intel,keembay-dwc3

reg:
maxItems: 1

clocks:
maxItems: 4

Expand Down
6 changes: 6 additions & 0 deletions Documentation/devicetree/bindings/usb/snps,dwc3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ properties:
- const: synopsys,dwc3
deprecated: true

reg:
maxItems: 1

interrupts:
description:
It's either a single common DWC3 interrupt (dwc_usb3) or individual
Expand Down Expand Up @@ -65,6 +68,9 @@ properties:
- enum: [bus_early, ref, suspend]
- true

iommus:
maxItems: 1

usb-phy:
minItems: 1
items:
Expand Down

0 comments on commit b13e2bd

Please sign in to comment.