From: Cody Eksal <masterr3c0rd@epochal.quest>
To: Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>, Chen-Yu Tsai <wens@csie.org>,
Jernej Skrabec <jernej.skrabec@gmail.com>,
Samuel Holland <samuel@sholland.org>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Kishon Vijay Abraham I <kishon@kernel.org>,
Maxime Ripard <mripard@kernel.org>,
Michael Turquette <mturquette@baylibre.com>,
Nishanth Menon <nm@ti.com>,
"Rafael J. Wysocki" <rafael@kernel.org>,
Stephen Boyd <sboyd@kernel.org>, Vinod Koul <vkoul@kernel.org>,
Viresh Kumar <vireshk@kernel.org>,
Viresh Kumar <viresh.kumar@linaro.org>,
Yangtao Li <tiny.windzz@gmail.com>,
Parthiban <parthiban@linumiz.com>,
Andre Przywara <andre.przywara@arm.com>,
Cody Eksal <masterr3c0rd@epochal.quest>,
devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org
Subject: [PATCH v2 07/13] arm64: allwinner: A100: enable EHCI, OHCI and USB PHY nodes in Perf1
Date: Thu, 31 Oct 2024 04:02:20 -0300 [thread overview]
Message-ID: <20241031070232.1793078-8-masterr3c0rd@epochal.quest> (raw)
In-Reply-To: <20241031070232.1793078-1-masterr3c0rd@epochal.quest>
From: Yangtao Li <frank@allwinnertech.com>
Add USB support on A100 perf1 board, which include two USB2.0 port.
Signed-off-by: Yangtao Li <frank@allwinnertech.com>
Signed-off-by: Cody Eksal <masterr3c0rd@epochal.quest>
---
Changes in V2:
- Add dr_mode here, instead of in the .dtsi
.../allwinner/sun50i-a100-allwinner-perf1.dts | 39 +++++++++++++++++++
1 file changed, 39 insertions(+)
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a100-allwinner-perf1.dts b/arch/arm64/boot/dts/allwinner/sun50i-a100-allwinner-perf1.dts
index f5c5c1464482..2f8c7ee60283 100644
--- a/arch/arm64/boot/dts/allwinner/sun50i-a100-allwinner-perf1.dts
+++ b/arch/arm64/boot/dts/allwinner/sun50i-a100-allwinner-perf1.dts
@@ -7,6 +7,8 @@
#include "sun50i-a100.dtsi"
+#include <dt-bindings/gpio/gpio.h>
+
/{
model = "Allwinner A100 Perf1";
compatible = "allwinner,a100-perf1", "allwinner,sun50i-a100";
@@ -18,6 +20,36 @@ aliases {
chosen {
stdout-path = "serial0:115200n8";
};
+
+ reg_usb1_vbus: usb1-vbus {
+ compatible = "regulator-fixed";
+ regulator-name = "usb1-vbus";
+ regulator-min-microvolt = <5000000>;
+ regulator-max-microvolt = <5000000>;
+ gpio = <&pio 7 10 GPIO_ACTIVE_HIGH>; /* PH10 */
+ enable-active-high;
+ };
+};
+
+&ehci0 {
+ status = "okay";
+};
+
+&ehci1 {
+ status = "okay";
+};
+
+&ohci0 {
+ status = "okay";
+};
+
+&ohci1 {
+ status = "okay";
+};
+
+&usb_otg {
+ dr_mode = "otg";
+ status = "okay";
};
&pio {
@@ -178,3 +210,10 @@ &uart0 {
pinctrl-0 = <&uart0_pb_pins>;
status = "okay";
};
+
+&usbphy {
+ usb0_id_det-gpios = <&pio 7 8 GPIO_ACTIVE_HIGH>; /* PH8 */
+ usb0_vbus-supply = <®_drivevbus>;
+ usb1_vbus-supply = <®_usb1_vbus>;
+ status = "okay";
+};
--
2.47.0
next prev parent reply other threads:[~2024-10-31 7:03 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-31 7:02 [PATCH v2 00/13] sunxi: A100/A133 second stage support Cody Eksal
2024-10-31 7:02 ` [PATCH v2 01/13] arm64: dts: allwinner: A100: Add PMU mode Cody Eksal
2024-10-31 7:02 ` [PATCH v2 02/13] arm64: dts: allwinner: a100: add watchdog node Cody Eksal
2024-10-31 14:14 ` Parthiban
2024-10-31 7:02 ` [PATCH v2 03/13] dt-bindings: phy: sun50i-a64: add a100 compatible Cody Eksal
2024-10-31 11:36 ` Andre Przywara
2024-10-31 14:35 ` Cody Eksal
2024-10-31 7:02 ` [PATCH v2 04/13] dt-bindings: usb: Add A100 compatible string Cody Eksal
2024-10-31 7:02 ` [PATCH v2 05/13] dt-bindings: usb: sunxi-musb: " Cody Eksal
2024-10-31 7:42 ` Krzysztof Kozlowski
2024-10-31 7:02 ` [PATCH v2 06/13] arm64: dts: allwinner: a100: add usb related nodes Cody Eksal
2024-10-31 11:55 ` Andre Przywara
2024-11-01 5:33 ` Parthiban
2024-11-01 6:14 ` Cody Eksal
2024-10-31 7:02 ` Cody Eksal [this message]
2024-11-02 11:29 ` [PATCH v2 07/13] arm64: allwinner: A100: enable EHCI, OHCI and USB PHY nodes in Perf1 Chen-Yu Tsai
2024-10-31 7:02 ` [PATCH v2 09/13] arm64: allwinner: a100: Add MMC related nodes Cody Eksal
2024-10-31 7:02 ` [PATCH v2 10/13] arm64: dts: allwinner: a100: perf1: Add eMMC and MMC node Cody Eksal
2024-11-02 11:48 ` Chen-Yu Tsai
2024-11-02 21:23 ` Cody Eksal
2024-11-03 2:54 ` Chen-Yu Tsai
2024-10-31 7:02 ` [PATCH v2 11/13] dt-bindings: opp: h6: Add A100 operating points Cody Eksal
2024-10-31 7:42 ` Krzysztof Kozlowski
2024-10-31 12:10 ` Andre Przywara
2024-11-02 11:50 ` Chen-Yu Tsai
2024-10-31 7:02 ` [PATCH v2 13/13] arm64: dts: allwinner: a100: Add CPU Operating Performance Points table Cody Eksal
2024-11-02 11:46 ` (subset) [PATCH v2 00/13] sunxi: A100/A133 second stage support Chen-Yu Tsai
2024-11-10 9:25 ` Chen-Yu Tsai
2025-02-22 13:25 ` 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=20241031070232.1793078-8-masterr3c0rd@epochal.quest \
--to=masterr3c0rd@epochal.quest \
--cc=andre.przywara@arm.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=gregkh@linuxfoundation.org \
--cc=jernej.skrabec@gmail.com \
--cc=kishon@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sunxi@lists.linux.dev \
--cc=mripard@kernel.org \
--cc=mturquette@baylibre.com \
--cc=nm@ti.com \
--cc=parthiban@linumiz.com \
--cc=rafael@kernel.org \
--cc=robh@kernel.org \
--cc=samuel@sholland.org \
--cc=sboyd@kernel.org \
--cc=tiny.windzz@gmail.com \
--cc=viresh.kumar@linaro.org \
--cc=vireshk@kernel.org \
--cc=vkoul@kernel.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