summaryrefslogtreecommitdiffstats
path: root/arch/arm/boot/dts/kirkwood-dns325.dts
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2013-05-24 11:44:39 +0200
committerJason Cooper <jason@lakedaemon.net>2013-05-27 15:31:13 +0000
commit01369fe1a0850d8deb6123eb4e59f358c4ed138f (patch)
treed5908af15188da476d4822a4709dee0c1dd659ea /arch/arm/boot/dts/kirkwood-dns325.dts
parent2dd432e4333b28aa4a08c8bd6c2eeb88d2dd71a0 (diff)
downloadop-kernel-dev-01369fe1a0850d8deb6123eb4e59f358c4ed138f.zip
op-kernel-dev-01369fe1a0850d8deb6123eb4e59f358c4ed138f.tar.gz
arm: kirkwood: dlink dns: move pinmux configs to the right devices
When the pinmux mechanism was added in Kirkwood, the device driver core was not yet providing the possibility of attaching pinmux configurations to all devices, drivers had to do it explicitly, and not all drivers were doing this. Now that the driver core does that in a generic way, it makes sense to attach the pinmux configuration to their corresponding devices. This allows the pinctrl subsystem to show in debugfs to which device is related which pins, for example: pin 41 (PIN41): gpio-leds.1 mvebu-gpio:41 function gpio group mpp41 pin 42 (PIN42): gpio-leds.1 mvebu-gpio:42 function gpio group mpp42 pin 43 (PIN43): gpio-leds.1 mvebu-gpio:43 function gpio group mpp43 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Acked-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: Jason Cooper <jason@lakedaemon.net>
Diffstat (limited to 'arch/arm/boot/dts/kirkwood-dns325.dts')
-rw-r--r--arch/arm/boot/dts/kirkwood-dns325.dts5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/kirkwood-dns325.dts b/arch/arm/boot/dts/kirkwood-dns325.dts
index e4e4930..6387257 100644
--- a/arch/arm/boot/dts/kirkwood-dns325.dts
+++ b/arch/arm/boot/dts/kirkwood-dns325.dts
@@ -17,6 +17,11 @@
gpio-leds {
compatible = "gpio-leds";
+ pinctrl-0 = <&pmx_led_power &pmx_led_red_usb_325
+ &pmx_led_red_left_hdd &pmx_led_red_right_hdd
+ &pmx_led_white_usb>;
+ pinctrl-names = "default";
+
white-power {
label = "dns325:white:power";
gpios = <&gpio0 26 1>; /* GPIO 26 Active Low */
OpenPOWER on IntegriCloud