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-380.dtsi"
12 compatible = "iij,sa-w2", "marvell,armada380";
15 led-boot = &led_power_green;
16 led-failsafe = &led_power_red;
17 led-running = &led_power_green;
18 led-upgrade = &led_power_green;
19 label-mac-device = &ge0;
23 stdout-path = "serial0:115200n8";
27 device_type = "memory";
28 reg = <0x00000000 0x10000000>; /* 256MB */
32 ranges = <MBUS_ID(0xf0, 0x01) 0 0xd0000000 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>;
52 compatible = "gpio-keys";
53 pinctrl-names = "default";
54 pinctrl-0 = <&pmx_keys_pins>;
58 linux,code = <KEY_RESTART>;
59 gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
64 compatible = "gpio-leds";
65 pinctrl-names = "default";
66 pinctrl-0 = <&pmx_leds_pins>;
69 gpios = <&gpio0 19 GPIO_ACTIVE_HIGH>;
70 color = <LED_COLOR_ID_GREEN>;
71 linux,default-trigger = "phy0tpt";
75 gpios = <&gpio0 20 GPIO_ACTIVE_HIGH>;
76 color = <LED_COLOR_ID_RED>;
80 gpios = <&gpio1 1 GPIO_ACTIVE_HIGH>;
81 color = <LED_COLOR_ID_GREEN>;
82 function = LED_FUNCTION_STATUS;
86 gpios = <&gpio1 2 GPIO_ACTIVE_HIGH>;
87 color = <LED_COLOR_ID_RED>;
88 function = LED_FUNCTION_STATUS;
92 gpios = <&gpio1 3 GPIO_ACTIVE_HIGH>;
93 color = <LED_COLOR_ID_GREEN>;
97 gpios = <&gpio1 4 GPIO_ACTIVE_HIGH>;
98 color = <LED_COLOR_ID_RED>;
102 gpios = <&gpio1 12 GPIO_ACTIVE_HIGH>;
103 color = <LED_COLOR_ID_GREEN>;
104 linux,default-trigger = "phy1tpt";
108 gpios = <&gpio1 13 GPIO_ACTIVE_HIGH>;
109 color = <LED_COLOR_ID_RED>;
112 led_power_green: led-8 {
113 gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
114 color = <LED_COLOR_ID_GREEN>;
117 led_power_red: led-9 {
118 gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>;
119 color = <LED_COLOR_ID_RED>;
123 gpios = <&gpio1 22 GPIO_ACTIVE_LOW>;
124 color = <LED_COLOR_ID_GREEN>;
125 linux,default-trigger = "usbport";
126 trigger-sources = <&hub_port2>;
130 gpios = <&gpio1 23 GPIO_ACTIVE_LOW>;
131 color = <LED_COLOR_ID_GREEN>;
132 linux,default-trigger = "usbport";
133 trigger-sources = <&hub_port1>;
137 regulator-vbus-usb0 {
138 compatible = "regulator-fixed";
139 regulator-name = "vbus-usb0";
140 regulator-min-microvolt = <5000000>;
141 regulator-max-microvolt = <5000000>;
142 gpio = <&gpio1 20 GPIO_ACTIVE_HIGH>;
147 regulator-vbus-usb1 {
148 compatible = "regulator-fixed";
149 regulator-name = "vbus-usb1";
150 regulator-min-microvolt = <5000000>;
151 regulator-max-microvolt = <5000000>;
152 gpio = <&gpio1 21 GPIO_ACTIVE_HIGH>;
159 pinctrl-names = "default";
160 pinctrl-0 = <&uart0_pins>;
165 pmx_usb_pins: usb-pins {
166 marvell,pins = "mpp2", /* smsc usb2514b reset */
167 "mpp48", "mpp49", /* port over current */
168 "mpp52", "mpp53"; /* port vbus */
169 marvell,function = "gpio";
172 pmx_keys_pins: keys-pins {
173 marvell,pins = "mpp18";
174 marvell,function = "gpio";
177 pmx_leds_pins: leds-pins {
178 marvell,pins = "mpp19", "mpp20", "mpp33", "mpp34", "mpp35",
179 "mpp36", "mpp44", "mpp45", "mpp46", "mpp47",
181 marvell,function = "gpio";
188 gpios = <2 GPIO_ACTIVE_HIGH>;
194 pinctrl-names = "default";
195 pinctrl-0 = <&pmx_usb_pins>;
197 #address-cells = <1>;
200 /* SMSC USB2514B on PCB */
202 compatible = "usb424,2514";
204 #address-cells = <1>;
209 #trigger-source-cells = <0>;
214 #trigger-source-cells = <0>;
228 pinctrl-names = "default";
229 pinctrl-0 = <&ge1_rgmii_pins>;
232 phy-connection-type = "rgmii-id";
233 buffer-manager = <&bm>;
237 nvmem-cells = <&macaddr_bdinfo_6 1>;
238 nvmem-cell-names = "mac-address";
247 pinctrl-names = "default";
248 pinctrl-0 = <&mdio_pins>;
251 /* Marvell 88E6172 */
253 compatible = "marvell,mv88e6085";
255 interrupt-controller;
256 #interrupt-cells = <2>;
257 interrupt-parent = <&gpio1>;
258 interrupts = <10 IRQ_TYPE_LEVEL_LOW>;
261 #address-cells = <1>;
287 nvmem-cells = <&macaddr_bdinfo_6 0>;
288 nvmem-cell-names = "mac-address";
292 * eth0 is connected to port5 for WAN connection
300 phy-connection-type = "rgmii-id";
316 pinctrl-names = "default";
317 pinctrl-0 = <&spi1_pins>;
321 compatible = "jedec,spi-nor";
323 spi-max-frequency = <40000000>;
326 compatible = "fixed-partitions";
327 #address-cells = <1>;
331 reg = <0x0 0x100000>;
332 label = "bootloader";
337 reg = <0x100000 0x10000>;
338 label = "bootloader-env";
343 reg = <0x110000 0xf0000>;
344 label = "board_info";
348 compatible = "fixed-layout";
349 #address-cells = <1>;
352 macaddr_bdinfo_6: macaddr@6 {
353 compatible = "mac-base";
355 #nvmem-cell-cells = <1>;
361 compatible = "iij,seil-firmware";
362 reg = <0x200000 0xf00000>;
364 iij,bootdev-name = "flash";
365 iij,seil-id = <0x5345494c 0x32303135>;
369 compatible = "iij,seil-firmware";
370 reg = <0x1100000 0xf00000>;
372 iij,bootdev-name = "rescue";
373 iij,seil-id = <0x5345494c 0x32303135>;