Skip to contentSkip to conversation

rockchip: Fix devices suspend freeze on RK3568/RK3566

PATCH Superseded Jonas Karlman 4 participants 9 messages Jun 9 – Jun 12

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#1 lore raw

PATCH 1/2 dt-bindings: usb: Add Rockchip RK3568 compatible for EHCI and OHCI

In reply to Jonas Karlman

The Rockchip RK3568 EHCI/OHCI controller depends on clk_usbphy1_480m being enabled, or the system may freeze when registers are accessed.

Add Rockchip RK3568 EHCI and OHCI compatibles with a similar four-clock constraint as RK3588.

---
Existing DTs for RK3568 use the plain generic-ehci/ohci compatible, next patch make use of these new compatibles and adds the missing clk_usbphy1_480m clock references.

---
 .../devicetree/bindings/usb/generic-ehci.yaml          | 10 ++++++++++
 .../devicetree/bindings/usb/generic-ohci.yaml          |  5 ++++-
 2 files changed, 14 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/usb/generic-ehci.yaml +10 -0
index 55a5aa7d7a54..c49a1bbc8cfd 100644
@@ -52,6 +52,7 @@ properties:
               - ibm,476gtr-ehci
               - nxp,lpc1850-ehci
               - qca,ar7100-ehci
+              - rockchip,rk3568-ehci
               - rockchip,rk3588-ehci
               - snps,hsdk-v1.0-ehci
               - socionext,uniphier-ehci
@@ -186,6 +187,15 @@ allOf:
       required:
         - clocks
         - clock-names
+  - if:
+      properties:
+        compatible:
+          contains:
+            const: rockchip,rk3568-ehci
+    then:
+      properties:
+        clocks:
+          minItems: 4
 
 unevaluatedProperties: false
 
Documentation/devicetree/bindings/usb/generic-ohci.yaml +4 -1
index d42f448fa204..5f1b4d2bff89 100644
@@ -47,6 +47,7 @@ properties:
               - hpe,gxp-ohci
               - ibm,476gtr-ohci
               - ingenic,jz4740-ohci
+              - rockchip,rk3568-ohci
               - rockchip,rk3588-ohci
               - snps,hsdk-v1.0-ohci
           - const: generic-ohci
@@ -198,7 +199,9 @@ allOf:
       properties:
         compatible:
           contains:
-            const: rockchip,rk3588-ohci
+            enum:
+              - rockchip,rk3568-ohci
+              - rockchip,rk3588-ohci
     then:
       properties:
         clocks:
Signature · 1 line
2.54.0
#0 lore raw

cover rockchip: Fix devices suspend freeze on RK3568/RK3566

This series fixes a system freeze during suspend in ohci_suspend() due to clk_usbphy1_480m not being enabled when EHCI/OHCI registers are accessed on e.g. a Raxa ROCK 3C board.

Following pm_test modes work on my ROCK 3C with the missing usbphy clk refs added:

echo N > /sys/module/printk/parameters/console_suspend

echo devices > /sys/power/pm_test
echo platform > /sys/power/pm_test
echo processors > /sys/power/pm_test
echo core > /sys/power/pm_test

echo mem > /sys/power/state

Jonas Karlman (2):
dt-bindings: usb: Add Rockchip RK3568 compatible for EHCI and OHCI
arm64: dts: rockchip: Fix devices suspend freeze on RK3568/RK3566

 .../devicetree/bindings/usb/generic-ehci.yaml    | 10 ++++++++++
 .../devicetree/bindings/usb/generic-ohci.yaml    |  5 ++++-
 arch/arm64/boot/dts/rockchip/rk356x-base.dtsi    | 16 ++++++++--------
 3 files changed, 22 insertions(+), 9 deletions(-)
Signature · 7 lines
2.54.0


_______________________________________________
Linux-rockchip mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-rockchip
#7 lore raw

PATCH 2/2 arm64: dts: rockchip: Fix devices suspend freeze on RK3568/RK3566

