devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 08/10] ARM: dts: stm32: update SDMMC version for STM32MP13
@ 2022-01-12 16:33 Yann Gautier
  2022-01-12 16:33 ` [PATCH 09/10] ARM: dts: stm32: add SDMMC2 in STM32MP13 DT Yann Gautier
  2022-01-12 16:33 ` [PATCH 10/10] ARM: dts: stm32: add sdmmc2 pins for STM32MP13 Yann Gautier
  0 siblings, 2 replies; 3+ messages in thread
From: Yann Gautier @ 2022-01-12 16:33 UTC (permalink / raw)
  To: Rob Herring, Alexandre Torgue, Maxime Coquelin, devicetree,
	linux-stm32, linux-arm-kernel
  Cc: linux-kernel, linux-mmc, Yann Gautier

From: Yann Gautier <yann.gautier@st.com>

On STM32MP13, the embedded SDMMC peripheral version is v2.2.
Update arm,primecell-periphid for SDMMC in the SoC DT file.

Signed-off-by: Yann Gautier <yann.gautier@st.com>
---
 arch/arm/boot/dts/stm32mp131.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/boot/dts/stm32mp131.dtsi b/arch/arm/boot/dts/stm32mp131.dtsi
index 672ac9360619..7189cba6b256 100644
--- a/arch/arm/boot/dts/stm32mp131.dtsi
+++ b/arch/arm/boot/dts/stm32mp131.dtsi
@@ -123,7 +123,7 @@
 
 		sdmmc1: mmc@58005000 {
 			compatible = "st,stm32-sdmmc2", "arm,pl18x", "arm,primecell";
-			arm,primecell-periphid = <0x00253180>;
+			arm,primecell-periphid = <0x20253180>;
 			reg = <0x58005000 0x1000>, <0x58006000 0x1000>;
 			interrupts = <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>;
 			interrupt-names = "cmd_irq";
-- 
2.17.1


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

* [PATCH 09/10] ARM: dts: stm32: add SDMMC2 in STM32MP13 DT
  2022-01-12 16:33 [PATCH 08/10] ARM: dts: stm32: update SDMMC version for STM32MP13 Yann Gautier
@ 2022-01-12 16:33 ` Yann Gautier
  2022-01-12 16:33 ` [PATCH 10/10] ARM: dts: stm32: add sdmmc2 pins for STM32MP13 Yann Gautier
  1 sibling, 0 replies; 3+ messages in thread
From: Yann Gautier @ 2022-01-12 16:33 UTC (permalink / raw)
  To: Rob Herring, Alexandre Torgue, Maxime Coquelin, devicetree,
	linux-stm32, linux-arm-kernel
  Cc: linux-kernel, linux-mmc, Yann Gautier

STM32MP13 embeds 2 instances of SDMMC peripheral.
Add the required information in SoC device tree file.

Signed-off-by: Yann Gautier <yann.gautier@foss.st.com>
---
 arch/arm/boot/dts/stm32mp131.dtsi | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/arch/arm/boot/dts/stm32mp131.dtsi b/arch/arm/boot/dts/stm32mp131.dtsi
index 7189cba6b256..a1efb545ca3d 100644
--- a/arch/arm/boot/dts/stm32mp131.dtsi
+++ b/arch/arm/boot/dts/stm32mp131.dtsi
@@ -135,6 +135,20 @@
 			status = "disabled";
 		};
 
