All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Yann Dirson" <yann.dirson@blade-group.com>
To: yocto@yoctoproject.org
Cc: twoerner@gmail.com, Yann Dirson <yann@blade-group.com>
Subject: [meta-rockchip][PATCH v7 6/6] WIP NanoPi-M4: activate BT support
Date: Mon, 17 May 2021 14:19:38 +0200	[thread overview]
Message-ID: <20210517121938.207004-7-yann@blade-group.com> (raw)
In-Reply-To: <20210517121938.207004-1-yann@blade-group.com>

From: Yann Dirson <yann@blade-group.com>

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


      parent reply	other threads:[~2021-05-17 12:20 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-17 12:19 [meta-rockchip][PATCH v7 0/6] kmeta BSP for nanopi-m4 Yann Dirson
2021-05-17 12:19 ` [meta-rockchip][PATCH v7 1/6] linux-yocto: add an initial NanoPi-M4 BSP Yann Dirson
2021-05-17 12:19 ` [meta-rockchip][PATCH v7 2/6] linux-yocto: add workaround to disable VOPL usage on HDMI Yann Dirson
2021-05-17 12:19 ` [meta-rockchip][PATCH v7 3/6] linux-firmware: import variables file for ap4356s firmware from armbian Yann Dirson
2021-05-17 12:19 ` [meta-rockchip][PATCH v7 4/6] NanoPi-M4: activate Wifi support Yann Dirson
2021-05-17 12:19 ` [meta-rockchip][PATCH v7 5/6] WIP Import rkwifibt-firmware from vendor's meta-rockchip Yann Dirson
2021-05-17 12:19 ` Yann Dirson [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210517121938.207004-7-yann@blade-group.com \
    --to=yann.dirson@blade-group.com \
    --cc=twoerner@gmail.com \
    --cc=yann@blade-group.com \
    --cc=yocto@yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.