]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
arm64: dts: rockchip: add reset property for dwc3 controllers on rk3399
authorEnric Balletbo i Serra <enric.balletbo@collabora.com>
Fri, 15 Dec 2017 11:00:05 +0000 (12:00 +0100)
committerHeiko Stuebner <heiko@sntech.de>
Sat, 16 Dec 2017 17:03:13 +0000 (18:03 +0100)
After commit '06c47e6286d usb: dwc3: of-simple: Add support to get resets
for the device' you can add the reset property to the dwc3 node, the reset
is required for the controller to work properly, otherwise bind / unbind
stress testing of the USB controller on rk3399 we'd often end up with lots
of failures that looked like this:

  phy phy-ff800000.phy.9: phy poweron failed --> -110
  dwc3 fe900000.dwc3: failed to initialize core
  dwc3: probe of fe900000.dwc3 failed with error -110

Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
arch/arm64/boot/dts/rockchip/rk3399.dtsi

index 6dacc0a4f43a551b7557846ecb9de5258507a68d..b4511503878b65759945f3bfd3dea50cfe7bc18d 100644 (file)
@@ -402,6 +402,8 @@ usbdrd3_0: usb@fe800000 {
                clock-names = "ref_clk", "suspend_clk",
                              "bus_clk", "aclk_usb3_rksoc_axi_perf",
                              "aclk_usb3", "grf_clk";
+               resets = <&cru SRST_A_USB3_OTG0>;
+               reset-names = "usb3-otg";
                status = "disabled";
 
                usbdrd_dwc3_0: dwc3 {
@@ -433,6 +435,8 @@ usbdrd3_1: usb@fe900000 {
                clock-names = "ref_clk", "suspend_clk",
                              "bus_clk", "aclk_usb3_rksoc_axi_perf",
                              "aclk_usb3", "grf_clk";
+               resets = <&cru SRST_A_USB3_OTG1>;
+               reset-names = "usb3-otg";
                status = "disabled";
 
                usbdrd_dwc3_1: dwc3 {