Linux-Rockchip Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Jimmy Hon <honyuenkwun@gmail.com>
To: Heiko Stuebner <heiko@sntech.de>
Cc: Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	linux-rockchip@lists.infradead.org, Ondrej Jirman <megi@xff.cz>,
	Jimmy Hon <honyuenkwun@gmail.com>
Subject: [PATCH 10/15] arm64: dts: rockchip: add upper USB3 port to opi5max
Date: Sat, 26 Oct 2024 04:48:26 -0500	[thread overview]
Message-ID: <20241026100310.52679-11-honyuenkwun@gmail.com> (raw)
In-Reply-To: <20241026100310.52679-1-honyuenkwun@gmail.com>

Enable full support (XHCI) for the upper USB3 port from Orange Pi 5 Max.

Signed-off-by: Jimmy Hon <honyuenkwun@gmail.com>
---
 .../dts/rockchip/rk3588-orangepi-5-max.dts    | 37 +++++++++++++++++++
 1 file changed, 37 insertions(+)

diff --git a/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-max.dts b/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-max.dts
index f32e5827dce6..39d2a38710df 100644
--- a/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-max.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3588-orangepi-5-max.dts
@@ -127,6 +127,21 @@ vcc5v0_host: vcc5v0-host-regulator {
 		regulator-max-microvolt = <5000000>;
 		vin-supply = <&vcc5v0_sys>;
 	};
+
+	vcc5v0_usb30_otg: vcc5v0-usb30-otg-regulator {
+		compatible = "regulator-fixed";
+		enable-active-high;
+		/* USB_OTG_PWREN */
+		gpios = <&gpio4 RK_PB3 GPIO_ACTIVE_HIGH>;
+		pinctrl-names = "default";
+		pinctrl-0 = <&usb_otg_pwren>;
+		regulator-name = "vcc5v0_usb30_otg";
+		regulator-always-on;
+		regulator-boot-on;
+		regulator-min-microvolt = <5000000>;
+		regulator-max-microvolt = <5000000>;
+		vin-supply = <&vcc5v0_sys>;
+	};
 };
 
 &combphy2_psu {
@@ -251,6 +266,10 @@ usb {
 		usb_host_pwren: usb-host-pwren {
 			rockchip,pins = <3 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>;
 		};
+
+		usb_otg_pwren: usb-otg-pwren {
+			rockchip,pins = <4 RK_PB3 RK_FUNC_GPIO &pcfg_pull_none>;
+		};
 	};
 };
 
@@ -636,6 +655,15 @@ &tsadc {
 	status = "okay";
 };
 
+&u2phy0 {
+	status = "okay";
+};
+
+&u2phy0_otg {
+	phy-supply = <&vcc5v0_usb30_otg>;
+	status = "okay";
+};
+
 &u2phy1 {
 	status = "okay";
 };
@@ -668,6 +696,10 @@ &uart2 {
 	status = "okay";
 };
 
+&usbdp_phy0 {
+	status = "okay";
+};
+
 &usbdp_phy1 {
 	status = "okay";
 };
@@ -680,6 +712,11 @@ &usb_host0_ohci {
 	status = "okay";
 };
 
+&usb_host0_xhci {
+	dr_mode = "host";
+	status = "okay";
+};
+
 &usb_host1_ehci {
 	status = "okay";
 };
-- 
2.47.0


_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip

  parent reply	other threads:[~2024-10-26 10:03 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-26  9:48 [PATCH v1 0/15] arm64: dts: rockchip: Add Orange Pi 5 Max board Jimmy Hon
2024-10-26  9:48 ` [PATCH 01/15] dt-bindings: arm: rockchip: Add Xunlong Orange Pi 5 Max Jimmy Hon
2024-10-26 17:58   ` Krzysztof Kozlowski
2024-10-26  9:48 ` [PATCH 02/15] arm64: dts: rockchip: Add Orange Pi 5 Max board Jimmy Hon
2024-10-26  9:48 ` [PATCH 03/15] arm64: dts: rockchip: add status LED to opi5max Jimmy Hon
2024-10-26 17:59   ` Krzysztof Kozlowski
2024-10-26 20:17     ` Jimmy Hon
2024-10-27 19:45       ` Krzysztof Kozlowski
2024-10-26  9:48 ` [PATCH 04/15] arm64: dts: rockchip: Enable RTC support for opi5max Jimmy Hon
2024-10-26  9:48 ` [PATCH 05/15] arm64: dts: rockchip: add PCIe network controller to opi5max Jimmy Hon
2024-10-26 20:29   ` Jimmy Hon
2024-10-26  9:48 ` [PATCH 06/15] arm64: dts: rockchip: add PCIe for M.2 M-key " Jimmy Hon
2024-10-26  9:48 ` [PATCH 07/15] arm64: dts: rockchip: add fan support " Jimmy Hon
2024-10-26  9:48 ` [PATCH 08/15] arm64: dts: rockchip: add USB2 " Jimmy Hon
2024-10-26  9:48 ` [PATCH 09/15] arm64: dts: rockchip: add lower USB3 port " Jimmy Hon
2024-10-26 20:40   ` Jimmy Hon
2024-10-26 20:49     ` Jimmy Hon
2024-10-26  9:48 ` Jimmy Hon [this message]
2024-10-26  9:48 ` [PATCH 11/15] arm64: dts: rockchip: Enable GPU on opi5max Jimmy Hon
2024-10-26  9:48 ` [PATCH 12/15] arm64: dts: rockchip: add SFC support for opi5max Jimmy Hon
2024-10-26  9:48 ` [PATCH 13/15] arm64: dts: rockchip: ADC button " Jimmy Hon
2024-10-26  9:48 ` [PATCH 14/15] arm64: dts: rockchip: analog audio on opi5max Jimmy Hon
2024-10-26  9:48 ` [PATCH 15/15] arm64: dts: rockchip: Enable HDMI0 " Jimmy Hon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20241026100310.52679-11-honyuenkwun@gmail.com \
    --to=honyuenkwun@gmail.com \
    --cc=conor+dt@kernel.org \
    --cc=heiko@sntech.de \
    --cc=krzk+dt@kernel.org \
    --cc=linux-rockchip@lists.infradead.org \
    --cc=megi@xff.cz \
    --cc=robh@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox