Skip to contentSkip to conversation

mt8192: Add mmc device nodes

PATCH Superseded Allen-KH Cheng 2 participants 4 messages Apr 1, 2022 – Apr 7, 2022

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#1 lore raw

PATCH 1/1 arm64: dts: mt8192: Add mmc device nodes

In reply to Allen-KH Cheng

Add mmc nodes for mt8192 SoC.

---
 arch/arm64/boot/dts/mediatek/mt8192.dtsi | 33 ++++++++++++++++++++++++
 1 file changed, 33 insertions(+)
arch/arm64/boot/dts/mediatek/mt8192.dtsi +33 -0
index a6da7b04b9d4..23eb92057cb9 100644
@@ -989,6 +989,39 @@
 			compatible = "mediatek,mt8192-msdc";
 			reg = <0 0x11f60000 0 0x1000>;
 			#clock-cells = <1>;
+			status = "disabled";
+		};
+
+		mmc0: mmc@11f60000 {
+			compatible = "mediatek,mt8192-mmc", "mediatek,mt8183-mmc";
+			reg = <0 0x11f60000 0 0x1000>, <0 0x11f50000 0 0x1000>;
+			interrupts = <GIC_SPI 99 IRQ_TYPE_LEVEL_HIGH 0>;
+			clocks = <&topckgen CLK_TOP_MSDC50_0_SEL>,
+				 <&msdc_top CLK_MSDC_TOP_H_MST_0P>,
+				 <&msdc_top CLK_MSDC_TOP_SRC_0P>,
+				 <&msdc_top CLK_MSDC_TOP_P_CFG>,
+				 <&msdc_top CLK_MSDC_TOP_P_MSDC0>,
+				 <&msdc_top CLK_MSDC_TOP_AXI>,
+				 <&msdc_top CLK_MSDC_TOP_AHB2AXI_BRG_AXI>;
+			clock-names = "source", "hclk", "source_cg", "sys_cg",
+				      "pclk_cg", "axi_cg", "ahb_cg";
+			status = "disabled";
+		};
+
+		mmc1: mmc@11f70000 {
+			compatible = "mediatek,mt8192-mmc", "mediatek,mt8183-mmc";
+			reg = <0 0x11f70000 0 0x1000>, <0 0x11c70000 0 0x1000>;
+			interrupts = <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH 0>;
+			clocks = <&topckgen CLK_TOP_MSDC30_1_SEL>,
+				 <&msdc_top CLK_MSDC_TOP_H_MST_1P>,
+				 <&msdc_top CLK_MSDC_TOP_SRC_1P>,
+				 <&msdc_top CLK_MSDC_TOP_P_CFG>,
+				 <&msdc_top CLK_MSDC_TOP_P_MSDC1>,
+				 <&msdc_top CLK_MSDC_TOP_AXI>,
+				 <&msdc_top CLK_MSDC_TOP_AHB2AXI_BRG_AXI>;
+			clock-names = "source", "hclk", "source_cg", "sys_cg",
+				      "pclk_cg", "axi_cg", "ahb_cg";
+			status = "disabled";
 		};
 
 		mfgcfg: clock-controller@13fbf000 {
Signature · 1 line
2.18.0
#0 lore raw

cover mt8192: Add mmc device nodes

Take mmc device patch from series [email protected]/

This series are based on matthias.bgg/linux.git, v5.18-next/dts64

Changes history of mmc:
changes since v5:$
- mmc: diable the msdc clock node, drop reviewed-by tags.

changes since v4:
- mmc: reserve msdc node

changes since v3:
- mmc: reorder clocks as specified in the dt-bindings

changes since v2:
- mmc: use single line for reg

changes since v1:
- none

Allen-KH Cheng (1):
arm64: dts: mt8192: Add mmc device nodes

 arch/arm64/boot/dts/mediatek/mt8192.dtsi | 33 ++++++++++++++++++++++++
 1 file changed, 33 insertions(+)
Signature · 1 line
2.18.0
#2 lore raw

Re: [PATCH 1/1] arm64: dts: mt8192: Add mmc device nodes

In reply to Allen-KH Cheng

Il 01/04/22 07:30, Allen-KH Cheng ha scritto:

Quoted 12 lines

Add mmc nodes for mt8192 SoC.

---
  arch/arm64/boot/dts/mediatek/mt8192.dtsi | 33 ++++++++++++++++++++++++
  1 file changed, 33 insertions(+)
arch/arm64/boot/dts/mediatek/mt8192.dtsi +0 -0
index a6da7b04b9d4..23eb92057cb9 100644

arch/arm64/boot/dts/mediatek/mt8192.dtsi line 994

Quoted 6 lines
arch/arm64/boot/dts/mediatek/mt8192.dtsi +3 -0
@@ -989,6 +989,39 @@
  			compatible = "mediatek,mt8192-msdc";
  			reg = <0 0x11f60000 0 0x1000>;
  			#clock-cells = <1>;
+			status = "disabled";
+		};
+

Hello!
Please explain the reason (in the commit message) why you're disabling the mediatek,mt8192-msdc node, which was enabled before this change.

Also, introducing the mtk-sd controller at the same address as the mt8192-msdc clock controller will produce a warning...

Thanks,
Angelo

#3 lore raw

Re: [PATCH 1/1] arm64: dts: mt8192: Add mmc device nodes

Hi Angelo,

Quoted 27 lines · AngeloGioacchino Del Regno

Il 01/04/22 07:30, Allen-KH Cheng ha scritto:

Quoted 14 lines

Add mmc nodes for mt8192 SoC.

---
  arch/arm64/boot/dts/mediatek/mt8192.dtsi | 33
++++++++++++++++++++++++
  1 file changed, 33 insertions(+)
arch/arm64/boot/dts/mediatek/mt8192.dtsi +0 -0
index a6da7b04b9d4..23eb92057cb9 100644

arch/arm64/boot/dts/mediatek/mt8192.dtsi line 994

Quoted 6 lines
arch/arm64/boot/dts/mediatek/mt8192.dtsi +3 -0
@@ -989,6 +989,39 @@
  			compatible = "mediatek,mt8192-msdc";
  			reg = <0 0x11f60000 0 0x1000>;
  			#clock-cells = <1>;
+			status = "disabled";
+		};
+

Hello!
Please explain the reason (in the commit message) why you're disabling the
mediatek,mt8192-msdc node, which was enabled before this change.

Quoted 6 lines

Also, introducing the mtk-sd controller at the same address as the mt8192-msdc
clock controller will produce a warning...

Thanks,
Angelo

In mt8192.
mmc driver would directly write/read register(11f60000) to control clock configure.

Alos there is no other module using msdc: clock-controller.

I would remove the clock-controller entirely and explain in commit description.

Thanks,
Allen

_______________________________________________
Linux-mediatek mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-mediatek