From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796404434; b=2dswx31v5OXegVYAsZNdAKX1ujegUOZq7vr3CL575EmJS0qd6dRwcdVRyzJ/K8U1fNbY wphLeX2lqdPu/hKm33AefYm0ue+HkFJd6ivZtFIl7ENOa0dGW07KUDcSkA9bYQipdkC4o TGiiNm3cbKHx2F2YyRlGXl2Aj7NkGafsQ5JzGomkrasQCQSdc+skYOTEOFifzSgJNlxxw BygTPlBw6HYiXrIvW3Oh35kzXysXaJ0HmgaksYRqpUrS39pZ8qFphL42PLLHVd0Q1Khb1 MYN9KDHJoICZMz9NQbBY3d+yKUX5HO0TsDXZmG0ly2Bk6o4cmU3nCt2duBEb9OoQzzw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796404434; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:MIME-Version:Content-Transfer-Encoding; bh=ORh+Tld0GeWYbQxzAqPlLNJ8zVOMIb98Vhx5qwqcOZk=; b=n5cq3v0KQlzWJu0feplAptudoJ2BtZKN/7Xz2TC78eAbuBDw2NztE8CDayNDYhwfmMPn hJUHgdNzFQEjD3LsqUnU0i7Yi58MMVadKwX+5wbJNGBEaxcU/zNa5cEhRYj5xGYWcgT3k KGFFz2H7OC6gcwa6gpkxzPJQj9GccMF2pQpg353bkLg6CbOMhyrplwGYUcX2jy/crmB+7 xJdyqbqwdzypPIGPbQa5NBVKN9XFxACZSYqFQQ2R8MI0m2UyPyGrdmVTZFUYF8zA5y+Cc XiEqzAcv+K6TFWz9DmFN7p7rQjgDqqHJ2IeGV7zXgMylbOGV5RfRIuS18gEDsx+xgNw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=as1pei8F; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3435E606A32C; Fri, 4 Dec 2026 17:13:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=as1pei8F 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-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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