diff mbox series

[1/2] mmc: dt-bindings: add support for MT7622 SoC

Message ID 6cb1d6d4ee40a61f7b33aed1711753342590d0dd.1520232933.git.sean.wang@mediatek.com
State Not Applicable, archived
Headers show
Series [1/2] mmc: dt-bindings: add support for MT7622 SoC | expand

Commit Message

Sean Wang March 5, 2018, 7:03 a.m. UTC
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(+)

Comments

Ulf Hansson March 5, 2018, 8:45 a.m. UTC | #1
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
>
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Ulf Hansson March 5, 2018, 8:45 a.m. UTC | #2
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
>
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox series

Patch

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