From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=217.140.110.172 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796469007; b=E+d/0GIUio4b9K3KXiuKJEBzEohXaFf6u91GvZrbGoESj6COx0jaricz1xYIxeTPSGYT 88DguAoctYyDkxaTe87usIHkTA065u91F/bWgiWaooX3oQW41+gamRkgsh7MJ/hUIb6x0 9DcX9KKgASrG8JcdjOd/LeNNfDsXVqkf/4m6X1CGuXFVIYwbPKcje4cj89+wJCapBS3qj d4jrDGl6rML4u8QYQ6tta6qz/OFe6Q23ZF/U840Kn/mSxAg+4LYT9Q/vUwkz7N4HZkB2l V5wFQwDBjheb+mUFf40YcOcaqXElMTk/+wJdSLSXKxvZivFo/+YkoOqbWKXBaGP8+uA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796469007; h=DMARC-Filter:Received:Received:DKIM-Signature:Date:From:To:Cc: Subject:Message-ID:In-Reply-To:References:Organization:X-Mailer: MIME-Version:Content-Type:Content-Transfer-Encoding; bh=hImKucjJ11++Td/0hanDdu6Gnlyxn1zb5VeOT2EZoI0=; b=piw2Lt1tCYuTXVjA3G88OiMzCtnzzSQoDSeVM4Mwe2aKvd83SWD6P+0/K877++FU4I3I wpimzjnZMykabcT+Mt/xMef2sjPkaHfBo+biXe5Ug4dC53aLvSxG8panxL2uBeB+gBOt/ IMqr4Bf8w0zDcqjiCvJ6Acw+ArvJU1eQEvnN99r3lUqXJjSjt1xWkzDSEO661xTzyatbO 9Idb7CwYQptytEyztz4r1nJIr3R7vKfOQhEScdH+3QqYmfUeDrRSTPiq0x4P2M2tq0LXg W0MNOKV6zs+AYAi0UE7QTsw/Lj/oPU2Z7Bsmmlsy4D7IOMCCV7Rk2jWy9249SDSh9eQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=arm.com; spf=pass smtp.mailfrom=arm.com; dkim=pass header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=foss header.b=pMU10Xfb; arc=none smtp.remote-ip=217.140.110.172 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B0D5B606A32F for ; Sat, 5 Dec 2026 11:10:06 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org B0D5B606A32F Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=foss header.b=pMU10Xfb Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 2DDCE14BF; Sat, 5 Dec 2026 03:10:03 -0800 (PST) Received: from ryzen.lan (usa-sjc-mx-foss1.foss.arm.com [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 44A6C3F86F; Sat, 5 Dec 2026 03:10:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arm.com; s=foss; t=1796469006; bh=7C+njpwFfFH8nTSkDwbp2L8peaKc+1FdwH0z/GqpElY=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=pMU10XfbTj1tagrtEHnmxMvtb4IKw1xUa3bZ/G3qlAgJ8QZnwoSQIJGvypLarGmdG 5y9YCToTVd8sqRW7MAW6ojgIhzYlEjQ+FWHH78rz3URpZfLmJzFBZX/nJvEiPf3ws3 /WeTK6rRPZogQwklCMhjOzNhTQbCPzU4a20iTUe4= Date: Sat, 5 Dec 2026 12:09:46 +0100 From: Andre Przywara To: Chen-Yu Tsai Cc: Jernej Skrabec , Samuel Holland , linux-sunxi@lists.linux.dev, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Cristian Filipescu , =?UTF-8?B?T25kxZllag==?= Jirman , =?UTF-8?B?Q2zDqW1lbnQgUMOpcm9u?= , Jagan Teki Subject: Re: [PATCH 7/9] arm64: dts: allwinner: h6: orangepi: Drop unused usb0_id_det-gpios Message-ID: <20261205120946.6c6c953e@ryzen.lan> In-Reply-To: <20261204171319.745792-8-wens@kernel.org> References: <20261204171319.745792-1-wens@kernel.org> <20261204171319.745792-8-wens@kernel.org> Organization: Arm Ltd. X-Mailer: Claws Mail 4.4.0 (GTK 3.24.31; x86_64-slackware-linux-gnu) X-Mailing-List: linux-sunxi@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Sat, 5 Dec 2026 01:12:57 +0800 Chen-Yu Tsai wrote: > 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. Shame that the 5V supply line is hardwired to the micro-B(!) port, but that's from the era of micro-USB power supplies. And we indeed declare the port as host-only already, so ID-det GPIO is pointless. > 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 Reviewed-by: Andre Przywara Thanks, Andre > --- > .../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";