Commit 0217f4ae authored by Frank Wang's avatar Frank Wang Committed by Vinod Koul
Browse files

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: default avatarFrank Wang <frank.wang@rock-chips.com>
Reviewed-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: default avatarHeiko Stuebner <heiko@sntech.de>
Link: https://lore.kernel.org/r/20241016073713.14133-3-frawang.cn@gmail.com


Signed-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent 86e2ed4e
Loading
Loading
Loading
Loading
+43 −2
Original line number Diff line number Diff line
@@ -20,6 +20,7 @@ properties:
      - rockchip,rk3366-usb2phy
      - rockchip,rk3399-usb2phy
      - rockchip,rk3568-usb2phy
      - rockchip,rk3576-usb2phy
      - rockchip,rk3588-usb2phy
      - rockchip,rv1108-usb2phy

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

  clocks:
    maxItems: 1
    minItems: 1
    maxItems: 3

  clock-names:
    const: phyclk
    minItems: 1
    items:
      - const: phyclk
      - const: aclk
      - const: aclk_slv

  assigned-clocks:
    description:
@@ -172,6 +178,41 @@ allOf:
            - interrupts
            - interrupt-names

  - if:
      properties:
        compatible:
          contains:
            enum:
              - rockchip,px30-usb2phy
              - rockchip,rk3128-usb2phy
              - rockchip,rk3228-usb2phy
              - rockchip,rk3308-usb2phy
              - rockchip,rk3328-usb2phy
              - rockchip,rk3366-usb2phy
              - rockchip,rk3399-usb2phy
              - rockchip,rk3568-usb2phy
              - rockchip,rk3588-usb2phy
              - rockchip,rv1108-usb2phy
    then:
      properties:
        clocks:
          maxItems: 1
        clock-names:
          maxItems: 1

  - if:
      properties:
        compatible:
          contains:
            enum:
              - rockchip,rk3576-usb2phy
    then:
      properties:
        clocks:
          minItems: 3
        clock-names:
          minItems: 3

additionalProperties: false

examples: