1 // SPDX-License-Identifier: GPL-1.0-or-later OR MIT
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
11 led-failsafe = &led_user;
12 led-running = &led_user;
16 bootargs = "console=ttyS0,115200";
20 compatible = "gpio-leds";
23 label = "mikrotik:yellow:user";
24 gpios = <&gpio 4 GPIO_ACTIVE_HIGH>;
29 label = "mikrotik:green:led1";
30 gpios = <&cpld_gpio 0 GPIO_ACTIVE_LOW>;
34 label = "mikrotik:green:led2";
35 gpios = <&cpld_gpio 2 GPIO_ACTIVE_LOW>;
39 label = "mikrotik:green:led3";
40 gpios = <&cpld_gpio 1 GPIO_ACTIVE_LOW>;
44 label = "mikrotik:green:led4";
45 gpios = <&cpld_gpio 3 GPIO_ACTIVE_LOW>;
49 label = "mikrotik:green:led5";
50 gpios = <&cpld_gpio 8 GPIO_ACTIVE_LOW>;
62 "", "", "", "", "LED", "RDY", "", "MDC",
63 "MDIO", "", "", "", "", "", "", "",
64 "", "", "", "", "", "", "", "",
65 "", "", "", "", "", "", "", "";
75 compatible = "mikrotik,rb4xx-spi";
78 compatible = "pm25lv512", "jedec,spi-nor";
81 spi-max-frequency = <25000000>;
84 compatible = "mikrotik,routerboot-partitions";
89 label = "routerboot1";
95 label = "hard_config";
106 label = "routerboot2";
111 label = "soft_config";
117 compatible = "mikrotik,rb4xx-cpld";
120 spi-max-frequency = <25000000>;
123 compatible = "mikrotik,rb4xx-gpio";
130 "LED1", "LED2", "LED3", "LED4",
131 "FAN", "ALE", "CLE", "nCE",
136 compatible = "mikrotik,rb4xx-nand";
138 gpios = <&cpld_gpio 5 GPIO_ACTIVE_HIGH>, // ALE
139 <&cpld_gpio 6 GPIO_ACTIVE_HIGH>, // CLE
140 <&cpld_gpio 7 GPIO_ACTIVE_HIGH>, // nCE
141 <&gpio 5 GPIO_ACTIVE_HIGH>; // RDY
144 compatible = "fixed-partitions";
145 #address-cells = <1>;
150 reg = <0x0000000 0x0040000>;
156 reg = <0x0040000 0x0800000>;
161 reg = <0x0840000 0x77c0000>;
171 phy-handle = <&phy0>;
177 phy0: ethernet-phy@0 {