From: Andy-ld Lu <andy-ld.lu@mediatek.com>
To: <ulf.hansson@linaro.org>, <robh@kernel.org>, <krzk+dt@kernel.org>,
<matthias.bgg@gmail.com>,
<angelogioacchino.delregno@collabora.com>,
<wenbin.mei@mediatek.com>
Cc: <linux-mmc@vger.kernel.org>, <devicetree@vger.kernel.org>,
<linux-kernel@vger.kernel.org>,
<linux-arm-kernel@lists.infradead.org>,
<linux-mediatek@lists.infradead.org>,
Andy-ld Lu <andy-ld.lu@mediatek.com>
Subject: [PATCH v4 0/3] Add mtk-sd support for MT8196
Date: Fri, 11 Oct 2024 10:48:33 +0800 [thread overview]
Message-ID: <20241011024906.8173-1-andy-ld.lu@mediatek.com> (raw)
There are some new features for Mediatek SoC MT8196, which include new
command/data transmitting and receiving path (abbreviated as tx/rx), and
two modified register settings.
The driver code has to be adapted to implement the above changes, and the
compatible string 'mediatek,mt8196-mmc' is added to driver and devicetree
bindings.
---
Changes in v4:
- Reorder the first two commits, and update the commit message to explain
why the settings of stop_dly_sel and pop_en_cnt are variant.
Changes in v3:
- Separate the settings for stop_dly_sel and pop_en_cnt to a different
commit;
- Add the original value of stop_dly_sel to the platdata of legacy SoCs,
for unified code setting;
- Change to return if host->top_base is NULL in msdc_new_tx_setting function,
to simplify coding;
- Optimize the location of assignment for 'timing_changed' in msdc_set_mclk
function.
Changes in v2:
- Use compatible string 'mediatek,mt8196-mmc' to replace 'mediatek,msdc-v2';
- Remove the 'mediatek,stop-dly-sel', 'mediatek,pop-en-cnt' and 'mediatek,
prohibit-gate-cg' in devicetree bindings, due to SoC dependent;
- Add 'stop_dly_sel' and 'pop_en_cnt' to the compatiblity structure for
different register settings;
- The SoC's upgraded version would discard the bus design that detect source
clock CG when the CPU access the IP registers, so drop the related control
flow with 'prohibit_gate_cg' flag.
Link to v1:
https://patchwork.kernel.org/patch/13812924
---
Andy-ld Lu (3):
mmc: mtk-sd: Add stop_dly_sel and pop_en_cnt to platform data
mmc: mtk-sd: Add support for MT8196
dt-bindings: mmc: mtk-sd: Add support for MT8196
.../devicetree/bindings/mmc/mtk-sd.yaml | 2 +
drivers/mmc/host/mtk-sd.c | 166 +++++++++++++++---
2 files changed, 147 insertions(+), 21 deletions(-)
--
2.46.0
next reply other threads:[~2024-10-11 2:49 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-11 2:48 Andy-ld Lu [this message]
2024-10-11 2:48 ` [PATCH v4 1/3] mmc: mtk-sd: Add stop_dly_sel and pop_en_cnt to platform data Andy-ld Lu
2024-10-14 7:38 ` AngeloGioacchino Del Regno
2024-10-11 2:48 ` [PATCH v4 2/3] mmc: mtk-sd: Add support for MT8196 Andy-ld Lu
2024-10-11 2:48 ` [PATCH v4 3/3] dt-bindings: " Andy-ld Lu
2024-10-25 14:51 ` [PATCH v4 0/3] Add mtk-sd " Ulf Hansson
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=20241011024906.8173-1-andy-ld.lu@mediatek.com \
--to=andy-ld.lu@mediatek.com \
--cc=angelogioacchino.delregno@collabora.com \
--cc=devicetree@vger.kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=linux-mmc@vger.kernel.org \
--cc=matthias.bgg@gmail.com \
--cc=robh@kernel.org \
--cc=ulf.hansson@linaro.org \
--cc=wenbin.mei@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).