summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@freescale.com>2012-09-25 04:52:20 +0200
committerShawn Guo <shawn.guo@linaro.org>2012-10-15 04:51:49 +0200
commit098e7522896c0d0fe5264124949626df44520f57 (patch)
tree4d4ca0e1e9b0341778d35754b7de27a2a71dd8f2 /arch
parentARM: dts: imx23-olinuxino: Remove unneeded "default-on" (diff)
downloadlinux-098e7522896c0d0fe5264124949626df44520f57.tar.xz
linux-098e7522896c0d0fe5264124949626df44520f57.zip
ARM: dts: imx23-olinuxino: Use pinctrl for gpio-led
Since commit 8fe4554f (leds: leds-gpio: adopt pinctrl support) gpio-led driver has pinctrl support, so setup the gpio led pin via pinctrl and avoid the following warning: leds-gpio leds.5: pins are not configured from the driver Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com> Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/boot/dts/imx23-olinuxino.dts11
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/imx23-olinuxino.dts b/arch/arm/boot/dts/imx23-olinuxino.dts
index 35489a1db77f..8bd56fc7e194 100644
--- a/arch/arm/boot/dts/imx23-olinuxino.dts
+++ b/arch/arm/boot/dts/imx23-olinuxino.dts
@@ -40,6 +40,15 @@
reg = <0>;
fsl,pinmux-ids = <
0x2013 /* MX23_PAD_SSP1_DETECT__GPIO_2_1 */
+ >;
+ fsl,drive-strength = <0>;
+ fsl,voltage = <1>;
+ fsl,pull-up = <0>;
+ };
+
+ led_pin_gpio0_17: led_gpio0_17@0 {
+ reg = <0>;
+ fsl,pinmux-ids = <
0x0113 /* MX23_PAD_GPMI_ALE__GPIO_0_17 */
>;
fsl,drive-strength = <0>;
@@ -91,6 +100,8 @@
leds {
compatible = "gpio-leds";
+ pinctrl-names = "default";
+ pinctrl-0 = <&led_pin_gpio0_17>;
user {
label = "green";