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>;
122 reg = <0x400000 0x10000>;
125 compatible = "fixed-layout";
126 #address-cells = <1>;
129 macaddr_eeprom_0: macaddr@0 {
130 compatible = "mac-base";
132 #nvmem-cell-cells = <1>;
144 compatible = "mmc-slot";
147 max-frequency = <26000000>;
148 voltage-ranges = <3300 3300>;
156 phy4: ethernet-phy@4 {
157 device_type = "ethernet-phy";
159 interrupt-parent = <&gpio>;
160 compatible = "vitesse,vsc8504", "ethernet-phy-ieee802.3-c22";
165 phy5: ethernet-phy@5 {
166 device_type = "ethernet-phy";
168 interrupt-parent = <&gpio>;
169 compatible = "vitesse,vsc8504", "ethernet-phy-ieee802.3-c22";
173 phy6: ethernet-phy@6 {
174 device_type = "ethernet-phy";
176 interrupt-parent = <&gpio>;
177 compatible = "vitesse,vsc8504", "ethernet-phy-ieee802.3-c22";
181 phy7: ethernet-phy@7 {
182 device_type = "ethernet-phy";
184 interrupt-parent = <&gpio>;
185 compatible = "vitesse,vsc8504", "ethernet-phy-ieee802.3-c22";
200 phy-handle = <&phy5>;
201 nvmem-cells = <&macaddr_eeprom_0 1>;
202 nvmem-cell-names = "mac-address";
209 phy-handle = <&phy6>;
210 nvmem-cells = <&macaddr_eeprom_0 2>;
211 nvmem-cell-names = "mac-address";
218 phy-handle = <&phy7>;
219 nvmem-cells = <&macaddr_eeprom_0 3>;
220 nvmem-cell-names = "mac-address";