]> rtime.felk.cvut.cz Git - can-eth-gw-linux.git/commitdiff
ARM: olinuxino: Add gpio-led support
authorFabio Estevam <fabio.estevam@freescale.com>
Wed, 22 Aug 2012 16:25:33 +0000 (13:25 -0300)
committerShawn Guo <shawn.guo@linaro.org>
Thu, 23 Aug 2012 02:01:38 +0000 (10:01 +0800)
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>
arch/arm/boot/dts/imx23-olinuxino.dts

index a28687303e492dab7a10c4461270b6cdd7f0a215..711dcf5742b60b9f11949183f4a7c882d11e6de4 100644 (file)
                                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 {
                        };
                };
        };
+
+       leds {
+               compatible = "gpio-leds";
+
+               user {
+                       label = "green";
+                       gpios = <&gpio2 1 0>;
+                       linux,default-trigger = "default-on";
+               };
+       };
 };