ARM: olinuxino: Add gpio-led support
[profile/ivi/kernel-adaptation-intel-automotive.git] / arch / arm / boot / dts / imx23-olinuxino.dts
1 /*
2  * Copyright 2012 Freescale Semiconductor, Inc.
3  *
4  * Author: Fabio Estevam <fabio.estevam@freescale.com>
5  *
6  * The code contained herein is licensed under the GNU General Public
7  * License. You may obtain a copy of the GNU General Public License
8  * Version 2 or later at the following locations:
9  *
10  * http://www.opensource.org/licenses/gpl-license.html
11  * http://www.gnu.org/copyleft/gpl.html
12  */
13
14 /dts-v1/;
15 /include/ "imx23.dtsi"
16
17 / {
18         model = "i.MX23 Olinuxino Low Cost Board";
19         compatible = "olimex,imx23-olinuxino", "fsl,imx23";
20
21         memory {
22                 reg = <0x40000000 0x04000000>;
23         };
24
25         apb@80000000 {
26                 apbh@80000000 {
27                         ssp0: ssp@80010000 {
28                                 compatible = "fsl,imx23-mmc";
29                                 pinctrl-names = "default";
30                                 pinctrl-0 = <&mmc0_4bit_pins_a &mmc0_pins_fixup>;
31                                 bus-width = <4>;
32                                 status = "okay";
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                         };
49                 };
50
51                 apbx@80040000 {
52                         duart: serial@80070000 {
53                                 pinctrl-names = "default";
54                                 pinctrl-0 = <&duart_pins_a>;
55                                 status = "okay";
56                         };
57
58                         auart0: serial@8006c000 {
59                                 pinctrl-names = "default";
60                                 pinctrl-0 = <&auart0_2pins_a>;
61                                 status = "okay";
62                         };
63                 };
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         };
75 };