summaryrefslogtreecommitdiff
path: root/arch/arm/boot/dts/kirkwood-openblocks_a6.dts
diff options
context:
space:
mode:
authorJason Cooper <jason@lakedaemon.net>2016-08-15 17:51:04 +0300
committerGregory CLEMENT <gregory.clement@free-electrons.com>2016-08-26 12:08:32 +0300
commit7e84a8d13f97aa4487371c39e2b8918883e0ce3a (patch)
tree6c5657445ece58d790a26a5d9fe634650371993d /arch/arm/boot/dts/kirkwood-openblocks_a6.dts
parent35664512358115f2ddefbff2769af5d3cbe554f1 (diff)
downloadlinux-7e84a8d13f97aa4487371c39e2b8918883e0ce3a.tar.xz
ARM: dts: kirkwood: Fix Openblock A6 external GPIO pins
By assigning the pin hog to the pinctrl node, we correctly configure the MPPs. However, they are not available to userspace. Fix this by assigning the hogs to the gpio node. After this, the following works as expected: # echo 28 >/sys/class/gpio/export # echo low >/sys/class/gpio/gpio28/direction [gregory.clement@free-electrons.com: fix title] Signed-off-by: Jason Cooper <jason@lakedaemon.net> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Diffstat (limited to 'arch/arm/boot/dts/kirkwood-openblocks_a6.dts')
-rw-r--r--arch/arm/boot/dts/kirkwood-openblocks_a6.dts9
1 files changed, 8 insertions, 1 deletions
diff --git a/arch/arm/boot/dts/kirkwood-openblocks_a6.dts b/arch/arm/boot/dts/kirkwood-openblocks_a6.dts
index 0db0e3edc88f..94e49f32d5f9 100644
--- a/arch/arm/boot/dts/kirkwood-openblocks_a6.dts
+++ b/arch/arm/boot/dts/kirkwood-openblocks_a6.dts
@@ -41,7 +41,7 @@
};
pinctrl: pin-controller@10000 {
- pinctrl-0 = <&pmx_dip_switches &pmx_gpio_header>;
+ pinctrl-0 = <&pmx_dip_switches>;
pinctrl-names = "default";
pmx_uart0: pmx-uart0 {
@@ -174,3 +174,10 @@
phy-handle = <&ethphy0>;
};
};
+
+&gpio0 {
+ status = "okay";
+
+ pinctrl-0 = <&pmx_gpio_header>;
+ pinctrl-names = "default";
+};