treewide: remove label = "cpu" from DSA dt-binding
[openwrt/staging/noltari.git] / target / linux / kirkwood / files / arch / arm / boot / dts / kirkwood-4i-edge-200.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /*
3 * Endian 4i Edge 200 Board Description
4 * Note: Endian UTM Mini is hardware clone of Endian Edge 200
5 * Copyright 2021 Pawel Dembicki <paweldembicki@gmail.com>
6 */
7
8 /dts-v1/;
9
10 #include "kirkwood.dtsi"
11 #include "kirkwood-6281.dtsi"
12
13 / {
14 model = "Endian 4i Edge 200";
15 compatible = "endian,4i-edge-200", "marvell,kirkwood-88f6281", "marvell,kirkwood";
16
17 memory {
18 device_type = "memory";
19 reg = <0x00000000 0x20000000>;
20 };
21
22 aliases {
23 led-boot = &led_status_green;
24 led-failsafe = &led_status_orange;
25 led-running = &led_status_green;
26 led-upgrade = &led_status_orange;
27 };
28
29 chosen {
30 bootargs = "console=ttyS0,115200n8";
31 stdout-path = &uart0;
32 };
33
34 leds {
35 compatible = "gpio-leds";
36 pinctrl-0 = <&pmx_led49 &pmx_led35 &pmx_led34>;
37 pinctrl-names = "default";
38
39 led_status_green: status_green {
40 label = "green:status";
41 gpios = <&gpio1 17 GPIO_ACTIVE_HIGH>;
42 };
43
44 led_status_orange: status_orange {
45 label = "orange:status";
46 gpios = <&gpio1 3 GPIO_ACTIVE_HIGH>;
47 };
48
49 sdcard {
50 label = "orange:sdcard";
51 gpios = <&gpio1 2 GPIO_ACTIVE_HIGH>;
52 linux,default-trigger = "mmc0";
53 };
54 };
55 };
56
57 &eth0 {
58 status = "okay";
59 };
60
61 &eth0port {
62 speed = <1000>;
63 duplex = <1>;
64 };
65
66 &eth1 {
67 status = "okay";
68 };
69
70 &eth1port {
71 phy-handle = <&ethphyb>;
72 };
73
74 &mdio {
75 status = "okay";
76
77 ethphyb: ethernet-phy@b {
78 reg = <0x0b>;
79
80 marvell,reg-init =
81 /* link-activity, bi-color mode 4 */
82 <3 0x10 0xfff0 0xf>; /* Reg 3,16 <- 0xzzzf */
83 };
84
85 switch0: switch@11 {
86 compatible = "marvell,mv88e6085";
87 reg = <0x11>;
88
89 ports {
90 #address-cells = <1>;
91 #size-cells = <0>;
92
93 port@0 {
94 reg = <0>;
95 label = "port1";
96 };
97
98 port@1 {
99 reg = <1>;
100 label = "port2";
101 };
102
103 port@2 {
104 reg = <2>;
105 label = "port3";
106 };
107
108 port@3 {
109 reg = <3>;
110 label = "port4";
111 };
112
113 port@5 {
114 reg = <5>;
115 phy-mode = "rgmii-id";
116 ethernet = <&eth0port>;
117
118 fixed-link {
119 speed = <1000>;
120 full-duplex;
121 };
122 };
123 };
124 };
125 };
126
127 &nand {
128 status = "okay";
129 pinctrl-0 = <&pmx_nand>;
130 pinctrl-names = "default";
131
132 partition@0 {
133 label = "u-boot";
134 reg = <0x00000000 0x000a0000>;
135 read-only;
136 };
137
138 partition@a0000 {
139 label = "u-boot-env";
140 reg = <0x000a0000 0x00060000>;
141 read-only;
142 };
143
144 partition@100000 {
145 label = "kernel";
146 reg = <0x00100000 0x00400000>;
147 };
148
149 partition@500000 {
150 label = "ubi";
151 reg = <0x00500000 0x1fb00000>;
152 };
153 };
154
155 &pciec {
156 status = "okay";
157 };
158
159 &pcie0 {
160 status = "okay";
161 };
162
163 &pinctrl {
164 pinctrl-0 = <&pmx_sysrst>;
165 pinctrl-names = "default";
166
167 pmx_sysrst: pmx-sysrst {
168 marvell,pins = "mpp6";
169 marvell,function = "sysrst";
170 };
171
172 pmx_sdio_cd: pmx-sdio-cd {
173 marvell,pins = "mpp28";
174 marvell,function = "gpio";
175 };
176
177 pmx_led34: pmx_led34 {
178 marvell,pins = "mpp34";
179 marvell,function = "gpio";
180 };
181
182 pmx_led35: pmx_led35 {
183 marvell,pins = "mpp35";
184 marvell,function = "gpio";
185 };
186
187 pmx_led49: pmx_led49 {
188 marvell,pins = "mpp49";
189 marvell,function = "gpio";
190 };
191 };
192
193 &rtc {
194 status = "okay";
195 };
196
197 &sata_phy0 {
198 status = "disabled";
199 };
200
201 &sata_phy1 {
202 status = "disabled";
203 };
204
205 &sdio {
206 pinctrl-0 = <&pmx_sdio_cd>;
207 pinctrl-names = "default";
208 status = "okay";
209 cd-gpios = <&gpio0 28 9>;
210 };
211
212 &uart0 {
213 status = "okay";
214 };
215
216 &usb0 {
217 status = "okay";
218 };