be9dc73421519452d51e9e7078e48d2857d97e5f
[openwrt/staging/jow.git] /
1 From e507366cd1e8e1d4eebe537c08fd142cf0b617fa Mon Sep 17 00:00:00 2001
2 From: Sean Wang <sean.wang@mediatek.com>
3 Date: Thu, 28 Apr 2022 02:38:39 +0800
4 Subject: [PATCH 4/5] Bluetooth: btusb: Add a new PID/VID 0489/e0c8 for MT7921
5
6 Add VID 0489 & PID e0c8 for MediaTek MT7921 USB Bluetooth chip.
7
8 The information in /sys/kernel/debug/usb/devices about the Bluetooth
9 device is listed as the below.
10
11 T: Bus=01 Lev=01 Prnt=01 Port=13 Cnt=03 Dev#= 4 Spd=480 MxCh= 0
12 D: Ver= 2.10 Cls=ef(misc ) Sub=02 Prot=01 MxPS=64 #Cfgs= 1
13 P: Vendor=0489 ProdID=e0c8 Rev= 1.00
14 S: Manufacturer=MediaTek Inc.
15 S: Product=Wireless_Device
16 S: SerialNumber=000000000
17 C:* #Ifs= 3 Cfg#= 1 Atr=e0 MxPwr=100mA
18 A: FirstIf#= 0 IfCount= 3 Cls=e0(wlcon) Sub=01 Prot=01
19 I:* If#= 0 Alt= 0 #EPs= 3 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
20 E: Ad=81(I) Atr=03(Int.) MxPS= 16 Ivl=125us
21 E: Ad=82(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
22 E: Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
23 I:* If#= 1 Alt= 0 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
24 E: Ad=83(I) Atr=01(Isoc) MxPS= 0 Ivl=1ms
25 E: Ad=03(O) Atr=01(Isoc) MxPS= 0 Ivl=1ms
26 I: If#= 1 Alt= 1 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
27 E: Ad=83(I) Atr=01(Isoc) MxPS= 9 Ivl=1ms
28 E: Ad=03(O) Atr=01(Isoc) MxPS= 9 Ivl=1ms
29 I: If#= 1 Alt= 2 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
30 E: Ad=83(I) Atr=01(Isoc) MxPS= 17 Ivl=1ms
31 E: Ad=03(O) Atr=01(Isoc) MxPS= 17 Ivl=1ms
32 I: If#= 1 Alt= 3 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
33 E: Ad=83(I) Atr=01(Isoc) MxPS= 25 Ivl=1ms
34 E: Ad=03(O) Atr=01(Isoc) MxPS= 25 Ivl=1ms
35 I: If#= 1 Alt= 4 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
36 E: Ad=83(I) Atr=01(Isoc) MxPS= 33 Ivl=1ms
37 E: Ad=03(O) Atr=01(Isoc) MxPS= 33 Ivl=1ms
38 I: If#= 1 Alt= 5 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
39 E: Ad=83(I) Atr=01(Isoc) MxPS= 49 Ivl=1ms
40 E: Ad=03(O) Atr=01(Isoc) MxPS= 49 Ivl=1ms
41 I: If#= 1 Alt= 6 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=btusb
42 E: Ad=83(I) Atr=01(Isoc) MxPS= 63 Ivl=1ms
43 E: Ad=03(O) Atr=01(Isoc) MxPS= 63 Ivl=1ms
44 I:* If#= 2 Alt= 0 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=(none)
45 E: Ad=8a(I) Atr=03(Int.) MxPS= 64 Ivl=125us
46 E: Ad=0a(O) Atr=03(Int.) MxPS= 64 Ivl=125us
47 I: If#= 2 Alt= 1 #EPs= 2 Cls=e0(wlcon) Sub=01 Prot=01 Driver=(none)
48 E: Ad=8a(I) Atr=03(Int.) MxPS= 512 Ivl=125us
49 E: Ad=0a(O) Atr=03(Int.) MxPS= 512 Ivl=125us
50
51 Signed-off-by: Sean Wang <sean.wang@mediatek.com>
52 Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
53 ---
54 drivers/bluetooth/btusb.c | 3 +++
55 1 file changed, 3 insertions(+)
56
57 --- a/drivers/bluetooth/btusb.c
58 +++ b/drivers/bluetooth/btusb.c
59 @@ -455,6 +455,9 @@ static const struct usb_device_id blackl
60 BTUSB_VALID_LE_STATES },
61
62 /* Additional MediaTek MT7921 Bluetooth devices */
63 + { USB_DEVICE(0x0489, 0xe0c8), .driver_info = BTUSB_MEDIATEK |
64 + BTUSB_WIDEBAND_SPEECH |
65 + BTUSB_VALID_LE_STATES },
66 { USB_DEVICE(0x04ca, 0x3802), .driver_info = BTUSB_MEDIATEK |
67 BTUSB_WIDEBAND_SPEECH |
68 BTUSB_VALID_LE_STATES },