diff options
author | Fabio Estevam <fabio.estevam@freescale.com> | 2012-08-22 18:25:33 +0200 |
---|---|---|
committer | Shawn Guo <shawn.guo@linaro.org> | 2012-08-23 04:01:38 +0200 |
commit | ba5db4990c2d1774fe854de3e3f6398fe9074fde (patch) | |
tree | 521b91865c4604d19b17dfc043dd4e3f8705976b /arch/arm/boot/dts/imx23-olinuxino.dts | |
parent | ARM: mxs: Let mmc0 pin detect be generic (diff) | |
download | linux-ba5db4990c2d1774fe854de3e3f6398fe9074fde.tar.xz linux-ba5db4990c2d1774fe854de3e3f6398fe9074fde.zip |
ARM: olinuxino: Add gpio-led support
Olinuxino has a LED connected to MX23_PAD_SSP1_DETECT__GPIO_2_1 pin.
Add support for it.
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Diffstat (limited to 'arch/arm/boot/dts/imx23-olinuxino.dts')
-rw-r--r-- | arch/arm/boot/dts/imx23-olinuxino.dts | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/imx23-olinuxino.dts b/arch/arm/boot/dts/imx23-olinuxino.dts index a28687303e49..711dcf5742b6 100644 --- a/arch/arm/boot/dts/imx23-olinuxino.dts +++ b/arch/arm/boot/dts/imx23-olinuxino.dts @@ -31,6 +31,21 @@ bus-width = <4>; status = "okay"; }; + + pinctrl@80018000 { + pinctrl-names = "default"; + pinctrl-0 = <&hog_pins_a>; + + hog_pins_a: hog@0 { + reg = <0>; + fsl,pinmux-ids = < + 0x2013 /* MX23_PAD_SSP1_DETECT__GPIO_2_1 */ + >; + fsl,drive-strength = <0>; + fsl,voltage = <1>; + fsl,pull-up = <0>; + }; + }; }; apbx@80040000 { @@ -47,4 +62,14 @@ }; }; }; + + leds { + compatible = "gpio-leds"; + + user { + label = "green"; + gpios = <&gpio2 1 0>; + linux,default-trigger = "default-on"; + }; + }; }; |