Skip to content

Commit 814ab26

Browse files
Xu Yanggregkh
authored andcommitted
dt-bindings: phy: imx8mq-usb: add compatible "fsl,imx95-usb-phy"
The usb phy in i.MX95 is compatible with i.MX8MP's, this will add a compatible "fsl,imx95-usb-phy" for i.MX95. Also change reg maxItems to 2 since i.MX95 needs another regmap to control Type-C Assist (TCA) block. Since i.MX95 usb phy is able to switch SS lanes, this will also add orientation-switch and port property to the file. Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Signed-off-by: Xu Yang <xu.yang_2@nxp.com> Link: https://lore.kernel.org/r/20240911061720.495606-1-xu.yang_2@nxp.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 422dc0a commit 814ab26

File tree

1 file changed

+37
-5
lines changed

1 file changed

+37
-5
lines changed

Documentation/devicetree/bindings/phy/fsl,imx8mq-usb-phy.yaml

Lines changed: 37 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,17 @@ maintainers:
1111

1212
properties:
1313
compatible:
14-
enum:
15-
- fsl,imx8mq-usb-phy
16-
- fsl,imx8mp-usb-phy
14+
oneOf:
15+
- enum:
16+
- fsl,imx8mq-usb-phy
17+
- fsl,imx8mp-usb-phy
18+
- items:
19+
- const: fsl,imx95-usb-phy
20+
- const: fsl,imx8mp-usb-phy
1721

1822
reg:
19-
maxItems: 1
23+
minItems: 1
24+
maxItems: 2
2025

2126
"#phy-cells":
2227
const: 0
@@ -89,7 +94,34 @@ required:
8994
- clocks
9095
- clock-names
9196

92-
additionalProperties: false
97+
allOf:
98+
- if:
99+
properties:
100+
compatible:
101+
contains:
102+
enum:
103+
- fsl,imx95-usb-phy
104+
then:
105+
properties:
106+
reg:
107+
items:
108+
- description: USB PHY Control range
109+
- description: USB PHY TCA Block range
110+
else:
111+
properties:
112+
reg:
113+
maxItems: 1
114+
115+
- if:
116+
properties:
117+
compatible:
118+
contains:
119+
enum:
120+
- fsl,imx95-usb-phy
121+
then:
122+
$ref: /schemas/usb/usb-switch.yaml#
123+
124+
unevaluatedProperties: false
93125

94126
examples:
95127
- |

0 commit comments

Comments
 (0)