e5e5e703965644a564cf34480ee1baba95ad1bfb
[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 /*
151 #define SWITCH_RESET          13
152 */
153         gpio-keys-polled {
154                 compatible = "gpio-keys-polled";
155                 #address-cells = <1>;
156                 #size-cells = <0>;
157                 poll-interval = <100>;
158
159                 rfkill {
160                         label = "rfkill";
161                         gpios = <&gpio 28 GPIO_ACTIVE_LOW>;
162                         linux,code = <KEY_RFKILL>;
163                 };
164                 reset {
165                         label = "reset";
166                         gpios = <&gpio 30 GPIO_ACTIVE_LOW>;
167                         linux,code = <KEY_RESTART>;
168                 };
169         };
170
171         gpio-leds {
172                 compatible = "gpio-leds";
173                 power_green: power {
174                         label = "arv7518pw:green:power";
175                         gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
176                         default-state = "keep";
177                 };
178                 dsl: dsl {
179                         label = "arv7518pw:green:dsl";
180                         gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
181                 };
182                 online_green: online {
183                         label = "arv7518pw:green:internet";
184                         gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
185                 };
186                 wifi: wifi {
187                         label = "arv7518pw:green:wlan";
188                         gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
189                 };
190                 power_red: power2 {
191                         label = "arv7518pw:red:power";
192                         gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
193                 };
194                 online2 {
195                         label = "arv7518pw:red:internet";
196                         gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
197                 };
198                 usb: usb {
199                         label = "arv7518pw:green:usb";
200                         gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
201                 };
202                 voice {
203                         label = "arv7518pw:green:voip";
204                         gpios = <&gpiomm 0 GPIO_ACTIVE_LOW>;
205                 };
206                 fxs1 {
207                         label = "arv7518pw:green:phone1";
208                         gpios = <&gpiomm 1 GPIO_ACTIVE_LOW>;
209                 };
210                 fxs2 {
211                         label = "arv7518pw:green:phone2";
212                         gpios = <&gpiomm 2 GPIO_ACTIVE_LOW>;
213                 };
214                 unlabeled {
215                         label = "arv7518pw:amber:unlabeled";
216                         gpios = <&gpiomm 3 GPIO_ACTIVE_LOW>;
217                 };
218                 wps {
219                         label = "arv7518pw:amber:wps";
220                         gpios = <&gpiomm 4 GPIO_ACTIVE_LOW>;
221                 };
222                 wps2 {
223                         label = "arv7518pw:green:wps";
224                         gpios = <&gpiomm 5 GPIO_ACTIVE_LOW>;
225                 };
226                 wps3 {
227                         label = "arv7518pw:red:wps";
228                         gpios = <&gpiomm 6 GPIO_ACTIVE_LOW>;
229                 };
230         };
231 };