All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] bluetooth: realtek: devicetree: Add device tree description to bluetooth rtl drivers
@ 2018-12-29 11:55 ` David Summers
  0 siblings, 0 replies; 26+ messages in thread
From: David Summers @ 2018-12-29 11:55 UTC (permalink / raw)
  To: Marcel Holtmann
  Cc: David Summers, Johan Hedberg, linux-bluetooth, linux-arm-kernel,
	robh+dt, mark.rutland

This patch add the relevent device tree handles to the bluetooth driver
for serial realtek devices.

Specifically it takes all devices listed in btrtk.c identifes from the
realtek web site which are serial devices (this invariably means
devices that end with and "s" in the device name).

Most of these devices are dual wifi and bluetooth, with wifi on and
sdio connection, and bluetooth on a serial uart. As these two
interfaces will need independent listings in the device tree, the
nodes here have "-bluetooth" added. The only exception is the
rtl8761atv device, which is bluetooth only - and only has a uart
interface.

Can devicetree people revive the naming scheme used here, and confirm
it is acceptable.

Marcel, if the device tree people are happy can you apply to the
bluetooth tree.

Thanks,

David.

Signed-off-by: David Summers <beagleboard@davidjohnsummers.uk>
---
 drivers/bluetooth/hci_h5.c | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/drivers/bluetooth/hci_h5.c b/drivers/bluetooth/hci_h5.c
index 8eede1197cd2..61c9e729efc1 100644
--- a/drivers/bluetooth/hci_h5.c
+++ b/drivers/bluetooth/hci_h5.c
@@ -925,6 +925,20 @@ static struct h5_vnd rtl_vnd = {
 };
 #endif
 
+#ifdef CONFIG_OF
+static const struct of_device_id h5_of_match[] = {
+       { .compatible = "realtek,rtl8723as-bluetoooth"},
+       { .compatible = "realtek,rtl8723bs-bluetoooth"},
+       { .compatible = "realtek,rtl8723ds-bluetoooth"},
+       { .compatible = "realtek,rtl8761atv"},
+       { .compatible = "realtek,rtl8821as-bluetoooth"},
+       { .compatible = "realtek,rtl8821cs-bluetoooth"},
+       { .compatible = "realtek,rtl8822bs-bluetoooth"},
+       { }
+};
+MODULE_DEVICE_TABLE(of, h5_of_match);
+#endif
+
 #ifdef CONFIG_ACPI
 static const struct acpi_device_id h5_acpi_match[] = {
 #ifdef CONFIG_BT_HCIUART_RTL
-- 
beagleboard@davidjohnsummers.uk


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

end of thread, other threads:[~2019-01-19 13:19 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-12-29 11:55 [PATCH] bluetooth: realtek: devicetree: Add device tree description to bluetooth rtl drivers David Summers
2018-12-29 11:55 ` David Summers
2018-12-29 16:51 ` David Summers
2018-12-29 16:51   ` David Summers
2018-12-30 10:25 ` Marcel Holtmann
2018-12-30 10:25   ` Marcel Holtmann
2019-01-03 16:35 ` [PATCHv2] Description of the realtek bluetooth device tree hooks David Summers
2019-01-03 16:35   ` David Summers
2019-01-03 16:35   ` David Summers
2019-01-03 16:35   ` [PATCHv2] Patch to add the realtek bluetooth device tree refs to the code David Summers
2019-01-03 16:35     ` David Summers
2019-01-03 16:35     ` David Summers
2019-01-18 10:57     ` Marcel Holtmann
2019-01-18 10:57       ` Marcel Holtmann
2019-01-18 10:57       ` Marcel Holtmann
2019-01-19 13:18       ` beagleboard
2019-01-19 13:18         ` beagleboard
2019-01-19 13:18         ` beagleboard
2019-01-11 16:34   ` [PATCHv2] Description of the realtek bluetooth device tree hooks Rob Herring
2019-01-11 16:34     ` Rob Herring
2019-01-11 16:34     ` Rob Herring
2019-01-12 15:00     ` David Summers
2019-01-12 15:00       ` David Summers
2019-01-12 15:00       ` David Summers
2019-01-15 19:48       ` Rob Herring
2019-01-15 19:48         ` Rob Herring

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.