lantiq: kernel: xway-nand: Move ECC engine setting to new DT binding
[openwrt/staging/chunkeey.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 nand-use-soft-ecc-engine;
107
108 partitions {
109 compatible = "fixed-partitions";
110 #address-cells = <1>;
111 #size-cells = <1>;
112
113 partition@0 {
114 label = "urlader";
115 reg = <0x0 0x40000>;
116 read-only;
117 };
118
119 partition@40000 {
120 label = "nand-tffs";
121 reg = <0x40000 0x400000>;
122 read-only;
123 };
124
125 partition@440000 {
126 label = "kernel";
127 reg = <0x440000 0x400000>;
128 };
129
130 partition@840000 {
131 label = "ubi";
132 reg = <0x840000 0x3000000>;
133 };
134
135 partition@3840000 {
136 label = "reserved-kernel";
137 reg = <0x3840000 0x400000>;
138 read-only;
139 };
140
141 partition@3c40000 {
142 label = "reserved-filesystem";
143 reg = <0x3c40000 0x3000000>;
144 read-only;
145 };
146
147 partition@6c40000 {
148 label = "config";
149 reg = <0x6c40000 0x200000>;
150 read-only;
151 };
152
153 partition@6e40000 {
154 label = "nand-filesystem";
155 reg = <0x6e40000 0x11c0000>;
156 read-only;
157 };
158 };
159 };
160 };
161
162 &pcie0 {
163 status = "okay";
164
165 gpio-reset = <&gpio 11 GPIO_ACTIVE_LOW>;
166
167 pcie@0 {
168 reg = <0 0 0 0 0>;
169 #interrupt-cells = <1>;
170 #size-cells = <2>;
171 #address-cells = <3>;
172 device_type = "pci";
173
174 wifi@168c,abcd {
175 compatible = "pci168c,abcd";
176 reg = <0 0 0 0 0>;
177 qca,no-eeprom; /* load from ath9k-eeprom-pci-0000:01:00.0.bin */
178 };
179 };
180 };
181
182 &gphy0 {
183 lantiq,gphy-mode = <GPHY_MODE_FE>;
184 };
185
186 &gphy1 {
187 lantiq,gphy-mode = <GPHY_MODE_FE>;
188 };
189
190 &gpio {
191 pinctrl-names = "default";
192 pinctrl-0 = <&state_default>;
193
194 state_default: pinmux {
195 pcie-rst {
196 lantiq,pins = "io11";
197 lantiq,open-drain = <1>;
198 lantiq,output = <1>;
199 };
200 };
201 };
202
203 &gswip_mdio {
204 phy11: ethernet-phy@11 {
205 reg = <0x11>;
206 };
207 phy12: ethernet-phy@12 {
208 reg = <0x12>;
209 };
210 phy13: ethernet-phy@13 {
211 reg = <0x13>;
212 };
213 phy14: ethernet-phy@14 {
214 reg = <0x14>;
215 };
216 };
217
218 &gswip_ports {
219 port@2 {
220 reg = <2>;
221 label = "lan3";
222 phy-mode = "internal";
223 phy-handle = <&phy11>;
224 };
225 port@3 {
226 reg = <3>;
227 label = "lan4";
228 phy-mode = "internal";
229 phy-handle = <&phy12>;
230 };
231 port@4 {
232 reg = <4>;
233 label = "lan1";
234 phy-mode = "internal";
235 phy-handle = <&phy13>;
236 };
237 port@5 {
238 reg = <5>;
239 label = "lan2";
240 phy-mode = "internal";
241 phy-handle = <&phy14>;
242 };
243 };
244
245 &usb_phy0 {
246 status = "okay";
247 };
248
249 &usb0 {
250 status = "okay";
251
252 vbus-supply = <&usb0_vbus>;
253 };