lantiq: define default leds in dts files
[openwrt/openwrt.git] / target / linux / lantiq / dts / ARV7518PW.dts
1 /dts-v1/;
2
3 /include/ "danube.dtsi"
4
5 / {
6 model = "ARV7518PW - Astoria Networks";
7
8 chosen {
9 bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
10
11 leds {
12 dsl = &dsl;
13 internet = &online;
14 power = &power;
15 power2 = &power2;
16 usb = &usb;
17 wifi = &wifi;
18 };
19 };
20
21 memory@0 {
22 reg = <0x0 0x4000000>;
23 };
24
25 sram@1F000000 {
26 vmmc@107000 {
27 status = "okay";
28 };
29 };
30
31 fpi@10000000 {
32 localbus@0 {
33 nor-boot@0 {
34 compatible = "lantiq,nor";
35 bank-width = <2>;
36 reg = <0 0x0 0x2000000>;
37 #address-cells = <1>;
38 #size-cells = <1>;
39
40 partition@0 {
41 label = "uboot";
42 reg = <0x00000 0x10000>;
43 read-only;
44 };
45
46 partition@10000 {
47 label = "uboot_env";
48 reg = <0x10000 0x10000>;
49 };
50
51 partition@20000 {
52 label = "firmware";
53 reg = <0x20000 0x7d0000>;
54 };
55
56 partition@400000 {
57 label = "boardconfig";
58 reg = <0x7f0000 0x10000>;
59 read-only;
60 };
61 };
62
63 gpiomm: gpiomm@4000000 {
64 compatible = "lantiq,gpio-mm";
65 reg = <1 0x0 0x10 >;
66 #address-cells = <1>;
67 #size-cells = <1>;
68 #gpio-cells = <2>;
69 gpio-controller;
70 lantiq,shadow = <0x0>;
71 };
72
73 mac_addr {
74 compatible = "lantiq,eth-mac";
75 reg = <0 0x7f0016 0x6>;
76 mac-increment = <2>;
77 };
78
79 ath9k_eep {
80 compatible = "ath9k,eeprom";
81 reg = <0 0x7f0400 0x1000
82 0 0x7f0016 0x6>;
83 ath,mac-increment = <1>;
84 ath,pci-slot = <14>;
85 ath,eep-endian;
86 };
87 };
88
89 gpio: pinmux@E100B10 {
90 pinctrl-names = "default";
91 pinctrl-0 = <&state_default>;
92
93 state_default: pinmux {
94 ebu {
95 lantiq,groups = "ebu cs1";
96 lantiq,function = "ebu";
97 };
98 pci_in {
99 lantiq,groups = "req1";
100 lantiq,function = "pci";
101 lantiq,open-drain = <1>;
102 lantiq,pull = <2>;
103 lantiq,output = <0>;
104 };
105 pci_out {
106 lantiq,groups = "gnt1";
107 lantiq,function = "pci";
108 lantiq,pull = <0>;
109 lantiq,output = <1>;
110 };
111 pci_rst {
112 lantiq,pins = "io21";
113 lantiq,pull = <2>;
114 lantiq,output = <1>;
115 };
116 leds {
117 lantiq,pins = "io2", "io4", "io5", "io6", "io7", "io8", "io19";
118 lantiq,output = <1>;
119 };
120 keys {
121 lantiq,pins = "io28", "io30";
122 lantiq,output = <0>;
123 lantiq,pull = <2>;
124 lantiq,open-drain = <1>;
125 };
126 };
127 };
128
129 etop@E180000 {
130 phy-mode = "mii";
131 };
132
133 ifxhcd@E101000 {
134 status = "okay";
135 gpios = <&gpio 14 0>;
136 };
137
138 pci@E105400 {
139 status = "okay";
140 lantiq,external-clock;
141 gpio-reset = <&gpio 21 0>;
142 req-mask = <0xf>;
143 };
144
145 };
146
147 /*
148 #define SWITCH_RESET 13
149 */
150 gpio-keys-polled {
151 compatible = "gpio-keys-polled";
152 #address-cells = <1>;
153 #size-cells = <0>;
154 poll-interval = <100>;
155
156 rfkill {
157 label = "rfkill";
158 gpios = <&gpio 28 1>;
159 linux,code = <0xf7>;
160 };
161 reset {
162 label = "reset";
163 gpios = <&gpio 30 1>;
164 linux,code = <0x198>;
165 };
166 };
167
168 gpio-leds {
169 compatible = "gpio-leds";
170 power: power {
171 label = "power";
172 gpios = <&gpio 2 1>;
173 };
174 dsl: dsl {
175 label = "dsl";
176 gpios = <&gpio 4 1>;
177 };
178 online: online {
179 label = "online";
180 gpios = <&gpio 5 1>;
181 };
182 wifi: wifi {
183 label = "wifi";
184 gpios = <&gpio 6 1>;
185 };
186 power2: power2 {
187 label = "power2";
188 gpios = <&gpio 7 1>;
189 };
190 online2 {
191 label = "online2";
192 gpios = <&gpio 8 1>;
193 };
194 usb: usb {
195 label = "usb";
196 gpios = <&gpio 19 1>;
197 };
198 voice {
199 label = "voice";
200 gpios = <&gpiomm 0 1>;
201 };
202 fxs1 {
203 label = "fxs1";
204 gpios = <&gpiomm 1 1>;
205 };
206 fxs2 {
207 label = "fxs2";
208 gpios = <&gpiomm 2 1>;
209 };
210 fxo {
211 label = "fxo";
212 gpios = <&gpiomm 3 1>;
213 };
214 wps {
215 label = "wps";
216 gpios = <&gpiomm 4 1>;
217 };
218 wps2 {
219 label = "wps2";
220 gpios = <&gpiomm 5 1>;
221 };
222 wps3 {
223 label = "wps3";
224 gpios = <&gpiomm 6 1>;
225 };
226 };
227 };