lantiq: use default leds defined in DTS
[openwrt.git] / target / linux / lantiq / dts / GR7000.dts
1 /dts-v1/;
2
3 /include/ "ar9.dtsi"
4
5 / {
6         model = "GR7000 - Aztech GR7000";
7
8         chosen {
9                 bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
10
11                 leds {
12                         internet = &internet;
13                         power2 = &power2;
14                         usb = &usb;
15                         wifi = &wifi;
16                 };
17         };
18
19         memory@0 {
20                 reg = <0x0 0x2000000>;
21         };
22
23         fpi@10000000 {
24                 localbus@0 {
25                         nor-boot@0 {
26                                 compatible = "lantiq,nor";
27                                 bank-width = <2>;
28                                 reg = <0 0x0 0x2000000>;
29                                 #address-cells = <1>;
30                                 #size-cells = <1>;
31
32                                 partition@0 {
33                                         label = "uboot";
34                                         reg = <0x0 0x20000>;
35                                         read-only;
36                                 };
37
38                                 partition@20000 {
39                                         label = "uboot_env";
40                                         reg = <0x20000 0x10000>;
41                                         read-only;
42                                 };
43
44                                 partition@30000 {
45                                         label = "firmware";
46                                         reg = <0x30000 0x7d0000>;
47                                 };
48                         };
49                 };
50
51                 gpio: pinmux@E100B10 {
52                         compatible = "lantiq,pinctrl-xr9";
53                         pinctrl-names = "default";
54                         pinctrl-0 = <&state_default>;
55
56                         state_default: pinmux {
57                                 stp {
58                                         lantiq,groups = "stp";
59                                         lantiq,function = "stp";
60                                 };
61                                 pci-in {
62                                         lantiq,groups = "req1";
63                                         lantiq,output = <0>;
64                                         lantiq,open-drain = <1>;
65                                         lantiq,pull = <2>;
66                                 };
67                                 pci-out {
68                                         lantiq,groups = "gnt1";
69                                         lantiq,output = <1>;
70                                         lantiq,pull = <0>;
71                                 };
72                                 pci_rst {
73                                         lantiq,pins = "io21";
74                                         lantiq,pull = <0>;
75                                         lantiq,output = <1>;
76                                 };
77                         };
78                 };
79
80                 ifxhcd@E101000 {
81                         status = "okay";
82                 };
83
84                 pci@E105400 {
85                         status = "okay";
86                 };
87
88                 stp: stp@E100BB0 {
89                         compatible = "lantiq,gpio-stp-xway";
90                         #gpio-cells = <2>;
91                         gpio-controller;
92                         reg = <0xE100BB0 0x40>;
93
94                         lantiq,shadow = <0xfff>;
95                         lantiq,groups = <0x3>;
96                 };
97         };
98
99         gpio-keys-polled {
100                 compatible = "gpio-keys-polled";
101                 #address-cells = <1>;
102                 #size-cells = <0>;
103                 poll-interval = <100>;
104
105                 reset {
106                         label = "reset";
107                         gpios = <&gpio 53 1>;
108                         linux,code = <0x198>;
109                 };
110                 wps {
111                         label = "wps";
112                         gpios = <&gpio 54 1>;
113                         linux,code = <0x211>;
114                 };
115         };
116
117         gpio-leds {
118                 compatible = "gpio-leds";
119
120                 power2: power2 {
121                         label = "power2";
122                         gpios = <&stp 4 0>;
123                 };
124                 internet: internet {
125                         label = "internet";
126                         gpios = <&stp 2 1>;
127                         default-state = "off";
128                 };
129                 internet2 {
130                         label = "internet2";
131                         gpios = <&stp 3 1>;
132                 };
133                 usb: usb {
134                         label = "usb";
135                         gpios = <&stp 10 1>;
136                 };
137                 wifi: wifi {
138                         label = "wifi";
139                         gpios = <&stp 15 1>;
140                 };
141         };
142 };