From 4cdb24d0f5b32b03b1fe2031b2a6d564a5826b49 Mon Sep 17 00:00:00 2001 From: Arturo Buzarra Date: Mon, 8 Oct 2018 10:45:15 +0200 Subject: [PATCH] bluez5: initialize BT in HCI_H4 mode and disable IBS and DEEP_SLEEP on firmware binary Initialize Bluetooth chip in HCI_H4 mode and provide a firmware binary with the IBS and DEEP_SLEEP mode disabled by default. Also this firmware enables an internal clock required to maintain the system on low power modes. https://jira.digi.com/browse/DEL-3711 Signed-off-by: Arturo Buzarra --- .../firmware-qualcomm/qca/nvm_tlv_3.2.bin | Bin 1968 -> 1968 bytes ...uetooth-low-power-mode-functionality.patch | 28 ++++++++++++++++++ .../0004-QCA_bluetooth_chip_support.patch | 2 +- .../bluez/bluez5_5.41.bbappend | 1 + 4 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 meta-digi-dey/recipes-connectivity/bluez/bluez5-5.41/0016-bluetooth-Disable-bluetooth-low-power-mode-functionality.patch diff --git a/meta-digi-arm/recipes-bsp/firmware-qualcomm/firmware-qualcomm/qca/nvm_tlv_3.2.bin b/meta-digi-arm/recipes-bsp/firmware-qualcomm/firmware-qualcomm/qca/nvm_tlv_3.2.bin index f42a007e8c43ba768855df00e591df4ed8c4bf19..2715082decbf74920ab8efa2a2f98a062ed81acc 100644 GIT binary patch delta 52 scmdnMzkz>(nI;n>9|sGU27@#MBLf`BFo?j}3<3-cI*g1A8{-4n0h9d%uK)l5 delta 52 ucmdnMzkz>(nPw9s9|sGU27@#MBLfUD$}ot)*bEE;3=BGqOdK2I1K9zp#05D3 diff --git a/meta-digi-dey/recipes-connectivity/bluez/bluez5-5.41/0016-bluetooth-Disable-bluetooth-low-power-mode-functionality.patch b/meta-digi-dey/recipes-connectivity/bluez/bluez5-5.41/0016-bluetooth-Disable-bluetooth-low-power-mode-functionality.patch new file mode 100644 index 000000000..5c6712ed1 --- /dev/null +++ b/meta-digi-dey/recipes-connectivity/bluez/bluez5-5.41/0016-bluetooth-Disable-bluetooth-low-power-mode-functionality.patch @@ -0,0 +1,28 @@ +From: Arturo Buzarra +Date: Wed, 10 Oct 2018 09:14:56 +0200 +Subject: [PATCH] bluetooth: Disable bluetooth low power mode functionality + +In some conditions the low power modes cause communication +errors between the BT chip and the system, for this reason +we disable it by default. + +https://jira.digi.com/browse/DEL-3711 + +Signed-off-by: Arturo Buzarra +--- + tools/hciattach.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/tools/hciattach.c b/tools/hciattach.c +index 4aacdafed..234283882 100644 +--- a/tools/hciattach.c ++++ b/tools/hciattach.c +@@ -1120,7 +1120,7 @@ struct uart_t uart[] = { + FLOW_CTL, DISABLE_PM, NULL, ath3k_ps, ath3k_pm }, + + /* QCA ROME */ +- { "qca", 0x0000, 0x0000, HCI_UART_IBS, 115200, 115200, ++ { "qca", 0x0000, 0x0000, HCI_UART_H4, 115200, 115200, + FLOW_CTL, DISABLE_PM, NULL, qca, NULL }, + + /* QUALCOMM BTS */ diff --git a/meta-digi-dey/recipes-connectivity/bluez/bluez5-5.46/0004-QCA_bluetooth_chip_support.patch b/meta-digi-dey/recipes-connectivity/bluez/bluez5-5.46/0004-QCA_bluetooth_chip_support.patch index f407ad7df..d1144bd81 100644 --- a/meta-digi-dey/recipes-connectivity/bluez/bluez5-5.46/0004-QCA_bluetooth_chip_support.patch +++ b/meta-digi-dey/recipes-connectivity/bluez/bluez5-5.46/0004-QCA_bluetooth_chip_support.patch @@ -163,7 +163,7 @@ index fad176c9b804..dda639cabca3 100644 FLOW_CTL, DISABLE_PM, NULL, ath3k_ps, ath3k_pm }, + /* QCA ROME */ -+ { "qca", 0x0000, 0x0000, HCI_UART_IBS, 115200, 115200, ++ { "qca", 0x0000, 0x0000, HCI_UART_H4, 115200, 115200, + FLOW_CTL, DISABLE_PM, NULL, qca, NULL }, + /* QUALCOMM BTS */ diff --git a/meta-digi-dey/recipes-connectivity/bluez/bluez5_5.41.bbappend b/meta-digi-dey/recipes-connectivity/bluez/bluez5_5.41.bbappend index d786b748d..773cab675 100644 --- a/meta-digi-dey/recipes-connectivity/bluez/bluez5_5.41.bbappend +++ b/meta-digi-dey/recipes-connectivity/bluez/bluez5_5.41.bbappend @@ -23,6 +23,7 @@ QCA65XX_COMMON_PATCHES = " \ file://0013-hciattach_rome-Respect-the-user-indication-for-noflo.patch \ file://0014-hciattach-If-the-user-supplies-a-bdaddr-use-it.patch \ file://0015-hciattach-Add-verbosity-option.patch \ + file://0016-bluetooth-Disable-bluetooth-low-power-mode-functionality.patch \ " SRC_URI_append_ccimx6ul = " ${QCA65XX_COMMON_PATCHES}"