Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <sean.wang@mediatek.com>
Signed-off-by: Chen-Yu Tsai <wenst@chromium.org>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>

authored by

Chen-Yu Tsai and committed by
Luiz Augusto von Dentz
defa9cca ce60b923

+56
+55
Documentation/devicetree/bindings/net/bluetooth/mediatek,mt7921s-bluetooth.yaml
··· 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 <sean.wang@mediatek.com> 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 + };
+1
MAINTAINERS
··· 13763 13763 L: linux-bluetooth@vger.kernel.org 13764 13764 L: linux-mediatek@lists.infradead.org (moderated for non-subscribers) 13765 13765 S: Maintained 13766 + F: Documentation/devicetree/bindings/net/bluetooth/mediatek,mt7921s-bluetooth.yaml 13766 13767 F: Documentation/devicetree/bindings/net/mediatek-bluetooth.txt 13767 13768 F: drivers/bluetooth/btmtkuart.c 13768 13769