ARM: dts: imx53-ard: add regulators for lan9220
authorShawn Guo <shawn.guo@linaro.org>
Thu, 2 Aug 2012 14:48:39 +0000 (22:48 +0800)
committerShawn Guo <shawn.guo@linaro.org>
Fri, 3 Aug 2012 14:36:17 +0000 (22:36 +0800)
Since commit c7e963f (net/smsc911x: Add regulator support), the lan9220
device tree probe fails on imx53-ard board, because the commit makes
VDD33A and VDDVARIO supplies mandatory for the driver.

Add a fixed dummy 3V3 supplying lan9220 to fix the regression.

Cc: stable@vger.kernel.org
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
arch/arm/boot/dts/imx53-ard.dts

index 5b8eafcdbeec638009a894365b577df17256b3c0..fa95f4aa8ce6a07fcf3134e8c1fdf9e6d58acb73 100644 (file)
                        interrupt-parent = <&gpio2>;
                        interrupts = <31>;
                        reg-io-width = <4>;
+                       /*
+                        * VDD33A and VDDVARIO of LAN9220 are supplied by
+                        * SW4_3V3 of LTC3589.  Before the regulator driver
+                        * for this PMIC is available, we use a fixed dummy
+                        * 3V3 regulator to get LAN9220 driver probing work.
+                        */
+                       vdd33a-supply = <&reg_3p3v>;
+                       vddvario-supply = <&reg_3p3v>;
                        smsc,irq-push-pull;
                };
        };
 
+       regulators {
+               compatible = "simple-bus";
+
+               reg_3p3v: 3p3v {
+                       compatible = "regulator-fixed";
+                       regulator-name = "3P3V";
+                       regulator-min-microvolt = <3300000>;
+                       regulator-max-microvolt = <3300000>;
+                       regulator-always-on;
+               };
+       };
+
        gpio-keys {
                compatible = "gpio-keys";