add usb2-phy support for RK3308 SoC
Subsystems (3)
cover add usb2-phy support for RK3308 SoC
Add usb2-phy support in RK3308 SoC dtsi
Add usb2-phy support for RK3308 SoC in Rockchip USB driver
- Tested USB2.0 with these patches on RockPiS board and Mainline Linux kernel
Akash Gajjar (2):
arch: arm64: rockchip: add usb node for RK3308
phy: phy-rockchip-inno-usb2: add usb2-phy support for RK3308 SoC
.../bindings/phy/phy-rockchip-inno-usb2.txt | 1 + arch/arm64/boot/dts/rockchip/rk3308.dtsi | 49 +++++++++++++++++++ drivers/phy/rockchip/phy-rockchip-inno-usb2.c | 44 +++++++++++++++++ 3 files changed, 94 insertions(+)
Signature · 1 line
2.17.1
PATCH 1/2 arch: arm64: rockchip: add usb node for RK3308
Add the ehci/ochi usb node support for the RK3308 soc.
--- arch/arm64/boot/dts/rockchip/rk3308.dtsi | 49 ++++++++++++++++++++++++ 1 file changed, 49 insertions(+)
arch/arm64/boot/dts/rockchip/rk3308.dtsi +49 -0
@@ -243,6 +243,33 @@ status = "disabled"; }; + usb2phy_grf: syscon@ff008000 { + compatible = "rockchip,rk3308-usb2phy-grf", "syscon", + "simple-mfd"; + reg = <0x0 0xff008000 0x0 0x4000>; + #address-cells = <1>; + #size-cells = <1>; + + u2phy: usb2-phy@100 { + compatible = "rockchip,rk3308-usb2phy"; + reg = <0x100 0x10>; + clocks = <&cru SCLK_USBPHY_REF>; + clock-names = "phyclk"; + #clock-cells = <0>; + assigned-clocks = <&cru USB480M>; + assigned-clock-parents = <&u2phy>; + clock-output-names = "usb480m_phy"; + status = "disabled"; + + u2phy_host: host-port { + #phy-cells = <0>; + interrupts = <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "linestate"; + status = "disabled"; + }; + }; + }; + wdt: watchdog@ff080000 { compatible = "snps,dw-wdt"; reg = <0x0 0xff080000 0x0 0x100>;
@@ -584,6 +611,28 @@ status = "disabled"; }; + usb_host_ehci: usb@ff440000 { + compatible = "generic-ehci"; + reg = <0x0 0xff440000 0x0 0x10000>; + interrupts = <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cru HCLK_HOST>, <&cru HCLK_HOST_ARB>, <&u2phy>; + clock-names = "usbhost", "arbiter", "utmi"; + phys = <&u2phy_host>; + phy-names = "usb"; + status = "disabled"; + }; + + usb_host_ohci: usb@ff450000 { + compatible = "generic-ohci"; + reg = <0x0 0xff450000 0x0 0x10000>; + interrupts = <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cru HCLK_HOST>, <&cru HCLK_HOST_ARB>, <&u2phy>; + clock-names = "usbhost", "arbiter", "utmi"; + phys = <&u2phy_host>; + phy-names = "usb"; + status = "disabled"; + }; + sdmmc: dwmmc@ff480000 { compatible = "rockchip,rk3308-dw-mshc", "rockchip,rk3288-dw-mshc"; reg = <0x0 0xff480000 0x0 0x4000>;
Signature · 1 line
2.17.1
PATCH 2/2 phy: phy-rockchip-inno-usb2: add usb2-phy support for RK3308 SoC
In reply to Akash GajjarThis patch adds usb2-phy support for RK3308 SoCs and amend phy Documentation.
--- .../bindings/phy/phy-rockchip-inno-usb2.txt | 1 + drivers/phy/rockchip/phy-rockchip-inno-usb2.c | 44 +++++++++++++++++++ 2 files changed, 45 insertions(+)
Documentation/devicetree/bindings/phy/phy-rockchip-inno-usb2.txt +1 -0
@@ -5,6 +5,7 @@ Required properties (phy (parent) node): * "rockchip,px30-usb2phy" * "rockchip,rk3228-usb2phy" * "rockchip,rk3328-usb2phy" + * "rockchip,rk3308-usb2phy" * "rockchip,rk3366-usb2phy" * "rockchip,rk3399-usb2phy" * "rockchip,rv1108-usb2phy"
drivers/phy/rockchip/phy-rockchip-inno-usb2.c +44 -0
56 lines not on this page · raw message
Signature · 1 line
2.17.1
Re: [PATCH 2/2] phy: phy-rockchip-inno-usb2: add usb2-phy support for RK3308 SoC
Quoted 8 lines · Akash Gajjar
This patch adds usb2-phy support for RK3308 SoCs and amend phy Documentation.
Signed-off-by Akash Gajjar <[email protected]>--- .../bindings/phy/phy-rockchip-inno-usb2.txt | 1 + drivers/phy/rockchip/phy-rockchip-inno-usb2.c | 44 +++++++++++++++++++ 2 files changed, 45 insertions(+)