lantiq: fix mac address increments
[oweals/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                         boot = &power_green;
13                         failsafe = &power_red;
14                         running = &power_green;
15
16                         dsl = &dsl;
17                         internet = &online_green;
18                         usb = &usb;
19                         wifi = &wifi;
20                 };
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                         mac_addr {
82                                 compatible = "lantiq,eth-mac";
83                                 reg = <0 0x7f0016 0x6>;
84                         };
85
86                         ath9k_eep {
87                                 compatible = "ath9k,eeprom";
88                                 ath,eep-flash = <&boardconfig 0x400>;
89                                 ath,mac-offset = <0x16>;
90                                 ath,mac-increment = <1>;
91                                 ath,pci-slot = <14>;
92                                 ath,eep-endian;
93                         };
94                 };
95
96                 gpio: pinmux@E100B10 {
97                         pinctrl-names = "default";
98                         pinctrl-0 = <&state_default>;
99
100                         state_default: pinmux {
101                                 ebu {
102                                         lantiq,groups = "ebu cs1";
103                                         lantiq,function = "ebu";
104                                 };
105                                 pci_in {
106                                         lantiq,groups = "req1";
107                                         lantiq,function = "pci";
108                                         lantiq,open-drain = <1>;
109                                         lantiq,pull = <2>;
110                                         lantiq,output = <0>;
111                                 };
112                                 pci_out {
113                                         lantiq,groups = "gnt1";
114                                         lantiq,function = "pci";
115                                         lantiq,pull = <0>;
116                                         lantiq,output = <1>;
117                                 };
118                                 pci_rst {
119                                         lantiq,pins = "io21";
120                                         lantiq,pull = <2>;
121                                         lantiq,output = <1>;
122                                 };
123                                 leds {
124                                         lantiq,pins = "io2", "io4", "io5", "io6", "io7", "io8", "io19";
125                                         lantiq,output = <1>;
126                                 };
127                                 keys {
128                                         lantiq,pins = "io28", "io30";
129                                         lantiq,output = <0>;
130                                         lantiq,pull = <2>;
131                                         lantiq,open-drain = <1>;
132                                 };
133                         };
134                 };
135
136                 etop@E180000 {
137                         phy-mode = "mii";
138                 };
139
140                 ifxhcd@E101000 {
141                         status = "okay";
142                         gpios = <&gpio 14 0>;
143                 };
144
145                 pci@E105400 {
146                         status = "okay";
147                         lantiq,external-clock;
148                         gpio-reset = <&gpio 21 0>;
149                         req-mask = <0xf>;
150                 };
151
152         };
153
154 /*
155 #define SWITCH_RESET          13
156 */
157         gpio-keys-polled {
158                 compatible = "gpio-keys-polled";
159                 #address-cells = <1>;
160                 #size-cells = <0>;
161                 poll-interval = <100>;
162
163                 rfkill {
164                         label = "rfkill";
165                         gpios = <&gpio 28 1>;
166                         linux,code = <0xf7>;
167                 };
168                 reset {
169                         label = "reset";
170                         gpios = <&gpio 30 1>;
171                         linux,code = <0x198>;
172                 };
173         };
174
175         gpio-leds {
176                 compatible = "gpio-leds";
177                 power_green: power {
178                         label = "arv7518pw:green:power";
179                         gpios = <&gpio 2 1>;
180                         default-state = "keep";
181                 };
182                 dsl: dsl {
183                         label = "arv7518pw:green:dsl";
184                         gpios = <&gpio 4 1>;
185                 };
186                 online_green: online {
187                         label = "arv7518pw:green:internet";
188                         gpios = <&gpio 5 1>;
189                 };
190                 wifi: wifi {
191                         label = "arv7518pw:green:wlan";
192                         gpios = <&gpio 6 1>;
193                 };
194                 power_red: power2 {
195                         label = "arv7518pw:red:power";
196                         gpios = <&gpio 7 1>;
197                 };
198                 online2 {
199                         label = "arv7518pw:red:internet";
200                         gpios = <&gpio 8 1>;
201                 };
202                 usb: usb {
203                         label = "arv7518pw:green:usb";
204                         gpios = <&gpio 19 1>;
205                 };
206                 voice {
207                         label = "arv7518pw:green:voip";
208                         gpios = <&gpiomm 0 1>;
209                 };
210                 fxs1 {
211                         label = "arv7518pw:green:phone1";
212                         gpios = <&gpiomm 1 1>;
213                 };
214                 fxs2 {
215                         label = "arv7518pw:green:phone2";
216                         gpios = <&gpiomm 2 1>;
217                 };
218                 unlabeled {
219                         label = "arv7518pw:amber:unlabeled";
220                         gpios = <&gpiomm 3 1>;
221                 };
222                 wps {
223                         label = "arv7518pw:amber:wps";
224                         gpios = <&gpiomm 4 1>;
225                 };
226                 wps2 {
227                         label = "arv7518pw:green:wps";
228                         gpios = <&gpiomm 5 1>;
229                 };
230                 wps3 {
231                         label = "arv7518pw:red:wps";
232                         gpios = <&gpiomm 6 1>;
233                 };
234         };
235 };