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