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