summaryrefslogtreecommitdiff
path: root/arch/arm/boot/dts/marvell/kirkwood-4i-edge-200.dts
blob: b1749d3f60b7bb9285b5524a1ff0f27dfaf043ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
/*
 * Endian 4i Edge 200 Board Description
 * Note: Endian UTM Mini is hardware clone of Endian Edge 200
 * Copyright 2021-2022 Pawel Dembicki <paweldembicki@gmail.com>
 */

/dts-v1/;

#include "kirkwood.dtsi"
#include "kirkwood-6281.dtsi"
#include <dt-bindings/leds/common.h>

/ {
	model = "Endian 4i Edge 200";
	compatible = "endian,4i-edge-200", "marvell,kirkwood-88f6281", "marvell,kirkwood";

	memory {
		device_type = "memory";
		reg = <0x00000000 0x20000000>;
	};

	chosen {
		bootargs = "console=ttyS0,115200n8";
		stdout-path = &uart0;
	};

	leds {
		compatible = "gpio-leds";
		pinctrl-0 = <&pmx_led>;
		pinctrl-names = "default";

		led-1 {
			function = LED_FUNCTION_SD;
			color = <LED_COLOR_ID_AMBER>;
			gpios = <&gpio1 2 GPIO_ACTIVE_HIGH>;
			linux,default-trigger = "mmc0";
		};

		led-2 {
			function = LED_FUNCTION_STATUS;
			color = <LED_COLOR_ID_AMBER>;
			gpios = <&gpio1 3 GPIO_ACTIVE_HIGH>;
		};

		led-3 {
			function = LED_FUNCTION_STATUS;
			color = <LED_COLOR_ID_GREEN>;
			gpios = <&gpio1 17 GPIO_ACTIVE_HIGH>;
		};
	};
};

&eth0 {
	status = "okay";
};

&eth0port {
	speed = <1000>;
	duplex = <1>;
};

&eth1 {
	status = "okay";
};

&eth1port {
	phy-handle = <&ethphyb>;
};

&mdio {
	status = "okay";

	ethphyb: ethernet-phy@b {
		reg = <0x0b>;

		marvell,reg-init =
			/* link-activity, bi-color mode 4 */
			<3 0x10 0xfff0 0xf>; /* Reg 3,16 <- 0xzzzf */
	};

	switch0: switch@11 {
		compatible = "marvell,mv88e6085";
		reg = <0x11>;

		ports {
			#address-cells = <1>;
			#size-cells = <0>;

			port@0 {
				reg = <0>;
				label = "port1";
			};

			port@1 {
				reg = <1>;
				label = "port2";
			};

			port@2 {
				reg = <2>;
				label = "port3";
			};

			port@3 {
				reg = <3>;
				label = "port4";
			};

			port@5 {
				reg = <5>;
				phy-mode = "rgmii-id";
				ethernet = <&eth0port>;

				fixed-link {
					speed = <1000>;
					full-duplex;
				};
			};
		};
	};
};

&nand {
	status = "okay";
	pinctrl-0 = <&pmx_nand>;
	pinctrl-names = "default";

	partition@0 {
		label = "u-boot";
		reg = <0x00000000 0x000a0000>;
		read-only;
	};

	partition@a0000 {
		label = "u-boot-env";
		reg = <0x000a0000 0x00060000>;
		read-only;
	};

	partition@100000 {
		label = "kernel";
		reg = <0x00100000 0x00400000>;
	};

	partition@500000 {
		label = "ubi";
		reg = <0x00500000 0x1fb00000>;
	};
};

&pciec {
	status = "okay";
};

&pcie0 {
	status = "okay";
};

&pinctrl {
	pinctrl-0 = <&pmx_sysrst>;
	pinctrl-names = "default";

	pmx_sysrst: pmx-sysrst {
		marvell,pins = "mpp6";
		marvell,function = "sysrst";
	};

	pmx_sdio_cd: pmx-sdio-cd {
		marvell,pins = "mpp28";
		marvell,function = "gpio";
	};

	pmx_led: pmx-led {
		marvell,pins = "mpp34", "mpp35", "mpp49";
		marvell,function = "gpio";
	};
};

&rtc {
	status = "okay";
};

&sata_phy0 {
	status = "disabled";
};

&sata_phy1 {
	status = "disabled";
};

&sdio {
	pinctrl-0 = <&pmx_sdio_cd>;
	pinctrl-names = "default";
	status = "okay";
	cd-gpios = <&gpio0 28 9>;
};

&uart0 {
	status = "okay";
};

&usb0 {
	status = "okay";
};