The EHCI/OHCI controller depends on clk_usbphy1_480m being enabled, or the system may freeze when registers are accessed, i.e. during suspend in ohci_suspend().

Add the missing clk_usbphy1_480m clocks reference to EHCI/OHCI controllers to ensure the clock is enabled when ECHI/OHCI registers are accessed to prevent a system freeze.

Fixes suspend pm_test issue with EHCI/OHCI devices due to the missing clk_usbphy1_480m reference and makes following pm_test modes work:

echo N > /sys/module/printk/parameters/console_suspend

echo devices > /sys/power/pm_test
echo platform > /sys/power/pm_test
echo processors > /sys/power/pm_test
echo core > /sys/power/pm_test

echo mem > /sys/power/state

Fixes 91c4c3e06a25 ("arm64: dts: rockchip: add usb2 nodes to rk3568 device tree")
Fixes 78f7186095db ("arm64: dts: rockchip: rename and sort the rk356x usb2 phy handles")
---
 arch/arm64/boot/dts/rockchip/rk356x-base.dtsi | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)
arch/arm64/boot/dts/rockchip/rk356x-base.dtsi +8 -8
index a5832895bd39..c930a6fd6ea0 100644
@@ -321,44 +321,44 @@ its: msi-controller@fd440000 {
 	};
 
 	usb_host0_ehci: usb@fd800000 {
-		compatible = "generic-ehci";
+		compatible = "rockchip,rk3568-ehci", "generic-ehci";
 		reg = <0x0 0xfd800000 0x0 0x40000>;
 		interrupts = <GIC_SPI 130 IRQ_TYPE_LEVEL_HIGH>;
 		clocks = <&cru HCLK_USB2HOST0>, <&cru HCLK_USB2HOST0_ARB>,
-			 <&cru PCLK_USB>;
+			 <&cru PCLK_USB>, <&usb2phy1>;
 		phys = <&usb2phy1_otg>;
 		phy-names = "usb";
 		status = "disabled";
 	};
 
 	usb_host0_ohci: usb@fd840000 {
-		compatible = "generic-ohci";
+		compatible = "rockchip,rk3568-ohci", "generic-ohci";
 		reg = <0x0 0xfd840000 0x0 0x40000>;
 		interrupts = <GIC_SPI 131 IRQ_TYPE_LEVEL_HIGH>;
 		clocks = <&cru HCLK_USB2HOST0>, <&cru HCLK_USB2HOST0_ARB>,
-			 <&cru PCLK_USB>;
+			 <&cru PCLK_USB>, <&usb2phy1>;
 		phys = <&usb2phy1_otg>;
 		phy-names = "usb";
 		status = "disabled";
 	};
 
 	usb_host1_ehci: usb@fd880000 {
-		compatible = "generic-ehci";
+		compatible = "rockchip,rk3568-ehci", "generic-ehci";
 		reg = <0x0 0xfd880000 0x0 0x40000>;
 		interrupts = <GIC_SPI 133 IRQ_TYPE_LEVEL_HIGH>;
 		clocks = <&cru HCLK_USB2HOST1>, <&cru HCLK_USB2HOST1_ARB>,
-			 <&cru PCLK_USB>;
+			 <&cru PCLK_USB>, <&usb2phy1>;
 		phys = <&usb2phy1_host>;
 		phy-names = "usb";
 		status = "disabled";
 	};
 
 	usb_host1_ohci: usb@fd8c0000 {
-		compatible = "generic-ohci";
+		compatible = "rockchip,rk3568-ohci", "generic-ohci";
 		reg = <0x0 0xfd8c0000 0x0 0x40000>;
 		interrupts = <GIC_SPI 134 IRQ_TYPE_LEVEL_HIGH>;
 		clocks = <&cru HCLK_USB2HOST1>, <&cru HCLK_USB2HOST1_ARB>,
-			 <&cru PCLK_USB>;
+			 <&cru PCLK_USB>, <&usb2phy1>;
 		phys = <&usb2phy1_host>;
 		phy-names = "usb";
 		status = "disabled";
Signature · 1 line
2.54.0
#2 lore raw

Re: [PATCH 1/2] dt-bindings: usb: Add Rockchip RK3568 compatible for EHCI and OHCI

In reply to Jonas Karlman
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider: - [Medium] The conditional blocks enforcing the four-clock constraint for the Rockchip RK3568 compatibles…

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] The conditional blocks enforcing the four-clock constraint for the Rockchip RK3568 compatibles do not add the clocks property to the required list. --

