ARM: dts: iwg20m: Add MMCIF0 support
authorChris Paterson <chris.paterson2@renesas.com>
Thu, 13 Jul 2017 15:39:00 +0000 (16:39 +0100)
committerSimon Horman <horms+renesas@verge.net.au>
Thu, 27 Jul 2017 15:39:18 +0000 (17:39 +0200)
Define the iwg20m board dependent part of the MMCIF0 device node.

Signed-off-by: Chris Paterson <chris.paterson2@renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
arch/arm/boot/dts/r8a7743-iwg20m.dtsi

index 001ca91..f78dbc5 100644 (file)
                device_type = "memory";
                reg = <2 0x00000000 0 0x20000000>;
        };
+
+       reg_3p3v: 3p3v {
+               compatible = "regulator-fixed";
+               regulator-name = "3P3V";
+               regulator-min-microvolt = <3300000>;
+               regulator-max-microvolt = <3300000>;
+               regulator-always-on;
+               regulator-boot-on;
+       };
 };
 
 &extal_clk {
        clock-frequency = <20000000>;
 };
+
+&pfc {
+       mmcif0_pins: mmc {
+               groups = "mmc_data8_b", "mmc_ctrl";
+               function = "mmc";
+       };
+};
+
+&mmcif0 {
+               pinctrl-0 = <&mmcif0_pins>;
+               pinctrl-names = "default";
+
+               vmmc-supply = <&reg_3p3v>;
+               bus-width = <8>;
+               non-removable;
+               status = "okay";
+};