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>
10 compatible = "ubnt,edgerouter-e300", "cavium,cn7130";
11 model = "Ubiquiti EdgeRouter E300 series";
14 /* White + Blinking Blue */
15 led-boot = &led_power_white;
16 /* Blue + Blinking White */
17 led-failsafe = &led_power_blue;
19 led-running = &led_power_blue;
20 /* Blue + Blinking White */
21 led-upgrade = &led_power_blue;
25 device_type = "memory";
26 reg = <0x0 0x00000000>,
33 compatible = "gpio-leds";
35 led_power_blue: power_blue {
36 function = LED_FUNCTION_POWER;
37 color = <LED_COLOR_ID_BLUE>;
38 gpios = <&gpio 17 GPIO_ACTIVE_HIGH>;
41 led_power_white: power_white {
42 function = LED_FUNCTION_POWER;
43 color = <LED_COLOR_ID_WHITE>;
44 gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
49 compatible = "gpio-keys-polled";
54 linux,code = <KEY_RESTART>;
55 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
56 debounce-interval = <60>;
61 compatible = "sff,sfp";
63 /* Pins 12, 13 and 14 gets pulled low when SFP is plugged in */
64 mod-def0-gpio = <&gpio 12 GPIO_ACTIVE_LOW>;
85 compatible = "at,24c04";
90 compatible = "at,24c04";
101 compatible = "Macronix,mx25l6405d", "spi-flash";
103 spi-max-frequency = <25000000>;
106 compatible = "fixed-partitions";
107 #address-cells = <1>;
113 reg = <0x000000 0x300000>;
119 reg = <0x300000 0x100000>;
125 reg = <0x400000 0x10000>;
128 compatible = "fixed-layout";
129 #address-cells = <1>;
132 macaddr_eeprom_0: macaddr@0 {
133 compatible = "mac-base";
135 #nvmem-cell-cells = <1>;
147 compatible = "mmc-slot";
150 max-frequency = <26000000>;
151 voltage-ranges = <3300 3300>;
159 phy4: ethernet-phy@4 {
160 device_type = "ethernet-phy";
162 interrupt-parent = <&gpio>;
163 compatible = "vitesse,vsc8504", "ethernet-phy-ieee802.3-c22";
168 phy5: ethernet-phy@5 {
169 device_type = "ethernet-phy";
171 interrupt-parent = <&gpio>;
172 compatible = "vitesse,vsc8504", "ethernet-phy-ieee802.3-c22";
176 phy6: ethernet-phy@6 {
177 device_type = "ethernet-phy";
179 interrupt-parent = <&gpio>;
180 compatible = "vitesse,vsc8504", "ethernet-phy-ieee802.3-c22";
184 phy7: ethernet-phy@7 {
185 device_type = "ethernet-phy";
187 interrupt-parent = <&gpio>;
188 compatible = "vitesse,vsc8504", "ethernet-phy-ieee802.3-c22";
203 phy-handle = <&phy5>;
204 nvmem-cells = <&macaddr_eeprom_0 1>;
205 nvmem-cell-names = "mac-address";
212 phy-handle = <&phy6>;
213 nvmem-cells = <&macaddr_eeprom_0 2>;
214 nvmem-cell-names = "mac-address";
221 phy-handle = <&phy7>;
222 nvmem-cells = <&macaddr_eeprom_0 3>;
223 nvmem-cell-names = "mac-address";