diff options
author | Fabio Estevam <fabio.estevam@freescale.com> | 2012-08-22 12:25:33 -0400 |
---|---|---|
committer | Shawn Guo <shawn.guo@linaro.org> | 2012-08-22 22:01:38 -0400 |
commit | ba5db4990c2d1774fe854de3e3f6398fe9074fde (patch) | |
tree | 521b91865c4604d19b17dfc043dd4e3f8705976b | |
parent | 74b42123f2605ab83bb264fac8ea57cd33e2580c (diff) |
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>
-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 @@ | |||
31 | bus-width = <4>; | 31 | bus-width = <4>; |
32 | status = "okay"; | 32 | status = "okay"; |
33 | }; | 33 | }; |
34 | |||
35 | pinctrl@80018000 { | ||
36 | pinctrl-names = "default"; | ||
37 | pinctrl-0 = <&hog_pins_a>; | ||
38 | |||
39 | hog_pins_a: hog@0 { | ||
40 | reg = <0>; | ||
41 | fsl,pinmux-ids = < | ||
42 | 0x2013 /* MX23_PAD_SSP1_DETECT__GPIO_2_1 */ | ||
43 | >; | ||
44 | fsl,drive-strength = <0>; | ||
45 | fsl,voltage = <1>; | ||
46 | fsl,pull-up = <0>; | ||
47 | }; | ||
48 | }; | ||
34 | }; | 49 | }; |
35 | 50 | ||
36 | apbx@80040000 { | 51 | apbx@80040000 { |
@@ -47,4 +62,14 @@ | |||
47 | }; | 62 | }; |
48 | }; | 63 | }; |
49 | }; | 64 | }; |
65 | |||
66 | leds { | ||
67 | compatible = "gpio-leds"; | ||
68 | |||
69 | user { | ||
70 | label = "green"; | ||
71 | gpios = <&gpio2 1 0>; | ||
72 | linux,default-trigger = "default-on"; | ||
73 | }; | ||
74 | }; | ||
50 | }; | 75 | }; |