From: Alistair Francis <alistair@alistair23.me>
To: netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
marcel@holtmann.org, johan.hedberg@gmail.com,
linux-bluetooth@vger.kernel.org, mripard@kernel.org,
wens@csie.org
Cc: anarsoul@gmail.com, devicetree@vger.kernel.org,
alistair23@gmail.com, linux-arm-kernel@lists.infradead.org,
Alistair Francis <alistair@alistair23.me>
Subject: [PATCH 2/3] Bluetooth: hci_h5: Add support for binding RTL8723BS with device tree
Date: Sat, 4 Apr 2020 13:48:49 -0700 [thread overview]
Message-ID: <20200404204850.405050-2-alistair@alistair23.me> (raw)
In-Reply-To: <20200404204850.405050-1-alistair@alistair23.me>
From: Vasily Khoruzhick <anarsoul@gmail.com>
RTL8723BS is often used in ARM boards, so add ability to bind it
using device tree.
Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
Signed-off-by: Alistair Francis <alistair@alistair23.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
next prev parent reply other threads:[~2020-04-04 20:49 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-04 20:48 [PATCH 1/3] dt-bindings: net: bluetooth: Add rtl8723bs-bluetooth Alistair Francis
2020-04-04 20:48 ` Alistair Francis [this message]
2020-04-04 20:48 ` [PATCH 3/3] arm64: allwinner: Enable Bluetooth and WiFi on sopine baseboard Alistair Francis
2020-04-04 22:42 ` [PATCH 1/3] dt-bindings: net: bluetooth: Add rtl8723bs-bluetooth Martin Blumenstingl
2020-04-05 1:16 ` Alistair Francis
2020-04-05 1:28 ` Alistair Francis
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200404204850.405050-2-alistair@alistair23.me \
--to=alistair@alistair23.me \
--cc=alistair23@gmail.com \
--cc=anarsoul@gmail.com \
--cc=devicetree@vger.kernel.org \
--cc=johan.hedberg@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-bluetooth@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=marcel@holtmann.org \
--cc=mripard@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=wens@csie.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).