devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v4 0/2] Add mmc support for mt7988
@ 2024-10-12 14:38 Frank Wunderlich
  2024-10-12 14:38 ` [PATCH v4 1/2] dt-bindings: mmc: mtk-sd: Add mt7988 SoC Frank Wunderlich
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Frank Wunderlich @ 2024-10-12 14:38 UTC (permalink / raw)
  To: Chaotian Jing, Ulf Hansson, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Matthias Brugger, AngeloGioacchino Del Regno,
	Wenbin Mei
  Cc: Frank Wunderlich, linux-mmc, devicetree, linux-kernel,
	linux-arm-kernel, linux-mediatek, daniel, john, eladwf,
	ansuelsmth

From: Frank Wunderlich <frank-w@public-files.de>

Add MMC-Support for MT798 SoC

changes in v4:
- drop minitems because of dt_binding_check error
- explain mt7988 compatible with mt7986 platform data in commit description
changes in v3:
- use mt7986 platform-data with the mt7988 compatible

changes in v2:
- corrected minItems to require all 4 clocks


Frank Wunderlich (2):
  dt-bindings: mmc: mtk-sd: Add mt7988 SoC
  mmc: mtk-sd: add support for mt7988

 .../devicetree/bindings/mmc/mtk-sd.yaml       | 22 +++++++++++++++++++
 drivers/mmc/host/mtk-sd.c                     |  1 +
 2 files changed, 23 insertions(+)

-- 
2.43.0


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [PATCH v4 1/2] dt-bindings: mmc: mtk-sd: Add mt7988 SoC
  2024-10-12 14:38 [PATCH v4 0/2] Add mmc support for mt7988 Frank Wunderlich
@ 2024-10-12 14:38 ` Frank Wunderlich
  2024-10-14  7:10   ` Krzysztof Kozlowski
  2024-10-14  8:17   ` AngeloGioacchino Del Regno
  2024-10-12 14:38 ` [PATCH v4 2/2] mmc: mtk-sd: add support for mt7988 Frank Wunderlich
  2024-10-25 14:51 ` [PATCH v4 0/2] Add mmc " Ulf Hansson
  2 siblings, 2 replies; 7+ messages in thread
From: Frank Wunderlich @ 2024-10-12 14:38 UTC (permalink / raw)
  To: Chaotian Jing, Ulf Hansson, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Matthias Brugger, AngeloGioacchino Del Regno,
	Wenbin Mei
  Cc: Frank Wunderlich, linux-mmc, devicetree, linux-kernel,
	linux-arm-kernel, linux-mediatek, daniel, john, eladwf,
	ansuelsmth

From: Frank Wunderlich <frank-w@public-files.de>

Add binding definitions for mmc on MT7988 SoC.

Signed-off-by: Frank Wunderlich <frank-w@public-files.de>
---
v4:
- drop minitems because of errors
v3:
- fixed minItems on clock-names too
v2:
- fixed minItems to 4
---
 .../devicetree/bindings/mmc/mtk-sd.yaml       | 22 +++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/Documentation/devicetree/bindings/mmc/mtk-sd.yaml b/Documentation/devicetree/bindings/mmc/mtk-sd.yaml
index c532ec92d2d9..a51d3bd08d94 100644
--- a/Documentation/devicetree/bindings/mmc/mtk-sd.yaml
+++ b/Documentation/devicetree/bindings/mmc/mtk-sd.yaml
@@ -21,6 +21,7 @@ properties:
           - mediatek,mt7620-mmc
           - mediatek,mt7622-mmc
           - mediatek,mt7986-mmc
+          - mediatek,mt7988-mmc
           - mediatek,mt8135-mmc
           - mediatek,mt8173-mmc
           - mediatek,mt8183-mmc
@@ -263,6 +264,27 @@ allOf:
             - const: bus_clk
             - const: sys_cg
 
+  - if:
+      properties:
+        compatible:
+          contains:
+            enum:
+              - mediatek,mt7988-mmc
+    then:
+      properties:
+        clocks:
+          items:
+            - description: source clock
+            - description: HCLK which used for host
+            - description: Advanced eXtensible Interface
+            - description: Advanced High-performance Bus clock
+        clock-names:
+          items:
+            - const: source
+            - const: hclk
+            - const: axi_cg
+            - const: ahb_cg
+
   - if:
       properties:
         compatible:
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [PATCH v4 2/2] mmc: mtk-sd: add support for mt7988
  2024-10-12 14:38 [PATCH v4 0/2] Add mmc support for mt7988 Frank Wunderlich
  2024-10-12 14:38 ` [PATCH v4 1/2] dt-bindings: mmc: mtk-sd: Add mt7988 SoC Frank Wunderlich
@ 2024-10-12 14:38 ` Frank Wunderlich
  2024-10-14  8:17   ` AngeloGioacchino Del Regno
  2024-10-25 14:51 ` [PATCH v4 0/2] Add mmc " Ulf Hansson
  2 siblings, 1 reply; 7+ messages in thread
