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