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 1E000606A33B for ; Fri, 4 Dec 2026 17:14:41 +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=RVktUXVm; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=as1pei8F 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: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Unsubscribe-Post: List-Owner; bh=ORh+Tld0GeWYbQxzAqPlLNJ8zVOMIb98Vhx5qwqcOZk=; b=RVktUXVm3QRErb 0ZmS3PQLdE1sHunV+vNv8rr1ljVIyFsyXUxbp+YEu48V6l+1EdjY7y7DfpS7MLt5YqGmYaJb4c6qy k4Ueok0DTLvTQ1COzJzOIIQ6SUhGcihYb9Rq2vBWlR9CXoDfYNUDsxBsivLKzss/6j+xhpaofPlkB 1uqQYpFEgfaOzi8PVJpwBTKgITtQfqmOhP48cvksK7BP9XDxQ4LTOYm4xeh6mZg/UdqoUwWHF5RXK suj+yCUEVGP9ZwsSR0jTFUQ2KpvqNtOeHjLXyz/PhHhamLK0iqj2/iVepeofCWSbC5qsg79TwmgVS jjo7WBGb5Z2cx2/A/02A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZWr7-000000011Tz-3R6q; Fri, 04 Dec 2026 17:13:57 +0000 Received: from tor.source.kernel.org ([2600:3c04:e001:324:0:1991:8:25]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZWr4-000000011Sa-3k7w for linux-arm-kernel@lists.infradead.org; Fri, 04 Dec 2026 17:13:55 +0000 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by tor.source.kernel.org (Postfix) with ESMTP id 5989661913; Fri, 4 Dec 2026 17:13:54 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 095201F00A13; Fri, 4 Dec 2026 17:13:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796404434; bh=ORh+Tld0GeWYbQxzAqPlLNJ8zVOMIb98Vhx5qwqcOZk=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=as1pei8F6vpqzW//9k5ryvVDicsz92QPlgdhtkneHcWUZxsVpB6++aCeHRlVeiJwQ XnO+4mgGU4j9OXjfIybjgKp60PUPtQYELJ8HBW6Sd9uy3aeBPQNLiBwC0u3BQzag/J OvPA6nenBv+jdk0USHBWdrTDuTkRACOwVMKZchaclvq5KrOPrxb+4IDoZKwgcakGYB OzKtggV19OdrZC07t21kFPhbmAK7NiJ6n0V+WDh8e9KyLAM1O3NGLjg5sI/76Z9bN2 7uwLBLo18v4iTuyH0c73rTJVPvLyTP9wE91ywCOlIjLBjiGTXCVLpYjRk3aoOsq8MC pHLbaiovOiBhQ== From: Chen-Yu Tsai To: Chen-Yu Tsai , Jernej Skrabec , Samuel Holland Cc: Andre Przywara , linux-sunxi@lists.linux.dev, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Cristian Filipescu , =?UTF-8?q?Ond=C5=99ej=20Jirman?= , =?UTF-8?q?Cl=C3=A9ment=20P=C3=A9ron?= , Jagan Teki Subject: [PATCH 7/9] arm64: dts: allwinner: h6: orangepi: Drop unused usb0_id_det-gpios Date: Sat, 5 Dec 2026 01:12:57 +0800 Message-ID: <20261204171319.745792-8-wens@kernel.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261204171319.745792-1-wens@kernel.org> References: <20261204171319.745792-1-wens@kernel.org> X-Archived-By: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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=-19.3 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_GIT 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 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 --- .../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