From: Krzysztof Kozlowski <krzk@kernel.org>
To: Zhangchao Zhang <ot_zhangchao.zhang@mediatek.com>,
Marcel Holtmann <marcel@holtmann.org>,
Matthias Brugger <matthias.bgg@gmail.com>,
Luiz Von Dentz <luiz.dentz@gmail.com>,
AngeloGioacchino Del Regno
<angelogioacchino.delregno@collabora.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>,
Wallace Yu <Wallace.Yu@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>
Subject: Re: [PATCH v6] dt-bindings: net: mediatek,mt7925-bluetooth.yaml
Date: Tue, 8 Jul 2025 08:05:00 +0200 [thread overview]
Message-ID: <cb03b137-c87c-446f-a6c6-45b6656af212@kernel.org> (raw)
In-Reply-To: <20250708060150.27375-3-ot_zhangchao.zhang@mediatek.com>
On 08/07/2025 08:01, Zhangchao Zhang wrote:
> 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 | 55 +++++++++++++++++++
> MAINTAINERS | 1 +
> 2 files changed, 56 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..636b8b3d6a14
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/net/bluetooth/mediatek,mt7925-bluetooth.yaml
> @@ -0,0 +1,55 @@
> +# 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 chip uses the USB bus to communicate with the host.
> + Two methods are used to reset Bluetooth. It 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.
Don't describe DTS, but the hardware.
> +
> +allOf:
> + - $ref: bluetooth-controller.yaml#
> +
> +properties:
> + compatible:
> + enum:
> + - mediatek,mt7925-bluetooth
> +
> + "#gpio-cells":
> + const: 2
You did not say this is a GPIO controller.
> +
> + reset-gpios:
> + maxItems: 1
> + description:
> + Default high level, this pin can external shut down the BT function
How defaults matter?
> + when this pin is pull low, at the same time, USB interface will be also
> + disabled. When this function is not required, external pull high is not
So active low?
> + required. After 200ms, it is pulled high to 3.3v and the next probe is
> + performed. On typical M.2 key E modules this is the W_DISABLE2# pin.
So that's part of PCI slot? Sorry, but this does not fit here at all.
Best regards,
Krzysztof
prev parent reply other threads:[~2025-07-08 6:05 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-08 6:01 [PATCH v6 0/1] Bluetooth: mediatek: add gpio pin to reset bt Zhangchao Zhang
2025-07-08 6:01 ` [PATCH v6 1/1] " Zhangchao Zhang
2025-07-08 6:07 ` Krzysztof Kozlowski
2025-07-08 6:01 ` [PATCH v6] dt-bindings: net: mediatek,mt7925-bluetooth.yaml Zhangchao Zhang
2025-07-08 6:05 ` Krzysztof Kozlowski [this message]
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=cb03b137-c87c-446f-a6c6-45b6656af212@kernel.org \
--to=krzk@kernel.org \
--cc=Hao.qin@mediatek.com \
--cc=Wallace.Yu@mediatek.com \
--cc=angelogioacchino.delregno@collabora.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=matthias.bgg@gmail.com \
--cc=ot_zhangchao.zhang@mediatek.com \
--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
all inboxes | Powered by JetHome®