Skip to content

Commit defa9cc

Browse files
wensVudentz
authored andcommitted
dt-bindings: net: bluetooth: Add MediaTek MT7921S SDIO Bluetooth
The MediaTek MT7921S is a WiFi/Bluetooth combo chip that works over SDIO. WiFi and Bluetooth are separate SDIO functions within the chip. While the Bluetooth SDIO function is fully discoverable, the chip has a pin that can reset just the Bluetooth core, as opposed to the full chip. This should be described in the device tree. Add a device tree binding for the Bluetooth SDIO function of the MT7921S specifically to document the reset line. This binding is based on the MMC controller binding, which specifies one device node per SDIO function. Cc: Sean Wang <[email protected]> Signed-off-by: Chen-Yu Tsai <[email protected]> Reviewed-by: AngeloGioacchino Del Regno <[email protected]> Reviewed-by: Rob Herring <[email protected]> Signed-off-by: Luiz Augusto von Dentz <[email protected]>
1 parent ce60b92 commit defa9cc

File tree

2 files changed

+56
-0
lines changed

2 files changed

+56
-0
lines changed
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/net/bluetooth/mediatek,mt7921s-bluetooth.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: MediaTek MT7921S Bluetooth
8+
9+
maintainers:
10+
- Sean Wang <[email protected]>
11+
12+
description:
13+
MT7921S is an SDIO-attached dual-radio WiFi+Bluetooth Combo chip; each
14+
function is its own SDIO function on a shared SDIO interface. The chip
15+
has two dedicated reset lines, one for each function core.
16+
This binding only covers the Bluetooth SDIO function, with one device
17+
node describing only this SDIO function.
18+
19+
allOf:
20+
- $ref: bluetooth-controller.yaml#
21+
22+
properties:
23+
compatible:
24+
enum:
25+
- mediatek,mt7921s-bluetooth
26+
27+
reg:
28+
const: 2
29+
30+
reset-gpios:
31+
maxItems: 1
32+
description:
33+
An active-low reset line for the Bluetooth core; on typical M.2
34+
key E modules this is the W_DISABLE2# pin.
35+
36+
required:
37+
- compatible
38+
- reg
39+
40+
unevaluatedProperties: false
41+
42+
examples:
43+
- |
44+
#include <dt-bindings/gpio/gpio.h>
45+
46+
mmc {
47+
#address-cells = <1>;
48+
#size-cells = <0>;
49+
50+
bluetooth@2 {
51+
compatible = "mediatek,mt7921s-bluetooth";
52+
reg = <2>;
53+
reset-gpios = <&pio 8 GPIO_ACTIVE_LOW>;
54+
};
55+
};

MAINTAINERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13763,6 +13763,7 @@ M: Sean Wang <[email protected]>
1376313763
1376413764
L: [email protected] (moderated for non-subscribers)
1376513765
S: Maintained
13766+
F: Documentation/devicetree/bindings/net/bluetooth/mediatek,mt7921s-bluetooth.yaml
1376613767
F: Documentation/devicetree/bindings/net/mediatek-bluetooth.txt
1376713768
F: drivers/bluetooth/btmtkuart.c
1376813769

0 commit comments

Comments
 (0)