All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/2] Bluetooth: hci_bcm: Autobaud mode support
@ 2022-05-30 15:02 Hakan Jansson
  2022-05-30 15:02 ` [PATCH v3 1/2] dt-bindings: net: broadcom-bluetooth: Add property for autobaud mode Hakan Jansson
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Hakan Jansson @ 2022-05-30 15:02 UTC (permalink / raw)
  Cc: Hakan Jansson, David S. Miller, Jakub Kicinski, Paolo Abeni,
	Rob Herring, Krzysztof Kozlowski, Linus Walleij, netdev,
	devicetree, linux-kernel, Marcel Holtmann, Johan Hedberg,
	Luiz Augusto von Dentz, linux-bluetooth

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,requires-autobaud-mode", to control
autobaud mode selection.

Changes v2 -> v3:
- Rename DT property and modify description in binding document

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      |  7 +++++
 drivers/bluetooth/btbcm.c                     | 31 ++++++++++++++-----
 drivers/bluetooth/btbcm.h                     |  8 ++---
 drivers/bluetooth/hci_bcm.c                   | 16 ++++++++--
 4 files changed, 47 insertions(+), 15 deletions(-)


base-commit: 677fb7525331375ba2f90f4bc94a80b9b6e697a3
-- 
2.25.1


^ permalink raw reply	[flat|nested] 8+ messages in thread
* [PATCH v2 1/2] dt-bindings: net: broadcom-bluetooth: Add property for autobaud mode
@ 2022-05-20 15:07 Hakan Jansson
  2022-05-20 16:09 ` Bluetooth: hci_bcm: Autobaud mode support bluez.test.bot
  0 siblings, 1 reply; 8+ messages in thread
From: Hakan Jansson @ 2022-05-20 15:07 UTC (permalink / raw)
  Cc: Hakan Jansson, David S. Miller, Jakub Kicinski, Paolo Abeni,
	Rob Herring, Krzysztof Kozlowski, Linus Walleij, netdev,
	devicetree, linux-kernel, Marcel Holtmann, Johan Hedberg,
	Luiz Augusto von Dentz, linux-bluetooth

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 <hakan.jansson@infineon.com>
---
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


^ permalink raw reply related	[flat|nested] 8+ messages in thread
* [PATCH 1/2] dt-bindings: net: broadcom-bluetooth: Add property for autobaud mode
@ 2022-05-04  9:03 Hakan Jansson
  2022-05-04 10:04 ` Bluetooth: hci_bcm: Autobaud mode support bluez.test.bot
  0 siblings, 1 reply; 8+ messages in thread
From: Hakan Jansson @ 2022-05-04  9:03 UTC (permalink / raw)
  Cc: Hakan Jansson, David S. Miller, Jakub Kicinski, Paolo Abeni,
	Rob Herring, Krzysztof Kozlowski, Linus Walleij, netdev,
	devicetree, linux-kernel, Marcel Holtmann, Johan Hedberg,
	Luiz Augusto von Dentz, linux-bluetooth

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 <hakan.jansson@infineon.com>
---
 .../devicetree/bindings/net/broadcom-bluetooth.yaml        | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/Documentation/devicetree/bindings/net/broadcom-bluetooth.yaml b/Documentation/devicetree/bindings/net/broadcom-bluetooth.yaml
index 5aac094fd217..26bba3f1c935 100644
--- a/Documentation/devicetree/bindings/net/broadcom-bluetooth.yaml
+++ b/Documentation/devicetree/bindings/net/broadcom-bluetooth.yaml
@@ -92,6 +92,13 @@ properties:
        pcm-sync-mode: slave, master
        pcm-clock-mode: slave, master
 
+  brcm,uses-autobaud-mode:
+    type: boolean
+    description: >
+      The controller should be started in autobaud mode by asserting
+      BT_UART_CTS_N (i.e. host RTS) during startup. Only HCI commands supported
+      in autobaud mode should be used until patch FW has been loaded.
+
   interrupts:
     items:
       - description: Handle to the line HOST_WAKE used to wake
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2022-06-02 15:50 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-30 15:02 [PATCH v3 0/2] Bluetooth: hci_bcm: Autobaud mode support Hakan Jansson
2022-05-30 15:02 ` [PATCH v3 1/2] dt-bindings: net: broadcom-bluetooth: Add property for autobaud mode Hakan Jansson
2022-05-30 17:22   ` Bluetooth: hci_bcm: Autobaud mode support bluez.test.bot
2022-05-30 18:46   ` [PATCH v3 1/2] dt-bindings: net: broadcom-bluetooth: Add property for autobaud mode Krzysztof Kozlowski
2022-05-30 15:02 ` [PATCH v3 2/2] Bluetooth: hci_bcm: Add support for FW loading in " Hakan Jansson
2022-06-02 15:50 ` [PATCH v3 0/2] Bluetooth: hci_bcm: Autobaud mode support patchwork-bot+bluetooth
  -- strict thread matches above, loose matches on Subject: below --
2022-05-20 15:07 [PATCH v2 1/2] dt-bindings: net: broadcom-bluetooth: Add property for autobaud mode Hakan Jansson
2022-05-20 16:09 ` Bluetooth: hci_bcm: Autobaud mode support bluez.test.bot
2022-05-04  9:03 [PATCH 1/2] dt-bindings: net: broadcom-bluetooth: Add property for autobaud mode Hakan Jansson
2022-05-04 10:04 ` Bluetooth: hci_bcm: Autobaud mode support bluez.test.bot

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.