From: Zhangchao Zhang <ot_zhangchao.zhang@mediatek.com>
To: Marcel Holtmann <marcel@holtmann.org>,
Luiz Von Dentz <luiz.dentz@gmail.com>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>
Cc: Sean Wang <sean.wang@mediatek.com>,
Jiande Lu <jiande.lu@mediatek.com>,
Deren Wu <deren.Wu@mediatek.com>,
Chris Lu <chris.lu@mediatek.com>, Hao Qin <Hao.qin@mediatek.com>,
linux-bluetooth <linux-bluetooth@vger.kernel.org>,
linux-kernel <linux-kernel@vger.kernel.org>,
linux-arm-kernel <linux-arm-kernel@lists.infradead.org>,
linux-mediatek <linux-mediatek@lists.infradead.org>,
devicetree <devicetree@vger.kernel.org>,
Zhangchao Zhang <ot_zhangchao.zhang@mediatek.com>
Subject: [PATCH v7] dt-bindings: net: mediatek,mt7925-bluetooth.yaml
Date: Fri, 5 Sep 2025 16:44:33 +0800 [thread overview]
Message-ID: <20250905084433.26999-1-ot_zhangchao.zhang@mediatek.com> (raw)
Reset BT via BT_KILL_1V2_L hardware pin.
On the M.2 standard hardware pin interface, the MTK chip
has a pin called BT_KILL_1V2_L or W_DISABLE#2, it uses
function-level device reset (FLDR) to reset Bluetooth.
When it is pulled low, it can external shut down the BT
function, it is defined as 5 on the MT7925 chip, and is
defined as 248 on the device tree pio controller.
Signed-off-by: Zhangchao Zhang <ot_zhangchao.zhang@mediatek.com>
---
.../bluetooth/mediatek,mt7925-bluetooth.yaml | 47 +++++++++++++++++++
MAINTAINERS | 1 +
2 files changed, 48 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..dd24312735e0
--- /dev/null
+++ b/Documentation/devicetree/bindings/net/bluetooth/mediatek,mt7925-bluetooth.yaml
@@ -0,0 +1,47 @@
+# 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 use BT_KILL_1V2_L hardware pin to reset BT
+
+maintainers:
+ - Sean Wang <sean.wang@mediatek.com>
+
+description:
+ MT7925 modules provides hardware pin called W_DISABLE#2 to reset Bluetotoh,
+ two methods are used to reset Bluetooth. When an exception occurs, resetting
+ Bluetooth by hardware pin is more stable than resetting Bluetooth by software.
+
+allOf:
+ - $ref: bluetooth-controller.yaml#
+
+properties:
+ compatible:
+ enum:
+ - mediatek,mt7925-bluetooth
+
+ reset-gpios:
+ maxItems: 1
+ description:
+ This pin can is used to externally reset BT function. When pull low,
+ the Bluetooth and USB interface will be also disabled. After 100ms,
+ it is pulled high to 3.3V to re_enable the device and trigger the
+ next probe. This is typically used on M.2 key E modules.
+
+required:
+ - compatible
+ - reset-gpios
+
+unevaluatedProperties: false
+
+examples:
+ - |
+ #include <dt-bindings/gpio/gpio.h>
+
+ bluetooth {
+ compatible = "mediatek,mt7925-bluetooth";
+ #gpio-cells = <2>;
+ reset-gpios = <&pio 248 GPIO_ACTIVE_LOW>;
+ };
diff --git a/MAINTAINERS b/MAINTAINERS
index 5959513a7359..d104a5821f20 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -14676,6 +14676,7 @@ L: linux-mediatek@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.45.2
next reply other threads:[~2025-09-05 8:44 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-05 8:44 Zhangchao Zhang [this message]
2025-09-05 15:02 ` [PATCH v7] dt-bindings: net: mediatek,mt7925-bluetooth.yaml Rob Herring (Arm)
2025-09-06 7:15 ` Krzysztof Kozlowski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250905084433.26999-1-ot_zhangchao.zhang@mediatek.com \
--to=ot_zhangchao.zhang@mediatek.com \
--cc=Hao.qin@mediatek.com \
--cc=chris.lu@mediatek.com \
--cc=conor+dt@kernel.org \
--cc=deren.Wu@mediatek.com \
--cc=devicetree@vger.kernel.org \
--cc=jiande.lu@mediatek.com \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-bluetooth@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=luiz.dentz@gmail.com \
--cc=marcel@holtmann.org \
--cc=robh@kernel.org \
--cc=sean.wang@mediatek.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).