commit 8a014eea3faedb9781ac7a8ab3c2e305d28df2a3
Author: Jonas Karlman <[email protected]>

dt-bindings: usb: Add Rockchip RK3568 compatible for EHCI and OHCI

This commit adds Rockchip RK3568 compatible strings for the EHCI and OHCI controllers. It introduces a four-clock constraint to ensure the required clocks are enabled to prevent system freezes.

Quoted 4 lines
Documentation/devicetree/bindings/usb/generic-ehci.yaml +0 -0
index 55a5aa7d7a54e..c49a1bbc8cfdb 100644

[ ... ]

Documentation/devicetree/bindings/usb/generic-ehci.yaml allOf: · line 198

Quoted 13 lines
Documentation/devicetree/bindings/usb/generic-ehci.yaml +9 -0
@@ -186,6 +187,15 @@ allOf:
       required:
         - clocks
         - clock-names
+  - if:
+      properties:
+        compatible:
+          contains:
+            const: rockchip,rk3568-ehci
+    then:
+      properties:
+        clocks:
+          minItems: 4

[Severity: Medium]
Should the clocks property be added to the required list in this block?

Since property constraints like minItems are only evaluated if the property is actually present in the device tree node, a node that completely omits the clocks property will silently pass validation without enforcing the four-clock constraint.

Given the commit message mentions these clocks are required to prevent system freezes, it seems important to enforce their presence by adding a required list here.

Quoted 4 lines
Documentation/devicetree/bindings/usb/generic-ohci.yaml +0 -0
index d42f448fa2044..5f1b4d2bff891 100644

[ ... ]

Quoted 11 lines
Documentation/devicetree/bindings/usb/generic-ohci.yaml +3 -1
@@ -198,7 +199,9 @@ allOf:
       properties:
         compatible:
           contains:
-            const: rockchip,rk3588-ohci
+            enum:
+              - rockchip,rk3568-ohci
+              - rockchip,rk3588-ohci
     then:
       properties:
         clocks:
Quoted 1 line

minItems: 4

[Severity: Medium]
Similarly here, should clocks be explicitly required for the OHCI controllers?

Without adding it to the required list, device trees missing the clocks property entirely will bypass this constraint and pass schema validation.

Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1
#3 lore raw

Re: [PATCH 1/2] dt-bindings: usb: Add Rockchip RK3568 compatible for EHCI and OHCI

In reply to Jonas Karlman
Quoted 11 lines · Jonas Karlman

The Rockchip RK3568 EHCI/OHCI controller depends on clk_usbphy1_480m being enabled, or the system may freeze when registers are accessed.

Add Rockchip RK3568 EHCI and OHCI compatibles with a similar four-clock constraint as RK3588.

---
Existing DTs for RK3568 use the plain generic-ehci/ohci compatible, next patch make use of these new compatibles and adds the missing clk_usbphy1_480m clock references.

Reasonable complaint here from Sashiko.
pw-bot: changes-requested

Cheers,
Conor.

#4 lore raw

Re: [PATCH 1/2] dt-bindings: usb: Add Rockchip RK3568 compatible for EHCI and OHCI

In reply to Jonas Karlman

Hi Jonas,

Quoted 31 lines · Jonas Karlman

The Rockchip RK3568 EHCI/OHCI controller depends on clk_usbphy1_480m being enabled, or the system may freeze when registers are accessed.

Add Rockchip RK3568 EHCI and OHCI compatibles with a similar four-clock constraint as RK3588.

