mvebu: drop redundant label with new LED color/function format
[openwrt/staging/stintel.git] / target / linux / mvebu / files / arch / arm / boot / dts / armada-385-fortinet-fg-x0e.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 /dts-v1/;
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/leds/common.h>
8 #include "armada-385.dtsi"
9
10 / {
11 aliases {
12 led-boot = &led_status_green;
13 led-failsafe = &led_status_red;
14 led-running = &led_status_green;
15 led-upgrade = &led_status_green;
16 label-mac-device = &eth0;
17 };
18
19 chosen {
20 stdout-path = "serial0:9600n8";
21 };
22
23 soc {
24 ranges = <MBUS_ID(0xf0, 0x01) 0 0xf1000000 0x100000
25 MBUS_ID(0x01, 0x1d) 0 0xfff00000 0x100000
26 MBUS_ID(0x09, 0x19) 0 0xf1100000 0x10000
27 MBUS_ID(0x09, 0x15) 0 0xf1110000 0x10000
28 MBUS_ID(0x0c, 0x04) 0 0xf1200000 0x100000>;
29 };
30
31 gpio-keys {
32 compatible = "gpio-keys";
33 pinctrl-names = "default";
34 pinctrl-0 = <&pmx_gpio_keys_pins>;
35
36 reset {
37 label = "reset";
38 linux,code = <KEY_RESTART>;
39 gpios = <&gpio1 22 GPIO_ACTIVE_LOW>;
40 };
41 };
42
43 gpio_leds: gpio-leds {
44 compatible = "gpio-leds";
45 pinctrl-names = "default";
46 pinctrl-0 = <&pmx_gpio_leds_pins>;
47
48 led-0 {
49 gpios = <&gpio0 30 GPIO_ACTIVE_LOW>;
50 color = <LED_COLOR_ID_RED>;
51 function = LED_FUNCTION_ALARM;
52 };
53
54 led-1 {
55 gpios = <&gpio1 0 GPIO_ACTIVE_LOW>;
56 color = <LED_COLOR_ID_RED>;
57 };
58
59 led_status_green: led-2 {
60 gpios = <&gpio1 1 GPIO_ACTIVE_LOW>;
61 color = <LED_COLOR_ID_GREEN>;
62 function = LED_FUNCTION_STATUS;
63 };
64
65 led-3 {
66 gpios = <&gpio1 3 GPIO_ACTIVE_LOW>;
67 color = <LED_COLOR_ID_GREEN>;
68 };
69
70 led-4 {
71 gpios = <&gpio1 13 GPIO_ACTIVE_LOW>;
72 color = <LED_COLOR_ID_AMBER>;
73 function = LED_FUNCTION_ALARM;
74 };
75
76 led_status_red: led-5 {
77 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
78 color = <LED_COLOR_ID_RED>;
79 function = LED_FUNCTION_STATUS;
80 };
81
82 led-6 {
83 gpios = <&gpio2 4 GPIO_ACTIVE_LOW>;
84 color = <LED_COLOR_ID_GREEN>;
85 linux,default-trigger = "mv88e6xxx-1:01:1Gbps";
86 };
87
88 led-7 {
89 gpios = <&gpio2 5 GPIO_ACTIVE_LOW>;
90 color = <LED_COLOR_ID_AMBER>;
91 linux,default-trigger = "mv88e6xxx-1:01:100Mbps";
92 };
93
94 led-8 {
95 gpios = <&gpio2 6 GPIO_ACTIVE_LOW>;
96 color = <LED_COLOR_ID_AMBER>;
97 linux,default-trigger = "mv88e6xxx-1:02:100Mbps";
98 };
99
100 led-9 {
101 gpios = <&gpio2 7 GPIO_ACTIVE_LOW>;
102 color = <LED_COLOR_ID_GREEN>;
103 linux,default-trigger = "mv88e6xxx-1:02:1Gbps";
104 };
105
106 led-10 {
107 gpios = <&gpio2 12 GPIO_ACTIVE_LOW>;
108 color = <LED_COLOR_ID_GREEN>;
109 linux,default-trigger = "mv88e6xxx-1:04:1Gbps";
110 };
111
112 led-11 {
113 gpios = <&gpio2 13 GPIO_ACTIVE_LOW>;
114 color = <LED_COLOR_ID_AMBER>;
115 linux,default-trigger = "mv88e6xxx-1:04:100Mbps";
116 };
117
118 led-12 {
119 gpios = <&gpio2 14 GPIO_ACTIVE_LOW>;
120 color = <LED_COLOR_ID_GREEN>;
121 linux,default-trigger = "mv88e6xxx-1:03:1Gbps";
122 };
123
124 led-13 {
125 gpios = <&gpio2 15 GPIO_ACTIVE_LOW>;
126 color = <LED_COLOR_ID_AMBER>;
127 linux,default-trigger = "mv88e6xxx-1:03:100Mbps";
128 };
129 };
130
131 reg_usb_vbus: regulator-usb-vbus {
132 compatible = "fixed-regulator";
133 regulator-name = "usb-vbus";
134 regulator-min-microvolt = <5000000>;
135 regulator-max-microvolt = <5000000>;
136 gpio = <&gpio1 21 GPIO_ACTIVE_LOW>;
137 regulator-always-on;
138 };
139 };
140
141 &i2c0 {
142 pinctrl-names = "default";
143 pinctrl-0 = <&i2c0_pins>;
144 status = "okay";
145
146 gpio2: gpio@24 {
147 compatible = "nxp,pca9555";
148 reg = <0x24>;
149 gpio-controller;
150 #gpio-cells = <0x2>;
151 };
152
153 hwmon@28 {
154 compatible = "nuvoton,nct7802";
155 reg = <0x28>;
156 };
157 };
158
159 &uart0 {
160 pinctrl-names = "default";
161 pinctrl-0 = <&uart0_pins>;
162 status = "okay";
163 };
164
165 &pinctrl {
166 pmx_gpio_leds_pins: gpio-leds-pins {
167 marvell,pins = "mpp30", "mpp32", "mpp33", "mpp35",
168 "mpp45", "mpp47";
169 marvell,function = "gpio";
170 };
171
172 pmx_usb_pins: usb-pins {
173 marvell,pins = "mpp53";
174 marvell,function = "gpio";
175 };
176
177 pmx_gpio_keys_pins: gpio-keys-pins {
178 marvell,pins = "mpp54";
179 marvell,function = "gpio";
180 };
181 };
182
183 &bm {
184 status = "okay";
185 };
186
187 &bm_bppi {
188 status = "okay";
189 };
190
191 &eth0 {
192 pinctrl-names = "default";
193 pinctrl-0 = <&ge0_rgmii_pins>;
194 status = "okay";
195
196 phy-connection-type = "rgmii-id";
197 buffer-manager = <&bm>;
198 bm,pool-long = <0>;
199 bm,pool-short = <1>;
200 nvmem-cells = <&macaddr_bdinfo_d880 0>;
201 nvmem-cell-names = "mac-address";
202
203 fixed-link {
204 speed = <1000>;
205 full-duplex;
206 };
207 };
208
209 &usb3_0 {
210 pinctrl-names = "default";
211 pinctrl-0 = <&pmx_usb_pins>;
212 status = "okay";
213
214 vbus-supply = <&reg_usb_vbus>;
215 };
216
217 &spi1 {
218 pinctrl-names = "default";
219 pinctrl-0 = <&spi1_pins>;
220 status = "okay";
221
222 flash@0 {
223 compatible = "jedec,spi-nor";
224 reg = <0>;
225 spi-max-frequency = <50000000>;
226
227 partitions {
228 compatible = "fixed-partitions";
229 #address-cells = <1>;
230 #size-cells = <1>;
231
232 partition@0 {
233 reg = <0x0 0x1c0000>;
234 label = "u-boot";
235 read-only;
236 };
237
238 partition@1c0000 {
239 reg = <0x1c0000 0x10000>;
240 label = "firmware-info";
241
242 /*
243 * 0x10 - 0x2f : image name (image1)
244 * 0x30 - 0x4f : image name (image2)
245 * 0x170 (1byte): active image (0x0/0x1)
246 * 0x184 - 0x185: kernel block count (image1)
247 * 0x18c - 0x18d: rootfs block count (image1)
248 * 0x194 - 0x195: kernel block count (image2)
249 * 0x19c - 0x19d: rootfs block count (image2)
250 * 0x1be (1byte): bit7 -> active flag (image1)?
251 * 0x1ce (1byte): bit7 -> active flag (image2)?
252 *
253 * Note: block size --> 0x200 (512 bytes)
254 */
255 };
256
257 partition@1d0000 {
258 reg = <0x1d0000 0x10000>;
259 label = "dtb";
260 read-only;
261 };
262
263 partition@1e0000 {
264 reg = <0x1e0000 0x10000>;
265 label = "u-boot-env";
266 read-only;
267 };
268
269 partition@1f0000 {
270 reg = <0x1f0000 0x10000>;
271 label = "board-info";
272 read-only;
273
274 nvmem-layout {
275 compatible = "fixed-layout";
276 #address-cells = <1>;
277 #size-cells = <1>;
278
279 macaddr_bdinfo_d880: macaddr@d880 {
280 compatible = "mac-base";
281 reg = <0xd880 0x6>;
282 #nvmem-cell-cells = <1>;
283 };
284 };
285 };
286
287 partition@200000 {
288 reg = <0x200000 0x600000>;
289 label = "kernel";
290 };
291
292 partition@800000 {
293 reg = <0x800000 0x1800000>;
294 label = "rootfs";
295 };
296
297 partition@2000000 {
298 reg = <0x2000000 0x600000>;
299 label = "kn2";
300 read-only;
301 };
302
303 partition@2600000 {
304 reg = <0x2600000 0x1800000>;
305 label = "rfs2";
306 read-only;
307 };
308
309 partition@3e00000 {
310 reg = <0x3e00000 0x1200000>;
311 label = "part1";
312 read-only;
313 };
314
315 partition@5000000 {
316 reg = <0x5000000 0x1200000>;
317 label = "part2";
318 read-only;
319 };
320
321 partition@6200000 {
322 reg = <0x6200000 0x1e00000>;
323 label = "config";
324 read-only;
325 };
326 };
327 };
328 };