Skip to contentSkip to conversation

Bluetooth: Add device tree compatible for TI CC2560

PATCH In review David Lechner 3 participants 5 messages Dec 13, 2017 – Dec 15, 2017

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

cover Bluetooth: Add device tree compatible for TI CC2560

This series updates the bindings TI WiLink 7/8 Bluetooth to add TI CC256x chips as well. A compatible string is also added to the hci_ll driver for TI CC2560.

David Lechner (2):
dt-bindings: net: add TI CC2560 Bluetooth chip
Bluetooth: hci_ll: add "ti,cc2560" compatible string

 .../bindings/net/{ti,wilink-st.txt => ti-bluetooth.txt}     | 13 +++++++++++--
 drivers/bluetooth/hci_ll.c                                  |  1 +
 2 files changed, 12 insertions(+), 2 deletions(-)
 rename Documentation/devicetree/bindings/net/{ti,wilink-st.txt => ti-bluetooth.txt} (78%)
Signature · 1 line
2.7.4
#1 lore raw

PATCH 1/2 dt-bindings: net: add TI CC2560 Bluetooth chip

This adds a compatible string for the Texas Instruments CC2560 Bluetooth chip to the existing TI WiLink shared transport bindings. These chips are similar enough that the same bindings work for both. The file is renamed to ti-bluetooth.txt to make it more generic.

---
 .../bindings/net/{ti,wilink-st.txt => ti-bluetooth.txt}     | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)
 rename Documentation/devicetree/bindings/net/{ti,wilink-st.txt => ti-bluetooth.txt} (78%)
Documentation/devicetree/bindings/net/ti-bluetooth.txt renamed from Documentation/devicetree/bindings/net/ti,wilink-st.txt +11 -2
similarity index 78%
rename from Documentation/devicetree/bindings/net/ti,wilink-st.txt
rename to Documentation/devicetree/bindings/net/ti-bluetooth.txt
index a45a508..6d03ff8 100644
@@ -1,10 +1,18 @@
-TI WiLink 7/8 (wl12xx/wl18xx) Shared Transport BT/FM/GPS devices
+Texas Instruments Bluetooth Chips
+---------------------------------
+
+This documents the binding structure and common properties for serial
+attached TI Bluetooth devices. The following chips are included in this
+binding:
+
+* TI CC256x Bluetooth devices
+* TI WiLink 7/8 (wl12xx/wl18xx) Shared Transport BT/FM/GPS devices
 
 TI WiLink devices have a UART interface for providing Bluetooth, FM radio,
 and GPS over what's called "shared transport". The shared transport is
 standard BT HCI protocol with additional channels for the other functions.
 
-These devices also have a separate WiFi interface as described in
+TI WiLink devices also have a separate WiFi interface as described in
 wireless/ti,wlcore.txt.
 
 This bindings follows the UART slave device binding in
@@ -12,6 +20,7 @@ This bindings follows the UART slave device binding in
 
 Required properties:
  - compatible: should be one of the following:
+    "ti,cc2560"
     "ti,wl1271-st"
     "ti,wl1273-st"
     "ti,wl1281-st"
Signature · 1 line
2.7.4
#3 lore raw

PATCH 2/2 Bluetooth: hci_ll: add "ti,cc2560" compatible string

In reply to David Lechner

This adds the "ti,cc2560" compatible string for a TI CC2560 chip.

---
 drivers/bluetooth/hci_ll.c | 1 +
 1 file changed, 1 insertion(+)
drivers/bluetooth/hci_ll.c +1 -0
index 9de106f..1b4417a 100644
@@ -842,6 +842,7 @@ static void hci_ti_remove(struct serdev_device *serdev)
 }
 
 static const struct of_device_id hci_ti_of_match[] = {
+	{ .compatible = "ti,cc2560" },
 	{ .compatible = "ti,wl1271-st" },
 	{ .compatible = "ti,wl1273-st" },
 	{ .compatible = "ti,wl1281-st" },
Signature · 1 line
2.7.4
maintainer
#4 lore raw
In reply to David Lechner

Hi David,

Quoted 4 lines

This series updates the bindings TI WiLink 7/8 Bluetooth to add TI CC256x chips as well. A compatible string is also added to the hci_ll driver for TI CC2560.

Quoted 8 lines

David Lechner (2):
dt-bindings: net: add TI CC2560 Bluetooth chip
Bluetooth: hci_ll: add "ti,cc2560" compatible string

.../bindings/net/{ti,wilink-st.txt => ti-bluetooth.txt} | 13 +++++++++++--
drivers/bluetooth/hci_ll.c | 1 +

2 files changed, 12 insertions(+), 2 deletions(-)

rename Documentation/devicetree/bindings/net/{ti,wilink-st.txt => ti-bluetooth.txt} (78%)

both patches have been applied to bluetooth-next tree.

Regards

Marcel

maintainer Reviewed-by on v1 1/2
#2 lore raw

Re: [PATCH 1/2] dt-bindings: net: add TI CC2560 Bluetooth chip

In reply to David Lechner
Quoted 10 lines · David Lechner

This adds a compatible string for the Texas Instruments CC2560 Bluetooth chip to the existing TI WiLink shared transport bindings. These chips are similar enough that the same bindings work for both. The file is renamed to ti-bluetooth.txt to make it more generic.

---
 .../bindings/net/{ti,wilink-st.txt => ti-bluetooth.txt}     | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)
 rename Documentation/devicetree/bindings/net/{ti,wilink-st.txt => ti-bluetooth.txt} (78%)