---
Existing DTs for RK3568 use the plain generic-ehci/ohci compatible, next patch make use of these new compatibles and adds the missing clk_usbphy1_480m clock references.

---
 .../devicetree/bindings/usb/generic-ehci.yaml          | 10 ++++++++++
 .../devicetree/bindings/usb/generic-ohci.yaml          |  5 ++++-
 2 files changed, 14 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/usb/generic-ehci.yaml +1 -0
index 55a5aa7d7a54..c49a1bbc8cfd 100644
@@ -52,6 +52,7 @@ properties:
               - ibm,476gtr-ehci
               - nxp,lpc1850-ehci
               - qca,ar7100-ehci
+              - rockchip,rk3568-ehci
               - rockchip,rk3588-ehci
               - snps,hsdk-v1.0-ehci
               - socionext,uniphier-ehci
@@ -186,6 +187,15 @@ allOf:
       required:
         - clocks

Documentation/devicetree/bindings/usb/generic-ehci.yaml allOf: · line 198

Quoted 10 lines
Documentation/devicetree/bindings/usb/generic-ehci.yaml +9 -0
         - clock-names
+  - if:
+      properties:
+        compatible:
+          contains:
+            const: rockchip,rk3568-ehci
+    then:
+      properties:
+        clocks:
+          minItems: 4

I think that the constraint for rk3588 is this:
- minItems: 1
- maxItems: 4

Like ~ every other compatible; there's no 'branch' for rk3588-ehci.

That's different from what you add for rk3568. Is that deliberate? Because from the commit message I assumed they should be the same.

Quoted 15 lines
Documentation/devicetree/bindings/usb/generic-ehci.yaml +0 -0
 unevaluatedProperties: false
 
Documentation/devicetree/bindings/usb/generic-ohci.yaml +1 -0
index d42f448fa204..5f1b4d2bff89 100644
@@ -47,6 +47,7 @@ properties:
               - hpe,gxp-ohci
               - ibm,476gtr-ohci
               - ingenic,jz4740-ohci
+              - rockchip,rk3568-ohci
               - rockchip,rk3588-ohci
               - snps,hsdk-v1.0-ohci
           - const: generic-ohci

Documentation/devicetree/bindings/usb/generic-ohci.yaml allOf: · line 204

Quoted 7 lines
Documentation/devicetree/bindings/usb/generic-ohci.yaml +3 -1
@@ -198,7 +199,9 @@ allOf:
       properties:
         compatible:
           contains:
-            const: rockchip,rk3588-ohci
+            enum:
+              - rockchip,rk3568-ohci
+              - rockchip,rk3588-ohci

Here they clearly do have the same constraint.

Cheers,
Diederik

Quoted 3 lines
Documentation/devicetree/bindings/usb/generic-ohci.yaml +0 -0
     then:
       properties:
         clocks:
#5 lore raw

Re: [PATCH 1/2] dt-bindings: usb: Add Rockchip RK3568 compatible for EHCI and OHCI

Hi Diederik,

Quoted 49 lines · Diederik de Haas

Hi Jonas,

Quoted 31 lines · Jonas Karlman

The Rockchip RK3568 EHCI/OHCI controller depends on clk_usbphy1_480m being enabled, or the system may freeze when registers are accessed.

Add Rockchip RK3568 EHCI and OHCI compatibles with a similar four-clock constraint as RK3588.

---
Existing DTs for RK3568 use the plain generic-ehci/ohci compatible, next patch make use of these new compatibles and adds the missing clk_usbphy1_480m clock references.

---
 .../devicetree/bindings/usb/generic-ehci.yaml          | 10 ++++++++++
 .../devicetree/bindings/usb/generic-ohci.yaml          |  5 ++++-
 2 files changed, 14 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/usb/generic-ehci.yaml +1 -0
index 55a5aa7d7a54..c49a1bbc8cfd 100644
@@ -52,6 +52,7 @@ properties:
               - ibm,476gtr-ehci
               - nxp,lpc1850-ehci
               - qca,ar7100-ehci
