lantiq: dts: drop superfluous unit address
[openwrt/staging/rmilecki.git] / target / linux / lantiq / files / arch / mips / boot / dts / FRITZ7412.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 /dts-v1/;
3
4 #include "vr9.dtsi"
5
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/mips/lantiq_rcu_gphy.h>
8
9 / {
10 compatible = "avm,fritz7412", "lantiq,xway", "lantiq,vr9";
11 model = "AVM FRITZ!Box 7412";
12
13 chosen {
14 bootargs = "console=ttyLTQ0,115200 mem=126M vpe1_load_addr=0x87e00000 vpe1_mem=2M maxvpes=1 maxtcs=1 nosmp";
15 };
16
17 aliases {
18 led-boot = &power_green;
19 led-failsafe = &power_red;
20 led-running = &power_green;
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_HIGH>;
38 linux,code = <KEY_WPS_BUTTON>;
39 };
40
41 dect {
42 label = "dect";
43 gpios = <&gpio 2 GPIO_ACTIVE_HIGH>;
44 linux,code = <KEY_PHONE>;
45 };
46 };
47
48 leds {
49 compatible = "gpio-leds";
50
51 power_green: power_green {
52 label = "fritz7412:green:power";
53 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
54 default-state = "keep";
55 };
56
57 power_red: power_red {
58 label = "fritz7412:red:power";
59 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
60 };
61
62 fon {
63 label = "fritz7412:green:fon";
64 gpios = <&gpio 34 GPIO_ACTIVE_LOW>;
65 };
66
67 dect {
68 label = "fritz7412:green:dect";
69 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
70 };
71
72 wifi: wifi {
73 label = "fritz7412:green:wifi";
74 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
75 };
76
77 info: info {
78 label = "fritz7412:green:info";
79 gpios = <&gpio 35 GPIO_ACTIVE_LOW>;
80 };
81 };
82 };
83
84 &localbus {
85 nand@0 {
86 compatible = "lantiq,nand-xway";
87 bank-width = <2>;
88 reg = <0 0x0 0x2000000>;
89 #address-cells = <1>;
90 #size-cells = <1>;
91 lantiq,cs = <1>;
92
93 partitions {
94 compatible = "fixed-partitions";
95 #address-cells = <1>;
96 #size-cells = <1>;
97
98 partition@0 {
99 label = "urlader";
100 reg = <0x0 0x40000>;
101 read-only;
102 };
103
104 partition@40000 {
105 label = "nand-tffs";
106 reg = <0x40000 0x400000>;
107 read-only;
108 };
109
110 partition@440000 {
111 label = "kernel";
112 reg = <0x440000 0x400000>;
113 };
114
115 partition@840000 {
116 label = "ubi";
117 reg = <0x840000 0x3000000>;
118 };
119
120 partition@3840000 {
121 label = "reserved-kernel";
122 reg = <0x3840000 0x400000>;
123 read-only;
124 };
125
126 partition@3c40000 {
127 label = "reserved-filesystem";
128 reg = <0x3c40000 0x3000000>;
129 read-only;
130 };
131
132 partition@6c40000 {
133 label = "config";
134 reg = <0x6c40000 0x400000>;
135 read-only;
136 };
137
138 partition@6e40000 {
139 label = "nand-filesystem";
140 reg = <0x6e40000 0x400000>;
141 read-only;
142 };
143 };
144 };
145 };
146
147 &pcie0 {
148 status = "okay";
149 gpio-reset = <&gpio 11 GPIO_ACTIVE_HIGH>;
150
151 pcie@0 {
152 reg = <0 0 0 0 0>;
153 #interrupt-cells = <1>;
154 #size-cells = <2>;
155 #address-cells = <3>;
156 device_type = "pci";
157
158 wifi@168c,002e {
159 compatible = "pci168c,002e";
160 reg = <0 0 0 0 0>;
161 qca,no-eeprom; /* load from ath9k-eeprom-pci-0000:01:00.0.bin */
162 };
163 };
164 };
165
166 &gpio {
167 pinctrl-names = "default";
168 pinctrl-0 = <&state_default>;
169
170 state_default: pinmux {
171 mdio {
172 lantiq,groups = "mdio";
173 lantiq,function = "mdio";
174 };
175 pcie-rst {
176 lantiq,pins = "io11";
177 lantiq,open-drain = <1>;
178 lantiq,output = <1>;
179 };
180 nand-mux {
181 lantiq,groups = "nand cle", "nand ale",
182 "nand rd", "nand cs1",
183 "nand rdy";
184 lantiq,function = "ebu";
185 };
186 nand-pins {
187 lantiq,pins = "io13", "io24", "io49";
188 lantiq,pull = <1>;
189 };
190 };
191 };
192
193 &gphy0 {
194 lantiq,gphy-mode = <GPHY_MODE_FE>;
195 };
196
197 &eth0 {
198 lantiq,phys = <&gphy0>;
199
200 interface@0 {
201 compatible = "lantiq,xrx200-pdi";
202 #address-cells = <1>;
203 #size-cells = <0>;
204 reg = <0>;
205 mac-address = [ 00 11 22 33 44 55 ];
206 lantiq,switch;
207
208 ethernet@2 {
209 compatible = "lantiq,xrx200-pdi-port";
210 reg = <2>;
211 phy-mode = "gmii";
212 phy-handle = <&phy11>;
213 };
214 };
215
216 mdio {
217 #address-cells = <1>;
218 #size-cells = <0>;
219 compatible = "lantiq,xrx200-mdio";
220
221 phy11: ethernet-phy@11 {
222 reg = <0x11>;
223 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
224 };
225 };
226 };
227
228 &vmmc {
229 status = "okay";
230 };