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