+              - rockchip,rk3568-ehci
               - rockchip,rk3588-ehci
               - snps,hsdk-v1.0-ehci
               - socionext,uniphier-ehci
@@ -186,6 +187,15 @@ allOf:
       required:
         - clocks

Documentation/devicetree/bindings/usb/generic-ehci.yaml allOf: · line 198

Quoted 10 lines
Documentation/devicetree/bindings/usb/generic-ehci.yaml +9 -0
         - clock-names
+  - if:
+      properties:
+        compatible:
+          contains:
+            const: rockchip,rk3568-ehci
+    then:
+      properties:
+        clocks:
+          minItems: 4

I think that the constraint for rk3588 is this:
- minItems: 1
- maxItems: 4

Quoted 4 lines

Like ~ every other compatible; there's no 'branch' for rk3588-ehci.

That's different from what you add for rk3568. Is that deliberate? Because from the commit message I assumed they should be the same.

It was deliberate, the intention is to use min/maxItems: 4 for rk3568 for both EHCI and OHCI. I left out anything related to k3588 to keep existing behavior and avoid any possible breakage, and why I used 'similar' and not 'same' in the commit message ;-)

Did a check and the rk3588 variant also uses 4 clocks so I will add same constraint for the rk3588 variant and address Sashiko's concern in v2.

Regards,
Jonas

Quoted 33 lines
Quoted 16 lines
Documentation/devicetree/bindings/usb/generic-ehci.yaml +0 -0
 unevaluatedProperties: false
 
Documentation/devicetree/bindings/usb/generic-ohci.yaml +1 -0
index d42f448fa204..5f1b4d2bff89 100644
@@ -47,6 +47,7 @@ properties:
               - hpe,gxp-ohci
               - ibm,476gtr-ohci
               - ingenic,jz4740-ohci
+              - rockchip,rk3568-ohci
               - rockchip,rk3588-ohci
               - snps,hsdk-v1.0-ohci
           - const: generic-ohci

Documentation/devicetree/bindings/usb/generic-ohci.yaml allOf: · line 204

Quoted 7 lines
Documentation/devicetree/bindings/usb/generic-ohci.yaml +3 -1
@@ -198,7 +199,9 @@ allOf:
       properties:
         compatible:
           contains:
-            const: rockchip,rk3588-ohci
+            enum:
+              - rockchip,rk3568-ohci
+              - rockchip,rk3588-ohci

Here they clearly do have the same constraint.

Cheers,
Diederik

Quoted 3 lines
Documentation/devicetree/bindings/usb/generic-ohci.yaml +0 -0
     then:
       properties:
         clocks:
#6 lore raw

Re: [PATCH 1/2] dt-bindings: usb: Add Rockchip RK3568 compatible for EHCI and OHCI

Hi Jonas,

Quoted 52 lines · Jonas Karlman

Hi Diederik,

Quoted 49 lines · Diederik de Haas

Hi Jonas,

Quoted 31 lines · Jonas Karlman

The Rockchip RK3568 EHCI/OHCI controller depends on clk_usbphy1_480m being enabled, or the system may freeze when registers are accessed.

Add Rockchip RK3568 EHCI and OHCI compatibles with a similar four-clock constraint as RK3588.

---
Existing DTs for RK3568 use the plain generic-ehci/ohci compatible, next patch make use of these new compatibles and adds the missing clk_usbphy1_480m clock references.

---
 .../devicetree/bindings/usb/generic-ehci.yaml          | 10 ++++++++++
 .../devicetree/bindings/usb/generic-ohci.yaml          |  5 ++++-
 2 files changed, 14 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/usb/generic-ehci.yaml +1 -0
index 55a5aa7d7a54..c49a1bbc8cfd 100644
@@ -52,6 +52,7 @@ properties:
               - ibm,476gtr-ehci
               - nxp,lpc1850-ehci
               - qca,ar7100-ehci
