143dac97fef9dbae4f210704c11548a843042126
[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 label = "cpu";
116 phy-mode = "rgmii-id";
117 ethernet = <&eth0port>;
118
119 fixed-link {
120 speed = <1000>;
121 full-duplex;
122 };
123 };
124 };
125 };
126 };
127
128 &nand {
129 status = "okay";
130 pinctrl-0 = <&pmx_nand>;
131 pinctrl-names = "default";
132
133 partition@0 {
134 label = "u-boot";
135 reg = <0x00000000 0x000a0000>;
136 read-only;
137 };
138
139 partition@a0000 {
140 label = "u-boot-env";
141 reg = <0x000a0000 0x00060000>;
142 read-only;
143 };
144
145 partition@100000 {
146 label = "kernel";
147 reg = <0x00100000 0x00400000>;
148 };
149
150 partition@500000 {
151 label = "ubi";
152 reg = <0x00500000 0x1fb00000>;
153 };
154 };
155
156 &pciec {
157 status = "okay";
158 };
159
160 &pcie0 {
161 status = "okay";
162 };
163
164 &pinctrl {
165 pinctrl-0 = <&pmx_sysrst>;
166 pinctrl-names = "default";
167
168 pmx_sysrst: pmx-sysrst {
169 marvell,pins = "mpp6";
170 marvell,function = "sysrst";
171 };
172
173 pmx_sdio_cd: pmx-sdio-cd {
174 marvell,pins = "mpp28";
175 marvell,function = "gpio";
176 };
177
178 pmx_led34: pmx_led34 {
179 marvell,pins = "mpp34";
180 marvell,function = "gpio";
181 };
182
183 pmx_led35: pmx_led35 {
184 marvell,pins = "mpp35";
185 marvell,function = "gpio";
186 };
187
188 pmx_led49: pmx_led49 {
189 marvell,pins = "mpp49";
190 marvell,function = "gpio";
191 };
192 };
193
194 &rtc {
195 status = "okay";
196 };
197
198 &sata_phy0 {
199 status = "disabled";
200 };
201
202 &sata_phy1 {
203 status = "disabled";
204 };
205
206 &sdio {
207 pinctrl-0 = <&pmx_sdio_cd>;
208 pinctrl-names = "default";
209 status = "okay";
210 cd-gpios = <&gpio0 28 9>;
211 };
212
213 &uart0 {
214 status = "okay";
215 };
216
217 &usb0 {
218 status = "okay";
219 };