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>;
59 led_status_green: led-2 {
60 gpios = <&gpio1 1 GPIO_ACTIVE_LOW>;
61 color = <LED_COLOR_ID_GREEN>;
62 function = LED_FUNCTION_STATUS;
66 gpios = <&gpio1 3 GPIO_ACTIVE_LOW>;
67 color = <LED_COLOR_ID_GREEN>;
71 gpios = <&gpio1 13 GPIO_ACTIVE_LOW>;
72 color = <LED_COLOR_ID_AMBER>;
73 function = LED_FUNCTION_ALARM;
76 led_status_red: led-5 {
77 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
78 color = <LED_COLOR_ID_RED>;
79 function = LED_FUNCTION_STATUS;
83 gpios = <&gpio2 4 GPIO_ACTIVE_LOW>;
84 color = <LED_COLOR_ID_GREEN>;
85 linux,default-trigger = "mv88e6xxx-1:01:1Gbps";
89 gpios = <&gpio2 5 GPIO_ACTIVE_LOW>;
90 color = <LED_COLOR_ID_AMBER>;
91 linux,default-trigger = "mv88e6xxx-1:01:100Mbps";
95 gpios = <&gpio2 6 GPIO_ACTIVE_LOW>;
96 color = <LED_COLOR_ID_AMBER>;
97 linux,default-trigger = "mv88e6xxx-1:02:100Mbps";
101 gpios = <&gpio2 7 GPIO_ACTIVE_LOW>;
102 color = <LED_COLOR_ID_GREEN>;
103 linux,default-trigger = "mv88e6xxx-1:02:1Gbps";
107 gpios = <&gpio2 12 GPIO_ACTIVE_LOW>;
108 color = <LED_COLOR_ID_GREEN>;
109 linux,default-trigger = "mv88e6xxx-1:04:1Gbps";
113 gpios = <&gpio2 13 GPIO_ACTIVE_LOW>;
114 color = <LED_COLOR_ID_AMBER>;
115 linux,default-trigger = "mv88e6xxx-1:04:100Mbps";
119 gpios = <&gpio2 14 GPIO_ACTIVE_LOW>;
120 color = <LED_COLOR_ID_GREEN>;
121 linux,default-trigger = "mv88e6xxx-1:03:1Gbps";
125 gpios = <&gpio2 15 GPIO_ACTIVE_LOW>;
126 color = <LED_COLOR_ID_AMBER>;
127 linux,default-trigger = "mv88e6xxx-1:03:100Mbps";
131 reg_usb_vbus: regulator-usb-vbus {
132 compatible = "fixed-regulator";
133 regulator-name = "usb-vbus";
134 regulator-min-microvolt = <5000000>;
135 regulator-max-microvolt = <5000000>;
136 gpio = <&gpio1 21 GPIO_ACTIVE_LOW>;
142 pinctrl-names = "default";
143 pinctrl-0 = <&i2c0_pins>;
147 compatible = "nxp,pca9555";
154 compatible = "nuvoton,nct7802";
160 pinctrl-names = "default";
161 pinctrl-0 = <&uart0_pins>;
166 pmx_gpio_leds_pins: gpio-leds-pins {
167 marvell,pins = "mpp30", "mpp32", "mpp33", "mpp35",
169 marvell,function = "gpio";
172 pmx_usb_pins: usb-pins {
173 marvell,pins = "mpp53";
174 marvell,function = "gpio";
177 pmx_gpio_keys_pins: gpio-keys-pins {
178 marvell,pins = "mpp54";
179 marvell,function = "gpio";
192 pinctrl-names = "default";
193 pinctrl-0 = <&ge0_rgmii_pins>;
196 phy-connection-type = "rgmii-id";
197 buffer-manager = <&bm>;
200 nvmem-cells = <&macaddr_bdinfo_d880 0>;
201 nvmem-cell-names = "mac-address";
210 pinctrl-names = "default";
211 pinctrl-0 = <&pmx_usb_pins>;
214 vbus-supply = <®_usb_vbus>;
218 pinctrl-names = "default";
219 pinctrl-0 = <&spi1_pins>;
223 compatible = "jedec,spi-nor";
225 spi-max-frequency = <50000000>;
228 compatible = "fixed-partitions";
229 #address-cells = <1>;
233 reg = <0x0 0x1c0000>;
239 reg = <0x1c0000 0x10000>;
240 label = "firmware-info";
243 * 0x10 - 0x2f : image name (image1)
244 * 0x30 - 0x4f : image name (image2)
245 * 0x170 (1byte): active image (0x0/0x1)
246 * 0x184 - 0x185: kernel block count (image1)
247 * 0x18c - 0x18d: rootfs block count (image1)
248 * 0x194 - 0x195: kernel block count (image2)
249 * 0x19c - 0x19d: rootfs block count (image2)
250 * 0x1be (1byte): bit7 -> active flag (image1)?
251 * 0x1ce (1byte): bit7 -> active flag (image2)?
253 * Note: block size --> 0x200 (512 bytes)
258 reg = <0x1d0000 0x10000>;
264 reg = <0x1e0000 0x10000>;
265 label = "u-boot-env";
270 reg = <0x1f0000 0x10000>;
271 label = "board-info";
275 compatible = "fixed-layout";
276 #address-cells = <1>;
279 macaddr_bdinfo_d880: macaddr@d880 {
280 compatible = "mac-base";
282 #nvmem-cell-cells = <1>;
288 reg = <0x200000 0x600000>;
293 reg = <0x800000 0x1800000>;
298 reg = <0x2000000 0x600000>;
304 reg = <0x2600000 0x1800000>;
310 reg = <0x3e00000 0x1200000>;
316 reg = <0x5000000 0x1200000>;
322 reg = <0x6200000 0x1e00000>;