]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
dt-bindings: phy: rockchip,inno-usb2phy: Require GRF for RK3568/RV1108
authorJonas Karlman <jonas@kwiboo.se>
Tue, 5 May 2026 17:04:06 +0000 (19:04 +0200)
committerVinod Koul <vkoul@kernel.org>
Thu, 14 May 2026 15:38:26 +0000 (21:08 +0530)
Typically these Rockchip USB2 PHYs are fully contained within a single
GRF. However, for RK3568 and RV1108 regs to control the USB2 PHY is
located in a different GRF compared to the base address.

Update this binding to require rockchip,usbgrf for RK3568 and RV1108 to
properly reflect that the USB GRF is required to control the USB2 PHYs
on these variants. Also disable use of rockchip,usbgrf for variants
where it is not required.

This should not introduce any breakage as the affected usb2phy nodes for
RK3568 and RV1108 were added together with a rockchip,usbgrf phandle in
their initial commit.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Acked-by: Rob Herring (Arm) <robh@kernel.org>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Link: https://patch.msgid.link/20260505170410.3265305-2-heiko@sntech.de
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Documentation/devicetree/bindings/phy/rockchip,inno-usb2phy.yaml

index 58e735b5dd05a8b853225c1f3fcab8d79e777aed..b95c9e3e44feb718dcd9f3ea351a3bc6231840c8 100644 (file)
@@ -145,6 +145,20 @@ anyOf:
       - host-port
 
 allOf:
+  - if:
+      properties:
+        compatible:
+          contains:
+            enum:
+              - rockchip,rk3568-usb2phy
+              - rockchip,rv1108-usb2phy
+    then:
+      required:
+        - rockchip,usbgrf
+    else:
+      properties:
+        rockchip,usbgrf: false
+
   - if:
       properties:
         compatible: