b4b12246ced62530a127455bc4647fded5a7b94d
[lede.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                 mac-address = [ 00 11 22 33 44 55 ];
159                 lantiq,switch;
160
161                 ethernet@0 {
162                         compatible = "lantiq,xrx200-pdi-port";
163                         reg = <0>;
164                         phy-mode = "rmii";
165                         phy-handle = <&phy0>;
166                 };
167                 ethernet@1 {
168                         compatible = "lantiq,xrx200-pdi-port";
169                         reg = <1>;
170                         phy-mode = "rmii";
171                         phy-handle = <&phy1>;
172                 };
173                 ethernet@2 {
174                         compatible = "lantiq,xrx200-pdi-port";
175                         reg = <2>;
176                         phy-mode = "gmii";
177                         phy-handle = <&phy11>;
178                 };
179                 ethernet@3 {
180                         compatible = "lantiq,xrx200-pdi-port";
181                         reg = <4>;
182                         phy-mode = "gmii";
183                         phy-handle = <&phy13>;
184                 };
185         };
186
187         mdio@0 {
188                 #address-cells = <1>;
189                 #size-cells = <0>;
190                 compatible = "lantiq,xrx200-mdio";
191                 phy0: ethernet-phy@0 {
192                         reg = <0x00>;
193                         compatible = "ethernet-phy-id004d.d076", "ethernet-phy-ieee802.3-c22";
194                         reset-gpios = <&gpio 37 GPIO_ACTIVE_LOW>;
195                 };
196                 phy1: ethernet-phy@1 {
197                         reg = <0x01>;
198                         compatible = "ethernet-phy-id004d.d076", "ethernet-phy-ieee802.3-c22";
199                         reset-gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
200                 };
201                 phy11: ethernet-phy@11 {
202                         reg = <0x11>;
203                         compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
204                 };
205                 phy13: ethernet-phy@13 {
206                         reg = <0x13>;
207                         compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
208                 };
209         };
210 };
211
212 &pcie0 {
213         pcie@0 {
214                 reg = <0 0 0 0 0>;
215                 #interrupt-cells = <1>;
216                 #size-cells = <2>;
217                 #address-cells = <3>;
218                 device_type = "pci";
219
220                 wifi@168c,002e {
221                         compatible = "pci168c,002e";
222                         reg = <0 0 0 0 0>;
223                         qca,no-eeprom; /* load from ath9k-eeprom-pci-0000:01:00.0.bin */
224                 };
225         };
226 };