Add SATA and USB to BPI-R2-Pro board
Subsystems (2)
cover Add SATA and USB to BPI-R2-Pro board
From: Frank Wunderlich <[email protected]>
Add necessary nodes for SATA and USB-Support on Bananapi-R2-Pro Board.
it depends on "enable usb support on rk356x" series from Peter Geis
https://patchwork.kernel.org/project/linux-rockchip/list/?series=630470
and a fixup-Patch changing clock names which should be squashed into above series in v6
ref_clk => refsuspend_clk => suspendbus_clk => bus_early
Frank Wunderlich (2):
arm64: dts: rockchip: Add USB nodes for BPI-R2-Pro
arm64: dts: rockchip: Add SATA support to BPI-R2-Pro
.../boot/dts/rockchip/rk3568-bpi-r2-pro.dts | 102 ++++++++++++++++++ 1 file changed, 102 insertions(+)
Signature · 1 line
2.25.1
PATCH 1/2 arm64: dts: rockchip: Add USB nodes for BPI-R2-Pro
From: Frank Wunderlich <[email protected]>
Add usb2 nodes to Bananapi R2 Pro board
--- .../boot/dts/rockchip/rk3568-bpi-r2-pro.dts | 93 +++++++++++++++++++ 1 file changed, 93 insertions(+)
arch/arm64/boot/dts/rockchip/rk3568-bpi-r2-pro.dts +93 -0
@@ -73,6 +73,50 @@ vcc5v0_sys: vcc5v0-sys { regulator-max-microvolt = <5000000>; vin-supply = <&dc_12v>; }; + + vcc5v0_usb: vcc5v0_usb { + compatible = "regulator-fixed"; + regulator-name = "vcc5v0_usb"; + regulator-always-on; + regulator-boot-on; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + vin-supply = <&dc_12v>; + }; + + vcc5v0_usb_host: vcc5v0-usb-host { + compatible = "regulator-fixed"; + enable-active-high; + gpio = <&gpio0 RK_PA6 GPIO_ACTIVE_HIGH>; + pinctrl-names = "default"; + pinctrl-0 = <&vcc5v0_usb_host_en>; + regulator-name = "vcc5v0_usb_host"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + vin-supply = <&vcc5v0_usb>; + }; + + vcc5v0_usb_otg: vcc5v0-usb-otg { + compatible = "regulator-fixed"; + enable-active-high; + gpio = <&gpio0 RK_PA5 GPIO_ACTIVE_HIGH>; + pinctrl-names = "default"; + pinctrl-0 = <&vcc5v0_usb_otg_en>; + regulator-name = "vcc5v0_usb_otg"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + vin-supply = <&vcc5v0_usb>; + }; +}; + +&combphy0 { + /* used for USB3 */ + status = "okay"; +}; + +&combphy1 { + /* used for USB3 */ + status = "okay"; }; &gmac0 {
@@ -368,6 +412,16 @@ pmic_int: pmic_int { <0 RK_PA3 RK_FUNC_GPIO &pcfg_pull_up>; }; }; + + usb { + vcc5v0_usb_host_en: vcc5v0_usb_host_en { + rockchip,pins = <0 RK_PA6 RK_FUNC_GPIO &pcfg_pull_none>; + }; + + vcc5v0_usb_otg_en: vcc5v0_usb_otg_en { + rockchip,pins = <0 RK_PA5 RK_FUNC_GPIO &pcfg_pull_none>; + }; + }; }; &pmu_io_domains {
@@ -485,3 +539,42 @@ &uart9 { pinctrl-0 = <&uart9m1_xfer>; status = "disabled"; }; + +&usb_host0_ehci { + status = "okay"; +}; + +&usb_host0_ohci { + status = "okay"; +}; + +&usb_host0_xhci { + extcon = <&usb2phy0>; + status = "okay"; +}; + +&usb_host1_ehci { + status = "okay"; +}; + +&usb_host1_ohci { + status = "okay"; +}; + +&usb_host1_xhci { + status = "okay"; +}; + +&usb2phy0 { + status = "okay"; +}; + +&usb2phy0_host { + phy-supply = <&vcc5v0_usb_host>; + status = "okay"; +}; + +&usb2phy0_otg { + phy-supply = <&vcc5v0_usb_otg>; + status = "okay"; +};
Signature · 1 line
2.25.1
PATCH 2/2 arm64: dts: rockchip: Add SATA support to BPI-R2-Pro
In reply to Frank WunderlichFrom: Frank Wunderlich <[email protected]>
Enable the Combphy and Sata nodes in Bananapi R2 Pro Board.
--- arch/arm64/boot/dts/rockchip/rk3568-bpi-r2-pro.dts | 9 +++++++++ 1 file changed, 9 insertions(+)
arch/arm64/boot/dts/rockchip/rk3568-bpi-r2-pro.dts +9 -0
@@ -119,6 +119,11 @@ &combphy1 { status = "okay"; }; +&combphy2 { + /* used for SATA */ + status = "okay"; +}; + &gmac0 { assigned-clocks = <&cru SCLK_GMAC0_RX_TX>, <&cru SCLK_GMAC0>; assigned-clock-parents = <&cru SCLK_GMAC0_RGMII_SPEED>, <&cru CLK_MAC0_2TOP>;
@@ -484,6 +489,10 @@ &saradc { status = "okay"; }; +&sata2 { + status = "okay"; +}; + &sdhci { bus-width = <8>; max-frequency = <200000000>;
Signature · 1 line
2.25.1
Quoted 10 lines · Frank Wunderlich
Add necessary nodes for SATA and USB-Support on Bananapi-R2-Pro Board.
it depends on "enable usb support on rk356x" series from Peter Geis
https://patchwork.kernel.org/project/linux-rockchip/list/?series=630470
and a fixup-Patch changing clock names which should be squashed into above series in v6
[...]
Applied, thanks!
[1/2] arm64: dts: rockchip: Add USB nodes for BPI-R2-Pro
commit: f29ffce32b4e1204b67f82fd80584ec4173cca54
[2/2] arm64: dts: rockchip: Add SATA support to BPI-R2-Pro
commit: 551e645fed5dd2ed4c81c9e3d3b4827862f51dc6Best regards,
Signature · 1 line
Heiko Stuebner <[email protected]>