lantiq: xrx200: switch the subtarget to the mainline DSA driver
[openwrt/staging/jow.git] / target / linux / lantiq / files / arch / mips / boot / dts / lantiq / vr9_avm_fritz7430.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "vr9.dtsi"
4
5 #include <dt-bindings/input/input.h>
6 #include <dt-bindings/mips/lantiq_rcu_gphy.h>
7
8 / {
9 compatible = "avm,fritz7430", "lantiq,xway", "lantiq,vr9";
10 model = "AVM FRITZ!Box 7430";
11
12 chosen {
13 bootargs = "console=ttyLTQ0,115200";
14 };
15
16 aliases {
17 led-boot = &led_power;
18 led-failsafe = &led_info_red;
19 led-running = &led_power;
20 led-upgrade = &led_info_green;
21
22 led-dsl = &led_info_green;
23 led-wifi = &led_wifi;
24 };
25
26 memory@0 {
27 device_type = "memory";
28 reg = <0x0 0x8000000>;
29 };
30
31 keys {
32 compatible = "gpio-keys-polled";
33 poll-interval = <100>;
34
35 dect {
36 label = "dect";
37 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
38 linux,code = <KEY_PHONE>;
39 };
40
41 wifi {
42 label = "wifi";
43 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
44 linux,code = <KEY_RFKILL>;
45 };
46 };
47
48 leds {
49 compatible = "gpio-leds";
50
51 led_power: power {
52 label = "green:power";
53 gpios = <&gpio 31 GPIO_ACTIVE_LOW>;
54 default-state = "keep";
55 };
56
57 led_info_green: info_green {
58 label = "green:info";
59 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
60 };
61
62 led_info_red: info_red {
63 label = "red:info";
64 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
65 };
66
67 led_wifi: wifi {
68 label = "green:wifi";
69 gpios = <&gpio 34 GPIO_ACTIVE_LOW>;
70 };
71
72 dect {
73 label = "green:dect";
74 gpios = <&gpio 35 GPIO_ACTIVE_LOW>;
75 };
76
77 fon {
78 label = "green:fon";
79 gpios = <&gpio 36 GPIO_ACTIVE_LOW>;
80 };
81 };
82
83 usb0_vbus: regulator-usb0-vbus {
84 compatible = "regulator-fixed";
85
86 regulator-name = "USB0_VBUS";
87
88 regulator-min-microvolt = <5000000>;
89 regulator-max-microvolt = <5000000>;
90
91 gpio = <&gpio 5 GPIO_ACTIVE_HIGH>;
92 enable-active-high;
93 };
94 };
95
96 &localbus {
97 flash@0 {
98 compatible = "lantiq,nand-xway";
99 bank-width = <2>;
100 reg = <0 0x0 0x8000000>;
101 lantiq,cs = <1>;
102
103 pinctrl-0 = <&nand_pins>, <&nand_cs1_pins>;
104 pinctrl-names = "default";
105
106 partitions {
107 compatible = "fixed-partitions";
108 #address-cells = <1>;
109 #size-cells = <1>;
110
111 partition@0 {
112 label = "urlader";
113 reg = <0x0 0x40000>;
114 read-only;
115 };
116
117 partition@40000 {
118 label = "nand-tffs";
119 reg = <0x40000 0x400000>;
120 read-only;
121 };
122
123 partition@440000 {
124 label = "kernel";
125 reg = <0x440000 0x400000>;
126 };
127
128 partition@840000 {
129 label = "ubi";
130 reg = <0x840000 0x3000000>;
131 };
132
133 partition@3840000 {
134 label = "reserved-kernel";
135 reg = <0x3840000 0x400000>;
136 read-only;
137 };
138
139 partition@3c40000 {
140 label = "reserved-filesystem";
141 reg = <0x3c40000 0x3000000>;
142 read-only;
143 };
144
145 partition@6c40000 {
146 label = "config";
147 reg = <0x6c40000 0x200000>;
148 read-only;
149 };
150
151 partition@6e40000 {
152 label = "nand-filesystem";
153 reg = <0x6e40000 0x11c0000>;
154 read-only;
155 };
156 };
157 };
158 };
159
160 &pcie0 {
161 status = "okay";
162
163 gpio-reset = <&gpio 11 GPIO_ACTIVE_LOW>;
164
165 pcie@0 {
166 reg = <0 0 0 0 0>;
167 #interrupt-cells = <1>;
168 #size-cells = <2>;
169 #address-cells = <3>;
170 device_type = "pci";
171
172 wifi@168c,abcd {
173 compatible = "pci168c,abcd";
174 reg = <0 0 0 0 0>;
175 qca,no-eeprom; /* load from ath9k-eeprom-pci-0000:01:00.0.bin */
176 };
177 };
178 };
179
180 &gphy0 {
181 lantiq,gphy-mode = <GPHY_MODE_FE>;
182 };
183
184 &gphy1 {
185 lantiq,gphy-mode = <GPHY_MODE_FE>;
186 };
187
188 &gpio {
189 pinctrl-names = "default";
190 pinctrl-0 = <&state_default>;
191
192 state_default: pinmux {
193 pcie-rst {
194 lantiq,pins = "io11";
195 lantiq,open-drain = <1>;
196 lantiq,output = <1>;
197 };
198 };
199 };
200
201 &gswip_mdio {
202 phy11: ethernet-phy@11 {
203 reg = <0x11>;
204 };
205 phy12: ethernet-phy@12 {
206 reg = <0x12>;
207 };
208 phy13: ethernet-phy@13 {
209 reg = <0x13>;
210 };
211 phy14: ethernet-phy@14 {
212 reg = <0x14>;
213 };
214 };
215
216 &gswip_ports {
217 port@2 {
218 reg = <2>;
219 label = "lan3";
220 phy-mode = "internal";
221 phy-handle = <&phy11>;
222 };
223 port@3 {
224 reg = <3>;
225 label = "lan4";
226 phy-mode = "internal";
227 phy-handle = <&phy12>;
228 };
229 port@4 {
230 reg = <4>;
231 label = "lan1";
232 phy-mode = "internal";
233 phy-handle = <&phy13>;
234 };
235 port@5 {
236 reg = <5>;
237 label = "lan2";
238 phy-mode = "internal";
239 phy-handle = <&phy14>;
240 };
241 };
242
243 &usb_phy0 {
244 status = "okay";
245 };
246
247 &usb0 {
248 status = "okay";
249
250 vbus-supply = <&usb0_vbus>;
251 };