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 17 GPIO_ACTIVE_HIGH>;
39 led_power_white: power_white {
40 label = "white:power";
41 gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
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>;
103 compatible = "fixed-partitions";
104 #address-cells = <1>;
110 reg = <0x000000 0x300000>;
116 reg = <0x300000 0x100000>;
119 eeprom: partition@400000 {
122 reg = <0x400000 0x10000>;
132 compatible = "mmc-slot";
135 max-frequency = <26000000>;
136 voltage-ranges = <3300 3300>;
144 phy4: ethernet-phy@4 {
145 device_type = "ethernet-phy";
147 interrupt-parent = <&gpio>;
148 compatible = "vitesse,vsc8504", "ethernet-phy-ieee802.3-c22";
153 phy5: ethernet-phy@5 {
154 device_type = "ethernet-phy";
156 interrupt-parent = <&gpio>;
157 compatible = "vitesse,vsc8504", "ethernet-phy-ieee802.3-c22";
161 phy6: ethernet-phy@6 {
162 device_type = "ethernet-phy";
164 interrupt-parent = <&gpio>;
165 compatible = "vitesse,vsc8504", "ethernet-phy-ieee802.3-c22";
169 phy7: ethernet-phy@7 {
170 device_type = "ethernet-phy";
172 interrupt-parent = <&gpio>;
173 compatible = "vitesse,vsc8504", "ethernet-phy-ieee802.3-c22";
188 phy-handle = <&phy5>;
189 nvmem-cells = <&macaddr_eeprom_0>;
190 nvmem-cell-names = "mac-address";
191 mac-address-increment = <(1)>;
198 phy-handle = <&phy6>;
199 nvmem-cells = <&macaddr_eeprom_0>;
200 nvmem-cell-names = "mac-address";
201 mac-address-increment = <(2)>;
208 phy-handle = <&phy7>;
209 nvmem-cells = <&macaddr_eeprom_0>;
210 nvmem-cell-names = "mac-address";
211 mac-address-increment = <(3)>;
217 compatible = "nvmem-cells";
218 #address-cells = <1>;
221 macaddr_eeprom_0: macaddr@0 {