ARM: dts: kirkwood: Fix Openblock A6 external GPIO pins
authorJason Cooper <jason@lakedaemon.net>
Mon, 15 Aug 2016 14:51:04 +0000 (14:51 +0000)
committerGregory CLEMENT <gregory.clement@free-electrons.com>
Fri, 26 Aug 2016 09:08:32 +0000 (11:08 +0200)
commit7e84a8d13f97aa4487371c39e2b8918883e0ce3a
tree6c5657445ece58d790a26a5d9fe634650371993d
parent35664512358115f2ddefbff2769af5d3cbe554f1
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>
arch/arm/boot/dts/kirkwood-openblocks_a6.dts