[PATCH 2/4] arm64: dts: allwinner: h5: orangepi-zero-plus2: Add AP6212 Bluetooth

Chen-Yu Tsai wens at kernel.org
Fri Nov 20 07:29:41 PST 2026


On Fri, Nov 20, 2026 at 7:40 PM Ivan Pfarher via B4 Relay
<devnull+ipfarher.gmail.com at kernel.org> wrote:
>
> From: Ivan Pfarher <ipfarher at gmail.com>
>
> 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.

The pins are called BT_WAKE and BT_HOST_WAKE. The lines are labeled
BT-WAKE-AP and AP-WAKE-BT, which go to PL2 and PA20, respectively.

Please add them.

> 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 <ipfarher at gmail.com>
> ---
>  .../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 = <&reg_vcc3v3>;
> +               vddio-supply = <&reg_vcc3v3>;
> +               shutdown-gpios = <&pio 0 10 GPIO_ACTIVE_HIGH>; /* PA10 */
> +       };
>  };
>
>  &usb_otg {
>
> --
> 2.43.0
>
>



More information about the linux-arm-kernel mailing list