[PATCH v5 5/8] dt-bindings: usb: ci-hdrc-usb2: add compatible and clock-names restriction for imx93
Xu Yang
xu.yang_2 at nxp.com
Wed Jan 31 03:43:21 PST 2024
The i.MX93 needs a wakup clock to work properly. This will add compatible
and restriction for i.MX93 platform.
Signed-off-by: Xu Yang <xu.yang_2 at nxp.com>
---
Changes in v2:
- no changes
Changes in v3:
- add clocks restriction
Changes in v4:
- use 'contains' rather 'items'
Changes in v5:
- rename clock name
---
.../devicetree/bindings/usb/ci-hdrc-usb2.yaml | 35 ++++++++++++++++++-
1 file changed, 34 insertions(+), 1 deletion(-)
diff --git a/Documentation/devicetree/bindings/usb/ci-hdrc-usb2.yaml b/Documentation/devicetree/bindings/usb/ci-hdrc-usb2.yaml
index 6ad3582051b8..12466f7af00b 100644
--- a/Documentation/devicetree/bindings/usb/ci-hdrc-usb2.yaml
+++ b/Documentation/devicetree/bindings/usb/ci-hdrc-usb2.yaml
@@ -57,6 +57,7 @@ properties:
- enum:
- fsl,imx8mm-usb
- fsl,imx8mn-usb
+ - fsl,imx93-usb
- const: fsl,imx7d-usb
- const: fsl,imx27-usb
- items:
@@ -486,7 +487,6 @@ allOf:
- chipidea,usb2
- fsl,imx23-usb
- fsl,imx28-usb
- - fsl,imx7d-usb
- fsl,vf610-usb
then:
properties:
@@ -497,6 +497,38 @@ allOf:
minItems: 1
maxItems: 1
+ - if:
+ properties:
+ compatible:
+ items:
+ - const: fsl,imx7d-usb
+ - const: fsl,imx27-usb
+ then:
+ properties:
+ clocks:
+ minItems: 1
+ maxItems: 1
+ clock-names:
+ minItems: 1
+ maxItems: 1
+
+ - if:
+ properties:
+ compatible:
+ contains:
+ enum:
+ - fsl,imx93-usb
+ then:
+ properties:
+ clocks:
+ minItems: 2
+ maxItems: 2
+ clock-names:
+ minItems: 2
+ maxItems: 2
+ contains:
+ const: usb_wakeup
+
- if:
properties:
compatible:
@@ -504,6 +536,7 @@ allOf:
oneOf:
- pattern: '^fsl,imx5[0-3]+-usb$'
- pattern: '^fsl,imx6[a-z]+-usb$'
+ - pattern: '^fsl,imx8[a-z]+-usb$'
then:
properties:
clocks:
--
2.34.1
More information about the linux-arm-kernel
mailing list