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 function = LED_FUNCTION_WLAN_5GHZ;
72 linux,default-trigger = "phy0tpt";
76 gpios = <&gpio0 20 GPIO_ACTIVE_HIGH>;
77 color = <LED_COLOR_ID_RED>;
78 function = LED_FUNCTION_WLAN_5GHZ;
82 gpios = <&gpio1 1 GPIO_ACTIVE_HIGH>;
83 color = <LED_COLOR_ID_GREEN>;
84 function = LED_FUNCTION_STATUS;
88 gpios = <&gpio1 2 GPIO_ACTIVE_HIGH>;
89 color = <LED_COLOR_ID_RED>;
90 function = LED_FUNCTION_STATUS;
94 gpios = <&gpio1 3 GPIO_ACTIVE_HIGH>;
95 color = <LED_COLOR_ID_GREEN>;
96 function = LED_FUNCTION_MOBILE;
100 gpios = <&gpio1 4 GPIO_ACTIVE_HIGH>;
101 color = <LED_COLOR_ID_RED>;
102 function = LED_FUNCTION_MOBILE;
106 gpios = <&gpio1 12 GPIO_ACTIVE_HIGH>;
107 color = <LED_COLOR_ID_GREEN>;
108 function = LED_FUNCTION_WLAN_2GHZ;
109 linux,default-trigger = "phy1tpt";
113 gpios = <&gpio1 13 GPIO_ACTIVE_HIGH>;
114 color = <LED_COLOR_ID_RED>;
115 function = LED_FUNCTION_WLAN_2GHZ;
118 led_power_green: led-8 {
119 gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
120 color = <LED_COLOR_ID_GREEN>;
121 function = LED_FUNCTION_POWER;
124 led_power_red: led-9 {
125 gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>;
126 color = <LED_COLOR_ID_RED>;
127 function = LED_FUNCTION_POWER;
131 gpios = <&gpio1 22 GPIO_ACTIVE_LOW>;
132 color = <LED_COLOR_ID_GREEN>;
133 function = LED_FUNCTION_USB;
134 function-enumerator = <1>;
135 linux,default-trigger = "usbport";
136 trigger-sources = <&hub_port2>;
140 gpios = <&gpio1 23 GPIO_ACTIVE_LOW>;
141 color = <LED_COLOR_ID_GREEN>;
142 function = LED_FUNCTION_USB;
143 function-enumerator = <0>;
144 linux,default-trigger = "usbport";
145 trigger-sources = <&hub_port1>;
149 regulator-vbus-usb0 {
150 compatible = "regulator-fixed";
151 regulator-name = "vbus-usb0";
152 regulator-min-microvolt = <5000000>;
153 regulator-max-microvolt = <5000000>;
154 gpio = <&gpio1 20 GPIO_ACTIVE_HIGH>;
159 regulator-vbus-usb1 {
160 compatible = "regulator-fixed";
161 regulator-name = "vbus-usb1";
162 regulator-min-microvolt = <5000000>;
163 regulator-max-microvolt = <5000000>;
164 gpio = <&gpio1 21 GPIO_ACTIVE_HIGH>;
171 pinctrl-names = "default";
172 pinctrl-0 = <&uart0_pins>;
177 pmx_usb_pins: usb-pins {
178 marvell,pins = "mpp2", /* smsc usb2514b reset */
179 "mpp48", "mpp49", /* port over current */
180 "mpp52", "mpp53"; /* port vbus */
181 marvell,function = "gpio";
184 pmx_keys_pins: keys-pins {
185 marvell,pins = "mpp18";
186 marvell,function = "gpio";
189 pmx_leds_pins: leds-pins {
190 marvell,pins = "mpp19", "mpp20", "mpp33", "mpp34", "mpp35",
191 "mpp36", "mpp44", "mpp45", "mpp46", "mpp47",
193 marvell,function = "gpio";
200 gpios = <2 GPIO_ACTIVE_HIGH>;
206 pinctrl-names = "default";
207 pinctrl-0 = <&pmx_usb_pins>;
209 #address-cells = <1>;
212 /* SMSC USB2514B on PCB */
214 compatible = "usb424,2514";
216 #address-cells = <1>;
221 #trigger-source-cells = <0>;
226 #trigger-source-cells = <0>;
240 pinctrl-names = "default";
241 pinctrl-0 = <&ge1_rgmii_pins>;
244 phy-connection-type = "rgmii-id";
245 buffer-manager = <&bm>;
249 nvmem-cells = <&macaddr_bdinfo_6 1>;
250 nvmem-cell-names = "mac-address";
259 pinctrl-names = "default";
260 pinctrl-0 = <&mdio_pins>;
263 /* Marvell 88E6172 */
265 compatible = "marvell,mv88e6085";
267 interrupt-controller;
268 #interrupt-cells = <2>;
269 interrupt-parent = <&gpio1>;
270 interrupts = <10 IRQ_TYPE_LEVEL_LOW>;
273 #address-cells = <1>;
299 nvmem-cells = <&macaddr_bdinfo_6 0>;
300 nvmem-cell-names = "mac-address";
304 * eth0 is connected to port5 for WAN connection
312 phy-connection-type = "rgmii-id";
328 pinctrl-names = "default";
329 pinctrl-0 = <&spi1_pins>;
333 compatible = "jedec,spi-nor";
335 spi-max-frequency = <40000000>;
338 compatible = "fixed-partitions";
339 #address-cells = <1>;
343 reg = <0x0 0x100000>;
344 label = "bootloader";
349 reg = <0x100000 0x10000>;
350 label = "bootloader-env";
355 reg = <0x110000 0xf0000>;
356 label = "board_info";
360 compatible = "fixed-layout";
361 #address-cells = <1>;
364 macaddr_bdinfo_6: macaddr@6 {
365 compatible = "mac-base";
367 #nvmem-cell-cells = <1>;
373 compatible = "iij,seil-firmware";
374 reg = <0x200000 0xf00000>;
376 iij,bootdev-name = "flash";
377 iij,seil-id = <0x5345494c 0x32303135>;
381 compatible = "iij,seil-firmware";
382 reg = <0x1100000 0xf00000>;
384 iij,bootdev-name = "rescue";
385 iij,seil-id = <0x5345494c 0x32303135>;