Commit bc36748153eea3813018fae3e361a941213e9ada

Authored by Lee Jones
Committed by Arnd Bergmann
1 parent 890d84fac0

ARM: ux500: Provide regulator support for SMSC911x via Device Tree

This patch adds a fixed regulator for use by the SMSC911x Ethernet
chip driver into the db8500 Device Tree. It also references other
regulators required by the same device.

Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>

Showing 3 changed files with 15 additions and 0 deletions Side-by-side Diff

arch/arm/boot/dts/snowball.dts
... ... @@ -20,6 +20,16 @@
20 20 reg = <0x00000000 0x20000000>;
21 21 };
22 22  
  23 + en_3v3_reg: en_3v3 {
  24 + compatible = "regulator-fixed";
  25 + regulator-name = "en-3v3-fixed-supply";
  26 + regulator-min-microvolt = <3300000>;
  27 + regulator-max-microvolt = <3300000>;
  28 + gpios = <&gpio0 26 0x4>; // 26
  29 + startup-delay-us = <5000>;
  30 + enable-active-high;
  31 + };
  32 +
23 33 gpio_keys {
24 34 compatible = "gpio-keys";
25 35 #address-cells = <1>;
... ... @@ -79,6 +89,9 @@
79 89 reg = <0 0x10000>;
80 90 interrupts = <12 0x1>;
81 91 interrupt-parent = <&gpio4>;
  92 + vdd33a-supply = <&en_3v3_reg>;
  93 + vddvario-supply = <&db8500_vape_reg>;
  94 +
82 95  
83 96 reg-shift = <1>;
84 97 reg-io-width = <2>;
arch/arm/configs/u8500_defconfig
... ... @@ -75,6 +75,7 @@
75 75 CONFIG_AB8500_CORE=y
76 76 CONFIG_REGULATOR=y
77 77 CONFIG_REGULATOR_AB8500=y
  78 +CONFIG_REGULATOR_FIXED_VOLTAGE=y
78 79 # CONFIG_HID_SUPPORT is not set
79 80 CONFIG_USB_GADGET=y
80 81 CONFIG_AB8500_USB=y
drivers/mfd/db8500-prcmu.c
... ... @@ -2735,6 +2735,7 @@
2735 2735 REGULATOR_SUPPLY("vcore", "uart2"),
2736 2736 REGULATOR_SUPPLY("v-ape", "nmk-ske-keypad.0"),
2737 2737 REGULATOR_SUPPLY("v-hsi", "ste_hsi.0"),
  2738 + REGULATOR_SUPPLY("vddvario", "smsc911x.0"),
2738 2739 };
2739 2740  
2740 2741 static struct regulator_consumer_supply db8500_vsmps2_consumers[] = {