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