lantiq: remove mac-address-increment
[openwrt/openwrt.git] / target / linux / lantiq / files / arch / mips / boot / dts / lantiq / ar9_avm_fritz7312.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,fritz7312", "lantiq,xway", "lantiq,ar9";
8 model = "AVM FRITZ!Box 7312";
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 wlan {
34 label = "wlan";
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
48 power: power {
49 label = "green:power";
50 gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
51 default-state = "keep";
52 };
53 voice {
54 label = "green:fon";
55 gpios = <&gpio 47 GPIO_ACTIVE_LOW>;
56 };
57 dect {
58 label = "green:dect";
59 gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
60 };
61 wlan: wlan {
62 label = "green:wlan";
63 gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
64 };
65 info_green: info_green {
66 label = "green:info";
67 gpios = <&gpio 35 GPIO_ACTIVE_LOW>;
68 };
69 };
70 };
71
72 &gpio {
73 pinctrl-names = "default";
74 pinctrl-0 = <&state_default>;
75
76 state_default: pinmux {
77 ar8030-intr {
78 lantiq,groups = "exin3";
79 lantiq,function = "exin";
80 lantiq,pull = <2>;
81 lantiq,output = <0>;
82 };
83 ar8030-clk {
84 lantiq,groups = "clkout2";
85 lantiq,output = <1>;
86 lantiq,open-drain;
87 };
88 ar8030-rst {
89 lantiq,pins = "io34";
90 lantiq,output = <1>;
91 lantiq,pull = <2>;
92 lantiq,open-drain;
93 };
94 };
95 };
96
97 &gsw {
98 phy-mode = "rmii";
99 phy-handle = <&phy0>;
100 nvmem-cells = <&macaddr_ath9k_cal_a91 (-2)>;
101 nvmem-cell-names = "mac-address";
102
103 mdio-bus {
104 #address-cells = <1>;
105 #size-cells = <0>;
106
107 phy0: ethernet-phy@0 {
108 reg = <0>;
109 reset-gpios = <&gpio 34 GPIO_ACTIVE_LOW>;
110 max-speed = <100>;
111 };
112 };
113 };
114
115 &localbus {
116 flash@0 {
117 compatible = "lantiq,nor";
118 bank-width = <2>;
119 reg = <0 0x0 0x1000000>;
120
121 partitions {
122 compatible = "fixed-partitions";
123 #address-cells = <1>;
124 #size-cells = <1>;
125
126 ath9k_cal: partition@0 {
127 label = "urlader";
128 reg = <0x00000 0x20000>;
129 read-only;
130
131 nvmem-layout {
132 compatible = "fixed-layout";
133 #address-cells = <1>;
134 #size-cells = <1>;
135
136 macaddr_ath9k_cal_a91: macaddr@a91 {
137 compatible = "mac-base";
138 reg = <0xa91 0x6>;
139 #nvmem-cell-cells = <1>;
140 };
141 };
142 };
143
144 partition@20000 {
145 label = "firmware";
146 compatible = "openwrt,uimage", "denx,uimage";
147 reg = <0x20000 0xf60000>;
148 openwrt,ih-magic = <IH_MAGIC_OKLI>;
149 openwrt,offset = <0x11000>;
150 };
151
152 partition@f80000 {
153 label = "tffs (1)";
154 reg = <0xf80000 0x40000>;
155 read-only;
156 };
157
158 partition@fc0000 {
159 label = "tffs (2)";
160 reg = <0xfc0000 0x40000>;
161 read-only;
162 };
163 };
164 };
165 };
166
167 &pci0 {
168 status = "okay";
169
170 pinctrl-0 = <&pci_gnt1_pins>, <&pci_gnt2_pins>,
171 <&pci_gnt3_pins>, <&pci_gnt4_pins>,
172 <&pci_req1_pins>, <&pci_req2_pins>,
173 <&pci_req4_pins>;
174 pinctrl-names = "default";
175
176 req-mask = <0xf>;
177 gpio-reset = <&gpio 21 GPIO_ACTIVE_LOW>;
178
179 wifi@0,0 {
180 compatible = "pci0,0";
181 reg = <0x7000 0 0 0 0>;
182 qca,no-eeprom; /* load from ath9k-eeprom-pci-0000:00:0e.0.bin */
183 };
184 };