treewide: remove label = "cpu" from DSA dt-binding
[openwrt/staging/noltari.git] / target / linux / kirkwood / files / arch / arm / boot / dts / kirkwood-ea3500.dts
1 // SPDX-License-Identifier: GPL-2.0-only
2 /*
3 * kirkwood-linksys-audi.dts - Device Tree file for Linksys EA3500
4 *
5 * (c) 2013 Jonas Gorski <jogo@openwrt.org>
6 * (c) 2013 Deutsche Telekom Innovation Laboratories
7 * (c) 2014 Luka Perkov <luka@openwrt.org>
8 * (c) 2014 Dan Walters <dan@walters.io>
9 *
10 */
11
12 /dts-v1/;
13
14 #include "kirkwood.dtsi"
15 #include "kirkwood-6282.dtsi"
16
17 / {
18 model = "Linksys EA3500 (Audi)";
19 compatible = "linksys,ea3500", "linksys,audi", "marvell,kirkwood-88f6282", "marvell,kirkwood";
20
21 memory@0 {
22 device_type = "memory";
23 reg = <0x00000000 0x4000000>;
24 };
25
26 aliases {
27 led-boot = &led_power;
28 led-failsafe = &led_power;
29 led-running = &led_power;
30 led-upgrade = &led_power;
31 serial0 = &uart0;
32 };
33
34 chosen {
35 stdout-path = "serial0:115200n8";
36 };
37
38 gpio-keys {
39 compatible = "gpio-keys";
40
41 pinctrl-0 = <&pmx_btn_wps &pmx_btn_reset>;
42 pinctrl-names = "default";
43
44 wps {
45 label = "WPS Button";
46 linux,code = <KEY_WPS_BUTTON>;
47 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
48 };
49
50 reset {
51 label = "Reset Button";
52 linux,code = <KEY_RESTART>;
53 gpios = <&gpio1 16 GPIO_ACTIVE_LOW>;
54 };
55 };
56
57 gpio-leds {
58 compatible = "gpio-leds";
59
60 pinctrl-0 = <&pmx_led_green_power>;
61 pinctrl-names = "default";
62
63 led_power: power {
64 label = "audi:green:power";
65 gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
66 default-state = "on";
67 };
68 };
69 };
70
71 &pinctrl {
72 pmx_led_green_power: pmx-led-green-power {
73 marvell,pins = "mpp7";
74 marvell,function = "gpo";
75 };
76
77 pmx_btn_wps: pmx-btn-wps {
78 marvell,pins = "mpp47";
79 marvell,function = "gpio";
80 };
81
82 pmx_btn_reset: pmx-btn-reset {
83 marvell,pins = "mpp48";
84 marvell,function = "gpio";
85 };
86 };
87
88 &mdio {
89 status = "okay";
90
91 switch@10 {
92 compatible = "marvell,mv88e6085";
93 #address-cells = <1>;
94 #size-cells = <0>;
95 reg = <16>;
96
97 ports {
98 #address-cells = <1>;
99 #size-cells = <0>;
100
101 port@0 {
102 reg = <0>;
103 label = "ethernet1";
104 };
105
106 port@1 {
107 reg = <1>;
108 label = "ethernet2";
109 };
110
111 port@2 {
112 reg = <2>;
113 label = "ethernet3";
114 };
115
116 port@3 {
117 reg = <3>;
118 label = "ethernet4";
119 };
120
121 port@4 {
122 reg = <4>;
123 label = "internet";
124 };
125
126 port@5 {
127 reg = <5>;
128 ethernet = <&eth0port>;
129 fixed-link {
130 speed = <1000>;
131 full-duplex;
132 };
133 };
134 };
135 };
136 };
137
138 &nand {
139 status = "okay";
140
141 pinctrl-0 = <&pmx_nand>;
142 pinctrl-names = "default";
143
144 partitions {
145 compatible = "fixed-partitions";
146 #address-cells = <1>;
147 #size-cells = <1>;
148
149 partition@0 {
150 label = "u-boot";
151 reg = <0x0 0x80000>;
152 read-only;
153 };
154
155 partition@80000 {
156 label = "u_env";
157 reg = <0x80000 0x4000>;
158 };
159
160 partition@84000 {
161 label = "s_env";
162 reg = <0x84000 0x4000>;
163 };
164
165 partition@200000 {
166 label = "kernel1";
167 reg = <0x200000 0x1400000>;
168 };
169
170 partition@500000 {
171 label = "rootfs1";
172 reg = <0x500000 0x1100000>;
173 };
174
175 partition@1600000 {
176 label = "kernel2";
177 reg = <0x1600000 0x1400000>;
178 };
179
180 partition@1900000 {
181 label = "rootfs2";
182 reg = <0x1900000 0x1100000>;
183 };
184
185 partition@2a00000 {
186 label = "syscfg";
187 reg = <0x2a00000 0x1600000>;
188 };
189
190 partition@88000 {
191 label = "unused";
192 reg = <0x88000 0x178000>;
193 };
194 };
195 };
196
197 &pciec {
198 status = "okay";
199 };
200
201 &pcie0 {
202 status = "okay";
203 };
204
205 &pcie1 {
206 status = "okay";
207 };
208
209 &mdio {
210 status = "okay";
211 };
212
213 &uart0 {
214 status = "okay";
215 };
216
217 /* eth0 is connected to a Marvell 88E6171 switch, without a PHY. So set
218 * fixed speed and duplex.
219 */
220 &eth0 {
221 status = "okay";
222
223 ethernet0-port@0 {
224 speed = <1000>;
225 duplex = <1>;
226 };
227 };
228
229 /* eth1 is connected to the switch at port 6. However DSA only supports a
230 * single CPU port. This port is disabled to avoid confusion.
231 */
232 &eth1 {
233 status = "disabled";
234 };
235
236 /* There is no battery on the board, so the RTC does not keep
237 * time when there is no power, making it useless.
238 */
239 &rtc {
240 status = "disabled";
241 };