lantiq: kernel: xway-nand: Move ECC engine setting to new DT binding
[openwrt/openwrt.git] / target / linux / lantiq / files / arch / mips / boot / dts / lantiq / vr9_avm_fritz7412.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,fritz7412", "lantiq,xway", "lantiq,vr9";
10 model = "AVM FRITZ!Box 7412";
11
12 chosen {
13 bootargs = "console=ttyLTQ0,115200";
14 };
15
16 aliases {
17 led-boot = &power_green;
18 led-failsafe = &power_red;
19 led-running = &power_green;
20 led-upgrade = &power_red;
21
22 led-dsl = &info;
23 led-wifi = &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 wps {
36 label = "wps";
37 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
38 linux,code = <KEY_WPS_BUTTON>;
39 };
40
41 dect {
42 label = "dect";
43 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
44 linux,code = <KEY_PHONE>;
45 };
46 };
47
48 leds {
49 compatible = "gpio-leds";
50
51 power_green: power_green {
52 label = "green:power";
53 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
54 default-state = "keep";
55 };
56
57 power_red: power_red {
58 label = "red:power";
59 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
60 };
61
62 fon {
63 label = "green:fon";
64 gpios = <&gpio 34 GPIO_ACTIVE_LOW>;
65 };
66
67 dect {
68 label = "green:dect";
69 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
70 };
71
72 wifi: wifi {
73 label = "green:wifi";
74 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
75 };
76
77 info: info {
78 label = "green:info";
79 gpios = <&gpio 35 GPIO_ACTIVE_LOW>;
80 };
81 };
82 };
83
84 &localbus {
85 flash@0 {
86 compatible = "lantiq,nand-xway";
87 bank-width = <2>;
88 reg = <0 0x0 0x2000000>;
89 lantiq,cs = <1>;
90
91 pinctrl-0 = <&nand_pins>, <&nand_cs1_pins>;
92 pinctrl-names = "default";
93
94 nand-use-soft-ecc-engine;
95
96 partitions {
97 compatible = "fixed-partitions";
98 #address-cells = <1>;
99 #size-cells = <1>;
100
101 partition@0 {
102 label = "urlader";
103 reg = <0x0 0x40000>;
104 read-only;
105 };
106
107 partition@40000 {
108 label = "nand-tffs";
109 reg = <0x40000 0x400000>;
110 read-only;
111 };
112
113 partition@440000 {
114 label = "kernel";
115 reg = <0x440000 0x400000>;
116 };
117
118 partition@840000 {
119 label = "ubi";
120 reg = <0x840000 0x3000000>;
121 };
122
123 partition@3840000 {
124 label = "reserved-kernel";
125 reg = <0x3840000 0x400000>;
126 read-only;
127 };
128
129 partition@3c40000 {
130 label = "reserved-filesystem";
131 reg = <0x3c40000 0x3000000>;
132 read-only;
133 };
134
135 partition@6c40000 {
136 label = "config";
137 reg = <0x6c40000 0x400000>;
138 read-only;
139 };
140
141 partition@6e40000 {
142 label = "nand-filesystem";
143 reg = <0x6e40000 0x400000>;
144 read-only;
145 };
146 };
147 };
148 };
149
150 &pcie0 {
151 status = "okay";
152 gpio-reset = <&gpio 11 GPIO_ACTIVE_HIGH>;
153
154 pcie@0 {
155 reg = <0 0 0 0 0>;
156 #interrupt-cells = <1>;
157 #size-cells = <2>;
158 #address-cells = <3>;
159 device_type = "pci";
160
161 wifi@168c,002e {
162 compatible = "pci168c,002e";
163 reg = <0 0 0 0 0>;
164 qca,no-eeprom; /* load from ath9k-eeprom-pci-0000:01:00.0.bin */
165 };
166 };
167 };
168
169 &gpio {
170 pinctrl-names = "default";
171 pinctrl-0 = <&state_default>;
172
173 state_default: pinmux {
174 pcie-rst {
175 lantiq,pins = "io11";
176 lantiq,open-drain = <1>;
177 lantiq,output = <1>;
178 };
179 };
180 };
181
182 &gphy0 {
183 lantiq,gphy-mode = <GPHY_MODE_FE>;
184 };
185
186 &gswip_mdio {
187 phy11: ethernet-phy@11 {
188 reg = <0x11>;
189 };
190 };
191
192 &gswip_ports {
193 port@2 {
194 reg = <2>;
195 label = "lan";
196 phy-mode = "internal";
197 phy-handle = <&phy11>;
198 };
199 };