Skip to content

Add mtk-sd support for MT8196

Andy-ld Lu linux-arm-kernel linux-devicetree linux-mediatek linux-mmc lkml 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest3 patches 2 repliesIn review
  2. v33 patches 4 repliesSuperseded
  3. v22 patches 4 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v12 patches6 repliesSuperseded

Changes in v4 from the cover letter

- 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.

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3mmc: mtk-sd: Add stop_dly_sel and pop_en_cnt to platform datadrivers/mmc/host/mtk-sd.c+19 -21 reply
2/3mmc: mtk-sd: Add support for MT8196drivers/mmc/host/mtk-sd.c+126 -190 replies
3/3dt-bindings: mmc: mtk-sd: Add support for MT8196Documentation/devicetree/bindings/mmc/mtk-sd.yaml+2 -00 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchAngeloGioacchino Del RegnoKrzysztof Kozlowski
1/3R-b
2/3R-b
3/3R-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH v4 0/3] Add mtk-sd support for MT8196

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(-)
Signature · 1 line
2.46.0