lantiq: remove mac-address-increment
[openwrt/openwrt.git] / target / linux / lantiq / files / arch / mips / boot / dts / lantiq / ar9_avm_fritz7320.dts
1 #include "ar9.dtsi"
2
3 #include <dt-bindings/input/input.h>
4 #include <dt-bindings/mtd/partitions/uimage.h>
5
6 / {
7 compatible = "avm,fritz7320", "lantiq,xway", "lantiq,ar9";
8 model = "AVM FRITZ!Box 7320";
9
10 chosen {
11 bootargs = "console=ttyLTQ0,115200";
12 };
13
14 aliases {
15 led-boot = &power;
16 led-failsafe = &power;
17 led-running = &power;
18 led-upgrade = &power;
19
20 led-dsl = &info_green;
21 led-wifi = &wlan;
22 };
23
24 memory@0 {
25 device_type = "memory";
26 reg = <0x0 0x4000000>;
27 };
28
29 keys {
30 compatible = "gpio-keys-polled";
31 poll-interval = <100>;
32
33 rfkill {
34 label = "rfkill";
35 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
36 linux,code = <KEY_RFKILL>;
37 };
38 dect {
39 label = "dect";
40 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
41 linux,code = <KEY_PHONE>;
42 };
43 };
44
45 leds {
46 compatible = "gpio-leds";
47 power: power {
48 label = "green:power";
49 gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
50 default-state = "keep";
51 };
52 voice {
53 label = "green:fon";
54 gpios = <&gpio 47 GPIO_ACTIVE_LOW>;
55 };
56 dect {
57 label = "green:dect";
58 gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
59 };
60 wlan: wlan {
61 label = "green:wlan";
62 gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
63 };
64 info_green: info_green {
65 label = "green:info";
66 gpios = <&gpio 35 GPIO_ACTIVE_LOW>;
67 };
68 info_red {
69 label = "red:info";
70 gpios = <&gpio 45 GPIO_ACTIVE_LOW>;
71 };
72 };
73
74 usb0_vbus: regulator-usb0-vbus {
75 compatible = "regulator-fixed";
76
77 regulator-name = "USB0_VBUS";
78
79 regulator-min-microvolt = <5000000>;
80 regulator-max-microvolt = <5000000>;
81
82 gpio = <&gpio 50 GPIO_ACTIVE_HIGH>;
83 enable-active-high;
84 };
85
86 usb1_vbus: regulator-usb1-vbus {
87 compatible = "regulator-fixed";
88
89 regulator-name = "USB1_VBUS";
90
91 regulator-min-microvolt = <5000000>;
92 regulator-max-microvolt = <5000000>;
93
94 gpio = <&gpio 51 GPIO_ACTIVE_HIGH>;
95 enable-active-high;
96 };
97 };
98
99 &gsw {
100 phy-mode = "mii";
101 phy-handle = <&phy0>;
102 nvmem-cells = <&macaddr_ath9k_cal_a91 (-2)>;
103 nvmem-cell-names = "mac-address";
104
105 mdio-bus {
106 #address-cells = <1>;
107 #size-cells = <0>;
108
109 phy0: ethernet-phy@0 {
110 reg = <0>;
111 reset-gpios = <&gpio 36 GPIO_ACTIVE_LOW>;
112 };
113 };
114 };
115
116 &gpio {
117 pinctrl-names = "default";
118 pinctrl-0 = <&state_default>;
119
120 state_default: pinmux {
121 phy-rst {
122 lantiq,pins = "io36";
123 lantiq,pull = <0>;
124 lantiq,open-drain;
125 lantiq,output = <1>;
126 };
127 usb0_vbus {
128 lantiq,pins = "io50";
129 lantiq,pull = <0>;
130 lantiq,open-drain = <0>;
131 lantiq,output = <1>;
132 };
133 usb1_vbus {
134 lantiq,pins = "io51";
135 lantiq,pull = <0>;
136 lantiq,open-drain = <0>;
137 lantiq,output = <1>;
138 };
139 };
140 };
141
142 &localbus {
143 flash@0 {
144 compatible = "lantiq,nor";
145 bank-width = <2>;
146 reg = <0 0x0 0x1000000>;
147
148 partitions {
149 compatible = "fixed-partitions";
150 #address-cells = <1>;
151 #size-cells = <1>;
152
153 ath9k_cal: partition@0 {
154 label = "urlader";
155 reg = <0x00000 0x20000>;
156 read-only;
157
158 nvmem-layout {
159 compatible = "fixed-layout";
160 #address-cells = <1>;
161 #size-cells = <1>;
162
163 macaddr_ath9k_cal_a91: macaddr@a91 {
164 compatible = "mac-base";
165 reg = <0xa91 0x6>;
166 #nvmem-cell-cells = <1>;
167 };
168 };
169 };
170
171 partition@20000 {
172 compatible = "openwrt,uimage", "denx,uimage";
173 label = "firmware";
174 reg = <0x20000 0xf60000>;
175 openwrt,ih-magic = <IH_MAGIC_OKLI>;
176 openwrt,offset = <0x11000>;
177 };
178
179 partition@f80000 {
180 label = "tffs (1)";
181 reg = <0xf80000 0x40000>;
182 read-only;
183 };
184
185 partition@fc0000 {
186 label = "tffs (2)";
187 reg = <0xfc0000 0x40000>;
188 read-only;
189 };
190 };
191 };
192 };
193
194 &pci0 {
195 status = "okay";
196
197 pinctrl-0 = <&pci_gnt1_pins>, <&pci_gnt2_pins>,
198 <&pci_gnt3_pins>, <&pci_gnt4_pins>,
199 <&pci_req1_pins>, <&pci_req2_pins>,
200 <&pci_req3_pins>, <&pci_req4_pins>;
201
202 req-mask = <0xf>;
203 gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
204
205 wifi@0,0 {
206 compatible = "pci0,0";
207 reg = <0x7000 0 0 0 0>;
208 qca,no-eeprom; /* load from ath9k-eeprom-pci-0000:00:0e.0.bin */
209 };
210 };
211
212 &usb_phy0 {
213 status = "okay";
214 };
215
216 &usb_phy1 {
217 status = "okay";
218 };
219
220 &usb0 {
221 status = "okay";
222 vbus-supply = <&usb0_vbus>;
223 };
224
225 &usb1 {
226 status = "okay";
227 vbus-supply = <&usb1_vbus>;
228 };