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=45VfcfCyQchig8EIbNWfW6a0ipug56f2zPsouF/mHMXUiKdrp6OR4qIHFMj6ZD5GeSvf 6U9Zuv/SN3zqKIHCcFrGLtHBkjxa06T7YhD5vLolqHP80vkOjlAoqoHUrSwcUSkRbnmDk lbmq5OPdfLU9n5qkuSLAowMnQosbm9KkDrKIL3aWR/EOpMg4un8hxFwd+lgHx+wxyLgxM dXCCea2CH6GW3epaBug5t37Ms3LoGXFKtxJZRBaTmSlh3Y594aTdL/ITQ1saWeTU9pmQ6 n+awQ44GHhHP3wZcl7pT925gWGhH7fZTaPhxRsWC93CyrKfiD632GgTniYUm5yVPOKA== 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=4IV5G/aVMfZiTbyNNANqQ3pG9FJeD8aRgyQiLDUXO0M=; b=sAi9DSpXBBOHH6El4ttk9GGe/ejP/FMTI6BzLOji2tF3yxmlZdRAOyT2sH//uv1H8lTy lf72iuq0NZN1XPPdED2ICxjJysEGhRB0twcMzyYBRukjW65dU33krH1njuBs8ezH5nsjg WgwO/iERKYy+kJUYWPYx56gdFTWY5lAtzWeixwbZJZl41N+yPQwnh+Eo5lol1MMH/r3P+ euMstOGKc9UOrQm1J0zGnzBEJqe97Zp/SlQ0YvwcmW+/hBmnyIFdgJuyfDo3ke0JQLgax D8VBjiwb/ylN7NJotZiYgIhaw2Twb0wKVD3boq5eIvcivs/IFguGZ3rs5WH2Ebu0N/g== 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=AOKNLPva; 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 CA0EA606A687; 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=AOKNLPva 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=mrpQJ0Ugi07b+lWcxMJ71HCcrRTIYyu19Gdwy9QuXrlQgGUK48/399tEfGy+EWVwqN88 3Nl7QhvWNV8NZV6tl5up8/JSVizdJDOePe8AsD3FwIhKUCgzSLa42bGECqJ1Bmu42mQme lZpFYqnyPh28fp7TZ2TSYEiGkZGGsehQGoxkHPBmRMo+4Ouxhe5/KdnnNSY00dFQROIaq /W1bZszTWbLRWT1zjSYh+YwI5yyjnV4sn/FLh4w+qONCSWrD0+yv3dkSWTJ+G6fVVICcN s5iZEyriX4VMbdBzP6GVVdlEfYcOFfBp/18EJje+UzQRzv4IL60QqIrwGSk5xZZ8bdQ== 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=4IV5G/aVMfZiTbyNNANqQ3pG9FJeD8aRgyQiLDUXO0M=; b=wjpvX+79JdWzJeNh065R5aNeQS5F+MlQwKOWH4qYZKBRUDvzJHKb2088UA/TnwaHS3lN k85x86HexYxp2GkWzcnSiptazWf/SIJq1anZrTMHAWeqqykWWABTcON9XsFJTn8ohz4XF RppLwajLDeWM06IuCRxdfoUWgGhdHNiURCBpYcmjpSbG2t8zQ5XuAS7Z1zoTcov4NHXvd XIXie0ek/kO27MaRTANB1F+Piyh1vrBA96FxZsPOUXQY+JGOBLrwin4fL5e6UqUqPGoaW HvBCgFlmj2IrWXdIdNTNeEsrv/mL5bFfAP2eXICwpop++/pOS66vY8auLidr3FOp4Jg== 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 3B2571F000C1; 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=4IV5G/aVMfZiTbyNNANqQ3pG9FJeD8aRgyQiLDUXO0M=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To; b=AOKNLPvadZCAMXhttkN36BE5NF1HYfujBziWPvRVl30ZCprPYdBzyZTz+DXOcKdz5 89LuiR0ZXsSlBQ8Bdg5REiMAdWpdIlkX5xPjU9zAretWL3rgOX6zZ/QN56rZuhmzM/ cpGAPS2aSlqHAQxScovHcjrLNzd0cx8meuYInSl34Q7Kco3+aCDOQyLXys2ZDA4CD2 02cKABk5QH7rDoFOmcAd7aIalLkF8A4mzG6gACZg8drS1ius0wAD8wloK9p18+MzOm Bpn2YDB7EYjFvTrXTI1+rm0HJGRTiv7jRZmhl4ct+jIRjgF2sGav8JnZgpdtqxWjV3 1uwN6RVuJoFEg== Received: from nexus.subspace.kernel.org (localhost [IPv6:::1]) by lkml.kernel.org (Postfix) with ESMTP id B9A494F896; Thu, 3 Dec 2026 09:04:16 +0000 (UTC) From: Ivan Pfarher via B4 Relay Date: Thu, 03 Dec 2026 10:04:15 +0100 Subject: [PATCH v2 1/4] ARM: dts: allwinner: orangepi-zero-plus2: Add LPO clock for AP6212 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-Type: text/plain; charset="utf-8" Message-Id: <20261203-orangepi-zero-plus2-fixes-v2-1-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=1903; i=ipfarher@gmail.com; s=20261120; h=from:subject:message-id; bh=i1I+BTDlU/TRArK2ZIJEXHYlvw6ACAcFMMhUOCCU2Ow=; b=l2AYNm1r1DzMMV51GlntQWPaFN5eSB6eogv0ukXwp0ne0HaOInZGDkqAfbzlzGtrhEbSIIQkB 8GE2PGRxETmAf5bDG0W/L/apGH3Zl7yj913+pPavvShgXPH4Z336Hb9 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 H3 version of the Orange Pi Zero Plus2 is the same board as the H5 version, with the same AP6212 WiFi/BT module. Its LPO input is wired to the RTC clock output (net AP-CK32KO from X32KFOUT in the schematic), but nothing in the device tree references that clock, so it is disabled as unused during late boot. Without the LPO, the Bluetooth ROM answers HCI_Reset and nothing else, so the controller can never be brought up. Reference the clock from the WiFi power sequence, as done for the H5 version. Not tested on the H3 variant. The same change was tested on the H5 variant of the board (Linux 6.6.160), where it makes the Bluetooth controller answer 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: cd3f03df13d4 ("ARM: dts: sun8i: Add initial Orangepi Zero Plus 2 H3 support") Signed-off-by: Ivan Pfarher --- arch/arm/boot/dts/allwinner/sun8i-h3-orangepi-zero-plus2.dts | 3 +++ 1 file changed, 3 insertions(+) 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 97a3565ac..852723e94 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 @@ -45,6 +45,7 @@ #include "sun8i-h3.dtsi" +#include #include / { @@ -94,6 +95,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>; }; -- 2.43.0