Commit a3f8c564 authored by Alexandre Belloni's avatar Alexandre Belloni Committed by Shawn Guo

ARM: dt: imx28-cfa10036: introduce a regulator for mmc0

The PWM3 pinmux configuration conflicts with gpio 3.28. Introduce a regulator
for mmc0 so that it conflicts with the pwm driver and fails gracefully. The
kernel will then able to access mmc0 normally.
Signed-off-by: default avatarAlexandre Belloni <alexandre.belloni@free-electrons.com>
Signed-off-by: default avatarShawn Guo <shawn.guo@freescale.com>
parent 01d41c9c
...@@ -53,6 +53,17 @@ MX28_PAD_GPMI_RDY0__USB0_ID ...@@ -53,6 +53,17 @@ MX28_PAD_GPMI_RDY0__USB0_ID
fsl,pull-up = <MXS_PULL_DISABLE>; fsl,pull-up = <MXS_PULL_DISABLE>;
}; };
mmc_pwr_cfa10036: mmc_pwr_cfa10036@0 {
reg = <0>;
fsl,pinmux-ids = <
0x31c3 /*
MX28_PAD_PWM3__GPIO_3_28 */
>;
fsl,drive-strength = <0>;
fsl,voltage = <1>;
fsl,pull-up = <0>;
};
}; };
ssp0: ssp@80010000 { ssp0: ssp@80010000 {
...@@ -60,6 +71,7 @@ ssp0: ssp@80010000 { ...@@ -60,6 +71,7 @@ ssp0: ssp@80010000 {
pinctrl-names = "default"; pinctrl-names = "default";
pinctrl-0 = <&mmc0_4bit_pins_a pinctrl-0 = <&mmc0_4bit_pins_a
&mmc0_cd_cfg &mmc0_sck_cfg>; &mmc0_cd_cfg &mmc0_sck_cfg>;
vmmc-supply = <&reg_vddio_sd0>;
bus-width = <4>; bus-width = <4>;
status = "okay"; status = "okay";
}; };
...@@ -116,4 +128,14 @@ power { ...@@ -116,4 +128,14 @@ power {
default-state = "on"; default-state = "on";
}; };
}; };
reg_vddio_sd0: vddio-sd0 {
compatible = "regulator-fixed";
pinctrl-names = "default";
pinctrl-0 = <&mmc_pwr_cfa10036>;
regulator-name = "vddio-sd0";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
gpio = <&gpio3 28 0>;
};
}; };
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment