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