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