Skip to content

Commit 0217f4a

Browse files
Frank Wangvinodkoul
authored andcommitted
dt-bindings: phy: rockchip,inno-usb2phy: add rk3576
Add compatible for the USB2 phy in the Rockchip RK3576 SoC. This change also refactor the clocks list as there are new clocks adding used for the USB MMU in RK3576 SoC. Signed-off-by: Frank Wang <[email protected]> Reviewed-by: Krzysztof Kozlowski <[email protected]> Reviewed-by: Heiko Stuebner <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
1 parent 86e2ed4 commit 0217f4a

File tree

1 file changed

+43
-2
lines changed

1 file changed

+43
-2
lines changed

Documentation/devicetree/bindings/phy/rockchip,inno-usb2phy.yaml

Lines changed: 43 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ properties:
2020
- rockchip,rk3366-usb2phy
2121
- rockchip,rk3399-usb2phy
2222
- rockchip,rk3568-usb2phy
23+
- rockchip,rk3576-usb2phy
2324
- rockchip,rk3588-usb2phy
2425
- rockchip,rv1108-usb2phy
2526

@@ -34,10 +35,15 @@ properties:
3435
const: 0
3536

3637
clocks:
37-
maxItems: 1
38+
minItems: 1
39+
maxItems: 3
3840

3941
clock-names:
40-
const: phyclk
42+
minItems: 1
43+
items:
44+
- const: phyclk
45+
- const: aclk
46+
- const: aclk_slv
4147

4248
assigned-clocks:
4349
description:
@@ -172,6 +178,41 @@ allOf:
172178
- interrupts
173179
- interrupt-names
174180

181+
- if:
182+
properties:
183+
compatible:
184+
contains:
185+
enum:
186+
- rockchip,px30-usb2phy
187+
- rockchip,rk3128-usb2phy
188+
- rockchip,rk3228-usb2phy
189+
- rockchip,rk3308-usb2phy
190+
- rockchip,rk3328-usb2phy
191+
- rockchip,rk3366-usb2phy
192+
- rockchip,rk3399-usb2phy
193+
- rockchip,rk3568-usb2phy
194+
- rockchip,rk3588-usb2phy
195+
- rockchip,rv1108-usb2phy
196+
then:
197+
properties:
198+
clocks:
199+
maxItems: 1
200+
clock-names:
201+
maxItems: 1
202+
203+
- if:
204+
properties:
205+
compatible:
206+
contains:
207+
enum:
208+
- rockchip,rk3576-usb2phy
209+
then:
210+
properties:
211+
clocks:
212+
minItems: 3
213+
clock-names:
214+
minItems: 3
215+
175216
additionalProperties: false
176217

177218
examples:

0 commit comments

Comments
 (0)