[PATCH v5 2/2] dt-bindings: net: mediatek,mt7925-bluetooth.yaml

Zhangchao Zhang ot_zhangchao.zhang at mediatek.com
Thu Jun 26 22:59:24 PDT 2025


Add hardware pins and compatible strings.

As a binding file for the MTK Bluetooth driver code,
it provides a set of compatible fields and hardware
pins for the driver to use.

Signed-off-by: Zhangchao Zhang <ot_zhangchao.zhang at mediatek.com>
---
 .../bluetooth/mediatek,mt7925-bluetooth.yaml  | 57 +++++++++++++++++++
 MAINTAINERS                                   |  1 +
 2 files changed, 58 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/net/bluetooth/mediatek,mt7925-bluetooth.yaml

diff --git a/Documentation/devicetree/bindings/net/bluetooth/mediatek,mt7925-bluetooth.yaml b/Documentation/devicetree/bindings/net/bluetooth/mediatek,mt7925-bluetooth.yaml
new file mode 100644
index 000000000000..230c24ada3b4
--- /dev/null
+++ b/Documentation/devicetree/bindings/net/bluetooth/mediatek,mt7925-bluetooth.yaml
@@ -0,0 +1,57 @@
+# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/net/bluetooth/mediatek,mt7925-bluetooth.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Bluetooth mediatek add gpio pin to reset bt
+
+maintainers:
+  - Sean Wang <sean.wang at mediatek.com>
+
+description:
+  7925 uses the USB bus to communicate with the host.
+  Two methods are used to reset Bluetooth.
+  Provide hardware pin, when an exception occurs,
+  resetting Bluetooth by hardware pin is more stable
+  than resetting Bluetooth by software.
+  If the corresponding pin is not found in dts,
+  bluetooth can also be reset successfully.
+
+allOf:
+  - $ref: bluetooth-controller.yaml#
+
+properties:
+  compatible:
+    enum:
+      - mediatek,usb-bluetooth
+
+  gpio-controller:
+    description:
+      Marks the device node as s GPIO controller.
+
+  "#gpio-cells":
+    const: 2
+
+  reset-gpios:
+    maxItems: 1
+
+    description:
+      An active-high reset pin for the Bluetooth core; on typical M.2
+      key E modules this is the W_DISABLE2# pin.
+
+required:
+  - compatible
+  - "#gpio-cells"
+  - reset-gpios
+
+unevaluatedProperties: false
+examples:
+  - |
+    #include <dt-bindings/gpio/gpio.h>
+
+      bluetooth {
+        compatible = "mediatek,usb-bluetooth";
+        #gpio-cells = <2>;
+        reset-gpios = <&pio 248 GPIO_ACTIVE_HIGH>;
+      };
diff --git a/MAINTAINERS b/MAINTAINERS
index 5959513a7359..d104a5821f20 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -14676,6 +14676,7 @@ L:	linux-mediatek at lists.infradead.org (moderated for non-subscribers)
 S:	Maintained
 F:	Documentation/devicetree/bindings/net/bluetooth/mediatek,bluetooth.txt
 F:	Documentation/devicetree/bindings/net/bluetooth/mediatek,mt7921s-bluetooth.yaml
+F:	Documentation/devicetree/bindings/net/bluetooth/mediatek,mt7925-bluetooth.yaml
 F:	drivers/bluetooth/btmtkuart.c
 
 MEDIATEK BOARD LEVEL SHUTDOWN DRIVERS
-- 
2.46.0




More information about the Linux-mediatek mailing list