+              - rockchip,rk3568-ehci
               - rockchip,rk3588-ehci
               - snps,hsdk-v1.0-ehci
               - socionext,uniphier-ehci
@@ -186,6 +187,15 @@ allOf:
       required:
         - clocks

Documentation/devicetree/bindings/usb/generic-ehci.yaml allOf: · line 198

Quoted 10 lines
Documentation/devicetree/bindings/usb/generic-ehci.yaml +9 -0
         - clock-names
+  - if:
+      properties:
+        compatible:
+          contains:
+            const: rockchip,rk3568-ehci
+    then:
+      properties:
+        clocks:
+          minItems: 4

I think that the constraint for rk3588 is this:
- minItems: 1
- maxItems: 4

Quoted 6 lines
Quoted 4 lines

Like ~ every other compatible; there's no 'branch' for rk3588-ehci.

That's different from what you add for rk3568. Is that deliberate? Because from the commit message I assumed they should be the same.

It was deliberate, the intention is to use min/maxItems: 4 for rk3568

Thanks :-)

Quoted 6 lines

for both EHCI and OHCI. I left out anything related to k3588 to keep existing behavior and avoid any possible breakage, and why I used 'similar' and not 'same' in the commit message ;-)

Did a check and the rk3588 variant also uses 4 clocks so I will add same constraint for the rk3588 variant and address Sashiko's concern in v2.

FWIW: I would be absolutely fine if you restrict this patch set to just RK3568. For the same reason you mentioned. All I wanted to know if it was deliberate and you confirmed that :-)

Cheers,
Diederik

Quoted 36 lines

Regards,
Jonas

Quoted 33 lines
Quoted 16 lines
Documentation/devicetree/bindings/usb/generic-ehci.yaml +0 -0
 unevaluatedProperties: false
 
Documentation/devicetree/bindings/usb/generic-ohci.yaml +1 -0
index d42f448fa204..5f1b4d2bff89 100644
@@ -47,6 +47,7 @@ properties:
               - hpe,gxp-ohci
               - ibm,476gtr-ohci
               - ingenic,jz4740-ohci
+              - rockchip,rk3568-ohci
               - rockchip,rk3588-ohci
               - snps,hsdk-v1.0-ohci
           - const: generic-ohci

Documentation/devicetree/bindings/usb/generic-ohci.yaml allOf: · line 204

Quoted 7 lines
Documentation/devicetree/bindings/usb/generic-ohci.yaml +3 -1
@@ -198,7 +199,9 @@ allOf:
       properties:
         compatible:
           contains:
-            const: rockchip,rk3588-ohci
+            enum:
+              - rockchip,rk3568-ohci
+              - rockchip,rk3588-ohci

Here they clearly do have the same constraint.

Cheers,
Diederik

Quoted 3 lines
Documentation/devicetree/bindings/usb/generic-ohci.yaml +0 -0
     then:
       properties:
         clocks:
Tested-by on v1 2/2
#8 lore raw

Re: [PATCH 2/2] arm64: dts: rockchip: Fix devices suspend freeze on RK3568/RK3566

In reply to Jonas Karlman

Hi Jonas,

Quoted 11 lines · Jonas Karlman

The EHCI/OHCI controller depends on clk_usbphy1_480m being enabled, or the system may freeze when registers are accessed, i.e. during suspend in ohci_suspend().

Add the missing clk_usbphy1_480m clocks reference to EHCI/OHCI controllers to ensure the clock is enabled when ECHI/OHCI registers are accessed to prevent a system freeze.

Fixes suspend pm_test issue with EHCI/OHCI devices due to the missing clk_usbphy1_480m reference and makes following pm_test modes work:

Quoted 8 lines

echo N > /sys/module/printk/parameters/console_suspend

echo devices > /sys/power/pm_test
echo platform > /sys/power/pm_test
echo processors > /sys/power/pm_test
echo core > /sys/power/pm_test

echo mem > /sys/power/state

I did quite a few of ``echo mem > /sys/power/state`` while switching between the various pm_test options on my PineTab2.

