1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
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"
11 model = "Fortinet FortiGate 50E";
12 compatible = "fortinet,fg-50e", "marvell,armada385", "marvell,armada380";
15 led-boot = &led_status_green;
16 led-failsafe = &led_status_red;
17 led-running = &led_status_green;
18 led-upgrade = &led_status_green;
19 label-mac-device = ð0;
23 stdout-path = "serial0:9600n8";
27 device_type = "memory";
28 reg = <0x00000000 0x80000000>; /* 2GB */
32 ranges = <MBUS_ID(0xf0, 0x01) 0 0xf1000000 0x100000
33 MBUS_ID(0x01, 0x1d) 0 0xfff00000 0x100000
34 MBUS_ID(0x09, 0x19) 0 0xf1100000 0x10000
35 MBUS_ID(0x09, 0x15) 0 0xf1110000 0x10000
36 MBUS_ID(0x0c, 0x04) 0 0xf1200000 0x100000>;
40 compatible = "gpio-keys";
41 pinctrl-names = "default";
42 pinctrl-0 = <&pmx_gpio_keys_pins>;
46 linux,code = <KEY_RESTART>;
47 gpios = <&gpio1 22 GPIO_ACTIVE_LOW>;
52 compatible = "gpio-leds";
53 pinctrl-names = "default";
54 pinctrl-0 = <&pmx_gpio_leds_pins>;
58 gpios = <&gpio0 30 GPIO_ACTIVE_LOW>;
59 color = <LED_COLOR_ID_RED>;
60 function = LED_FUNCTION_ALARM;
65 gpios = <&gpio1 0 GPIO_ACTIVE_LOW>;
66 color = <LED_COLOR_ID_RED>;
69 led_status_green: led-2 {
71 gpios = <&gpio1 1 GPIO_ACTIVE_LOW>;
72 color = <LED_COLOR_ID_GREEN>;
73 function = LED_FUNCTION_STATUS;
78 gpios = <&gpio1 3 GPIO_ACTIVE_LOW>;
79 color = <LED_COLOR_ID_GREEN>;
83 label = "amber:alarm";
84 gpios = <&gpio1 13 GPIO_ACTIVE_LOW>;
85 color = <LED_COLOR_ID_AMBER>;
86 function = LED_FUNCTION_ALARM;
89 led_status_red: led-5 {
91 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
92 color = <LED_COLOR_ID_RED>;
93 function = LED_FUNCTION_STATUS;
97 label = "green:speed_wan1";
98 gpios = <&gpio2 0 GPIO_ACTIVE_HIGH>;
99 color = <LED_COLOR_ID_GREEN>;
103 label = "green:speed_wan2";
104 gpios = <&gpio2 1 GPIO_ACTIVE_HIGH>;
105 color = <LED_COLOR_ID_GREEN>;
109 label = "amber:speed_lan5";
110 gpios = <&gpio2 2 GPIO_ACTIVE_HIGH>;
111 color = <LED_COLOR_ID_AMBER>;
115 label = "green:speed_lan5";
116 gpios = <&gpio2 3 GPIO_ACTIVE_HIGH>;
117 color = <LED_COLOR_ID_GREEN>;
121 label = "green:speed_lan4";
122 gpios = <&gpio2 4 GPIO_ACTIVE_LOW>;
123 color = <LED_COLOR_ID_GREEN>;
127 label = "amber:speed_lan4";
128 gpios = <&gpio2 5 GPIO_ACTIVE_LOW>;
129 color = <LED_COLOR_ID_AMBER>;
133 label = "amber:speed_lan3";
134 gpios = <&gpio2 6 GPIO_ACTIVE_LOW>;
135 color = <LED_COLOR_ID_AMBER>;
139 label = "green:speed_lan3";
140 gpios = <&gpio2 7 GPIO_ACTIVE_LOW>;
141 color = <LED_COLOR_ID_GREEN>;
145 label = "green:speed_lan1";
146 gpios = <&gpio2 12 GPIO_ACTIVE_LOW>;
147 color = <LED_COLOR_ID_GREEN>;
151 label = "amber:speed_lan1";
152 gpios = <&gpio2 13 GPIO_ACTIVE_LOW>;
153 color = <LED_COLOR_ID_AMBER>;
157 label = "green:speed_lan2";
158 gpios = <&gpio2 14 GPIO_ACTIVE_LOW>;
159 color = <LED_COLOR_ID_GREEN>;
163 label = "amber:speed_lan2";
164 gpios = <&gpio2 15 GPIO_ACTIVE_LOW>;
165 color = <LED_COLOR_ID_AMBER>;
169 reg_usb_vbus: regulator-usb-vbus {
170 compatible = "fixed-regulator";
171 regulator-name = "usb-vbus";
172 regulator-min-microvolt = <5000000>;
173 regulator-max-microvolt = <5000000>;
174 gpio = <&gpio1 21 GPIO_ACTIVE_LOW>;
180 pinctrl-names = "default";
181 pinctrl-0 = <&i2c0_pins>;
185 compatible = "nxp,pca9555";
192 compatible = "nuvoton,nct7802";
198 pinctrl-names = "default";
199 pinctrl-0 = <&uart0_pins>;
204 pmx_phy_switch_pins: phy-switch-pins {
205 marvell,pins = "mpp19", "mpp20", "mpp23", "mpp34", "mpp41";
206 marvell,function = "gpio";
209 pmx_gpio_leds_pins: gpio-leds-pins {
210 marvell,pins = "mpp30", "mpp32", "mpp33", "mpp35",
212 marvell,function = "gpio";
215 pmx_usb_pins: usb-pins {
216 marvell,pins = "mpp53";
217 marvell,function = "gpio";
220 pmx_gpio_keys_pins: gpio-keys-pins {
221 marvell,pins = "mpp54";
222 marvell,function = "gpio";
235 pinctrl-names = "default";
236 pinctrl-0 = <&ge0_rgmii_pins>;
239 phy-connection-type = "rgmii-id";
240 buffer-manager = <&bm>;
243 nvmem-cells = <&macaddr_bdinfo_d880>;
244 nvmem-cell-names = "mac-address";
255 phy-handle = <ðphy0>;
256 phy-connection-type = "sgmii";
257 buffer-manager = <&bm>;
259 nvmem-cells = <&macaddr_bdinfo_d880>;
260 nvmem-cell-names = "mac-address";
261 mac-address-increment = <1>;
267 phy-handle = <ðphy1>;
268 phy-connection-type = "sgmii";
269 buffer-manager = <&bm>;
271 nvmem-cells = <&macaddr_bdinfo_d880>;
272 nvmem-cell-names = "mac-address";
273 mac-address-increment = <2>;
277 pinctrl-names = "default";
278 pinctrl-0 = <&mdio_pins>, <&pmx_phy_switch_pins>;
280 /* Marvell 88E1512 */
281 ethphy0: ethernet-phy@0 {
282 compatible = "ethernet-phy-id0141,0dd1",
283 "ethernet-phy-ieee802.3-c22";
285 interrupt-parent = <&gpio0>;
286 interrupts = <20 IRQ_TYPE_LEVEL_LOW>;
287 reset-gpios = <&gpio0 23 GPIO_ACTIVE_LOW>;
289 * LINK/ACT (Green): LED[0], Active Low
290 * SPEED 100M (Amber): LED[1], Active High
292 marvell,reg-init = <3 16 0 0x71>,
296 /* Marvell 88E1512 */
297 ethphy1: ethernet-phy@1 {
298 compatible = "ethernet-phy-id0141,0dd1",
299 "ethernet-phy-ieee802.3-c22";
301 interrupt-parent = <&gpio1>;
302 interrupts = <9 IRQ_TYPE_LEVEL_LOW>;
303 reset-gpios = <&gpio1 2 GPIO_ACTIVE_LOW>;
305 * LINK/ACT (Green): LED[0], Active Low
306 * SPEED 100M (Amber): LED[1], Active High
308 marvell,reg-init = <3 16 0 0x71>,
312 /* Marvell 88E6176 */
314 compatible = "marvell,mv88e6085";
316 reset-gpios = <&gpio0 19 GPIO_ACTIVE_LOW>;
319 #address-cells = <1>;
325 nvmem-cells = <&macaddr_bdinfo_d880>;
326 nvmem-cell-names = "mac-address";
327 mac-address-increment = <7>;
333 nvmem-cells = <&macaddr_bdinfo_d880>;
334 nvmem-cell-names = "mac-address";
335 mac-address-increment = <6>;
341 nvmem-cells = <&macaddr_bdinfo_d880>;
342 nvmem-cell-names = "mac-address";
343 mac-address-increment = <5>;
349 nvmem-cells = <&macaddr_bdinfo_d880>;
350 nvmem-cell-names = "mac-address";
351 mac-address-increment = <4>;
357 nvmem-cells = <&macaddr_bdinfo_d880>;
358 nvmem-cell-names = "mac-address";
359 mac-address-increment = <3>;
365 phy-connection-type = "rgmii-id";
377 pinctrl-names = "default";
378 pinctrl-0 = <&pmx_usb_pins>;
381 vbus-supply = <®_usb_vbus>;
385 pinctrl-names = "default";
386 pinctrl-0 = <&spi1_pins>;
390 compatible = "jedec,spi-nor";
392 spi-max-frequency = <50000000>;
395 compatible = "fixed-partitions";
396 #address-cells = <1>;
400 reg = <0x0 0x1c0000>;
406 reg = <0x1c0000 0x10000>;
407 label = "firmware-info";
410 * 0x10 - 0x2f : image name (image1)
411 * 0x30 - 0x4f : image name (image2)
412 * 0x170 (1byte): active image (0x0/0x1)
413 * 0x184 - 0x185: kernel block count (image1)
414 * 0x18c - 0x18d: rootfs block count (image1)
415 * 0x194 - 0x195: kernel block count (image2)
416 * 0x19c - 0x19d: rootfs block count (image2)
417 * 0x1be (1byte): bit7 -> active flag (image1)?
418 * 0x1ce (1byte): bit7 -> active flag (image2)?
420 * Note: block size --> 0x200 (512 bytes)
425 reg = <0x1d0000 0x10000>;
431 reg = <0x1e0000 0x10000>;
432 label = "u-boot-env";
437 reg = <0x1f0000 0x10000>;
438 label = "board-info";
441 compatible = "nvmem-cells";
442 #address-cells = <1>;
445 macaddr_bdinfo_d880: macaddr@d880 {
451 reg = <0x200000 0x600000>;
456 reg = <0x800000 0x1800000>;
461 reg = <0x2000000 0x600000>;
467 reg = <0x2600000 0x1800000>;
473 reg = <0x3e00000 0x1200000>;
479 reg = <0x5000000 0x1200000>;
485 reg = <0x6200000 0x1e00000>;