lantiq: fix mac address increments
[openwrt/openwrt.git] / target / linux / lantiq / dts / ARV4525PW.dts
1 /dts-v1/;
2
3 /include/ "danube.dtsi"
4
5 / {
6 model = "ARV4525PW - Speedport W501V Typ A";
7
8 chosen {
9 leds {
10 /* we dont have a power led, lets use the online led */
11 boot = &online;
12 failsafe = &online;
13
14 dsl = &dsl;
15 internet = &online;
16 wifi = &wifi;
17 };
18 };
19
20 memory@0 {
21 reg = <0x0 0x2000000>;
22 };
23
24 sram@1F000000 {
25 vmmc@107000 {
26 status = "okay";
27 gpios = <&gpio 31 0>;
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 partitions {
41 compatible = "fixed-partitions";
42 #address-cells = <1>;
43 #size-cells = <1>;
44
45 partition@0 {
46 label = "uboot";
47 reg = <0x00000 0x10000>;
48 read-only;
49 };
50
51 partition@10000 {
52 label = "uboot_env";
53 reg = <0x10000 0x10000>;
54 read-only;
55 };
56
57 partition@20000 {
58 label = "firmware";
59 reg = <0x20000 0x3d0000>;
60 };
61
62 boardconfig: partition@400000 {
63 label = "boardconfig";
64 reg = <0x3f0000 0x10000>;
65 read-only;
66 };
67 };
68 };
69
70 mac_addr {
71 compatible = "lantiq,eth-mac";
72 reg = <0 0x3f0016 0x6>;
73 };
74
75 ath5k_eep {
76 compatible = "ath5k,eeprom";
77 ath,eep-flash = <&boardconfig 0x400>;
78 ath,mac-offset = <0x0>;
79 ath,eep-swap;
80 };
81 };
82
83 gpio: pinmux@E100B10 {
84 pinctrl-names = "default";
85 pinctrl-0 = <&state_default>;
86
87 state_default: pinmux {
88 pci_in {
89 lantiq,groups = "req1";
90 lantiq,function = "pci";
91 lantiq,open-drain = <1>;
92 lantiq,pull = <2>;
93 lantiq,output = <0>;
94 };
95 pci_out {
96 lantiq,groups = "gnt1";
97 lantiq,function = "pci";
98 lantiq,output = <1>;
99 };
100 pci_rst {
101 lantiq,pins = "io21";
102 lantiq,pull = <2>;
103 lantiq,output = <1>;
104 };
105 relay {
106 lantiq,pins = "io31";
107 lantiq,output = <1>;
108 };
109 };
110 };
111
112 etop@E180000 {
113 phy-mode = "mii";
114 };
115
116 pci@E105400 {
117 status = "okay";
118 gpio-reset = <&gpio 21 0>;
119 };
120
121 };
122
123 /*
124 #define ARV4525PW_PHYRESET 13
125 #define ARV4525PW_RELAY 31
126 */
127
128 gpio-keys-polled {
129 compatible = "gpio-keys-polled";
130 #address-cells = <1>;
131 #size-cells = <0>;
132 poll-interval = <100>;
133
134 wps {
135 label = "wps";
136 gpios = <&gpio 29 1>;
137 linux,code = <0x211>;
138 };
139 reset {
140 label = "reset";
141 gpios = <&gpio 30 1>;
142 linux,code = <0x198>;
143 };
144 };
145
146 gpio-leds {
147 compatible = "gpio-leds";
148 fxo {
149 label = "arv4525pw:green:festnetz";
150 gpios = <&gpio 4 1>;
151 };
152 fxs {
153 label = "arv4525pw:green:internet";
154 gpios = <&gpio 5 1>;
155 };
156 dsl: dsl {
157 label = "arv4525pw:green:t-dsl";
158 gpios = <&gpio 6 1>;
159 };
160 wifi: wifi {
161 label = "arv4525pw:green:wlan";
162 gpios = <&gpio 8 1>;
163 };
164 online: online {
165 label = "arv4525pw:green:online";
166 gpios = <&gpio 9 1>;
167 };
168 };
169 };