Message ID | 1427391505-29129-4-git-send-email-ben.dooks@codethink.co.uk (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On Thu, Mar 26, 2015 at 05:38:25PM +0000, Ben Dooks wrote: > Add gpio regulator for vmmc0 and attach the vmmc for it to the mmc0 > node on the SAM5D3 Xplained board. This will remove the following > warning from the kernel: > > atmel_mci f0000000.mmc: No vmmc regulator found > > Note, atmel_defconfig will need gpio regulator support enabled if this > is to be used properly. > > Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk> > -- > CC: Andrew Victor <linux@maxim.org.za> > CC: Nicolas Ferre <nicolas.ferre@atmel.com> > CC: Jean-Christophe Plagniol-Villard <plagnioj@jcrosoft.com> > CC: Rob Herring <robh+dt@kernel.org> > CC: Pawel Moll <pawel.moll@arm.com> > CC: Mark Rutland <mark.rutland@arm.com> > CC: Ian Campbell <ijc+devicetree@hellion.org.uk> > CC: Kumar Gala <galak@codeaurora.org> > CC: Russell King <linux@arm.linux.org.uk> > CC: linux-arm-kernel@lists.infradead.org > CC: devicetree@vger.kernel.org > --- > arch/arm/boot/dts/at91-sama5d3_xplained.dts | 9 +++++++++ > 1 file changed, 9 insertions(+) > > diff --git a/arch/arm/boot/dts/at91-sama5d3_xplained.dts b/arch/arm/boot/dts/at91-sama5d3_xplained.dts > index 1eb150d..6b6ad5c 100644 > --- a/arch/arm/boot/dts/at91-sama5d3_xplained.dts > +++ b/arch/arm/boot/dts/at91-sama5d3_xplained.dts > @@ -36,6 +36,7 @@ > mmc0: mmc@f0000000 { > pinctrl-0 = <&pinctrl_mmc0_clk_cmd_dat0 &pinctrl_mmc0_dat1_3 &pinctrl_mmc0_dat4_7 &pinctrl_mmc0_cd>; > status = "okay"; > + vmmc-supply = <&vcc_mmc0_reg>; > vqmmc-supply = <&vcc_3v3_reg>; > slot@0 { > reg = <0>; > @@ -285,6 +286,14 @@ > }; > }; > > + vcc_mmc0_reg: regulator@1 { > + compatible = "regualtor-gpio"; typo here and I think it is a fixed regulator and not a gpio one since we can't configure voltage. > + gpio = <&pioE 2 GPIO_ACTIVE_LOW>; > + regulator-name = "mmc0-card-supply"; > + regulator-min-microvolt = <3300000>; > + regulator-max-microvolt = <3300000>; > + }; > + > gpio_keys { > compatible = "gpio-keys"; > > -- > 2.1.4 > > > _______________________________________________ > linux-arm-kernel mailing list > linux-arm-kernel@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
diff --git a/arch/arm/boot/dts/at91-sama5d3_xplained.dts b/arch/arm/boot/dts/at91-sama5d3_xplained.dts index 1eb150d..6b6ad5c 100644 --- a/arch/arm/boot/dts/at91-sama5d3_xplained.dts +++ b/arch/arm/boot/dts/at91-sama5d3_xplained.dts @@ -36,6 +36,7 @@ mmc0: mmc@f0000000 { pinctrl-0 = <&pinctrl_mmc0_clk_cmd_dat0 &pinctrl_mmc0_dat1_3 &pinctrl_mmc0_dat4_7 &pinctrl_mmc0_cd>; status = "okay"; + vmmc-supply = <&vcc_mmc0_reg>; vqmmc-supply = <&vcc_3v3_reg>; slot@0 { reg = <0>; @@ -285,6 +286,14 @@ }; }; + vcc_mmc0_reg: regulator@1 { + compatible = "regualtor-gpio"; + gpio = <&pioE 2 GPIO_ACTIVE_LOW>; + regulator-name = "mmc0-card-supply"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + }; + gpio_keys { compatible = "gpio-keys";
Add gpio regulator for vmmc0 and attach the vmmc for it to the mmc0 node on the SAM5D3 Xplained board. This will remove the following warning from the kernel: atmel_mci f0000000.mmc: No vmmc regulator found Note, atmel_defconfig will need gpio regulator support enabled if this is to be used properly. Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk> -- CC: Andrew Victor <linux@maxim.org.za> CC: Nicolas Ferre <nicolas.ferre@atmel.com> CC: Jean-Christophe Plagniol-Villard <plagnioj@jcrosoft.com> CC: Rob Herring <robh+dt@kernel.org> CC: Pawel Moll <pawel.moll@arm.com> CC: Mark Rutland <mark.rutland@arm.com> CC: Ian Campbell <ijc+devicetree@hellion.org.uk> CC: Kumar Gala <galak@codeaurora.org> CC: Russell King <linux@arm.linux.org.uk> CC: linux-arm-kernel@lists.infradead.org CC: devicetree@vger.kernel.org --- arch/arm/boot/dts/at91-sama5d3_xplained.dts | 9 +++++++++ 1 file changed, 9 insertions(+)