arm64: dts: Fix USB 3 for rk3328 Rock64 boards
cover arm64: dts: Fix USB 3 for rk3328 Rock64 boards
Hi,
At some point the USB 3 port broke on Rock64 boards; users report it working back on 4.4 kernels, but by 5.3 it wasn't any more (eg,
https://forum.armbian.com/topic/12439-rock64-usb-3-broken/).
These two patches add a USB3 node to the device-tree, which allows it to work again. I've tested a gigabit nic and was able to get close to 1000mbit speeds over the USB 3 ports. I'd love to see these two unintrusive patches added to 5.10.
Thanks,
Andres
Cameron Nemo (2):
arm64: dts: rockchip: add rk3328 dwc3 usb controller node
arm64: dts: rockchip: Enable USB3 for rk3328 Rock64
arch/arm64/boot/dts/rockchip/rk3328-rock64.dts | 5 +++++ arch/arm64/boot/dts/rockchip/rk3328.dtsi | 19 +++++++++++++++++++ 2 files changed, 24 insertions(+)
PATCH 1/2 arm64: dts: rockchip: add rk3328 dwc3 usb controller node
From: Cameron Nemo <[email protected]>
commit 44dd5e2106dc2fd01697b539085818d1d1c58df0 upstream
RK3328 SoCs have one USB 3.0 OTG controller which uses DWC_USB3 core's general architecture. It can act as static xHCI host controller, static device controller, USB 3.0/2.0 OTG basing on ID of USB3.0 PHY.
--- arch/arm64/boot/dts/rockchip/rk3328.dtsi | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+)
arch/arm64/boot/dts/rockchip/rk3328.dtsi +19 -0
@@ -984,6 +984,25 @@ usb_host0_ohci: usb@ff5d0000 { status = "disabled"; }; + usbdrd3: usb@ff600000 { + compatible = "rockchip,rk3328-dwc3", "snps,dwc3"; + reg = <0x0 0xff600000 0x0 0x100000>; + interrupts = <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cru SCLK_USB3OTG_REF>, <&cru SCLK_USB3OTG_SUSPEND>, + <&cru ACLK_USB3OTG>; + clock-names = "ref_clk", "suspend_clk", + "bus_clk"; + dr_mode = "otg"; + phy_type = "utmi_wide"; + snps,dis-del-phy-power-chg-quirk; + snps,dis_enblslpm_quirk; + snps,dis-tx-ipgap-linecheck-quirk; + snps,dis-u2-freeclk-exists-quirk; + snps,dis_u2_susphy_quirk; + snps,dis_u3_susphy_quirk; + status = "disabled"; + }; + gic: interrupt-controller@ff811000 { compatible = "arm,gic-400"; #interrupt-cells = <3>;
Signature · 1 line
2.30.2
PATCH 2/2 arm64: dts: rockchip: Enable USB3 for rk3328 Rock64
In reply to Andres SalomonFrom: Cameron Nemo <[email protected]>
commit bbac8bd65f5402281cb7b0452c1c5f367387b459 upstream
Enable USB3 nodes for the rk3328-based PINE Rock64 board.
The separate power regulator is not added as it is controlled by the same GPIO line as the existing VBUS regulators, so it is already enabled. Also there is no port representation to tie the regulator to.
[[email protected]: Rebased onto v5.12]
--- arch/arm64/boot/dts/rockchip/rk3328-rock64.dts | 5 +++++ 1 file changed, 5 insertions(+)
arch/arm64/boot/dts/rockchip/rk3328-rock64.dts +5 -0
@@ -384,6 +384,11 @@ &usb20_otg { status = "okay"; }; +&usbdrd3 { + dr_mode = "host"; + status = "okay"; +}; + &usb_host0_ehci { status = "okay"; };
Signature · 1 line
2.30.2
Quoted 10 lines · Andres Salomon
Hi,
At some point the USB 3 port broke on Rock64 boards; users report it working back on 4.4 kernels, but by 5.3 it wasn't any more (eg,
https://forum.armbian.com/topic/12439-rock64-usb-3-broken/).These two patches add a USB3 node to the device-tree, which allows it to work again. I've tested a gigabit nic and was able to get close to 1000mbit speeds over the USB 3 ports. I'd love to see these two unintrusive patches added to 5.10.
Now queued up, thanks
greg k-h