1 // SPDX-License-Identifier: GPL-1.0-or-later OR MIT
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
11 led-failsafe = &led_user;
12 led-running = &led_user;
16 compatible = "gpio-leds";
19 label = "mikrotik:yellow:user";
20 gpios = <&gpio 4 GPIO_ACTIVE_HIGH>;
25 label = "mikrotik:green:led1";
26 gpios = <&cpld_gpio 0 GPIO_ACTIVE_LOW>;
30 label = "mikrotik:green:led2";
31 gpios = <&cpld_gpio 2 GPIO_ACTIVE_LOW>;
35 label = "mikrotik:green:led3";
36 gpios = <&cpld_gpio 1 GPIO_ACTIVE_LOW>;
40 label = "mikrotik:green:led4";
41 gpios = <&cpld_gpio 3 GPIO_ACTIVE_LOW>;
45 label = "mikrotik:green:led5";
46 gpios = <&cpld_gpio 8 GPIO_ACTIVE_LOW>;
58 "", "", "", "", "LED", "RDY", "", "MDC",
59 "MDIO", "", "", "", "", "", "", "",
60 "", "", "", "", "", "", "", "",
61 "", "", "", "", "", "", "", "";
71 compatible = "mikrotik,rb4xx-spi";
74 compatible = "pm25lv512", "jedec,spi-nor";
77 spi-max-frequency = <25000000>;
80 compatible = "mikrotik,routerboot-partitions";
85 label = "routerboot1";
91 label = "hard_config";
102 label = "routerboot2";
107 label = "soft_config";
113 compatible = "mikrotik,rb4xx-cpld";
116 spi-max-frequency = <25000000>;
119 compatible = "mikrotik,rb4xx-gpio";
126 "LED1", "LED2", "LED3", "LED4",
127 "FAN", "ALE", "CLE", "nCE",
132 compatible = "mikrotik,rb4xx-nand";
134 gpios = <&cpld_gpio 5 GPIO_ACTIVE_HIGH>, // ALE
135 <&cpld_gpio 6 GPIO_ACTIVE_HIGH>, // CLE
136 <&cpld_gpio 7 GPIO_ACTIVE_HIGH>, // nCE
137 <&gpio 5 GPIO_ACTIVE_HIGH>; // RDY
140 compatible = "fixed-partitions";
141 #address-cells = <1>;
146 reg = <0x0000000 0x0040000>;
152 reg = <0x0040000 0x0800000>;
157 reg = <0x0840000 0x77c0000>;
167 phy-handle = <&phy0>;
173 phy0: ethernet-phy@0 {