summaryrefslogtreecommitdiffstats
path: root/arch/arm/boot/dts/kirkwood-topkick.dts
diff options
context:
space:
mode:
authorAndrew Lunn <andrew@lunn.ch>2013-01-06 11:10:38 +0100
committerJason Cooper <jason@lakedaemon.net>2013-01-06 18:53:10 +0100
commit8758c885c43859266e45db588b1a5992c049c595 (patch)
tree125215c6ffeda5ac06b3e0dc2330753c77917891 /arch/arm/boot/dts/kirkwood-topkick.dts
parentARM: Kirkwood: Fix missing sdio clock (diff)
downloadlinux-8758c885c43859266e45db588b1a5992c049c595.tar.xz
linux-8758c885c43859266e45db588b1a5992c049c595.zip
ARM: Kirkwood: Use fixed-regulator instead of board gpio call
With the change to a DT based pinctrl/gpio driver, using gpio API calls in board-*.c files no longer works, a dereferenced NULL pointer exception occurs instead. By converting the GPIO code into a fixed-regulator which gets probed later once pinctrl/gpio is available, we avoid the exception. Signed-off-by: Andrew Lunn <andrew@lunn.ch> Tested-by: Stefan Peter <s.peter@mplch> Signed-off-by: Jason Cooper <jason@lakedaemon.net>
Diffstat (limited to 'arch/arm/boot/dts/kirkwood-topkick.dts')
-rw-r--r--arch/arm/boot/dts/kirkwood-topkick.dts17
1 files changed, 17 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/kirkwood-topkick.dts b/arch/arm/boot/dts/kirkwood-topkick.dts
index c0de5a7f660d..cd15452a52a6 100644
--- a/arch/arm/boot/dts/kirkwood-topkick.dts
+++ b/arch/arm/boot/dts/kirkwood-topkick.dts
@@ -82,4 +82,21 @@
gpios = <&gpio1 16 1>;
};
};
+ regulators {
+ compatible = "simple-bus";
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ sata0_power: regulator@1 {
+ compatible = "regulator-fixed";
+ reg = <1>;
+ regulator-name = "SATA0 Power";
+ regulator-min-microvolt = <5000000>;
+ regulator-max-microvolt = <5000000>;
+ enable-active-high;
+ regulator-always-on;
+ regulator-boot-on;
+ gpio = <&gpio1 4 0>;
+ };
+ };
};