From: Chen-Yu Tsai <wens@kernel.org>
To: Chen-Yu Tsai <wens@kernel.org>,
Jernej Skrabec <jernej@kernel.org>,
Samuel Holland <samuel@sholland.org>
Cc: "Andre Przywara" <andre.przywara@arm.com>,
linux-sunxi@lists.linux.dev, devicetree@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
"Cristian Filipescu" <filipescu.cristian@gmail.com>,
"Ondřej Jirman" <megi@xff.cz>,
"Clément Péron" <peron.clem@gmail.com>,
"Jagan Teki" <jagan@edgeble.ai>
Subject: [PATCH 7/9] arm64: dts: allwinner: h6: orangepi: Drop unused usb0_id_det-gpios
Date: Sat, 5 Dec 2026 01:12:57 +0800 [thread overview]
Message-ID: <20261204171319.745792-8-wens@kernel.org> (raw)
In-Reply-To: <20261204171319.745792-1-wens@kernel.org>
All Orange Pi H6 boards force usb2otg to host-only mode because USB0
VBUS is hardwired to 5 V. In host mode, phy-sun4i-usb never reads
usb0_id_det-gpios, and because H6 Port C has no interrupt support,
specifying PC6 or PC15 only forces unnecessary periodic polling (in
addition to conflicting with eMMC on PC6 for boards with eMMC).
Drop usb0_id_det-gpios from sun50i-h6-orangepi.dtsi and remove the
board-specific override and deletion from Orange Pi 3 and 3 LTS.
Verified by comparing compiled DTBs for all four Orange Pi H6 boards:
3 LTS DTB is identical, and One Plus, Lite 2, and Orange Pi 3 only drop
usb0_id_det-gpios from usb2phy.
This patch and commit message were drafted by Antigravity (AI coding
assistant) based on the board schematics and user direction.
Signed-off-by: Chen-Yu Tsai <wens@kernel.org>
---
.../boot/dts/allwinner/sun50i-h6-orangepi-3-lts.dts | 4 ----
arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-3.dts | 4 ----
arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi.dtsi | 9 ++++++---
3 files changed, 6 insertions(+), 11 deletions(-)
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-3-lts.dts b/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-3-lts.dts
index 0d1a899a7446..a571fb1adf89 100644
--- a/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-3-lts.dts
+++ b/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-3-lts.dts
@@ -109,10 +109,6 @@ &mmc2 {
status = "okay";
};
-&usb2phy {
- /delete-property/ usb0_id_det-gpios;
-};
-
&usb3phy {
status = "okay";
};
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-3.dts b/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-3.dts
index 1b2181ce603d..27bba0455093 100644
--- a/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-3.dts
+++ b/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi-3.dts
@@ -106,10 +106,6 @@ bluetooth {
};
};
-&usb2phy {
- usb0_id_det-gpios = <&pio 2 15 GPIO_ACTIVE_HIGH>; /* PC15 */
-};
-
&usb3phy {
status = "okay";
};
diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi.dtsi
index f77a6c496a75..7e97d72a7bfa 100644
--- a/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi.dtsi
+++ b/arch/arm64/boot/dts/allwinner/sun50i-h6-orangepi.dtsi
@@ -286,8 +286,7 @@ &uart0 {
&usb2otg {
/*
- * OrangePi Lite 2 and One Plus, where this DT is used, don't
- * have a controllable VBUS even though they do have an ID pin.
+ * OrangePi H6 boards don't have a controllable VBUS on USB0.
* Using it as anything but a USB host is unsafe.
*/
dr_mode = "host";
@@ -295,7 +294,11 @@ &usb2otg {
};
&usb2phy {
- usb0_id_det-gpios = <&pio 2 6 GPIO_ACTIVE_HIGH>; /* PC6 */
+ /*
+ * USB0 ID detect (PC6 on One Plus and Lite 2, PC15 on Orange Pi 3;
+ * absent on 3 LTS) is not assigned because usb2otg is forced to
+ * host-only mode and Port C has no IRQ support (causing polling).
+ */
usb0_vbus-supply = <®_vcc5v>;
usb3_vbus-supply = <®_vcc5v>;
status = "okay";
--
2.47.3
next prev parent reply other threads:[~2026-12-04 17:13 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-04 17:12 [PATCH 0/9] arm64: dts: allwinner: h6: orangepi: Common dtsi cleanups Chen-Yu Tsai
2026-12-04 17:12 ` [PATCH 1/9] arm64: dts: allwinner: h6: orangepi-3: Use common sun50i-h6-orangepi.dtsi Chen-Yu Tsai
2026-12-04 17:12 ` [PATCH 2/9] arm64: dts: allwinner: h6: orangepi: Move CLDO2/CLDO3 to Lite 2 Chen-Yu Tsai
2026-12-04 17:12 ` [PATCH 3/9] arm64: dts: allwinner: h6: orangepi: Fix VCC-PG supply in common dtsi Chen-Yu Tsai
2026-12-04 17:20 ` sashiko-bot
2026-12-04 17:12 ` [PATCH 4/9] arm64: dts: allwinner: h6: orangepi: Move HDMI hvcc-supply to " Chen-Yu Tsai
2026-12-04 17:12 ` [PATCH 5/9] arm64: dts: allwinner: h6: orangepi: Move LED pinctrl " Chen-Yu Tsai
2026-12-04 17:26 ` sashiko-bot
2026-12-04 17:12 ` [PATCH 6/9] arm64: dts: allwinner: h6: orangepi: Add cpu-supply to all CPU cores Chen-Yu Tsai
2026-12-04 17:12 ` Chen-Yu Tsai [this message]
2026-12-04 17:12 ` [PATCH 8/9] arm64: dts: allwinner: h6: orangepi: Drop board model and compatible from dtsi Chen-Yu Tsai
2026-12-04 17:12 ` [PATCH 9/9] arm64: dts: allwinner: h6: orangepi: Move ALDO3 to Orange Pi 3 and 3 LTS 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=20261204171319.745792-8-wens@kernel.org \
--to=wens@kernel.org \
--cc=andre.przywara@arm.com \
--cc=devicetree@vger.kernel.org \
--cc=filipescu.cristian@gmail.com \
--cc=jagan@edgeble.ai \
--cc=jernej@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-sunxi@lists.linux.dev \
--cc=megi@xff.cz \
--cc=peron.clem@gmail.com \
--cc=samuel@sholland.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