[PATCH v2 1/4] ARM: dts: allwinner: orangepi-zero-plus2: Add LPO clock for AP6212

From: Ivan Pfarher via B4 Relay

Date: Thu Dec 03 2026 - 04:04:32 EST


From: Ivan Pfarher <ipfarher@xxxxxxxxx>

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 <ipfarher@xxxxxxxxx>
---
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 <dt-bindings/clock/sun6i-rtc.h>
#include <dt-bindings/gpio/gpio.h>

/ {
@@ -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