From 2a78d5130678405138b0953c783f94aa519ad25f Mon Sep 17 00:00:00 2001 From: tonymac32 Date: Sun, 14 Nov 2021 19:13:54 -0500 Subject: [PATCH] NanoPi K2 add BT support NanoPi K2 has built-in wifi/BT, add BT DT entry. Firmware has been added to armbian/firmware repo --- .../board_nanopi-k2_add_bluetooth.patch | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 patch/kernel/archive/meson64-5.10/board_nanopi-k2_add_bluetooth.patch diff --git a/patch/kernel/archive/meson64-5.10/board_nanopi-k2_add_bluetooth.patch b/patch/kernel/archive/meson64-5.10/board_nanopi-k2_add_bluetooth.patch new file mode 100644 index 0000000000..c3f6c6ac9c --- /dev/null +++ b/patch/kernel/archive/meson64-5.10/board_nanopi-k2_add_bluetooth.patch @@ -0,0 +1,39 @@ +From 34102b1e56e764f185c2852d7dae4832f541fc56 Mon Sep 17 00:00:00 2001 +From: tonymac32 +Date: Sun, 14 Nov 2021 18:43:37 -0500 +Subject: [PATCH] NanoPi K2 Enable Bluetooth + +Signed-off-by: tonymac32 +--- + .../arm64/boot/dts/amlogic/meson-gxbb-nanopi-k2.dts | 13 ++++++++++++- + 1 file changed, 12 insertions(+), 1 deletion(-) + +diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb-nanopi-k2.dts b/arch/arm64/boot/dts/amlogic/meson-gxbb-nanopi-k2.dts +index 19706c7d7..3b2a57544 100644 +--- a/arch/arm64/boot/dts/amlogic/meson-gxbb-nanopi-k2.dts ++++ b/arch/arm64/boot/dts/amlogic/meson-gxbb-nanopi-k2.dts +@@ -409,9 +409,20 @@ &uart_AO { + + /* Bluetooth on AP6212 */ + &uart_A { +- status = "disabled"; ++ status = "okay"; + pinctrl-0 = <&uart_a_pins>, <&uart_a_cts_rts_pins>; ++ uart-has-rtscts; + pinctrl-names = "default"; ++ ++ 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 */ +-- +Created with Armbian build tools https://github.com/armbian/build +