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>
9 compatible = "ubnt,edgerouter-e300", "cavium,cn7130";
10 model = "Ubiquiti EdgeRouter E300 series";
13 /* White + Blinking Blue */
14 led-boot = &led_power_white;
15 /* Blue + Blinking White */
16 led-failsafe = &led_power_blue;
18 led-running = &led_power_blue;
19 /* Blue + Blinking White */
20 led-upgrade = &led_power_blue;
24 device_type = "memory";
25 reg = <0x0 0x00000000>,
32 compatible = "gpio-leds";
34 led_power_blue: power_blue {
36 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
39 led_power_white: power_white {
40 label = "white:power";
41 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
46 compatible = "gpio-keys-polled";
51 linux,code = <KEY_RESTART>;
52 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
53 debounce-interval = <60>;
58 compatible = "sff,sfp";
60 /* Pins 12, 13 and 14 gets pulled low when SFP is plugged in */
61 mod-def0-gpio = <&gpio 12 GPIO_ACTIVE_LOW>;
82 compatible = "at,24c04";
87 compatible = "at,24c04";
98 compatible = "Macronix,mx25l6405d", "spi-flash";
100 spi-max-frequency = <25000000>;
105 reg = <0x000000 0x300000>;
111 reg = <0x300000 0x100000>;
114 eeprom: partition@400000 {
117 reg = <0x400000 0x10000>;
126 compatible = "mmc-slot";
129 max-frequency = <26000000>;
130 voltage-ranges = <3300 3300>;
138 phy4: ethernet-phy@4 {
139 device_type = "ethernet-phy";
141 interrupt-parent = <&gpio>;
142 compatible = "vitesse,vsc8504", "ethernet-phy-ieee802.3-c22";
147 phy5: ethernet-phy@5 {
148 device_type = "ethernet-phy";
150 interrupt-parent = <&gpio>;
151 compatible = "vitesse,vsc8504", "ethernet-phy-ieee802.3-c22";
155 phy6: ethernet-phy@6 {
156 device_type = "ethernet-phy";
158 interrupt-parent = <&gpio>;
159 compatible = "vitesse,vsc8504", "ethernet-phy-ieee802.3-c22";
163 phy7: ethernet-phy@7 {
164 device_type = "ethernet-phy";
166 interrupt-parent = <&gpio>;
167 compatible = "vitesse,vsc8504", "ethernet-phy-ieee802.3-c22";
182 phy-handle = <&phy5>;
183 mtd-mac-address = <&eeprom 0>;
184 mac-address-increment = <(1)>;
191 phy-handle = <&phy6>;
192 mtd-mac-address = <&eeprom 0>;
193 mac-address-increment = <(2)>;
200 phy-handle = <&phy7>;
201 mtd-mac-address = <&eeprom 0>;
202 mac-address-increment = <(3)>;