From: Zhangchao Zhang <ot_zhangchao.zhang@mediatek.com>
To: 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>,
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 v5 0/2] Bluetooth: mediatek: add gpio pin to reset bt
Date: Fri, 27 Jun 2025 13:59:22 +0800 [thread overview]
Message-ID: <20250627055924.7716-1-ot_zhangchao.zhang@mediatek.com> (raw)
The enhanced BT reset feature builds upon the previous software-based
BT reset by adding support for hardware pin resets.
To maintain compatibility with existing projects that
still use the software BT reset, both methods are supported.
When performing a BT reset, the system first checks whether the
Device Tree Source (DTS) is configured with the appropriate settings.
If the specified compatible and BT reset GPIO are defined in the DTS,
the system will pull the designated GPIO pin low for at least 200ms,
then pull it high to trigger the BT reset. If these settings are not
configured, the system will fall back to the original software
BT reset methods.
Compared with the previously submitted version, the following
information are some specific revision histories
V4-->V5 modifications:
-Modify the comments mentioned in v1.
-Modify dt_binding files and
make dt binding a separate patch.
V3-->V4 modifications:
Modify dt binding format information and
the explanation text in the patch
V2-->V3 modifications:
-Changed the capitalization of co-developer names,
using the correct capitalization of abbreviations and full
name, and corrected obvious spelling errors.
-Add a revision history.
-Remove the "BT Driver" in the prefix.
-Add the bt-binding document, include inforamtion related to reset
pin and compatibility matching.
-Add a comment before the schedule_delayed_work function call,
although schedule_delayed_work is asynchronous, there is no risk.
Even if it is not completed within 200ms, it will only postpone
the subsequent probe and will not have any impact.
-Add a comment before the btmtk_reset_by_gpio function call,
if the compatibility filed or pin cannot be found in the dts
files, it can still reset bluetooth using software reset.
V2 modifications:
Modify gpio to GPIO, SW to software,
and fix other obvious spelling errors.
--
2.46.0
next reply other threads:[~2025-06-27 6:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-27 5:59 Zhangchao Zhang [this message]
2025-06-27 5:59 ` [PATCH v5 1/2] Bluetooth: mediatek: add gpio pin to reset bt Zhangchao Zhang
2025-06-27 5:59 ` [PATCH v5 2/2] dt-bindings: net: mediatek,mt7925-bluetooth.yaml Zhangchao Zhang
2025-06-28 12:03 ` Krzysztof Kozlowski
2025-06-28 12:03 ` [PATCH v5 0/2] Bluetooth: mediatek: add gpio pin to reset bt 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=20250627055924.7716-1-ot_zhangchao.zhang@mediatek.com \
--to=ot_zhangchao.zhang@mediatek.com \
--cc=Hao.qin@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=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).