From: Frank Wunderlich @ 2024-10-12 14:38 UTC (permalink / raw)
  To: Chaotian Jing, Ulf Hansson, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Matthias Brugger, AngeloGioacchino Del Regno,
	Wenbin Mei
  Cc: Frank Wunderlich, linux-mmc, devicetree, linux-kernel,
	linux-arm-kernel, linux-mediatek, daniel, john, eladwf,
	ansuelsmth

From: Frank Wunderlich <frank-w@public-files.de>

Add support for mmc on MT7988 SoC.

We can use mt7986 platform data in driver, but mt7988 needs different
clocks so for binding we need own compatible.

Signed-off-by: Frank Wunderlich <frank-w@public-files.de>
---
changes:
v4:
- explain mt7988 compatible with mt7986 platform data in commit description
v3:
- reuse mt7986 platform data instead of copy
---
 drivers/mmc/host/mtk-sd.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/mmc/host/mtk-sd.c b/drivers/mmc/host/mtk-sd.c
index 89018b6c97b9..aaf27fd211c1 100644
--- a/drivers/mmc/host/mtk-sd.c
+++ b/drivers/mmc/host/mtk-sd.c
@@ -629,6 +629,7 @@ static const struct of_device_id msdc_of_ids[] = {
 	{ .compatible = "mediatek,mt7620-mmc", .data = &mt7620_compat},
 	{ .compatible = "mediatek,mt7622-mmc", .data = &mt7622_compat},
 	{ .compatible = "mediatek,mt7986-mmc", .data = &mt7986_compat},
+	{ .compatible = "mediatek,mt7988-mmc", .data = &mt7986_compat},
 	{ .compatible = "mediatek,mt8135-mmc", .data = &mt8135_compat},
 	{ .compatible = "mediatek,mt8173-mmc", .data = &mt8173_compat},
 	{ .compatible = "mediatek,mt8183-mmc", .data = &mt8183_compat},
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [PATCH v4 1/2] dt-bindings: mmc: mtk-sd: Add mt7988 SoC
  2024-10-12 14:38 ` [PATCH v4 1/2] dt-bindings: mmc: mtk-sd: Add mt7988 SoC Frank Wunderlich
@ 2024-10-14  7:10   ` Krzysztof Kozlowski
  2024-10-14  8:17   ` AngeloGioacchino Del Regno
  1 sibling, 0 replies; 7+ messages in thread
From: Krzysztof Kozlowski @ 2024-10-14  7:10 UTC (permalink / raw)
  To: Frank Wunderlich
  Cc: Chaotian Jing, Ulf Hansson, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Matthias Brugger, AngeloGioacchino Del Regno,
	Wenbin Mei, Frank Wunderlich, linux-mmc, devicetree, linux-kernel,
	linux-arm-kernel, linux-mediatek, daniel, john, eladwf,
	ansuelsmth

On Sat, Oct 12, 2024 at 04:38:22PM +0200, Frank Wunderlich wrote:
> From: Frank Wunderlich <frank-w@public-files.de>
> 
> Add binding definitions for mmc on MT7988 SoC.
> 
> Signed-off-by: Frank Wunderlich <frank-w@public-files.de>
> ---
> v4:
> - drop minitems because of errors
> v3:
> - fixed minItems on clock-names too
> v2:
> - fixed minItems to 4
> ---
>  .../devicetree/bindings/mmc/mtk-sd.yaml       | 22 +++++++++++++++++++
>  1 file changed, 22 insertions(+)

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

Best regards,
Krzysztof


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH v4 2/2] mmc: mtk-sd: add support for mt7988
  2024-10-12 14:38 ` [PATCH v4 2/2] mmc: mtk-sd: add support for mt7988 Frank Wunderlich
@ 2024-10-14  8:17   ` AngeloGioacchino Del Regno
  0 siblings, 0 replies; 7+ messages in thread
From: AngeloGioacchino Del Regno @ 2024-10-14  8:17 UTC (permalink / raw)
  To: Frank Wunderlich, Chaotian Jing, Ulf Hansson, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Matthias Brugger, Wenbin Mei
  Cc: Frank Wunderlich, linux-mmc, devicetree, linux-kernel,
	linux-arm-kernel, linux-mediatek, daniel, john, eladwf,
	ansuelsmth

Il 12/10/24 16:38, Frank Wunderlich ha scritto:
> From: Frank Wunderlich <frank-w@public-files.de>
> 
> Add support for mmc on MT7988 SoC.
> 
> We can use mt7986 platform data in driver, but mt7988 needs different
> clocks so for binding we need own compatible.
> 
> Signed-off-by: Frank Wunderlich <frank-w@public-files.de>

Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH v4 1/2] dt-bindings: mmc: mtk-sd: Add mt7988 SoC
  2024-10-12 14:38 ` [PATCH v4 1/2] dt-bindings: mmc: mtk-sd: Add mt7988 SoC Frank Wunderlich
  2024-10-14  7:10   ` Krzysztof Kozlowski
@ 2024-10-14  8:17   ` AngeloGioacchino Del Regno
  1 sibling, 0 replies; 7+ messages in thread
From: AngeloGioacchino Del Regno @ 2024-10-14  8:17 UTC (permalink / raw)
  To: Frank Wunderlich, Chaotian Jing, Ulf Hansson, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Matthias Brugger, Wenbin Mei
  Cc: Frank Wunderlich, linux-mmc, devicetree, linux-kernel,
	linux-arm-kernel, linux-mediatek, daniel, john, eladwf,
	ansuelsmth

Il 12/10/24 16:38, Frank Wunderlich ha scritto:
> From: Frank Wunderlich <frank-w@public-files.de>
> 
> Add binding definitions for mmc on MT7988 SoC.
> 
> Signed-off-by: Frank Wunderlich <frank-w@public-files.de>

Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH v4 0/2] Add mmc support for mt7988
  2024-10-12 14:38 [PATCH v4 0/2] Add mmc support for mt7988 Frank Wunderlich
  2024-10-12 14:38 ` [PATCH v4 1/2] dt-bindings: mmc: mtk-sd: Add mt7988 SoC Frank Wunderlich
  2024-10-12 14:38 ` [PATCH v4 2/2] mmc: mtk-sd: add support for mt7988 Frank Wunderlich
