linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] Add SATA and USB to BPI-R2-Pro board
@ 2022-04-09 11:21 Frank Wunderlich
  2022-04-09 11:21 ` [PATCH 1/2] arm64: dts: rockchip: Add USB nodes for BPI-R2-Pro Frank Wunderlich
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Frank Wunderlich @ 2022-04-09 11:21 UTC (permalink / raw)
  To: linux-rockchip
  Cc: Frank Wunderlich, Rob Herring, Krzysztof Kozlowski,
	Heiko Stuebner, devicetree, linux-arm-kernel, linux-kernel

From: Frank Wunderlich <frank-w@public-files.de>

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 => ref
suspend_clk => suspend
bus_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(+)

-- 
2.25.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH 1/2] arm64: dts: rockchip: Add USB nodes for BPI-R2-Pro
  2022-04-09 11:21 [PATCH 0/2] Add SATA and USB to BPI-R2-Pro board Frank Wunderlich
@ 2022-04-09 11:21 ` Frank Wunderlich
  2022-04-09 11:21 ` [PATCH 2/2] arm64: dts: rockchip: Add SATA support to BPI-R2-Pro Frank Wunderlich
  2022-04-10 17:12 ` [PATCH 0/2] Add SATA and USB to BPI-R2-Pro board Heiko Stuebner
  2 siblings, 0 replies; 4+ messages in thread
From: Frank Wunderlich @ 2022-04-09 11:21 UTC (permalink / raw)
  To: linux-rockchip
  Cc: Frank Wunderlich, Rob Herring, Krzysztof Kozlowski,
	Heiko Stuebner, devicetree, linux-arm-kernel, linux-kernel

From: Frank Wunderlich <frank-w@public-files.de>

Add usb2 nodes to Bananapi R2 Pro board

Signed-off-by: Frank Wunderlich <frank-w@public-files.de>
---
 .../boot/dts/rockchip/rk3568-bpi-r2-pro.dts   | 93 +++++++++++++++++++
 1 file changed, 93 insertions(+)

diff --git a/arch/arm64/boot/dts/rockchip/rk3568-bpi-r2-pro.dts b/arch/arm64/boot/dts/rockchip/rk3568-bpi-r2-pro.dts
index 067fe4a6b178..879557595a64 100644
--- a/arch/arm64/boot/dts/rockchip/rk3568-bpi-r2-pro.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3568-bpi-r2-pro.dts
@@ -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";
+};
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 2/2] arm64: dts: rockchip: Add SATA support to BPI-R2-Pro
  2022-04-09 11:21 [PATCH 0/2] Add SATA and USB to BPI-R2-Pro board Frank Wunderlich
  2022-04-09 11:21 ` [PATCH 1/2] arm64: dts: rockchip: Add USB nodes for BPI-R2-Pro Frank Wunderlich
@ 2022-04-09 11:21 ` Frank Wunderlich
  2022-04-10 17:12 ` [PATCH 0/2] Add SATA and USB to BPI-R2-Pro board Heiko Stuebner
  2 siblings, 0 replies; 4+ messages in thread
From: Frank Wunderlich @ 2022-04-09 11:21 UTC (permalink / raw)
  To: linux-rockchip
  Cc: Frank Wunderlich, Rob Herring, Krzysztof Kozlowski,
	Heiko Stuebner, devicetree, linux-arm-kernel, linux-kernel

From: Frank Wunderlich <frank-w@public-files.de>

Enable the Combphy and Sata nodes in Bananapi R2 Pro Board.

Signed-off-by: Frank Wunderlich <frank-w@public-files.de>
---
 arch/arm64/boot/dts/rockchip/rk3568-bpi-r2-pro.dts | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/arch/arm64/boot/dts/rockchip/rk3568-bpi-r2-pro.dts b/arch/arm64/boot/dts/rockchip/rk3568-bpi-r2-pro.dts
index 879557595a64..40cf2236c0b6 100644
--- a/arch/arm64/boot/dts/rockchip/rk3568-bpi-r2-pro.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3568-bpi-r2-pro.dts
@@ -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>;
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 0/2] Add SATA and USB to BPI-R2-Pro board
  2022-04-09 11:21 [PATCH 0/2] Add SATA and USB to BPI-R2-Pro board Frank Wunderlich
  2022-04-09 11:21 ` [PATCH 1/2] arm64: dts: rockchip: Add USB nodes for BPI-R2-Pro Frank Wunderlich
  2022-04-09 11:21 ` [PATCH 2/2] arm64: dts: rockchip: Add SATA support to BPI-R2-Pro Frank Wunderlich
@ 2022-04-10 17:12 ` Heiko Stuebner
  2 siblings, 0 replies; 4+ messages in thread
From: Heiko Stuebner @ 2022-04-10 17:12 UTC (permalink / raw)
  To: Frank Wunderlich, linux-rockchip
  Cc: Heiko Stuebner, Krzysztof Kozlowski, linux-arm-kernel,
	devicetree, Frank Wunderlich, Rob Herring, linux-kernel

On Sat, 9 Apr 2022 13:21:34 +0200, Frank Wunderlich wrote:
> 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: 551e645fed5dd2ed4c81c9e3d3b4827862f51dc6

Best regards,
-- 
Heiko Stuebner <heiko@sntech.de>

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-04-10 17:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-09 11:21 [PATCH 0/2] Add SATA and USB to BPI-R2-Pro board Frank Wunderlich
2022-04-09 11:21 ` [PATCH 1/2] arm64: dts: rockchip: Add USB nodes for BPI-R2-Pro Frank Wunderlich
2022-04-09 11:21 ` [PATCH 2/2] arm64: dts: rockchip: Add SATA support to BPI-R2-Pro Frank Wunderlich
2022-04-10 17:12 ` [PATCH 0/2] Add SATA and USB to BPI-R2-Pro board Heiko Stuebner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).