2022-05-21 03:21:07

by Hakan Jansson

[permalink] [raw]
Subject: [PATCH v2 0/2] Bluetooth: hci_bcm: Autobaud mode support

Some devices (e.g. CYW5557x) require autobaud mode to enable FW loading.
Autobaud mode can also be required on some boards where the controller
device is using a non-standard baud rate when first powered on.

Only a limited subset of HCI commands are supported in autobaud mode.

These patches add a DT property, "brcm,uses-autobaud-mode", to control
autobaud mode selection.

Changes v1 -> v2:
- Modify description in binding document

Hakan Jansson (2):
dt-bindings: net: broadcom-bluetooth: Add property for autobaud mode
Bluetooth: hci_bcm: Add support for FW loading in autobaud mode

.../bindings/net/broadcom-bluetooth.yaml | 9 ++++++
drivers/bluetooth/btbcm.c | 31 ++++++++++++++-----
drivers/bluetooth/btbcm.h | 8 ++---
drivers/bluetooth/hci_bcm.c | 15 +++++++--
4 files changed, 48 insertions(+), 15 deletions(-)


base-commit: 48b57999e38745b707abe233019786cc097df3c9
--
2.25.1



2022-05-23 07:09:33

by Hakan Jansson

[permalink] [raw]
Subject: [PATCH v2 1/2] dt-bindings: net: broadcom-bluetooth: Add property for autobaud mode

Some devices (e.g. CYW5557x) require autobaud mode to enable FW loading.
Autobaud mode can also be required on some boards where the controller
device is using a non-standard baud rate when first powered on.

This patch adds a property, "brcm,uses-autobaud-mode", to enable autobaud
mode selection.

Signed-off-by: Hakan Jansson <[email protected]>
---
V1 -> V2: Modify property description

.../devicetree/bindings/net/broadcom-bluetooth.yaml | 9 +++++++++
1 file changed, 9 insertions(+)

diff --git a/Documentation/devicetree/bindings/net/broadcom-bluetooth.yaml b/Documentation/devicetree/bindings/net/broadcom-bluetooth.yaml
index 5aac094fd217..a29f059c21cc 100644
--- a/Documentation/devicetree/bindings/net/broadcom-bluetooth.yaml
+++ b/Documentation/devicetree/bindings/net/broadcom-bluetooth.yaml
@@ -92,6 +92,15 @@ properties:
pcm-sync-mode: slave, master
pcm-clock-mode: slave, master

+ brcm,uses-autobaud-mode:
+ type: boolean
+ description: >
+ Setting this property will make the host (driver) assert the controller
+ chip's BT_UART_CTS_N prior to asserting BT_REG_ON. This will make the
+ controller start up in autobaud mode. The controller will then detect the
+ baud rate of the first incoming (HCI Reset) command from the host and
+ subsequently use that baud rate.
+
interrupts:
items:
- description: Handle to the line HOST_WAKE used to wake
--
2.25.1