All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Support of Mediatek 0x7902 Bluetooth on ASUS Vivobook 16
@ 2025-01-12 14:43 Stanislav Malishevskiy
  2025-01-12 15:29 ` bluez.test.bot
  0 siblings, 1 reply; 3+ messages in thread
From: Stanislav Malishevskiy @ 2025-01-12 14:43 UTC (permalink / raw)
  To: linux-bluetooth

This commit add support of Mediatek 7902 bluetooth. The firmware file
from original driver BT_RAM_CODE_MT7902_1_1_hdr.bin was required for
runtime.

Tested on ASUS Vivobook 16

Signed-off-by: stanislav.malishevskiy <stanislav.malishevskiy@gmail.com>
---
 drivers/bluetooth/btmtk.c | 1 +
 drivers/bluetooth/btusb.c | 4 ++++
 2 files changed, 5 insertions(+)

diff --git a/drivers/bluetooth/btmtk.c b/drivers/bluetooth/btmtk.c
index 85e99641eaae..ad2bdaab5bbb 100644
--- a/drivers/bluetooth/btmtk.c
+++ b/drivers/bluetooth/btmtk.c
@@ -1328,6 +1328,7 @@ int btmtk_usb_setup(struct hci_dev *hdev)
 	case 0x7668:
 		fwname = FIRMWARE_MT7668;
 		break;
+	case 0x7902:
 	case 0x7922:
 	case 0x7961:
 	case 0x7925:
diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c
index 0c85c981a833..c92d2d88f01d 100644
--- a/drivers/bluetooth/btusb.c
+++ b/drivers/bluetooth/btusb.c
@@ -601,6 +601,10 @@ static const struct usb_device_id quirks_table[] = {
 	{ USB_DEVICE(0x13d3, 0x3606), .driver_info = BTUSB_MEDIATEK |
 						     BTUSB_WIDEBAND_SPEECH },
 
+	/* MediaTek MT7902 Bluetooth devices */
+	{ USB_DEVICE(0x13d3, 0x3579), .driver_info = BTUSB_MEDIATEK |
+						     BTUSB_WIDEBAND_SPEECH },
+
 	/* MediaTek MT7922 Bluetooth devices */
 	{ USB_DEVICE(0x13d3, 0x3585), .driver_info = BTUSB_MEDIATEK |
 						     BTUSB_WIDEBAND_SPEECH },
-- 
2.47.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread
* [PATCH] Support of Mediatek 0x7902 Bluetooth on ASUS Vivobook 16
@ 2025-01-12 14:04 Stanislav Malishevskiy
  2025-01-12 14:13 ` bluez.test.bot
  0 siblings, 1 reply; 3+ messages in thread
From: Stanislav Malishevskiy @ 2025-01-12 14:04 UTC (permalink / raw)
  To: linux-bluetooth

This commit add support of Mediatek 7902 bluetooth. The firmware file
from original driver BT_RAM_CODE_MT7902_1_1_hdr.bin was required for
runtime.

Tested on ASUS Vivobook 16

Signed-off-by: stanislav.malishevskiy <stanislav.malishevskiy@gmail.com>
---
drivers/bluetooth/btmtk.c | 1 +
drivers/bluetooth/btusb.c | 4 ++++
2 files changed, 5 insertions(+)

diff --git a/drivers/bluetooth/btmtk.c b/drivers/bluetooth/btmtk.c
index 85e99641eaae..ad2bdaab5bbb 100644
--- a/drivers/bluetooth/btmtk.c
+++ b/drivers/bluetooth/btmtk.c
@@ -1328,6 +1328,7 @@ int btmtk_usb_setup(struct hci_dev *hdev)
case 0x7668:
fwname = FIRMWARE_MT7668;
break;
+ case 0x7902:
case 0x7922:
case 0x7961:
case 0x7925:
diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c
index 0c85c981a833..c92d2d88f01d 100644
--- a/drivers/bluetooth/btusb.c
+++ b/drivers/bluetooth/btusb.c
@@ -601,6 +601,10 @@ static const struct usb_device_id quirks_table[] = {
{ USB_DEVICE(0x13d3, 0x3606), .driver_info = BTUSB_MEDIATEK |
BTUSB_WIDEBAND_SPEECH },
+ /* MediaTek MT7902 Bluetooth devices */
+ { USB_DEVICE(0x13d3, 0x3579), .driver_info = BTUSB_MEDIATEK |
+ BTUSB_WIDEBAND_SPEECH },
+
/* MediaTek MT7922 Bluetooth devices */
{ USB_DEVICE(0x13d3, 0x3585), .driver_info = BTUSB_MEDIATEK |
BTUSB_WIDEBAND_SPEECH },

-- 
2.47.1


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

end of thread, other threads:[~2025-01-12 15:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-12 14:43 [PATCH] Support of Mediatek 0x7902 Bluetooth on ASUS Vivobook 16 Stanislav Malishevskiy
2025-01-12 15:29 ` bluez.test.bot
  -- strict thread matches above, loose matches on Subject: below --
2025-01-12 14:04 [PATCH] " Stanislav Malishevskiy
2025-01-12 14:13 ` 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.