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>;
50 gpios = <&gpio0 30 GPIO_ACTIVE_LOW>;
51 color = <LED_COLOR_ID_RED>;
52 function = LED_FUNCTION_ALARM;
57 gpios = <&gpio1 0 GPIO_ACTIVE_LOW>;
58 color = <LED_COLOR_ID_RED>;
61 led_status_green: led-2 {
63 gpios = <&gpio1 1 GPIO_ACTIVE_LOW>;
64 color = <LED_COLOR_ID_GREEN>;
65 function = LED_FUNCTION_STATUS;
70 gpios = <&gpio1 3 GPIO_ACTIVE_LOW>;
71 color = <LED_COLOR_ID_GREEN>;
75 label = "amber:alarm";
76 gpios = <&gpio1 13 GPIO_ACTIVE_LOW>;
77 color = <LED_COLOR_ID_AMBER>;
78 function = LED_FUNCTION_ALARM;
81 led_status_red: led-5 {
83 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
84 color = <LED_COLOR_ID_RED>;
85 function = LED_FUNCTION_STATUS;
89 label = "green:speed_lan4";
90 gpios = <&gpio2 4 GPIO_ACTIVE_LOW>;
91 color = <LED_COLOR_ID_GREEN>;
92 linux,default-trigger = "mv88e6xxx-1:01:1Gbps";
96 label = "amber:speed_lan4";
97 gpios = <&gpio2 5 GPIO_ACTIVE_LOW>;
98 color = <LED_COLOR_ID_AMBER>;
99 linux,default-trigger = "mv88e6xxx-1:01:100Mbps";
103 label = "amber:speed_lan3";
104 gpios = <&gpio2 6 GPIO_ACTIVE_LOW>;
105 color = <LED_COLOR_ID_AMBER>;
106 linux,default-trigger = "mv88e6xxx-1:02:100Mbps";
110 label = "green:speed_lan3";
111 gpios = <&gpio2 7 GPIO_ACTIVE_LOW>;
112 color = <LED_COLOR_ID_GREEN>;
113 linux,default-trigger = "mv88e6xxx-1:02:1Gbps";
117 label = "green:speed_lan1";
118 gpios = <&gpio2 12 GPIO_ACTIVE_LOW>;
119 color = <LED_COLOR_ID_GREEN>;
120 linux,default-trigger = "mv88e6xxx-1:04:1Gbps";
124 label = "amber:speed_lan1";
125 gpios = <&gpio2 13 GPIO_ACTIVE_LOW>;
126 color = <LED_COLOR_ID_AMBER>;
127 linux,default-trigger = "mv88e6xxx-1:04:100Mbps";
131 label = "green:speed_lan2";
132 gpios = <&gpio2 14 GPIO_ACTIVE_LOW>;
133 color = <LED_COLOR_ID_GREEN>;
134 linux,default-trigger = "mv88e6xxx-1:03:1Gbps";
138 label = "amber:speed_lan2";
139 gpios = <&gpio2 15 GPIO_ACTIVE_LOW>;
140 color = <LED_COLOR_ID_AMBER>;
141 linux,default-trigger = "mv88e6xxx-1:03:100Mbps";
145 reg_usb_vbus: regulator-usb-vbus {
146 compatible = "fixed-regulator";
147 regulator-name = "usb-vbus";
148 regulator-min-microvolt = <5000000>;
149 regulator-max-microvolt = <5000000>;
150 gpio = <&gpio1 21 GPIO_ACTIVE_LOW>;
156 pinctrl-names = "default";
157 pinctrl-0 = <&i2c0_pins>;
161 compatible = "nxp,pca9555";
168 compatible = "nuvoton,nct7802";
174 pinctrl-names = "default";
175 pinctrl-0 = <&uart0_pins>;
180 pmx_gpio_leds_pins: gpio-leds-pins {
181 marvell,pins = "mpp30", "mpp32", "mpp33", "mpp35",
183 marvell,function = "gpio";
186 pmx_usb_pins: usb-pins {
187 marvell,pins = "mpp53";
188 marvell,function = "gpio";
191 pmx_gpio_keys_pins: gpio-keys-pins {
192 marvell,pins = "mpp54";
193 marvell,function = "gpio";
206 pinctrl-names = "default";
207 pinctrl-0 = <&ge0_rgmii_pins>;
210 phy-connection-type = "rgmii-id";
211 buffer-manager = <&bm>;
214 nvmem-cells = <&macaddr_bdinfo_d880 0>;
215 nvmem-cell-names = "mac-address";
224 pinctrl-names = "default";
225 pinctrl-0 = <&pmx_usb_pins>;
228 vbus-supply = <®_usb_vbus>;
232 pinctrl-names = "default";
233 pinctrl-0 = <&spi1_pins>;
237 compatible = "jedec,spi-nor";
239 spi-max-frequency = <50000000>;
242 compatible = "fixed-partitions";
243 #address-cells = <1>;
247 reg = <0x0 0x1c0000>;
253 reg = <0x1c0000 0x10000>;
254 label = "firmware-info";
257 * 0x10 - 0x2f : image name (image1)
258 * 0x30 - 0x4f : image name (image2)
259 * 0x170 (1byte): active image (0x0/0x1)
260 * 0x184 - 0x185: kernel block count (image1)
261 * 0x18c - 0x18d: rootfs block count (image1)
262 * 0x194 - 0x195: kernel block count (image2)
263 * 0x19c - 0x19d: rootfs block count (image2)
264 * 0x1be (1byte): bit7 -> active flag (image1)?
265 * 0x1ce (1byte): bit7 -> active flag (image2)?
267 * Note: block size --> 0x200 (512 bytes)
272 reg = <0x1d0000 0x10000>;
278 reg = <0x1e0000 0x10000>;
279 label = "u-boot-env";
284 reg = <0x1f0000 0x10000>;
285 label = "board-info";
289 compatible = "fixed-layout";
290 #address-cells = <1>;
293 macaddr_bdinfo_d880: macaddr@d880 {
294 compatible = "mac-base";
296 #nvmem-cell-cells = <1>;
302 reg = <0x200000 0x600000>;
307 reg = <0x800000 0x1800000>;
312 reg = <0x2000000 0x600000>;
318 reg = <0x2600000 0x1800000>;
324 reg = <0x3e00000 0x1200000>;
330 reg = <0x5000000 0x1200000>;
336 reg = <0x6200000 0x1e00000>;