ARM: dts: renesas: genmai: Enable MMCIF
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Sat, 28 Sep 2024 09:29:56 +0000 (11:29 +0200)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Wed, 9 Oct 2024 11:50:39 +0000 (13:50 +0200)
Luckily, I still had an MMC card lying around. Works fine.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/20240928092953.2982-8-wsa+renesas@sang-engineering.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
arch/arm/boot/dts/renesas/r7s72100-genmai.dts

index 3ceb1ea3163c2d6c8750cc01fc436de5f0caf20c..c81840dfb7da0c9a2963d9656ec257f93b8eb701 100644 (file)
                device_type = "memory";
                reg = <0x08000000 0x08000000>;
        };
+
+       cvcc2: regulator-mmc {
+               compatible = "regulator-fixed";
+               regulator-name = "Cvcc2";
+               regulator-min-microvolt = <3300000>;
+               regulator-max-microvolt = <3300000>;
+               regulator-boot-on;
+               regulator-always-on;
+       };
 };
 
 &bsc {
        };
 };
 
+&mmcif {
+       pinctrl-0 = <&mmcif_pins>;
+       pinctrl-names = "default";
+       cd-gpios = <&port3 8 GPIO_ACTIVE_LOW>;
+
+       vmmc-supply = <&cvcc2>;
+       vqmmc-supply = <&cvcc2>;
+       bus-width = <8>;
+       status = "okay";
+};
+
 &mtu2 {
        status = "okay";
 };
                pinmux = <RZA1_PINMUX(3, 1, 3)>;
        };
 
+       mmcif_pins: mmcif {
+               /* MMCIF: P3_8 is CD_GPIO, P3_10 up to P3_15, P4_0 up to P4_3 */
+               pinmux = <RZA1_PINMUX(3, 10, 8)>,       /* MMC_D1 */
+                        <RZA1_PINMUX(3, 11, 8)>,       /* MMC_D0 */
+                        <RZA1_PINMUX(3, 12, 8)>,       /* MMC_CLK */
+                        <RZA1_PINMUX(3, 13, 8)>,       /* MMC_CMD */
+                        <RZA1_PINMUX(3, 14, 8)>,       /* MMC_D3 */
+                        <RZA1_PINMUX(3, 15, 8)>,       /* MMC_D2 */
+                        <RZA1_PINMUX(4, 0, 8)>,        /* MMC_D4 */
+                        <RZA1_PINMUX(4, 1, 8)>,        /* MMC_D5 */
+                        <RZA1_PINMUX(4, 2, 8)>,        /* MMC_D6 */
+                        <RZA1_PINMUX(4, 3, 8)>;        /* MMC_D7 */
+       };
+
        scif2_pins: serial2 {
                /* P3_0 as TxD2; P3_2 as RxD2 */
                pinmux = <RZA1_PINMUX(3, 0, 6)>, <RZA1_PINMUX(3, 2, 4)>;