Skip to contentSkip to conversation

arm64: dts: meson-gxbb: nanopi-k2: Enable Bluetooth

PATCH Applied Chen-Yu Tsai 2 participants 2 messages Jul 12, 2021 – Jul 26, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 arm64: dts: meson-gxbb: nanopi-k2: Enable Bluetooth

From: Chen-Yu Tsai <[email protected]>

The NanoPi K2 has a AP6212 WiFi+BT combo module. The WiFi portion is already enabled. The BT part is connected via UART and I2S.

Enable the UART and add a device node describing the Bluetooth portion of the module.

---
Changes since v2:
- dropped alias for uart_A
- added Martin's reviewed-by

Changes since v1:
- added uart-has-rtscts property
- added alias for uart_A

---
 .../arm64/boot/dts/amlogic/meson-gxbb-nanopi-k2.dts | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)
arch/arm64/boot/dts/amlogic/meson-gxbb-nanopi-k2.dts +12 -1
index 7273eed5292c..7d94160f5802 100644
@@ -385,9 +385,20 @@ &uart_AO {
 
 /* Bluetooth on AP6212 */
 &uart_A {
-	status = "disabled";
+	status = "okay";
 	pinctrl-0 = <&uart_a_pins>, <&uart_a_cts_rts_pins>;
 	pinctrl-names = "default";
+	uart-has-rtscts;
+
+	bluetooth {
+		compatible = "brcm,bcm43438-bt";
+		clocks = <&wifi_32k>;
+		clock-names = "lpo";
+		vbat-supply = <&vddio_ao3v3>;
+		vddio-supply = <&vddio_ao18>;
+		host-wakeup-gpios = <&gpio GPIOX_21 GPIO_ACTIVE_HIGH>;
+		shutdown-gpios = <&gpio GPIOX_20 GPIO_ACTIVE_HIGH>;
+	};
 };
 
 /* 40-pin CON1 */
Signature · 1 line
2.31.1
#1 lore raw

Hi,

Quoted 5 lines · Chen-Yu Tsai

The NanoPi K2 has a AP6212 WiFi+BT combo module. The WiFi portion is already enabled. The BT part is connected via UART and I2S.

Enable the UART and add a device node describing the Bluetooth portion of the module.

Thanks, Applied to https://git.kernel.org/pub/scm/linux/kernel/git/amlogic/linux.git (for-next)

[1/1] arm64: dts: meson-gxbb: nanopi-k2: Enable Bluetooth

      https://git.kernel.org/amlogic/c/46f2735c17d215fd76c54d7bfc4d7ca5ec206eb2
Signature · 1 line
Neil