ARM: olinuxino: Add gpio-led support
[firefly-linux-kernel-4.4.55.git] / 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";
+               };
+       };
 };