From patchwork Fri Nov 20 11:40:45 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ivan Pfarher via B4 Relay X-Patchwork-Id: 4192 Return-Path: X-Original-To: noreply@patchwork.local Delivered-To: noreply@patchwork.local Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mxe881.netcup.net (Postfix) with ESMTPS id 42F231C5D54 for ; Fri, 20 Nov 2026 12:40:57 +0100 (CET) Authentication-Results: mxe881; dkim=pass header.d=kernel.org; spf=pass (sender IP is 172.234.253.10) smtp.mailfrom=linux-sunxi+bounces-27910-noreply=patchwork.local@lists.linux.dev smtp.helo=sea.lore.kernel.org Received-SPF: pass (mxe881: domain of lists.linux.dev designates 172.234.253.10 as permitted sender) client-ip=172.234.253.10; envelope-from=linux-sunxi+bounces-27910-noreply=patchwork.local@lists.linux.dev; helo=sea.lore.kernel.org; Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sea.lore.kernel.org (Postfix) with ESMTP id 37876C5CDC for ; Fri, 20 Nov 2026 11:40:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 ARC-Seal: i=3; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1795174854; b=zLjEvnVwxtwk3fWFibie1JnTxQAi2TUriMcmY+dGcOtt+Ph6BAk0iWHv4ppv8jATreeW 8tejajewFatN2SfdJaJeWHqKTWH/9a+upQB663H7KOZhK0pnGP3dOd49hPv+q5FI5wB92 /2D42JgjsQMz8voGnNnhzK+4WvJeAVdmCAlDUMnKobR3OPpzMN5sX1FylPRqsUDJNjQ53 IpJPaQsZiKabXy+gL8tpC3jcqJ/5Dv2t8pn73R/iIX3OkT/6Ll8Dv2Zt4r+Bt4DshdfGj 0qvcmfjQ0cUZxx9w0mFmw/y4gebW8n4KM7G1QfWJwdfjsH50rJq4O2atRTdKeRu/gbw== ARC-Message-Signature: i=3; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795174854; h=X-Original-To:Received:Received:DKIM-Signature:Received:From:Date: Subject:X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe: List-Unsubscribe:List-Owner:Precedence: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=RHPlhdBNPxXzXTwkaRxmCp6HVueIFSTW7DRmFxWoNDk=; b=x7ea0NSBbK73nBftl9WxB9aqUlGaBmSUIPONVhqzeD3AS/kAYR4mK6ncMwqxGJeO0TTL oWc9LTjO/Gmf2VCGllV7kOD2s9CzIwLsE2WZMyscOV7nb7rVc0xDxD27s+faBlPc+2/lR w0X06uNF0+WlTXMUKQWDMjI6Nc+SvN1/tumaLTcc1Hgncs2YDBPXGq3i0G5YuR29kpFxS ON3ti0h5z3G+Gzm2MnXmKI3ENDOq3RAf592im1907DkQdkm6TlpSvt3aeVF47dItGax2f GzYX3mtiflu8/7TLDnp4h0j8N+0vdCkMrLqacTwiRcH3KNUGlkR9NiGa90QtQOHI1PA== ARC-Authentication-Results: i=3; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=jrj+iFOM; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 40706606A320; Fri, 20 Nov 2026 11:40: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=jrj+iFOM X-Original-To: linux-sunxi@lists.linux.dev 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=1795174854; b=sSwv2+RAlQEOxlgvXnYrPttYfy3f7t712G8rx8p2WFlFdlnNoqJ/UuPDp/ZIUQfNfpc9 F2kYvNWw/uUUWIIpoHBHI4A4OSnsvcT/SFdgHqshy+BAOBOs+EMb/dbYP7TQGhZyJREg2 bDraFwdjfNBSujH9xsu+uua51VuvB00xHOEip3easq+0Ve4dOkB9V5IXi04vxFbnlNA71 3jjXdWf0ShhgiIRlBV2kDVWGOxHqbXiB8o5aI5WzLYLAFS2DSSp3MhzJcarWhs9xSqFSc KnXx6hGBZ2Bxni9utGmxKNGlvLuG2JFvPTm8Ctcyt8Ug0ZZZZIntP6Tg7yh+beOzBiA== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795174854; 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=RHPlhdBNPxXzXTwkaRxmCp6HVueIFSTW7DRmFxWoNDk=; b=BFTIeEDRf8ezG9Fh1yyFj2h5H9w1pUkELlelye8z69xPdEYZPz17JVKdmSLFrSX9DR8p nKCGoD5WCTdnVWllbM0u9zq03AwB5L+zVaOEwuPKKE6wxFRzwB6wHRDGa3ZXH8i5J4XcA 21KNQHtESnKctd7uCiOpdM3IO/0EnpajuHYfYiRcHyKzwD4E5AaQDcjKkpHfk0ctmAq2d 1OQHEtxppp83s5pnLBw0Ycft2TCv4GR+rrHO998ghYc2AzHehEsvGOD6FdtMdFPCCwZBj +45kkUU4vaahFvXSU7uN412WREApoYboXIk6qeRoKKrbMAKTP9vo8XT9RDqZZbLTJ3Q== 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=jrj+iFOM; 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 1E270606A326; Fri, 20 Nov 2026 11:40:54 +0000 (UTC) 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=1795174853; b=gwX5PY75GLTzNLtYE50Us7SsgI6ifqfkW/fVPPOCJE2q4xeaHac3OBTJ8cXajf3/t1ik iPlbl9fnR9fSYdSi2R/Tr6hddmlxsV43HHpdfoCmBiyVXw55AE8hfPNJwkm1C2+ZFVemn ZyofWQo8z3yBJXorvDmj3AhTD5/DXfw5oHstlcT0afqcajxoyzK2FTv+NQij8r5XEuYpA EOLSgUBZMrgHsdDGWoRI/0vX++4a2AZUhVGHi9o9JXjKCfC/IC9QOxLSlF5zJZxoVYVNp oV1kvCCKaWyK5B+3dmnm4ytkcai8WRCEuEOsXz/d5mQdm7XVhd/6hn/QiCII7I5fuAg== ARC-Message-Signature: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; c=relaxed/relaxed; t=1795174853; 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=RHPlhdBNPxXzXTwkaRxmCp6HVueIFSTW7DRmFxWoNDk=; b=gTa0t69lfO4fsiX1SC/O9Im+oMhzMilYaADhIQlsj7LFYJuF7ufWlFHwHqFwgKltZ1LF cG441D6yeerRy/cbIu7bY8hO2NflodHgscZIq5Ggec403a4Lp/7VFjQkUmdHZ5ZyTujLV X+zMyB82oR1ZO/4OTOZIxipLGcfmlkHxFVE8gptq5GfT77EbFL3O7i8IOyp+HasZtnigZ CLQBsy3OF1lcuv4Xx6kRou12c8YfDyPQ3u8sPtFmBsh/4uqPl6q2TXLVaefCFNhrGkIod xZg/gZkecOEHV7TNbugdXxJq59w8uFb3Fw+ptJco5owOHON3TYnj2JOLMOHJQkEHBZg== 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 013211F000D0; Fri, 20 Nov 2026 11:40:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795174853; bh=RHPlhdBNPxXzXTwkaRxmCp6HVueIFSTW7DRmFxWoNDk=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To; b=jrj+iFOMo8UJZjlJ+NdJsdiTgzLXJSh7al69m9lblPFt/bC68uGvu+HCM0hJ0yT7U FS0OfOGDE5VZ9i+CoIT/gOTi0jJmPgUk/4P6HX8tjHcWbdBs3TM9FUzHdDkHkZhUU8 Qh08RYiRD504Pp0+HQCajoEcgp0UT2Wk1KWEFC4QcYR6oCLMklYAFuqgyYwNZkSpRG TwRryOodEEJtbyvpfm1Bk0L6fUDzTS3GMvLBMbUyJqy60XZwbiumq8TL2flKgVTYsU CxHzFflDPjnc4sH0EBc9dOVpb4NeDy4UGLMq31LLxh6GjjoVpNYnUgjgCH2btMf32Q MA2CNWZKjEHvA== Received: from nexus.subspace.kernel.org (localhost [IPv6:::1]) by lkml.kernel.org (Postfix) with ESMTP id 8C9CF49863; Fri, 20 Nov 2026 11:40:46 +0000 (UTC) From: Ivan Pfarher via B4 Relay Date: Fri, 20 Nov 2026 12:40:45 +0100 Subject: [PATCH 1/4] arm64: dts: allwinner: h5: orangepi-zero-plus2: Add LPO clock for AP6212 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 Message-Id: <20261120-orangepi-zero-plus2-fixes-v1-1-ecd792189f27@gmail.com> References: <20261120-orangepi-zero-plus2-fixes-v1-0-ecd792189f27@gmail.com> In-Reply-To: <20261120-orangepi-zero-plus2-fixes-v1-0-ecd792189f27@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, Ivan Pfarher X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1795174845; l=2115; i=ipfarher@gmail.com; s=20261120; h=from:subject:message-id; bh=7KEtdKj9IY+64J+dCjZb1N3Us47orLdmi9i9eYZWsuM=; b=SOxTVC1DYhuLVEV7n+Im/3RiM9ou+VEHmEJgGfO8FSkz+Qz6pLswSgdzCSEG8p+bdVtsJUhhg We9IBq70qemCUoxa7CgvszjvEU/6ECL/sz79h+0mCFhVGJuWuuwmOTt 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 X-Rspamd-Server: rspamd-worker-8404 X-Spamd-Result: default: False [-2.19 / 15.00]; BAYES_HAM(-5.50)[100.00%]; RBL_SENDERSCORE(2.00)[172.234.253.10:from]; SUSPICIOUS_RECIPS(1.50)[]; MAILLIST(-0.18)[generic]; MIME_GOOD(-0.10)[text/plain]; BAD_REP_POLICIES(0.10)[]; HAS_LIST_UNSUB(-0.01)[]; R_DKIM_ALLOW(0.00)[kernel.org:s=k20260515]; FROM_HAS_DN(0.00)[]; TAGGED_RCPT(0.00)[dt]; HAS_REPLYTO(0.00)[ipfarher@gmail.com]; REPLYTO_DOM_NEQ_FROM_DOM(0.00)[]; FORGED_SENDER_MAILLIST(0.00)[]; FREEMAIL_REPLYTO(0.00)[gmail.com]; FREEMAIL_CC(0.00)[vger.kernel.org,lists.infradead.org,lists.linux.dev,gmail.com]; DBL_BLOCKED_OPENRESOLVER(0.00)[sea.lore.kernel.org:helo,sea.lore.kernel.org:rdns]; RCVD_COUNT_FIVE(0.00)[6]; FROM_NEQ_ENVFROM(0.00)[devnull@kernel.org,linux-sunxi@lists.linux.dev]; TAGGED_FROM(0.00)[bounces-27910-noreply=patchwork.local,ipfarher.gmail.com]; DKIM_TRACE(0.00)[kernel.org:+]; DMARC_POLICY_ALLOW(0.00)[kernel.org,quarantine]; R_SPF_ALLOW(0.00)[+ip4:172.234.253.10]; RECEIVED_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[100.77.114.92:received,100.103.45.18:received,100.80.115.77:received]; TO_DN_SOME(0.00)[]; ARC_ALLOW(0.00)[kernel.org:s=arc20260519:i=3]; RCPT_COUNT_SEVEN(0.00)[10]; FORGED_RECIPIENTS_MAILLIST(0.00)[]; ASN(0.00)[asn:63949, ipnet:172.234.224.0/19, country:SG]; FREEMAIL_TO(0.00)[kernel.org,gmail.com,sholland.org]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; RBL_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[172.234.253.10:from] X-Rspamd-Queue-Id: 42F231C5D54 X-MORS-Enabled: yes X-MORS-DOMAIN: patchwork.local X-MORS-HOSTING: hosting172546 X-MORS-USER: hosting172546 X-getmail-retrieved-from-mailbox: INBOX From: Ivan Pfarher The AP6212 WiFi/BT module needs a 32.768 kHz low power oscillator (LPO) clock, which on this board comes from the RTC clock output (osc32k-out). Nothing in the device tree references that clock, so it is disabled as unused during late boot. WiFi keeps working without it, but the Bluetooth core does not: with the LPO gated, the BCM43430A1 ROM answers HCI_Reset and nothing else (no Read Local Version, no firmware download), so the controller can never be brought up. Turning the clock output on by hand (RTC LOSC_OUT_GATING) makes the controller answer normally. Reference the clock from the WiFi power sequence, as other boards using the same module do (e.g. sun8i-h2-plus-bananapi-m2-zero.dts). Tested on an Orange Pi Zero Plus2 (H5) running Linux 6.6.160 with this change applied: osc32k-out stays enabled and the Bluetooth controller answers HCI commands. 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: cf8e19e1ec15 ("arm64: dts: orange-pi-zero-plus2: enable AP6212a WiFi/BT combo") Signed-off-by: Ivan Pfarher Reviewed-by: Chen-Yu Tsai --- arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-zero-plus2.dts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-zero-plus2.dts b/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-zero-plus2.dts index 3eb986c35..34d6c1468 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-zero-plus2.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-zero-plus2.dts @@ -5,6 +5,7 @@ #include "sun50i-h5.dtsi" +#include #include / { @@ -54,6 +55,8 @@ wifi_pwrseq: pwrseq { compatible = "mmc-pwrseq-simple"; + clocks = <&rtc CLK_OSC32K_FANOUT>; + clock-names = "ext_clock"; reset-gpios = <&pio 0 9 GPIO_ACTIVE_LOW>; /* PA9 */ post-power-on-delay-ms = <200>; }; From patchwork Fri Nov 20 11:40:46 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ivan Pfarher via B4 Relay X-Patchwork-Id: 4195 Return-Path: X-Original-To: noreply@patchwork.local Delivered-To: noreply@patchwork.local Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mxe881.netcup.net (Postfix) with ESMTPS id AB8D31C5E31 for ; Fri, 20 Nov 2026 12:40:59 +0100 (CET) Authentication-Results: mxe881; dkim=pass header.d=kernel.org; spf=pass (sender IP is 172.234.253.10) smtp.mailfrom=linux-sunxi+bounces-27911-noreply=patchwork.local@lists.linux.dev smtp.helo=sea.lore.kernel.org Received-SPF: pass (mxe881: domain of lists.linux.dev designates 172.234.253.10 as permitted sender) client-ip=172.234.253.10; envelope-from=linux-sunxi+bounces-27911-noreply=patchwork.local@lists.linux.dev; helo=sea.lore.kernel.org; Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sea.lore.kernel.org (Postfix) with ESMTP id 5E2581A17D0 for ; Fri, 20 Nov 2026 11:40:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 ARC-Seal: i=3; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1795174857; b=XthT4wA+omtcbANKbAb6Rfw3HggxMjzoYTny+eC2y6QBcFj6B/H2lyGYT+apB+nDv27V SJhp2RZM9WlARFNQswjSrrN/0x2t+eqiT7IjwB5VmA17tvK7GI5dSqTm1xl9nZG+gYaQ7 3SY8Q6+ihJGZNvObeKu6dAgLNVm0HgxC+4x/frntIEVNNHHNjHxrqn/3F1PnJQfdtQIYN DSah5h6vDHhtDFeXj79SRfWo89oR86F4P3nbfWmdx33C5tTT1TrtPk5otNDcTKd7hyKKp WmFhV5lisAn+ugGEB8IrLDPO3zsrUPtCdHlI92B5ucB8P+jWAp9trALgKBkI0vT7e+A== ARC-Message-Signature: i=3; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795174857; h=X-Original-To:Received:Received:DKIM-Signature:Received:From:Date: Subject:X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe: List-Unsubscribe:List-Owner:Precedence: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=NkWuAoktz2jsTqcUkYdJz0Wvs9+5SwEtBq+3WiZduJ4=; b=qD2mKGQtCK4sDwZbZqwwisd6tMNQpd//7LaVuuy+1e2tnV3LuXJDVTms97ZFHqDklhGg VVZDru3GrbpUrf9RVVUSxlXD2Z5mqW/C3dSPuJu/Z+GZnE1fZKXLNsy06arA/eSlTq7qI 99yl4STq5CfGjtGxLs+AQVEJ1mPa6ZpsP82ahfXPVY/R71CEIbSltWkB91pWq5VyAE6Mg gDejuGZo4YlhVbfxcYIMMgCNDP2DNoJDnFeULWymv8gc97u0z0sc7A1k+8Ho4T1LYrsOp +AsBKc4/W9v1n0K8xGL5LiihZCyl2KClomiZ+GU5LL2/kwqU1znZi4/2s/iFC/DkCkA== ARC-Authentication-Results: i=3; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=PbenfX9G; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5FE6E606A326; Fri, 20 Nov 2026 11:40:57 +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=PbenfX9G X-Original-To: linux-sunxi@lists.linux.dev 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=1795174857; b=cgzE4a7gRZqIFxoxt1kTo/GVHF7u9B1HEADwXa/wjwPqhiZAnBpYXWcUE2Fw+RyzIO4/ bfTsxyFG81TZEr7rT8fKl+zrHAkLgRe4BFrrsIYpK98JJEifmCcZGxXUxYJthGkAS4aUt 6Ym3/HRN4giSB0qgClaZ2Lsf8EFY9Nm0Gj4qESMR8u78nY6b0PlFply/TYtRbsacupklG lWUPupOHlFZsghNrI4VM+wOue1QuQT6oG7+sBaA+zZND8+0fO1Agx9ox5nSQOCcbOQpmE xSIadhLUvt8N6PegkSYz9kfz0y44xd/YkAuiWFObvxG80xYAYUJ6lzekyyRzxRjKdQw== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795174857; 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=NkWuAoktz2jsTqcUkYdJz0Wvs9+5SwEtBq+3WiZduJ4=; b=S4MJhH4nhwZnv+1CwU+Fo3cPAhozMy/C58RTkCqC8fx4YrgwL5vxcFINDXzZ5EiR/aDP TXcGvwHE5CnFgR1oBGPcA0tM1lHXtCq/wAbXQtag/HTxMchraCnnPqXYrrbq8TbrxSbjW HWj4XIJ55KKZhqYreeKMkpn7rUQMKVZ+Wn5vRB4nDhIQ9ycJnOf+aoRDL1CgzVlWWiTXK hpB4Qvucs5C/vnehaCXIJMO08cKTbtwye++4nwqxW4plcacYxTWVGTygiC31d+pVbi4n1 45YjenSs0VAXCkAirYe9lsVGCF5Bd+EnF0z9aW8m9Qo9MM8axpjRiiZMs2Zj715R+Kg== 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=PbenfX9G; 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 3C687606A325; Fri, 20 Nov 2026 11:40:57 +0000 (UTC) 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=1795174856; b=jYqdgRzMX9QqPLIdRRJY1k9EC8ysvfZ00noaym9gb9NZXG8zvl5BjvX+BbCAR7uq+Qoc A+CUrRv8jYfUcAFNACn/7luQMLndfXjgXejw1nibm8dKxoYR1MCF7uBwba++8Hkn0Di9v IUZu7GAhz1iaxQB8escDE3LzGk34isy9ve9B3chpvi39DKAjVunXBkwFkx4lxG3e1nFec WTsr1kQ0g0qq5nCYysZ2d5wgTp/61Sg2+6Z7NnU2FyAl1tiker0PW4hf5kuqdeZ3RYA7w Fh1tY0NlJaqDvjpfXcBk4VPYXIRBgpAxuegJ4EYkqw2WDvnNQ2DfutetAjRp5WCuX1g== ARC-Message-Signature: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; c=relaxed/relaxed; t=1795174856; 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=NkWuAoktz2jsTqcUkYdJz0Wvs9+5SwEtBq+3WiZduJ4=; b=Gll36bTveYl1MluAo/92V5ABAjf8tDsp2qq3EWVtz6JM9cB+1Ur16Fj2wuEjAspqDLqp TUe3UiQIx40FJhu7AmOO4MLXutk5FkUCD7UTbMqUd4J6EMLjtWV+82KZid1jvw3ni5O4q WXTJ/ZIibs9wW/6YuHEGOgMgU41t3OLgTjD/MsOvDKGYszrxnBZ79rhQOy9jl6a1YkVjL FlzvufIX6/+nEALfZwHmirwb6GGRqODNVB1wr0XDzbgF8xxe+4XrfGA1/SlRSo/+im2Kw 8LMuRvYrqdU02hmlMqDg37jGGXV5oS/l367G0Fo6xVvJ6IZPLOgZUdiK/yeBrMetelA== 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 1D0C01F000D3; Fri, 20 Nov 2026 11:40:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795174856; bh=NkWuAoktz2jsTqcUkYdJz0Wvs9+5SwEtBq+3WiZduJ4=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To; b=PbenfX9GLeOTyFDhCVDKorRlqAYPx+nFW873xbSzeq/jCeDm3HUaL/UI0ObSS2aDh bhDpnkGTFXBI5Y3NFlkUxqtRHRAGg0vCNgaU4AsN6qTgwr+RCJRXDrGUmi1ciJ/H6H sJXiY4KBtnWY6rSQdGIqmCnsArLxJI4mIRWf4F5TDPyPkFejhSWXNVGjj7ys07td02 /DktCh1Js1sQCxzP93WhXvRaPXqOMdtBIX1pn6X35bfjBnpep40OeGu73jJYVNG+At Tsu+GzSPYa4zXb8e8tBxKznec01VksNTigHsk9K4OFF2tv0Cj9bfd0xcDT6zZl/9p9 1/XDOC4Y/NKMA== Received: from nexus.subspace.kernel.org (localhost [IPv6:::1]) by lkml.kernel.org (Postfix) with ESMTP id A7F474986B; Fri, 20 Nov 2026 11:40:46 +0000 (UTC) From: Ivan Pfarher via B4 Relay Date: Fri, 20 Nov 2026 12:40:46 +0100 Subject: [PATCH 2/4] arm64: dts: allwinner: h5: orangepi-zero-plus2: Add AP6212 Bluetooth 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 Message-Id: <20261120-orangepi-zero-plus2-fixes-v1-2-ecd792189f27@gmail.com> References: <20261120-orangepi-zero-plus2-fixes-v1-0-ecd792189f27@gmail.com> In-Reply-To: <20261120-orangepi-zero-plus2-fixes-v1-0-ecd792189f27@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, Ivan Pfarher X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1795174845; l=2073; i=ipfarher@gmail.com; s=20261120; h=from:subject:message-id; bh=N+gCZKSFdjvJNosqW8VyXfcloLRjV1OkNZSQDadOkiI=; b=tPfPEbATNv3mq+JDkKPCdtxG1k6VqvAhezObKAw6Yhbn9XisANtaKSEEGKFjIVb+0f4xtEo0b W/VY2mu9j1PDB5pZlH6mVg2X4CnPeiiXqlDLPeTr2H3lhmcb/StPSvF 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 X-MORS-Enabled: yes X-MORS-DOMAIN: patchwork.local X-MORS-HOSTING: hosting172546 X-MORS-USER: hosting172546 X-getmail-retrieved-from-mailbox: INBOX From: Ivan Pfarher UART1 is connected to the Bluetooth part of the AP6212 module, but the controller itself is not described, so nothing powers it up and the kernel never registers it. Add it as a serdev child of UART1. BT_REG_ON is connected to PA10: on the board, driving PA10 low makes the controller drop CTS and stop answering, driving it high brings it back. It uses the same RTC LPO clock as the WiFi part. The wake-up lines are not described because they could not be identified. Tested on an Orange Pi Zero Plus2 (H5) running Linux 6.6.160 with this change applied: hci_bcm powers the controller, loads brcm/BCM43430A1.hcd, switches the UART to 1.5 Mbaud and the adapter works with BlueZ (scan finds nearby devices): Bluetooth: hci0: BCM43430A1 'brcm/BCM43430A1.hcd' Patch Bluetooth: hci0: BCM43438A1 26MHz AP6212A1_CL1 BT4.0 OTP-BD-0034 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. Signed-off-by: Ivan Pfarher --- .../boot/dts/allwinner/sun50i-h5-orangepi-zero-plus2.dts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-zero-plus2.dts b/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-zero-plus2.dts index 34d6c1468..5697251b9 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-zero-plus2.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-zero-plus2.dts @@ -128,7 +128,18 @@ &uart1 { pinctrl-names = "default"; pinctrl-0 = <&uart1_pins>, <&uart1_rts_cts_pins>; + uart-has-rtscts; status = "okay"; + + bluetooth { + compatible = "brcm,bcm43438-bt"; + max-speed = <1500000>; + clocks = <&rtc CLK_OSC32K_FANOUT>; + clock-names = "lpo"; + vbat-supply = <®_vcc3v3>; + vddio-supply = <®_vcc3v3>; + shutdown-gpios = <&pio 0 10 GPIO_ACTIVE_HIGH>; /* PA10 */ + }; }; &usb_otg { From patchwork Fri Nov 20 11:40:47 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ivan Pfarher via B4 Relay X-Patchwork-Id: 4194 Return-Path: X-Original-To: noreply@patchwork.local Delivered-To: noreply@patchwork.local Received: from sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74]) by mxe881.netcup.net (Postfix) with ESMTPS id 108581C5E32 for ; Fri, 20 Nov 2026 12:41:01 +0100 (CET) Authentication-Results: mxe881; dkim=pass header.d=kernel.org; spf=pass (sender IP is 172.232.135.74) smtp.mailfrom=linux-sunxi+bounces-27913-noreply=patchwork.local@lists.linux.dev smtp.helo=sto.lore.kernel.org Received-SPF: pass (mxe881: domain of lists.linux.dev designates 172.232.135.74 as permitted sender) client-ip=172.232.135.74; envelope-from=linux-sunxi+bounces-27913-noreply=patchwork.local@lists.linux.dev; helo=sto.lore.kernel.org; Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sto.lore.kernel.org (Postfix) with ESMTP id 78B286188F8 for ; Fri, 20 Nov 2026 11:40:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 ARC-Seal: i=3; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1795174858; b=T624HbWO9vl1A3nEJF/HvtzA5LVUwPS/lPf2oe/qHYcNnLNlw55YsTWzZRfLnhwlbPun fuObwq5WnLBQI4uMtYJFtHPeEJOonEaw/MAqhoycqLdw6D5+nzWw71XUleVOeLrnmutRw wfqy0ocC+RqLFeYFuk6+Gi303FkQKzIpxoe+GoU1A2696bSLtGlGnpBW/XTHG/b6Oe67a Pi57+lB7XX4e8IdbDDceslCwidK4BNiTjvGasQhpFCVCUbO6sMPJ0KkOhL/+pM7gql1id pXFF3SAUGgHKHAbau7kOlEF5xvFX9ijmO0pMLRlNsMXMAy3eOeUhlc+U/bW/CfdXbgw== ARC-Message-Signature: i=3; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795174858; h=X-Original-To:Received:Received:DKIM-Signature:Received:From:Date: Subject:X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe: List-Unsubscribe:List-Owner:Precedence: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=5sTfjmvRmInRg9bzSas7Pj5tLY1aYw/Q3j6D0qSG5DA=; b=4pUaWVbfxeTOw49oL0C42hzBpL3VyixsouMc/UiPw4F7BLvMu3huqUjHy6bVk/k353SR KeJFDx4tGlwv3aalXzv11oFJ5KfxXdC+OENLcjaNEraVyfBdThSTOHSkcMIbS3xAXBFdR PiRVrjBLRGJbGcYL1/78CK8iMi7jjxwy4QeK2++A2uzaw31Pq/xu9+YNlDv/vrF/ti/4D FBLKo6EQCFfyWRWksyO2Z7mnpimGeBR9mNbgL+JQdM+vYQoOSPBbLDU/l/rOy+pbuvC2b n7VskrAQy/wLRh7KueupIGwtEnDE5ablUKgHNZG9npY5XVJsG9IdsIwzgi982yNS/uA== ARC-Authentication-Results: i=3; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=R24ohYu5; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5CF40606A335; Fri, 20 Nov 2026 11:40:58 +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=R24ohYu5 X-Original-To: linux-sunxi@lists.linux.dev 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=1795174858; b=PLKhOfwb2hKyh4Tq65uYRSfLnnxAlr8b0ynrRdgQS5huwaxtdsiWZKdIdG+OGzchQRYB IwudBPC1U4eueTmOQSp4Zs3ro5p7A5IQRplCFu9wCMXQikWxZwJermlhok0cvlaHTcIMo 0DKA0hJiv68eKI/m0M+8b+MDalE6hXkD6Xj4CyN2FRsXDlFk2BkK30zO6UYazBIfzoeoV NaqQJOABPyFGUY3i0cnjlXxtzpXiP+0bRFX4JL+geD9itIkNCdZyU1oi70pI9L6ZvQ6PJ ihO9QaYUaE3nWNpCL1KX4BS3aTOQipdYvy8sTTFdDNfmwRz5U2Xto+3D4y2WKJ4Nfrw== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795174858; 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=5sTfjmvRmInRg9bzSas7Pj5tLY1aYw/Q3j6D0qSG5DA=; b=11xVhuoRyjRk3yVsPqVprpujO68vxmOjfY8XCwHCeRtdvc/iyv0o34v68REkwK0SctiJ 1Rcz9zXyCCfwk5xfB18k32PxdXP/rnqexnf3McHoTGpnCBHPDmoMrSyeDfVTu3s+6zf8p nE4vi+XULMFfTRS1oQXC3jc2KYVjIZwVpP2DSfIgU0pAmKhCRFuCChD8i/vhiq5xWR9E5 YY38Jes8F/HNrCrO+9iydjrJFBGRekI9TfcdWEaRfoe8v7gBmpa+x6Z2LD9L+D5ClWQkl uGwfdJ0pH/SZwQQtA2M1LfycupT+MCf5+KRhOyxH1flmoXNH25irB1fa3vfket87J2Q== 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=R24ohYu5; 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 3AED6606A32C; Fri, 20 Nov 2026 11:40:58 +0000 (UTC) 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=1795174857; b=fUGt+OKQRNKz/1th9wppEZt1u8YXemp90wMSR9TauROKSI9EWd19ntEayufc3xRf0wkY niFaACZZlBSUUSrUYdNqf3F3odmywYpf0pobgsF6PotoQjRfT75orYLfWeiY1MHb0XpzX 2Cr3Wx69TveAvWzUDkZl0G72T7i/M9k6tnrvGgZZQfkFnvvDjmS8W4b+zuqHjLbAUX8al 9eBAvoWOcn1TnD/XAi2FRn+IgJV0psCwaPEqijmNF9tnotAXv8aVUd0z4pCfucTMO2V6/ 9t524WrG3VJPGMmLoctGyhrtEZ/hBW+CBwF+VCyP5APO+5PKX7PLALxvlsDPpW07f1A== ARC-Message-Signature: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; c=relaxed/relaxed; t=1795174857; 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=5sTfjmvRmInRg9bzSas7Pj5tLY1aYw/Q3j6D0qSG5DA=; b=o41U0kZrcYis4PmfFam5gh0uK1m+Of+zV8EMIQhpL3DVVKPYuDLMXCb2mrPeWotGtg3j RrMKELRUMSj3IevzY9tDjUgy5BrYJdb3s9UlkCkgvUkC/7mfS0bhN7HZWQO3kic0A+VxS Q8wB8iCgBigBH3JKu1IJjVOHxtNK6g7cR4a8U0Juh8uQY3j+gaZ6o3/xf9Wd99ISNY/Gy 7k1x4pczKWcKQ2VMiaS65kITtjdZTdSmGq79yCexqBFGk+W5p2SacfkxwHGJ2nh8TphxM PAL9l96Bi3OKJHSv2bqniBekwBgzKdPhaLXkdXkM0CsopcjmZuCVUOjVvlxoKcbv3tw== 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 352CB1F000D8; Fri, 20 Nov 2026 11:40:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795174857; bh=5sTfjmvRmInRg9bzSas7Pj5tLY1aYw/Q3j6D0qSG5DA=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To; b=R24ohYu5kb/29/Mjxeu6qbnW+AxltB3RBuDFqYc9cz9O+2PUIVz+CW8SfGWTA7I7p 3Wvp0HRdKK2OnxhUZBSS6yM8MPtMHQByDGg8vqUsjuOGdkqR/h19QTHdNoilLCCckA xMGl9f94+TSatX/2i/T9/i+zzOoULO0PIt+N9DUF5750Ga18xe6l6/cuOvGUz6vE30 VKdt/DWsqNxI3g4V5LX6wujxEW0uR7EOLyPd9ZVACsJtbd/U718LYKEgB8CCDVdGqn /0VoLij2eP/LfcNMdBywNI9flmQELRS1sBD9/sAH8JHc7598UXhxIpEBvtuvwS8XnV Ni3sY3SyswH9Q== Received: from nexus.subspace.kernel.org (localhost [IPv6:::1]) by lkml.kernel.org (Postfix) with ESMTP id C039E4986F; Fri, 20 Nov 2026 11:40:46 +0000 (UTC) From: Ivan Pfarher via B4 Relay Date: Fri, 20 Nov 2026 12:40:47 +0100 Subject: [PATCH 3/4] arm64: dts: allwinner: h5: orangepi-zero-plus2: Fix USB peripheral mode 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 Message-Id: <20261120-orangepi-zero-plus2-fixes-v1-3-ecd792189f27@gmail.com> References: <20261120-orangepi-zero-plus2-fixes-v1-0-ecd792189f27@gmail.com> In-Reply-To: <20261120-orangepi-zero-plus2-fixes-v1-0-ecd792189f27@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, Ivan Pfarher X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1795174845; l=2079; i=ipfarher@gmail.com; s=20261120; h=from:subject:message-id; bh=xNp8GjP59av7t0jD0DKAR+qLGNBv0iVBKlMlHOJX/bQ=; b=LYdIeAg0Z6D9hFAlocH2PSZCyaBHHy6WLerO7QNpZyL8gPTX5MGhRlVA/p/PhMwtgBawPihCa rdmDDcSs/jAA4Ylcsg0pIyPD2nV8r7aCpwj4HNwPn8qfRJX8icDs9kq 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 X-Rspamd-Server: rspamd-worker-8404 X-Spamd-Result: default: False [3.31 / 15.00]; RBL_SENDERSCORE(2.00)[172.232.135.74:from]; SUSPICIOUS_RECIPS(1.50)[]; MAILLIST(-0.18)[generic]; MIME_GOOD(-0.10)[text/plain]; BAD_REP_POLICIES(0.10)[]; HAS_LIST_UNSUB(-0.01)[]; FROM_HAS_DN(0.00)[]; FORGED_SENDER_MAILLIST(0.00)[]; R_DKIM_ALLOW(0.00)[kernel.org:s=k20260515]; TAGGED_RCPT(0.00)[dt]; FREEMAIL_REPLYTO(0.00)[gmail.com]; REPLYTO_DOM_NEQ_FROM_DOM(0.00)[]; RCVD_COUNT_FIVE(0.00)[6]; FREEMAIL_CC(0.00)[vger.kernel.org,lists.infradead.org,lists.linux.dev,gmail.com]; DBL_BLOCKED_OPENRESOLVER(0.00)[sto.lore.kernel.org:helo,sto.lore.kernel.org:rdns]; HAS_REPLYTO(0.00)[ipfarher@gmail.com]; FROM_NEQ_ENVFROM(0.00)[devnull@kernel.org,linux-sunxi@lists.linux.dev]; TAGGED_FROM(0.00)[bounces-27913-noreply=patchwork.local,ipfarher.gmail.com]; DKIM_TRACE(0.00)[kernel.org:+]; DMARC_POLICY_ALLOW(0.00)[kernel.org,quarantine]; R_SPF_ALLOW(0.00)[+ip4:172.232.135.74]; RECEIVED_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[100.77.114.92:received,100.80.115.77:received,100.103.45.18:received]; TO_DN_SOME(0.00)[]; ARC_ALLOW(0.00)[kernel.org:s=arc20260519:i=3]; RCPT_COUNT_SEVEN(0.00)[10]; FORGED_RECIPIENTS_MAILLIST(0.00)[]; ASN(0.00)[asn:63949, ipnet:172.232.128.0/19, country:SG]; FREEMAIL_TO(0.00)[kernel.org,gmail.com,sholland.org]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; RBL_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[172.232.135.74:from] X-Rspamd-Queue-Id: 108581C5E32 X-MORS-Enabled: yes X-MORS-DOMAIN: patchwork.local X-MORS-HOSTING: hosting172546 X-MORS-USER: hosting172546 X-getmail-retrieved-from-mailbox: INBOX 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, usb_add_hcd() asks the shared PHY for host mode (since commit e671765e521c ("usb: core: Try generic PHY_MODE_USB_HOST if usb_phy_roothub_set_mode fails")), and phy-sun4i-usb switches PHY 0 to host ("Changing dr_mode to 1"). MUSB then stays in a_wait_vrise, the UDC stays "not attached", and a gadget never shows up on the host. The port cannot work as a host on this board anyway, so drop EHCI0 and OHCI0. Tested on an Orange Pi Zero Plus2 (H5) running Linux 6.6.160 with this change applied: g_cdc enumerates on the PC (CDC ECM + ACM), the UDC state is "configured" and MUSB is in b_peripheral. Build-tested only against current mainline. The H3 version of the board (sun8i-h3-orangepi-zero-plus2.dts) has the same setup from the same commit but is not changed here, as it could not be tested. 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 Reviewed-by: Chen-Yu Tsai --- arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-zero-plus2.dts | 8 -------- 1 file changed, 8 deletions(-) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-zero-plus2.dts b/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-zero-plus2.dts index 5697251b9..892723b46 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-zero-plus2.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-zero-plus2.dts @@ -66,10 +66,6 @@ status = "okay"; }; -&ehci0 { - status = "okay"; -}; - &hdmi { status = "okay"; }; @@ -115,10 +111,6 @@ status = "okay"; }; -&ohci0 { - status = "okay"; -}; - &uart0 { pinctrl-names = "default"; pinctrl-0 = <&uart0_pa_pins>; From patchwork Fri Nov 20 11:40:48 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ivan Pfarher via B4 Relay X-Patchwork-Id: 4193 Return-Path: X-Original-To: noreply@patchwork.local Delivered-To: noreply@patchwork.local Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mxe881.netcup.net (Postfix) with ESMTPS id 2218E1C5E35 for ; Fri, 20 Nov 2026 12:41:01 +0100 (CET) Authentication-Results: mxe881; dkim=pass header.d=kernel.org; spf=pass (sender IP is 172.234.253.10) smtp.mailfrom=linux-sunxi+bounces-27912-noreply=patchwork.local@lists.linux.dev smtp.helo=sea.lore.kernel.org Received-SPF: pass (mxe881: domain of lists.linux.dev designates 172.234.253.10 as permitted sender) client-ip=172.234.253.10; envelope-from=linux-sunxi+bounces-27912-noreply=patchwork.local@lists.linux.dev; helo=sea.lore.kernel.org; Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sea.lore.kernel.org (Postfix) with ESMTP id 8AC2B1A18EE for ; Fri, 20 Nov 2026 11:40:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 ARC-Seal: i=3; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1795174857; b=MQ4n9ivlV9GCrfbcVycgxAnkgjpTM1qZJxN5akigISiAKz8nbX044GUUHmMsjC/kUtIG ickWsetgRgDx5SIZju2kK0+6IKctWFgc8rXt4w4BfuEUEfMboYU1eNTaLS9MQKCnSiaD9 9tBAbHaT3Vmb0TT96DWuufou2Un0LtWzM+UmVpCJdkBC9U7Yq2WOTpoir/YTjHwSq62yp 2K7lncYC4WUgx23yLhQaJRhmeLH3XkkGzmS/Ig44+z8EW4iqYnwB3Q4h5EGPF2Rx8lIwt o0mPLsxbXWYjCzpodtYwvgyDDgh79q3X69GGvL9nFa9C1tnbK6y00H9FwJX4Zw9z3fg== ARC-Message-Signature: i=3; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795174857; h=X-Original-To:Received:Received:DKIM-Signature:Received:From:Date: Subject:X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe: List-Unsubscribe:List-Owner:Precedence: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=XCgMVtCDlxDzreExdU7WeSN8TnmsA03m5m2Y8AQaSmg=; b=0w2SawFvT7mqtEOgFCwJr1R2qqotQGMb9KO3VNF5tua9TWvK0dacn+zmyeUS6WhrNfpY xGkLhiRk9KGi/SwC/3VipeUmzdkQQCgTZPobmW1rWg38uUD0ERYjs1jHFyRcXBpPv6/Kn IKqZj1DEDvCqhO5qsD/bMdB1XDOsM5MBwEcfebTF09DCd3tQri8GFNUPFLXM59+1q7hwd /aSVqktFp2j2UTaT23yeumlP+xRZ2TZboYfKl+jOJgVw5wUMFEglzulOGtBzhm4qOFY38 2lUue6IzvV4Iu1veC+NAqjB56UCPbFYrqiBgtIPBAHnhFeJqdPenCjSHdsUf+C5GsmQ== ARC-Authentication-Results: i=3; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b="AkX/FZmu"; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8B6A1606A331; Fri, 20 Nov 2026 11:40:57 +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=AkX/FZmu X-Original-To: linux-sunxi@lists.linux.dev 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=1795174857; b=QDWfQNDvg1OtXgwrGbYUyIh3B7fwRTDfE60N2d2xPrhk4XuBgR5oUMcEVg9TugCWO5Wf 2jB7DTKwwvV49s8j20QdwvmDTpdXWbeJV1AfQDjuyqXUdEQFJ0fUanE6A93s+GBMzCviG Zcb8UFSvXL2U7yCKeE3Jui9fX6LtnUACg7WNU5eVw+G1zRuLpwsddexcAlQopHcJ4eHZP CKGDe2PIXTxrV0KZjWnQBFvsUra6lRk+tcAfYblMERYMkz1IAxfS/ZHCVhJnGdmMDgf5U /c0huAvcK4fGKPFqpuhUeR4OYzIrfXh/ms5aahyxfmreTBESb2gYUIlPwfGEZ9RCOGQ== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795174857; 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=XCgMVtCDlxDzreExdU7WeSN8TnmsA03m5m2Y8AQaSmg=; b=G6UcppGODkIAUfC4Ornx9JQk1mzmGBGS/kp7/F/tCVETcz95OiIf2QtFs3cj5yybsACD U4gdv0pfWuA9m9ln/4cTiSNckF6+hvbhkesePJRvFfGHs0QF4kXA3tqJGeRryJ8uS+1Ne tzuMTZCzfYKhGEGXcsXcD8IK+mDkPppswQMAiPiwncEr7yFCvT5yjsUWzGLw1rUzeOmUe UMcUNDEhuJCcyOdwXwokMIU2Zua+rDryAQBf5cIqRzwNT6v5Af1gnH+rtCrNsjq1344aA jBXMVd0C2tUJtQGyj/9UmSmlhC/C1pzByKt5MxxEbAj12SBp6lNN3fgG9aMlJs9lCWA== 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="AkX/FZmu"; 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 68A0F606A32C; Fri, 20 Nov 2026 11:40:57 +0000 (UTC) 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=1795174857; b=cVlhjlDUiXPArxlJjJgD4tLxoBLxV/zdP4fERqf5iZ8VjWWdx+beT5VQwmWlwz79H/sA ecpmEEzQxSmAy6+kNJlkmYG7NYjorqwSUpN4csOM1tJX5bPQX/gA/qNfRRDBfbzWKSPB+ erCJ+fqWoIRBycZcik+n0qEDVzyZpa30gxRrFcWLI/FKGCXIyOGpcOSdq+9MFyPKHO/+R UqfyntVaPpQEHg77QUKUACDV+tqoRhc1G+Osuks0PGxQR3LthJQg8a5FGvDdnXpXkOuKg RwOAQusDayJ9zCgmfWKa24a1tvx7HzK9uQvLMWcegqhMW5oVGBcikBPvirap3FytXGA== ARC-Message-Signature: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; c=relaxed/relaxed; t=1795174857; 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=XCgMVtCDlxDzreExdU7WeSN8TnmsA03m5m2Y8AQaSmg=; b=F27dWuSDPSJgf0FjnV+6qktOtXQDapzHy5k0ELjHSjpPhQYRwpbRZbREcfw6soPAAUn9 81NNtDQOavomPosafW756ZyC4C7ETyER9FoHwFCzAjTIAYKFf8b4F5q2w1410c3wWmsrA 0XbqNRf5ZpEH88iapjPVMUY7vJA8dda6ZRvg8c4KwR3ZSJb2ynaQ4Z5yGIiVydCAWxozY kRRsHrfyqM+AdSD7w1R/JQmFzS4ljRPVvdaxoIt9MDCYc+ZfJaKuOBnbBZmW8Tifu69Am WaUmFM/hTajqPTvqEmnJFYXBrx7bSseJgiyZ6dVUS+tSZa5w0B49us7TWqvb686C0bA== 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 4E03A1F000E0; Fri, 20 Nov 2026 11:40:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795174857; bh=XCgMVtCDlxDzreExdU7WeSN8TnmsA03m5m2Y8AQaSmg=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To; b=AkX/FZmuj6MbRWrYIrRjTYR+6/rthTCfjVyylnpmZWOKpqnQ3p/ymM8ZlgZWTKjPu /hAza9gcF4SiQ2CuD8I5jyD0tsqy+m7qne9kDY+7dVuxuviNMWUu3U+qUevwt+g+xQ fvoY+/xvC8HmN31Mi2SsJkRpc7SinZEDxV1jLZf2FD+wpp1IdA0knG4G4JVxW5t42f Ii+E2SfTaZXKMTSCZXXM7pcI/ZL2WhAEJM2VwrP1XfD+4DNIXkFyxUUJGFL9n2Xg2g nSlfi+SwNqee6bw9trZEQ4ORJ4Y7eqoFUArgOqIvY31NpNl2tcTIIN/IoZhnGOukev wLjDGmchO2z0Q== Received: from nexus.subspace.kernel.org (localhost [IPv6:::1]) by lkml.kernel.org (Postfix) with ESMTP id D8A1C49873; Fri, 20 Nov 2026 11:40:46 +0000 (UTC) From: Ivan Pfarher via B4 Relay Date: Fri, 20 Nov 2026 12:40:48 +0100 Subject: [PATCH 4/4] arm64: dts: allwinner: h5: orangepi-zero-plus2: Add MMC aliases 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 Message-Id: <20261120-orangepi-zero-plus2-fixes-v1-4-ecd792189f27@gmail.com> References: <20261120-orangepi-zero-plus2-fixes-v1-0-ecd792189f27@gmail.com> In-Reply-To: <20261120-orangepi-zero-plus2-fixes-v1-0-ecd792189f27@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, Ivan Pfarher X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1795174845; l=1496; i=ipfarher@gmail.com; s=20261120; h=from:subject:message-id; bh=9aWwwAzsx9U2iQUbLdf6klaNBeIN6Kxth853YqVu9o0=; b=8oBh1A0f4Jl18/rO4qnX4tVCjQH3AZVUPMYNPiUjNYReBhlAIRtNGVpHJ47ipRRd4WcRtZa/D j/DnSy61jIoBYnN+mht9zy/OcJhtwYXLYuVLWog2LE+kyyHdAotZk8L 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 X-Rspamd-Server: rspamd-worker-8404 X-Spamd-Result: default: False [3.31 / 15.00]; RBL_SENDERSCORE(2.00)[172.234.253.10:from]; SUSPICIOUS_RECIPS(1.50)[]; MAILLIST(-0.18)[generic]; MIME_GOOD(-0.10)[text/plain]; BAD_REP_POLICIES(0.10)[]; HAS_LIST_UNSUB(-0.01)[]; FORGED_SENDER_MAILLIST(0.00)[]; FROM_HAS_DN(0.00)[]; R_DKIM_ALLOW(0.00)[kernel.org:s=k20260515]; TAGGED_RCPT(0.00)[dt]; FREEMAIL_REPLYTO(0.00)[gmail.com]; RCVD_COUNT_FIVE(0.00)[6]; FREEMAIL_CC(0.00)[vger.kernel.org,lists.infradead.org,lists.linux.dev,gmail.com]; DBL_BLOCKED_OPENRESOLVER(0.00)[sea.lore.kernel.org:helo,sea.lore.kernel.org:rdns]; REPLYTO_DOM_NEQ_FROM_DOM(0.00)[]; HAS_REPLYTO(0.00)[ipfarher@gmail.com]; FROM_NEQ_ENVFROM(0.00)[devnull@kernel.org,linux-sunxi@lists.linux.dev]; TAGGED_FROM(0.00)[bounces-27912-noreply=patchwork.local,ipfarher.gmail.com]; DKIM_TRACE(0.00)[kernel.org:+]; DMARC_POLICY_ALLOW(0.00)[kernel.org,quarantine]; R_SPF_ALLOW(0.00)[+ip4:172.234.253.10]; RECEIVED_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[100.77.114.92:received,100.80.115.77:received,100.103.45.18:received]; TO_DN_SOME(0.00)[]; ARC_ALLOW(0.00)[kernel.org:s=arc20260519:i=3]; RCPT_COUNT_SEVEN(0.00)[10]; FORGED_RECIPIENTS_MAILLIST(0.00)[]; ASN(0.00)[asn:63949, ipnet:172.234.224.0/19, country:SG]; FREEMAIL_TO(0.00)[kernel.org,gmail.com,sholland.org]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; RBL_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[172.234.253.10:from] X-Rspamd-Queue-Id: 2218E1C5E35 X-MORS-Enabled: yes X-MORS-DOMAIN: patchwork.local X-MORS-HOSTING: hosting172546 X-MORS-USER: hosting172546 X-getmail-retrieved-from-mailbox: INBOX From: Ivan Pfarher sunxi-mmc probes asynchronously, so without aliases the microSD card, the SDIO WiFi and the eMMC get their mmc numbers in probe order. A boot script using root=/dev/mmcblk0p2 for the microSD card can then end up on the eMMC instead. Add aliases so that the microSD card is always mmc0 and the eMMC mmc1, matching the numbering U-Boot uses on this board, with the SDIO WiFi as mmc2. Tested on an Orange Pi Zero Plus2 (H5) running Linux 6.6.160 with this change applied: the microSD card is mmcblk0 and the eMMC mmcblk1, booting from either. 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. Signed-off-by: Ivan Pfarher --- arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-zero-plus2.dts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-zero-plus2.dts b/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-zero-plus2.dts index 892723b46..4a26863e8 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-zero-plus2.dts +++ b/arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-zero-plus2.dts @@ -13,6 +13,9 @@ compatible = "xunlong,orangepi-zero-plus2", "allwinner,sun50i-h5"; aliases { + mmc0 = &mmc0; + mmc1 = &mmc2; + mmc2 = &mmc1; serial0 = &uart0; };