From: Chris Morgan <macroalpha82@gmail.com>
To: linux-sunxi@lists.linux.dev
Cc: devicetree@vger.kernel.org, samuel@sholland.org,
jernej.skrabec@gmail.com, wens@csie.org, conor+dt@kernel.org,
krzk+dt@kernel.org, robh@kernel.org,
Chris Morgan <macromorgan@hotmail.com>
Subject: [PATCH 4/4] arm64: dts: allwinner: h700: Add USB Host for RG35XX-H
Date: Fri, 18 Oct 2024 11:06:17 -0500 [thread overview]
Message-ID: <20241018160617.157083-5-macroalpha82@gmail.com> (raw)
In-Reply-To: <20241018160617.157083-1-macroalpha82@gmail.com>
From: Chris Morgan <macromorgan@hotmail.com>
The RG35XX-H has a USB host port in addition to the USB OTG port used
for charging. The host port receives its power from two distinct GPIO
controlled regulators.
Signed-off-by: Chris Morgan <macromorgan@hotmail.com>
---
.../sun50i-h700-anbernic-rg35xx-h.dts | 23 +++++++++++++++++++
1 file changed, 23 insertions(+)
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h700-anbernic-rg35xx-h.dts b/arch/arm64/boot/dts/allwinner/sun50i-h700-anbernic-rg35xx-h.dts
index ff453336eab1..e6dc29a38dd6 100644
--- a/arch/arm64/boot/dts/allwinner/sun50i-h700-anbernic-rg35xx-h.dts
+++ b/arch/arm64/boot/dts/allwinner/sun50i-h700-anbernic-rg35xx-h.dts
@@ -71,6 +71,25 @@ gpio_mux: mux-controller {
<&pio 8 2 GPIO_ACTIVE_LOW>;
#mux-control-cells = <0>;
};
+
+ reg_vcc3v8_usb: regulator-vcc3v8-usb {
+ compatible = "regulator-fixed";
+ enable-active-high;
+ gpio = <&pio 4 5 GPIO_ACTIVE_HIGH>; /* PE5 */
+ regulator-min-microvolt = <3800000>;
+ regulator-max-microvolt = <3800000>;
+ regulator-name = "vcc3v8-usb";
+ };
+
+ reg_vcc5v0_usb: regulator-vcc5v0-usb {
+ compatible = "regulator-fixed";
+ enable-active-high;
+ gpio = <&pio 8 7 GPIO_ACTIVE_HIGH>; /* PI7 */
+ regulator-min-microvolt = <5000000>;
+ regulator-max-microvolt = <5000000>;
+ regulator-name = "vcc5v0-usb";
+ vin-supply = <®_vcc3v8_usb>;
+ };
};
&gpadc {
@@ -113,3 +132,7 @@ joy_mux_pin: joy-mux-pin {
function = "gpio_out";
};
};
+
+&usbphy {
+ usb1_vbus-supply = <®_vcc5v0_usb>;
+};
--
2.43.0
next prev parent reply other threads:[~2024-10-18 16:08 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-18 16:06 [PATCH 0/4] RG35XX Add Additional Hardware Support Chris Morgan
2024-10-18 16:06 ` [PATCH 1/4] arm64: dts: allwinner: h700: Add MMC2 for Anbernic RG35XX Chris Morgan
2025-02-22 10:44 ` Jernej Škrabec
2025-02-24 18:17 ` Chris Morgan
2025-02-25 16:13 ` Jernej Škrabec
2025-02-25 16:54 ` Andre Przywara
2024-10-18 16:06 ` [PATCH 2/4] arm64: dts: allwinner: h700: Set cpusldo to always-on for RG35XX Chris Morgan
2025-02-22 10:46 ` Jernej Škrabec
2024-10-18 16:06 ` [PATCH 3/4] arm64: dts: allwinner: h700: Add LED1 for Anbernic RG35XX Chris Morgan
2025-02-22 10:47 ` Jernej Škrabec
2024-10-18 16:06 ` Chris Morgan [this message]
2025-02-22 10:48 ` [PATCH 4/4] arm64: dts: allwinner: h700: Add USB Host for RG35XX-H Jernej Škrabec
2025-02-22 13:25 ` (subset) [PATCH 0/4] RG35XX Add Additional Hardware Support Chen-Yu Tsai
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=20241018160617.157083-5-macroalpha82@gmail.com \
--to=macroalpha82@gmail.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=jernej.skrabec@gmail.com \
--cc=krzk+dt@kernel.org \
--cc=linux-sunxi@lists.linux.dev \
--cc=macromorgan@hotmail.com \
--cc=robh@kernel.org \
--cc=samuel@sholland.org \
--cc=wens@csie.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