AP6210/AP6212/AP6330 Bluetooth Support for Allwinner SBCs


(bpi team) #1

wens recently spent some time figuring out Bluetooth support within the kernel using device tree and serdev for various Allwinner SoC based SBCs using AMPAK modules. These modules are based on chips from Broadcom’s Wireless IoT division, now Cypress. Previously we could already enable Bluetooth using a combination of userspace utilities and sysfs GPIO toggling. However this was quite fragile, depending on other devices (WiFi) enabling the required clocks and regulators. Having Bluetooth enabled with kernel drivers handling power sequencing and firmware would simplify userspace by not having every user hunt down the required “magical” scripts.

This is now achievable using the new serdev (Serial Device) subsystem, which allows us to describe and bind slave devices to UARTs. A Bluetooth device node is attached to the UART device node, describing clocks, regulators, and GPIO lines. The kernel driver would do all the power sequencing and also take care of uploading the firmware and registering the Bluetooth HCI device.

The patch series was developed and tested on Cubietech and Bananapi SBCs, with AP6210, AP6212, and AP6330 modules.

https://www.spinics.net/lists/linux-bluetooth/msg77626.html


(bpi team) #2

more about wens hard work :


(bpi team) #3

[PATCH 5/5] DO NOT MERGE: ARM: dts: bananapi: Add Camera support

https://www.spinics.net/lists/arm-kernel/msg686862.html

[U-Boot,v2,0/5] sunxi: Add support for ALL-H3-CC H2+/H5 variants

https://patchwork.ozlabs.org/cover/906035/


(bpi team) #4

[PATCH v3 0/4] allwinner: a64: add SRAM controller / system control

https://www.spinics.net/lists/arm-kernel/msg658910.html

[PATCH net-next v2 00/15] ARM: sun8i: r40: Add Ethernet support

https://www.spinics.net/lists/arm-kernel/msg649795.html