[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Sat, 4 Apr 2020 13:48:49 -0700
From: Alistair Francis <alistair@...stair23.me>
To: netdev@...r.kernel.org, linux-kernel@...r.kernel.org,
marcel@...tmann.org, johan.hedberg@...il.com,
linux-bluetooth@...r.kernel.org, mripard@...nel.org, wens@...e.org
Cc: anarsoul@...il.com, devicetree@...r.kernel.org,
alistair23@...il.com, linux-arm-kernel@...ts.infradead.org,
Alistair Francis <alistair@...stair23.me>
Subject: [PATCH 2/3] Bluetooth: hci_h5: Add support for binding RTL8723BS with device tree
From: Vasily Khoruzhick <anarsoul@...il.com>
RTL8723BS is often used in ARM boards, so add ability to bind it
using device tree.
Signed-off-by: Vasily Khoruzhick <anarsoul@...il.com>
Signed-off-by: Alistair Francis <alistair@...stair23.me>
---
drivers/bluetooth/hci_h5.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/bluetooth/hci_h5.c b/drivers/bluetooth/hci_h5.c
index 106c110efe56..6ea6cd73dff4 100644
--- a/drivers/bluetooth/hci_h5.c
+++ b/drivers/bluetooth/hci_h5.c
@@ -820,6 +820,8 @@ static int h5_serdev_probe(struct serdev_device *serdev)
return -ENODEV;
h5->vnd = (const struct h5_vnd *)data;
+ of_property_read_string(dev.of_node,
+ "firmware-postfix", &h5->id);
}
@@ -1019,6 +1021,8 @@ static const struct of_device_id rtl_bluetooth_of_match[] = {
{ .compatible = "realtek,rtl8822cs-bt",
.data = (const void *)&rtl_vnd },
#endif
+ { .compatible = "realtek,rtl8822bs-bt",
+ .data = (const void *)&rtl_vnd },
{ },
};
MODULE_DEVICE_TABLE(of, rtl_bluetooth_of_match);
--
2.25.1
Powered by blists - more mailing lists