@ 2024-10-25 14:51 ` Ulf Hansson
  2 siblings, 0 replies; 7+ messages in thread
From: Ulf Hansson @ 2024-10-25 14:51 UTC (permalink / raw)
  To: Frank Wunderlich
  Cc: Chaotian Jing, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	Matthias Brugger, AngeloGioacchino Del Regno, Wenbin Mei,
	Frank Wunderlich, linux-mmc, devicetree, linux-kernel,
	linux-arm-kernel, linux-mediatek, daniel, john, eladwf,
	ansuelsmth

On Sat, 12 Oct 2024 at 16:38, Frank Wunderlich <linux@fw-web.de> wrote:
>
> From: Frank Wunderlich <frank-w@public-files.de>
>
> Add MMC-Support for MT798 SoC
>
> changes in v4:
> - drop minitems because of dt_binding_check error
> - explain mt7988 compatible with mt7986 platform data in commit description
> changes in v3:
> - use mt7986 platform-data with the mt7988 compatible

Applied for next, thanks!

Kind regards
Uffe


>
> changes in v2:
> - corrected minItems to require all 4 clocks
>
>
> Frank Wunderlich (2):
>   dt-bindings: mmc: mtk-sd: Add mt7988 SoC
>   mmc: mtk-sd: add support for mt7988
>
>  .../devicetree/bindings/mmc/mtk-sd.yaml       | 22 +++++++++++++++++++
>  drivers/mmc/host/mtk-sd.c                     |  1 +
>  2 files changed, 23 insertions(+)
>
> --
> 2.43.0
>

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-10-25 14:51 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-12 14:38 [PATCH v4 0/2] Add mmc support for mt7988 Frank Wunderlich
2024-10-12 14:38 ` [PATCH v4 1/2] dt-bindings: mmc: mtk-sd: Add mt7988 SoC Frank Wunderlich
2024-10-14  7:10   ` Krzysztof Kozlowski
2024-10-14  8:17   ` AngeloGioacchino Del Regno
2024-10-12 14:38 ` [PATCH v4 2/2] mmc: mtk-sd: add support for mt7988 Frank Wunderlich
2024-10-14  8:17   ` AngeloGioacchino Del Regno
2024-10-25 14:51 ` [PATCH v4 0/2] Add mmc " 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).