From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 637A9606A322 for ; Sat, 5 Dec 2026 11:10:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=hWEKbYAW; dkim=pass (1024-bit key) header.d=arm.com header.i=@arm.com header.a=rsa-sha256 header.s=foss header.b=pMU10Xfb DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Subject:Cc:To: From:Date:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Unsubscribe-Post: List-Owner; bh=hImKucjJ11++Td/0hanDdu6Gnlyxn1zb5VeOT2EZoI0=; b=hWEKbYAWc8kvVb n2RXTocxTwwhEEKn8B9PPjxqXCJeB+9ds8sCwg5FlwvZH+ElHbjQbFWy5kHaDZZIOKuIDFXp1k8i6 kdkqpFDxkgd6mU4B6b1uvFZSrILPxNu3cHt4qJQ9k6U70PyfpCX2WQbSmz5ZJjjnzCuRM0WHb5sOr 4/AwYueTPyqn8he1P5jBrubmU6T0i6BhtNe5glpeCVrLU1qOjsX6iRyTygqeY4otyl4tQsX9agzwk u9Pyt2nH00DYVTfmgaAe0/jHSbGiSvbfhI5xma6ZggHFnjFAKql0RRoiLK/WEJmRz5wEFWbhUvpfq aK2HR++P4OZBXEgVjdMg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZnec-00000002LOM-0AtO; Sat, 05 Dec 2026 11:10:10 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZneY-00000002LNm-2rc2 for linux-arm-kernel@lists.infradead.org; Sat, 05 Dec 2026 11:10:08 +0000 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-Archived-By: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261205_031006_816284_FD0701E6 X-CRM114-Status: GOOD ( 21.43 ) X-Spam-Score: -4.4 (----) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" X-Spam-Status: No, score=-17.7 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_2 autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 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";