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