* [PATCH 1/2] mmc: dt-bindings: add support for MT7622 SoC
@ 2018-03-05 7:03 sean.wang
2018-03-05 7:03 ` [PATCH 2/2] mmc: mediatek: " sean.wang
2018-03-05 8:45 ` [PATCH 1/2] mmc: dt-bindings: " Ulf Hansson
0 siblings, 2 replies; 4+ messages in thread
From: sean.wang @ 2018-03-05 7:03 UTC (permalink / raw)
To: robh+dt, mark.rutland, ulf.hansson
Cc: devicetree, linux-mediatek, linux-mmc, linux-kernel, Sean Wang
From: Sean Wang <sean.wang@mediatek.com>
Add the devicetree binding for MT7622 SoC
Signed-off-by: Sean Wang <sean.wang@mediatek.com>
---
Documentation/devicetree/bindings/mmc/mtk-sd.txt | 1 +
1 file changed, 1 insertion(+)
diff --git a/Documentation/devicetree/bindings/mmc/mtk-sd.txt b/Documentation/devicetree/bindings/mmc/mtk-sd.txt
index 9b80176..f33467a 100644
--- a/Documentation/devicetree/bindings/mmc/mtk-sd.txt
+++ b/Documentation/devicetree/bindings/mmc/mtk-sd.txt
@@ -12,6 +12,7 @@ Required properties:
"mediatek,mt8173-mmc": for mmc host ip compatible with mt8173
"mediatek,mt2701-mmc": for mmc host ip compatible with mt2701
"mediatek,mt2712-mmc": for mmc host ip compatible with mt2712
+ "mediatek,mt7622-mmc": for MT7622 SoC
"mediatek,mt7623-mmc", "mediatek,mt2701-mmc": for MT7623 SoC
- reg: physical base address of the controller and length
--
2.7.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/2] mmc: mediatek: add support for MT7622 SoC
2018-03-05 7:03 [PATCH 1/2] mmc: dt-bindings: add support for MT7622 SoC sean.wang
@ 2018-03-05 7:03 ` sean.wang
2018-03-05 8:45 ` Ulf Hansson
2018-03-05 8:45 ` [PATCH 1/2] mmc: dt-bindings: " Ulf Hansson
1 sibling, 1 reply; 4+ messages in thread
From: sean.wang @ 2018-03-05 7:03 UTC (permalink / raw)
To: robh+dt, mark.rutland, ulf.hansson
Cc: devicetree, linux-mediatek, linux-mmc, linux-kernel, Sean Wang,
Chaotian Jing
From: Sean Wang <sean.wang@mediatek.com>
Just applying the existing logic and adding its own characteristics into
the space pointed by an extra entry of struct of_device_id to have support
of MT7622 SoC.
Signed-off-by: Chaotian Jing <chaotian.jing@mediatek.com>
Signed-off-by: Sean Wang <sean.wang@mediatek.com>
Tested-by: Jumin Li <jumin.li@mediatek.com>
---
drivers/mmc/host/mtk-sd.c | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/drivers/mmc/host/mtk-sd.c b/drivers/mmc/host/mtk-sd.c
index 6457a7d..cb274e8 100644
--- a/drivers/mmc/host/mtk-sd.c
+++ b/drivers/mmc/host/mtk-sd.c
@@ -438,11 +438,23 @@ static const struct mtk_mmc_compatible mt2712_compat = {
.enhance_rx = true,
};
+static const struct mtk_mmc_compatible mt7622_compat = {
+ .clk_div_bits = 12,
+ .hs400_tune = false,
+ .pad_tune_reg = MSDC_PAD_TUNE0,
+ .async_fifo = true,
+ .data_tune = true,
+ .busy_check = true,
+ .stop_clk_fix = true,
+ .enhance_rx = true,
+};
+
static const struct of_device_id msdc_of_ids[] = {
{ .compatible = "mediatek,mt8135-mmc", .data = &mt8135_compat},
{ .compatible = "mediatek,mt8173-mmc", .data = &mt8173_compat},
{ .compatible = "mediatek,mt2701-mmc", .data = &mt2701_compat},
{ .compatible = "mediatek,mt2712-mmc", .data = &mt2712_compat},
+ { .compatible = "mediatek,mt7622-mmc", .data = &mt7622_compat},
{}
};
MODULE_DEVICE_TABLE(of, msdc_of_ids);
--
2.7.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 1/2] mmc: dt-bindings: add support for MT7622 SoC
2018-03-05 7:03 [PATCH 1/2] mmc: dt-bindings: add support for MT7622 SoC sean.wang
2018-03-05 7:03 ` [PATCH 2/2] mmc: mediatek: " sean.wang
@ 2018-03-05 8:45 ` Ulf Hansson
1 sibling, 0 replies; 4+ messages in thread
From: Ulf Hansson @ 2018-03-05 8:45 UTC (permalink / raw)
To: sean.wang
Cc: Rob Herring, Mark Rutland, devicetree, linux-mediatek,
linux-mmc@vger.kernel.org, Linux Kernel Mailing List
On 5 March 2018 at 08:03, <sean.wang@mediatek.com> wrote:
> From: Sean Wang <sean.wang@mediatek.com>
>
> Add the devicetree binding for MT7622 SoC
>
> Signed-off-by: Sean Wang <sean.wang@mediatek.com>
Thanks, applied for next!
Kind regards
Uffe
> ---
> Documentation/devicetree/bindings/mmc/mtk-sd.txt | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/Documentation/devicetree/bindings/mmc/mtk-sd.txt b/Documentation/devicetree/bindings/mmc/mtk-sd.txt
> index 9b80176..f33467a 100644
> --- a/Documentation/devicetree/bindings/mmc/mtk-sd.txt
> +++ b/Documentation/devicetree/bindings/mmc/mtk-sd.txt
> @@ -12,6 +12,7 @@ Required properties:
> "mediatek,mt8173-mmc": for mmc host ip compatible with mt8173
> "mediatek,mt2701-mmc": for mmc host ip compatible with mt2701
> "mediatek,mt2712-mmc": for mmc host ip compatible with mt2712
> + "mediatek,mt7622-mmc": for MT7622 SoC
> "mediatek,mt7623-mmc", "mediatek,mt2701-mmc": for MT7623 SoC
>
> - reg: physical base address of the controller and length
> --
> 2.7.4
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 2/2] mmc: mediatek: add support for MT7622 SoC
2018-03-05 7:03 ` [PATCH 2/2] mmc: mediatek: " sean.wang
@ 2018-03-05 8:45 ` Ulf Hansson
0 siblings, 0 replies; 4+ messages in thread
From: Ulf Hansson @ 2018-03-05 8:45 UTC (permalink / raw)
To: sean.wang
Cc: Rob Herring, Mark Rutland, devicetree, linux-mediatek,
linux-mmc@vger.kernel.org, Linux Kernel Mailing List,
Chaotian Jing
On 5 March 2018 at 08:03, <sean.wang@mediatek.com> wrote:
> From: Sean Wang <sean.wang@mediatek.com>
>
> Just applying the existing logic and adding its own characteristics into
> the space pointed by an extra entry of struct of_device_id to have support
> of MT7622 SoC.
>
> Signed-off-by: Chaotian Jing <chaotian.jing@mediatek.com>
> Signed-off-by: Sean Wang <sean.wang@mediatek.com>
> Tested-by: Jumin Li <jumin.li@mediatek.com>
Thanks, applied for next!
Kind regards
Uffe
> ---
> drivers/mmc/host/mtk-sd.c | 12 ++++++++++++
> 1 file changed, 12 insertions(+)
>
> diff --git a/drivers/mmc/host/mtk-sd.c b/drivers/mmc/host/mtk-sd.c
> index 6457a7d..cb274e8 100644
> --- a/drivers/mmc/host/mtk-sd.c
> +++ b/drivers/mmc/host/mtk-sd.c
> @@ -438,11 +438,23 @@ static const struct mtk_mmc_compatible mt2712_compat = {
> .enhance_rx = true,
> };
>
> +static const struct mtk_mmc_compatible mt7622_compat = {
> + .clk_div_bits = 12,
> + .hs400_tune = false,
> + .pad_tune_reg = MSDC_PAD_TUNE0,
> + .async_fifo = true,
> + .data_tune = true,
> + .busy_check = true,
> + .stop_clk_fix = true,
> + .enhance_rx = true,
> +};
> +
> static const struct of_device_id msdc_of_ids[] = {
> { .compatible = "mediatek,mt8135-mmc", .data = &mt8135_compat},
> { .compatible = "mediatek,mt8173-mmc", .data = &mt8173_compat},
> { .compatible = "mediatek,mt2701-mmc", .data = &mt2701_compat},
> { .compatible = "mediatek,mt2712-mmc", .data = &mt2712_compat},
> + { .compatible = "mediatek,mt7622-mmc", .data = &mt7622_compat},
> {}
> };
> MODULE_DEVICE_TABLE(of, msdc_of_ids);
> --
> 2.7.4
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2018-03-05 8:45 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-03-05 7:03 [PATCH 1/2] mmc: dt-bindings: add support for MT7622 SoC sean.wang
2018-03-05 7:03 ` [PATCH 2/2] mmc: mediatek: " sean.wang
2018-03-05 8:45 ` Ulf Hansson
2018-03-05 8:45 ` [PATCH 1/2] mmc: dt-bindings: " Ulf Hansson
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).