From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1796288659; b=5apIck2dqXzQpMRqdUrXFJCyLj/NQY6EGQDAdJ/4iyk8sQ03i/lsFpxrly0Q7yeed0Em 8JgvHhtQsx96b68BpxDzXiZ7INlLW5qbwOzH4h0/CmlEK7D/pAPG6uEN8k3uM7d33y93J AdSqESPDCNO2unM6vEup2wVb17e/SZp7LSza2OMfSOeoC/jd0Xspa0zTxnkE2SR5IASbW Rm9nt9+SeZpzVjJzluaBTRxwv4gB92CJECwYnKzlEBBqHpmGUVVfRJxZzokGWxT3XjdoR sPMMfhwqkejdslmxwhfaHyY/TWTV7hIamejFn7dZgK7y2Tx3zBP8rp7JYYiITsW9B+Q== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796288659; h=Received:DKIM-Signature:Received:From:Date:Subject:MIME-Version: Content-Type:Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=ricCKETKZUNrrPSUJrFxpe3233ljk04vSyyoEoAHM70=; b=di5eykAC04bEXKDbxcxtK7pEvN/nnQV/k31TV4QvEbRj1tgXpT+mmNRjt/fW3MTLC+X4 Liq73iOw5ax5OOWG59cquXg2C5YB3ThBQMG0skQGOHZ/cW1N1vXo4hPVoeQIpRSOUTcF1 RJbXcNbdxf+z1b39W3lSjREOOLcOZZJK53JadcTvK+LOAYJeuIRQpO53ACYPVAMd8rh7H ENxYE7hhcov45Q3U3Tw1h0ABT5jYMSmKgNVB/NFSndRBcVWmwfm5aJRPMiMuEFuHiBKbQ 74ie/TqltdMdXHkWJ/+mQgTVQGF3z4XwAw25soK+c5OnShc3DeqL3tdL9s/+G5Exj9A== ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=NeBhf5iu; arc=pass header.oldest-pass=0 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 4D673606A33B; Thu, 3 Dec 2026 09:04:19 +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=NeBhf5iu Authentication-Results: smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 ARC-Seal: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; cv=none; t=1796288659; b=DmrWjzf/SKwbGf6ZU4vFI+4UM/dTZDr572b2w1VFrAlYWY8KO5myso/iEBsWk8NncicT LkKuS2o83En/CWR9gkxnzUfjFeJuOAniixp62P/zDEFGpya39mOQ0Y8tedkOtz5fCvwX7 /JFvE+9WotZIjtGa2Q0lLYm7SKlitgoFfs9TTZ2x4hTj7HJxlX5hFAGr8uMgWiZt3HH3+ +F6+MTEvFm463pITnO/a9g6sJhlvsLfyZ3xuvS5f3D0T4MP0cDWY3CAS+zWlgx5rE0YDn +3Nw5Q66A2OGMGdp7mFuqxpDRiCwbDRYiZtEtEUCXBYMJg6h78GjSyqpKs2JgBZKn1Q== ARC-Message-Signature: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; c=relaxed/relaxed; t=1796288659; h=DKIM-Signature:Received:From:Date:Subject:MIME-Version:Content-Type: Message-Id:References:In-Reply-To:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=ricCKETKZUNrrPSUJrFxpe3233ljk04vSyyoEoAHM70=; b=NC0CQfNBOxtcAr9yykBpOkY2J8W6qvLF5Ikf7DvM9YjbT1XwK/i75024OISNN1uwwU78 VMAuHH7VoP613wAeD9KGOjvpLI1UKlK385eD+z+NmWADClhnRoIKzxSphCePKsNzCC4Sk /tNkaToLg6tRrvwzml4CYs+VHHkcVgsvWMWGFjzAUXBNb+KtuSQWuw46QQkw5A9XFa/wZ quTOPxKeLWK455y65hr4q9GcImNLLSGo+xoGiX7Sh2r1gmKuwo1ZVr09MK9uXNgeIGdat pCYpKOz4TcV1CZvZvi7tSDV0OLYUedFDdf6bAF4IoTVSVJTs1tGPTd5exd3m10E3lMQ== ARC-Authentication-Results: i=1; smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 Received: from lkml.kernel.org (nexus.subspace.kernel.org [100.80.115.77]) (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.kernel.org (Postfix) with ESMTPS id 612841F00896; Thu, 3 Dec 2026 09:04:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796288659; bh=ricCKETKZUNrrPSUJrFxpe3233ljk04vSyyoEoAHM70=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To; b=NeBhf5iugh+ex9pZamX0YDfBo/Qs1u3GPJuWfUXDVqO5m4zrhgw7zZ0dshayVWM4m E1/uCi9dvU93t/MWKKOCaaNYvH6pLpwhlFy+pQBWf6BzfCAa2AiP5xm4bzrnlDe10I IElUj+pq2AtCeUE1IBrlMNESImw50KUmfbDb1XJIV/0JB49HiNlztw+tRcq13GaN3s kFhiodJFrxwTqNiY1CB+XZu/3Pc3Dq02jjkbxSTVIrnKyZ+dtVHWtbpHDtWhs8xyqZ E6X62inQjM4RsL/6YyYYWNRkAVWQTf8H/T2IqlXkgFGYWEx6Bm1XW4iF2i2NawQOQ/ hxggknPtSNBeg== Received: from nexus.subspace.kernel.org (localhost [IPv6:::1]) by lkml.kernel.org (Postfix) with ESMTP id DF2B44F89B; Thu, 3 Dec 2026 09:04:16 +0000 (UTC) From: Ivan Pfarher via B4 Relay Date: Thu, 03 Dec 2026 10:04:16 +0100 Subject: [PATCH v2 2/4] ARM: dts: allwinner: orangepi-zero-plus2: Fix USB peripheral mode X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Message-Id: <20261203-orangepi-zero-plus2-fixes-v2-2-286df6b782f4@gmail.com> References: <20261203-orangepi-zero-plus2-fixes-v2-0-286df6b782f4@gmail.com> In-Reply-To: <20261203-orangepi-zero-plus2-fixes-v2-0-286df6b782f4@gmail.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, Ivan Pfarher X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1796288655; l=1751; i=ipfarher@gmail.com; s=20261120; h=from:subject:message-id; bh=HS1PLINsjNp6sL9dAd3QAllTVgUUpIMuzkp+M5RZxj8=; b=kajVvhIjP3zUUAs6zwrEatJ6Ft5rEVmRIQ4Deh29ggPzL8zNMMvnrKJZxwhE79hfHenlRQ/UZ ML5V3ozqq3BCM0SeAtsZVhHEhiG0Y5OlouMjOrpaliHPjhWd9hnAQEL X-Developer-Key: i=ipfarher@gmail.com; a=ed25519; pk=3DMYyz/xl+KRAx2TNGJpheG+5QUm7lqHhKXFqVu2TmY= X-Endpoint-Received: by B4 Relay for ipfarher@gmail.com/20261120 with auth_id=1582 X-Original-From: Ivan Pfarher Reply-To: ipfarher@gmail.com Content-Transfer-Encoding: 7bit From: Ivan Pfarher The micro USB port is set to dr_mode = "peripheral" because it cannot supply VBUS, but EHCI0/OHCI0, which share USB PHY 0 with the MUSB controller, are enabled too. When they register, the USB core asks the shared PHY for host mode and phy-sun4i-usb switches PHY 0 to host, so a gadget never shows up on the host. This is the same problem as on the H5 version of the board, which is the same hardware with a different SoC. The port cannot work as a host anyway, so drop EHCI0 and OHCI0. Not tested on the H3 variant. The same change was tested on the H5 variant of the board (Linux 6.6.160), where g_cdc then enumerates on the PC. Build-tested only against current mainline. This problem was investigated, and the patch drafted, in an interactive session with an AI coding assistant (Claude by Anthropic). The submitter reviewed the change and ran the tests described above. Fixes: 43aad09c7928 ("ARM: dts: orange-pi-zero-plus2: enable USB OTG port") Signed-off-by: Ivan Pfarher --- arch/arm/boot/dts/allwinner/sun8i-h3-orangepi-zero-plus2.dts | 8 -------- 1 file changed, 8 deletions(-) diff --git a/arch/arm/boot/dts/allwinner/sun8i-h3-orangepi-zero-plus2.dts b/arch/arm/boot/dts/allwinner/sun8i-h3-orangepi-zero-plus2.dts index 852723e94..0ca7d8a9d 100644 --- a/arch/arm/boot/dts/allwinner/sun8i-h3-orangepi-zero-plus2.dts +++ b/arch/arm/boot/dts/allwinner/sun8i-h3-orangepi-zero-plus2.dts @@ -120,10 +120,6 @@ status = "okay"; }; -&ehci0 { - status = "okay"; -}; - &hdmi { status = "okay"; }; @@ -168,10 +164,6 @@ status = "okay"; }; -&ohci0 { - status = "okay"; -}; - &uart0 { pinctrl-names = "default"; pinctrl-0 = <&uart0_pa_pins>; -- 2.43.0