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"
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 = ð0;
20 stdout-path = "serial0:9600n8";
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>;
32 compatible = "gpio-keys";
33 pinctrl-names = "default";
34 pinctrl-0 = <&pmx_gpio_keys_pins>;
38 linux,code = <KEY_RESTART>;
39 gpios = <&gpio1 22 GPIO_ACTIVE_LOW>;
43 gpio_leds: gpio-leds {
44 compatible = "gpio-leds";
45 pinctrl-names = "default";
46 pinctrl-0 = <&pmx_gpio_leds_pins>;
49 gpios = <&gpio0 30 GPIO_ACTIVE_LOW>;
50 color = <LED_COLOR_ID_RED>;
51 function = LED_FUNCTION_ALARM;
55 gpios = <&gpio1 0 GPIO_ACTIVE_LOW>;
56 color = <LED_COLOR_ID_RED>;
60 led_status_green: led-2 {
61 gpios = <&gpio1 1 GPIO_ACTIVE_LOW>;
62 color = <LED_COLOR_ID_GREEN>;
63 function = LED_FUNCTION_STATUS;
67 gpios = <&gpio1 3 GPIO_ACTIVE_LOW>;
68 color = <LED_COLOR_ID_GREEN>;
73 gpios = <&gpio1 13 GPIO_ACTIVE_LOW>;
74 color = <LED_COLOR_ID_AMBER>;
75 function = LED_FUNCTION_ALARM;
78 led_status_red: led-5 {
79 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
80 color = <LED_COLOR_ID_RED>;
81 function = LED_FUNCTION_STATUS;
85 gpios = <&gpio2 4 GPIO_ACTIVE_LOW>;
86 color = <LED_COLOR_ID_GREEN>;
87 function = LED_FUNCTION_SPEED_LAN;
88 function-enumerator = <4>;
89 linux,default-trigger = "mv88e6xxx-1:01:1Gbps";
93 gpios = <&gpio2 5 GPIO_ACTIVE_LOW>;
94 color = <LED_COLOR_ID_AMBER>;
95 function = LED_FUNCTION_SPEED_LAN;
96 function-enumerator = <4>;
97 linux,default-trigger = "mv88e6xxx-1:01:100Mbps";
101 gpios = <&gpio2 6 GPIO_ACTIVE_LOW>;
102 color = <LED_COLOR_ID_AMBER>;
103 function = LED_FUNCTION_SPEED_LAN;
104 function-enumerator = <3>;
105 linux,default-trigger = "mv88e6xxx-1:02:100Mbps";
109 gpios = <&gpio2 7 GPIO_ACTIVE_LOW>;
110 color = <LED_COLOR_ID_GREEN>;
111 function = LED_FUNCTION_SPEED_LAN;
112 function-enumerator = <3>;
113 linux,default-trigger = "mv88e6xxx-1:02:1Gbps";
117 gpios = <&gpio2 12 GPIO_ACTIVE_LOW>;
118 color = <LED_COLOR_ID_GREEN>;
119 function = LED_FUNCTION_SPEED_LAN;
120 function-enumerator = <1>;
121 linux,default-trigger = "mv88e6xxx-1:04:1Gbps";
125 gpios = <&gpio2 13 GPIO_ACTIVE_LOW>;
126 color = <LED_COLOR_ID_AMBER>;
127 function = LED_FUNCTION_SPEED_LAN;
128 function-enumerator = <1>;
129 linux,default-trigger = "mv88e6xxx-1:04:100Mbps";
133 gpios = <&gpio2 14 GPIO_ACTIVE_LOW>;
134 color = <LED_COLOR_ID_GREEN>;
135 function = LED_FUNCTION_SPEED_LAN;
136 function-enumerator = <2>;
137 linux,default-trigger = "mv88e6xxx-1:03:1Gbps";
141 gpios = <&gpio2 15 GPIO_ACTIVE_LOW>;
142 color = <LED_COLOR_ID_AMBER>;
143 function = LED_FUNCTION_SPEED_LAN;
144 function-enumerator = <2>;
145 linux,default-trigger = "mv88e6xxx-1:03:100Mbps";
149 reg_usb_vbus: regulator-usb-vbus {
150 compatible = "fixed-regulator";
151 regulator-name = "usb-vbus";
152 regulator-min-microvolt = <5000000>;
153 regulator-max-microvolt = <5000000>;
154 gpio = <&gpio1 21 GPIO_ACTIVE_LOW>;
160 pinctrl-names = "default";
161 pinctrl-0 = <&i2c0_pins>;
165 compatible = "nxp,pca9555";
172 compatible = "nuvoton,nct7802";
178 pinctrl-names = "default";
179 pinctrl-0 = <&uart0_pins>;
184 pmx_gpio_leds_pins: gpio-leds-pins {
185 marvell,pins = "mpp30", "mpp32", "mpp33", "mpp35",
187 marvell,function = "gpio";
190 pmx_usb_pins: usb-pins {
191 marvell,pins = "mpp53";
192 marvell,function = "gpio";
195 pmx_gpio_keys_pins: gpio-keys-pins {
196 marvell,pins = "mpp54";
197 marvell,function = "gpio";
210 pinctrl-names = "default";
211 pinctrl-0 = <&ge0_rgmii_pins>;
214 phy-connection-type = "rgmii-id";
215 buffer-manager = <&bm>;
218 nvmem-cells = <&macaddr_bdinfo_d880 0>;
219 nvmem-cell-names = "mac-address";
228 pinctrl-names = "default";
229 pinctrl-0 = <&pmx_usb_pins>;
232 vbus-supply = <®_usb_vbus>;
236 pinctrl-names = "default";
237 pinctrl-0 = <&spi1_pins>;
241 compatible = "jedec,spi-nor";
243 spi-max-frequency = <50000000>;
246 compatible = "fixed-partitions";
247 #address-cells = <1>;
251 reg = <0x0 0x1c0000>;
257 reg = <0x1c0000 0x10000>;
258 label = "firmware-info";
261 * 0x10 - 0x2f : image name (image1)
262 * 0x30 - 0x4f : image name (image2)
263 * 0x170 (1byte): active image (0x0/0x1)
264 * 0x184 - 0x185: kernel block count (image1)
265 * 0x18c - 0x18d: rootfs block count (image1)
266 * 0x194 - 0x195: kernel block count (image2)
267 * 0x19c - 0x19d: rootfs block count (image2)
268 * 0x1be (1byte): bit7 -> active flag (image1)?
269 * 0x1ce (1byte): bit7 -> active flag (image2)?
271 * Note: block size --> 0x200 (512 bytes)
276 reg = <0x1d0000 0x10000>;
282 reg = <0x1e0000 0x10000>;
283 label = "u-boot-env";
288 reg = <0x1f0000 0x10000>;
289 label = "board-info";
293 compatible = "fixed-layout";
294 #address-cells = <1>;
297 macaddr_bdinfo_d880: macaddr@d880 {
298 compatible = "mac-base";
300 #nvmem-cell-cells = <1>;
306 reg = <0x200000 0x600000>;
311 reg = <0x800000 0x1800000>;
316 reg = <0x2000000 0x600000>;
322 reg = <0x2600000 0x1800000>;
328 reg = <0x3e00000 0x1200000>;
334 reg = <0x5000000 0x1200000>;
340 reg = <0x6200000 0x1e00000>;