From: Yann Dirson <[email protected]>

Take the firmware from rbwifibt, as a compatible one does not seem to
be available in broadcom-bt-firmware.

Disclaimer: I have only been able to scan/pair with devices, I could
not establish a connection.  However, with the same board I've had the
same results with the board vendor's own FriendlyCore image.
---
 conf/machine/include/nanopi-m4.inc                    | 6 +++++-
 recipes-kernel/linux/files/bsp/rockchip/nanopi-m4.cfg | 6 ++++++
 2 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/conf/machine/include/nanopi-m4.inc 
b/conf/machine/include/nanopi-m4.inc
index cb27928..3bd5c97 100644
--- a/conf/machine/include/nanopi-m4.inc
+++ b/conf/machine/include/nanopi-m4.inc
@@ -3,7 +3,7 @@
 
 require rk3399.inc
 
-MACHINE_FEATURES += "usbhost serial wifi"
+MACHINE_FEATURES += "usbhost serial wifi bluetooth"
 
 KMACHINE = "nanopi-m4"
 KERNEL_DEVICETREE = "rockchip/rk3399-nanopi-m4.dtb"
@@ -26,3 +26,7 @@ SERIAL_CONSOLES = "1500000;ttyS2"
 
 # wifi firmware
 MACHINE_EXTRA_RRECOMMENDS += "linux-firmware-bcm4356"
+
+# bluetooth firmware
+#MACHINE_EXTRA_RRECOMMENDS += "broadcom-bt-firmware-bcm4356a2"
+MACHINE_EXTRA_RRECOMMENDS += "rkwifibt-firmware-ap6356-bt"
diff --git a/recipes-kernel/linux/files/bsp/rockchip/nanopi-m4.cfg 
b/recipes-kernel/linux/files/bsp/rockchip/nanopi-m4.cfg
index d42b744..d45e879 100644
--- a/recipes-kernel/linux/files/bsp/rockchip/nanopi-m4.cfg
+++ b/recipes-kernel/linux/files/bsp/rockchip/nanopi-m4.cfg
@@ -14,3 +14,9 @@ CONFIG_REALTEK_PHY=m
 CONFIG_WLAN_VENDOR_BROADCOM=y
 CONFIG_BRCMFMAC=m
 CONFIG_BRCMFMAC_SDIO=y
+
+# AP6356S BT
+CONFIG_BT_HCIUART=m
+CONFIG_SERIAL_DEV_BUS=y
+CONFIG_SERIAL_DEV_CTRL_TTYPORT=y
+CONFIG_BT_HCIUART_BCM=y
-- 
2.30.2

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#53542): https://lists.yoctoproject.org/g/yocto/message/53542
Mute This Topic: https://lists.yoctoproject.org/mt/82885040/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to