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 2117F606A33B for ; Thu, 3 Dec 2026 09:04:33 +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=dwB7U3fF; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=AOKNLPva DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Reply-To:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: Content-Transfer-Encoding:Cc:To:In-Reply-To:References:Message-Id: Content-Type:MIME-Version:Subject:Date:From:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Unsubscribe-Post:List-Owner; bh=4IV5G/aVMfZiTbyNNANqQ3pG9FJeD8aRgyQiLDUXO0M=; b=dwB7U3fFUwhxEfb3zGdvrOPkcn w3xZfhAHHDSth7cCV0Jy2brGfR1Z3HabamF8Sd7u9a77Engh36dHf4kIEHfghm/GI0H/5u1B9KC+a i2CLvWsGsrnCKDxBcmqFddoB4b/6MoDk+syVNBECRyX1jRqE8xE7HN9xfOFbn67rU5u6eI+BXMie2 uahVNMKJRLwAShXoXKIo4gsFjqF+S1qFPgolAM2OIIbWGHkAAPGRZMC5OHSW2X0R6qaY4juLInFcy to1mq8F6b1qtFEaTfV8TiqCk5N8BQQ8SkIrfjzMi95YrI0MgZy++9wAf/N2UyWR/wLGc7ERJZ/vey caJuykiA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZ2jn-0000000Dw1Z-0AH0; Thu, 03 Dec 2026 09:04:23 +0000 Received: from sea.source.kernel.org ([172.234.252.31]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xZ2jk-0000000Dw09-0979 for linux-arm-kernel@lists.infradead.org; Thu, 03 Dec 2026 09:04:20 +0000 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) by sea.source.kernel.org (Postfix) with ESMTP id C43DA45371; Thu, 3 Dec 2026 09:04:19 +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=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-Archived-By: 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 Content-Transfer-Encoding: 7bit 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: , Reply-To: ipfarher@gmail.com Sender: "linux-arm-kernel" X-Spam-Status: No, score=-18.9 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 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