lantiq: fix avm fritz box mac addresses
[openwrt/openwrt.git] / target / linux / lantiq / dts / FRITZ7360SL.dts
1 /dts-v1/;
2
3 #include "vr9.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8 model = "FRITZ7360SL - 1&1 HomeServer";
9
10 chosen {
11 bootargs = "console=ttyLTQ0,115200";
12 };
13
14 aliases {
15 led-boot = &power_green;
16 led-failsafe = &power_red;
17 led-running = &power_green;
18
19 led-internet = &info_green;
20 led-wifi = &wifi;
21 };
22
23 memory@0 {
24 reg = <0x0 0x8000000>;
25 };
26
27 fpi@10000000 {
28 localbus@0 {
29 nor-boot@0 {
30 compatible = "lantiq,nor";
31 bank-width = <2>;
32 reg = <0 0x0 0x1000000>;
33 #address-cells = <1>;
34 #size-cells = <1>;
35 partitions {
36 compatible = "fixed-partitions";
37 #address-cells = <1>;
38 #size-cells = <1>;
39 urlader: partition@0 {
40 label = "urlader";
41 reg = <0x00000 0x20000>;
42 read-only;
43 };
44
45 partition@20000 {
46 label = "firmware";
47 reg = <0x20000 0xf60000>;
48 };
49
50 partition@f80000 {
51 label = "tffs (1)";
52 reg = <0xf80000 0x40000>;
53 read-only;
54 };
55
56 partition@fc0000 {
57 label = "tffs (2)";
58 reg = <0xfc0000 0x40000>;
59 read-only;
60 };
61 };
62 };
63 };
64
65 gpio: pinmux@E100B10 {
66 pinctrl-names = "default";
67 pinctrl-0 = <&state_default>;
68
69 state_default: pinmux {
70 mdio {
71 lantiq,groups = "mdio";
72 lantiq,function = "mdio";
73 };
74 phy-rst {
75 lantiq,pins = "io37", "io44";
76 lantiq,pull = <0>;
77 lantiq,open-drain;
78 lantiq,output = <1>;
79 };
80 pcie-rst {
81 lantiq,pins = "io38";
82 lantiq,pull = <0>;
83 lantiq,output = <1>;
84 };
85 };
86 };
87
88 ifxhcd@E101000 {
89 status = "okay";
90 lantiq,portmask = <0x3>;
91 };
92
93 ifxhcd@E106000 {
94 status = "okay";
95 };
96 };
97
98 gphy-xrx200 {
99 compatible = "lantiq,phy-xrx200";
100 firmware = "lantiq/vr9_phy11g_a2x.bin";
101 phys = [ 00 01 ];
102 };
103
104 gpio-keys-polled {
105 compatible = "gpio-keys-polled";
106 #address-cells = <1>;
107 #size-cells = <0>;
108 poll-interval = <100>;
109 dect {
110 label = "dect";
111 gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
112 linux,code = <KEY_PHONE>;
113 };
114 wifi {
115 label = "wifi";
116 gpios = <&gpio 29 GPIO_ACTIVE_HIGH>;
117 linux,code = <KEY_WLAN>;
118 };
119 };
120
121 gpio-leds {
122 compatible = "gpio-leds";
123
124 power_green: power {
125 label = "fritz7360sl:green:power";
126 gpios = <&gpio 32 GPIO_ACTIVE_LOW>;
127 default-state = "keep";
128 };
129 power_red: power2 {
130 label = "fritz7360sl:red:power";
131 gpios = <&gpio 33 GPIO_ACTIVE_LOW>;
132 };
133 info_red {
134 label = "fritz7360sl:red:info";
135 gpios = <&gpio 34 GPIO_ACTIVE_LOW>;
136 };
137 info_green: info_green {
138 label = "fritz7360sl:green:info";
139 gpios = <&gpio 47 GPIO_ACTIVE_LOW>;
140 };
141 wifi: wifi {
142 label = "fritz7360sl:green:wlan";
143 gpios = <&gpio 36 GPIO_ACTIVE_LOW>;
144 };
145 dect {
146 label = "fritz7360sl:green:dect";
147 gpios = <&gpio 35 GPIO_ACTIVE_LOW>;
148 };
149 };
150 };
151
152 &eth0 {
153 lan: interface@0 {
154 compatible = "lantiq,xrx200-pdi";
155 #address-cells = <1>;
156 #size-cells = <0>;
157 reg = <0>;
158 mtd-mac-address = <&urlader 0xa91>;
159 mtd-mac-address-increment = <(-2)>;
160 lantiq,switch;
161
162 ethernet@0 {
163 compatible = "lantiq,xrx200-pdi-port";
164 reg = <0>;
165 phy-mode = "rmii";
166 phy-handle = <&phy0>;
167 };
168 ethernet@1 {
169 compatible = "lantiq,xrx200-pdi-port";
170 reg = <1>;
171 phy-mode = "rmii";
172 phy-handle = <&phy1>;
173 };
174 ethernet@2 {
175 compatible = "lantiq,xrx200-pdi-port";
176 reg = <2>;
177 phy-mode = "gmii";
178 phy-handle = <&phy11>;
179 };
180 ethernet@3 {
181 compatible = "lantiq,xrx200-pdi-port";
182 reg = <4>;
183 phy-mode = "gmii";
184 phy-handle = <&phy13>;
185 };
186 };
187
188 mdio@0 {
189 #address-cells = <1>;
190 #size-cells = <0>;
191 compatible = "lantiq,xrx200-mdio";
192 phy0: ethernet-phy@0 {
193 reg = <0x00>;
194 compatible = "ethernet-phy-id004d.d076", "ethernet-phy-ieee802.3-c22";
195 reset-gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
196 };
197 phy1: ethernet-phy@1 {
198 reg = <0x01>;
199 compatible = "ethernet-phy-id004d.d076", "ethernet-phy-ieee802.3-c22";
200 reset-gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
201 };
202 phy11: ethernet-phy@11 {
203 reg = <0x11>;
204 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
205 };
206 phy13: ethernet-phy@13 {
207 reg = <0x13>;
208 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
209 };
210 };
211 };
212
213 &pcie0 {
214 pcie@0 {
215 reg = <0 0 0 0 0>;
216 #interrupt-cells = <1>;
217 #size-cells = <2>;
218 #address-cells = <3>;
219 device_type = "pci";
220
221 wifi@168c,002e {
222 compatible = "pci168c,002e";
223 reg = <0 0 0 0 0>;
224 qca,no-eeprom; /* load from ath9k-eeprom-pci-0000:01:00.0.bin */
225 };
226 };
227 };