+		sdmmc2: mmc@58007000 {
+			compatible = "st,stm32-sdmmc2", "arm,pl18x", "arm,primecell";
+			arm,primecell-periphid = <0x20253180>;
+			reg = <0x58007000 0x1000>, <0x58008000 0x1000>;
+			interrupts = <GIC_SPI 108 IRQ_TYPE_LEVEL_HIGH>;
+			interrupt-names = "cmd_irq";
+			clocks = <&clk_pll4_p>;
+			clock-names = "apb_pclk";
+			cap-sd-highspeed;
+			cap-mmc-highspeed;
+			max-frequency = <130000000>;
+			status = "disabled";
+		};
+
 		iwdg2: watchdog@5a002000 {
 			compatible = "st,stm32mp1-iwdg";
 			reg = <0x5a002000 0x400>;
-- 
2.17.1


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

* [PATCH 10/10] ARM: dts: stm32: add sdmmc2 pins for STM32MP13
  2022-01-12 16:33 [PATCH 08/10] ARM: dts: stm32: update SDMMC version for STM32MP13 Yann Gautier
  2022-01-12 16:33 ` [PATCH 09/10] ARM: dts: stm32: add SDMMC2 in STM32MP13 DT Yann Gautier
@ 2022-01-12 16:33 ` Yann Gautier
  1 sibling, 0 replies; 3+ messages in thread
From: Yann Gautier @ 2022-01-12 16:33 UTC (permalink / raw)
  To: Rob Herring, Alexandre Torgue, Maxime Coquelin, devicetree,
	linux-stm32, linux-arm-kernel
  Cc: linux-kernel, linux-mmc, Yann Gautier

Those pins are used for SDIO on STM32MP135F-DK board.

Signed-off-by: Yann Gautier <yann.gautier@foss.st.com>
---
 arch/arm/boot/dts/stm32mp13-pinctrl.dtsi | 51 ++++++++++++++++++++++++
 1 file changed, 51 insertions(+)

diff --git a/arch/arm/boot/dts/stm32mp13-pinctrl.dtsi b/arch/arm/boot/dts/stm32mp13-pinctrl.dtsi
index c6f78eef3698..d2472cd8f1d0 100644
--- a/arch/arm/boot/dts/stm32mp13-pinctrl.dtsi
+++ b/arch/arm/boot/dts/stm32mp13-pinctrl.dtsi
@@ -57,6 +57,57 @@
 		};
 	};
 
+	sdmmc2_b4_pins_a: sdmmc2-b4-0 {
+		pins {
+			pinmux = <STM32_PINMUX('B', 14, AF10)>, /* SDMMC2_D0 */
+				 <STM32_PINMUX('B', 15, AF10)>, /* SDMMC2_D1 */
+				 <STM32_PINMUX('B', 3, AF10)>, /* SDMMC2_D2 */
+				 <STM32_PINMUX('B', 4, AF10)>, /* SDMMC2_D3 */
+				 <STM32_PINMUX('G', 6, AF10)>; /* SDMMC2_CMD */
+			slew-rate = <1>;
+			drive-push-pull;
+			bias-pull-up;
+		};
+	};
+
+	sdmmc2_b4_od_pins_a: sdmmc2-b4-od-0 {
+		pins1 {
+			pinmux = <STM32_PINMUX('B', 14, AF10)>, /* SDMMC2_D0 */
+				 <STM32_PINMUX('B', 15, AF10)>, /* SDMMC2_D1 */
+				 <STM32_PINMUX('B', 3, AF10)>, /* SDMMC2_D2 */
+				 <STM32_PINMUX('B', 4, AF10)>; /* SDMMC2_D3 */
+			slew-rate = <1>;
+			drive-push-pull;
+			bias-pull-up;
+		};
+		pins2 {
+			pinmux = <STM32_PINMUX('G', 6, AF10)>; /* SDMMC2_CMD */
+			slew-rate = <1>;
+			drive-open-drain;
+			bias-pull-up;
+		};
+	};
+
+	sdmmc2_b4_sleep_pins_a: sdmmc2-b4-sleep-0 {
+		pins {
+			pinmux = <STM32_PINMUX('B', 14, ANALOG)>, /* SDMMC2_D0 */
+				 <STM32_PINMUX('B', 15, ANALOG)>, /* SDMMC2_D1 */
+				 <STM32_PINMUX('B', 3, ANALOG)>, /* SDMMC2_D2 */
+				 <STM32_PINMUX('B', 4, ANALOG)>, /* SDMMC2_D3 */
+				 <STM32_PINMUX('E', 3, ANALOG)>, /* SDMMC2_CK */
+				 <STM32_PINMUX('G', 6, ANALOG)>; /* SDMMC2_CMD */
+		};
+	};
+
+	sdmmc2_clk_pins_a: sdmmc2-clk-0 {
+		pins {
+			pinmux = <STM32_PINMUX('E', 3, AF10)>; /* SDMMC2_CK */
+			slew-rate = <1>;
+			drive-push-pull;
+			bias-pull-up;
+		};
+	};
+
 	uart4_pins_a: uart4-0 {
 		pins1 {
 			pinmux = <STM32_PINMUX('D', 6, AF8)>; /* UART4_TX */
-- 
2.17.1


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

end of thread, other threads:[~2022-01-12 16:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-12 16:33 [PATCH 08/10] ARM: dts: stm32: update SDMMC version for STM32MP13 Yann Gautier
2022-01-12 16:33 ` [PATCH 09/10] ARM: dts: stm32: add SDMMC2 in STM32MP13 DT Yann Gautier
2022-01-12 16:33 ` [PATCH 10/10] ARM: dts: stm32: add sdmmc2 pins for STM32MP13 Yann Gautier

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