On my 7.1-rc7 kernel without this patch that resulted at some point in endless 'rk_iommu' errors and the only way out of that was a hard power down via the power button.
On my 7.1-rc7 kernel with this patch, I have not been able to trigger such an issue. Over multiple boots.

So feel free to include my

FTR: I'm still able to trigger resume issues, so more is needed to make my original tests [1] succeed as well. But I always suspected there were several issues at play including the display pipeline.
It looks like this patch fixes at least one of them.

Thanks :-)

Cheers,
Diederik

[1] https://review.trustedfirmware.org/c/TF-A/trusted-firmware-a/+/31265

Quoted 64 lines
Fixes 91c4c3e06a25 ("arm64: dts: rockchip: add usb2 nodes to rk3568 device tree")
Fixes 78f7186095db ("arm64: dts: rockchip: rename and sort the rk356x usb2 phy handles")
---
 arch/arm64/boot/dts/rockchip/rk356x-base.dtsi | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)
arch/arm64/boot/dts/rockchip/rk356x-base.dtsi +8 -8
index a5832895bd39..c930a6fd6ea0 100644
@@ -321,44 +321,44 @@ its: msi-controller@fd440000 {
 	};
 
 	usb_host0_ehci: usb@fd800000 {
-		compatible = "generic-ehci";
+		compatible = "rockchip,rk3568-ehci", "generic-ehci";
 		reg = <0x0 0xfd800000 0x0 0x40000>;
 		interrupts = <GIC_SPI 130 IRQ_TYPE_LEVEL_HIGH>;
 		clocks = <&cru HCLK_USB2HOST0>, <&cru HCLK_USB2HOST0_ARB>,
-			 <&cru PCLK_USB>;
+			 <&cru PCLK_USB>, <&usb2phy1>;
 		phys = <&usb2phy1_otg>;
 		phy-names = "usb";
 		status = "disabled";
 	};
 
 	usb_host0_ohci: usb@fd840000 {
-		compatible = "generic-ohci";
+		compatible = "rockchip,rk3568-ohci", "generic-ohci";
 		reg = <0x0 0xfd840000 0x0 0x40000>;
 		interrupts = <GIC_SPI 131 IRQ_TYPE_LEVEL_HIGH>;
 		clocks = <&cru HCLK_USB2HOST0>, <&cru HCLK_USB2HOST0_ARB>,
-			 <&cru PCLK_USB>;
+			 <&cru PCLK_USB>, <&usb2phy1>;
 		phys = <&usb2phy1_otg>;
 		phy-names = "usb";
 		status = "disabled";
 	};
 
 	usb_host1_ehci: usb@fd880000 {
-		compatible = "generic-ehci";
+		compatible = "rockchip,rk3568-ehci", "generic-ehci";
 		reg = <0x0 0xfd880000 0x0 0x40000>;
 		interrupts = <GIC_SPI 133 IRQ_TYPE_LEVEL_HIGH>;
 		clocks = <&cru HCLK_USB2HOST1>, <&cru HCLK_USB2HOST1_ARB>,
-			 <&cru PCLK_USB>;
+			 <&cru PCLK_USB>, <&usb2phy1>;
 		phys = <&usb2phy1_host>;
 		phy-names = "usb";
 		status = "disabled";
 	};
 
 	usb_host1_ohci: usb@fd8c0000 {
-		compatible = "generic-ohci";
+		compatible = "rockchip,rk3568-ohci", "generic-ohci";
 		reg = <0x0 0xfd8c0000 0x0 0x40000>;
 		interrupts = <GIC_SPI 134 IRQ_TYPE_LEVEL_HIGH>;
 		clocks = <&cru HCLK_USB2HOST1>, <&cru HCLK_USB2HOST1_ARB>,
-			 <&cru PCLK_USB>;
+			 <&cru PCLK_USB>, <&usb2phy1>;
 		phys = <&usb2phy1_host>;
 		phy-names = "usb";
 		status = "disabled";