3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
7 model = "Ubiquiti UniFi Switch Flex";
8 compatible = "ubnt,usw-flex", "mediatek,mt7621-soc";
11 led-boot = &led_white;
12 led-failsafe = &led_white;
13 led-running = &led_blue;
14 led-upgrade = &led_blue;
15 label-mac-device = &gmac0;
19 bootargs-override = "console=ttyS0,115200";
23 compatible = "gpio-keys";
27 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
28 linux,code = <KEY_RESTART>;
33 compatible = "gpio-leds";
35 led_blue: status_blue {
36 label = "blue:status";
37 gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
40 led_white: status_white {
41 label = "white:status";
42 gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
47 compatible = "i2c-gpio";
49 sda-gpios = <&gpio 3 GPIO_ACTIVE_HIGH>;
50 scl-gpios = <&gpio 4 GPIO_ACTIVE_HIGH>;
52 i2c-gpio,delay-us = <50>;
54 /* Microsemi PD69104B1 PSE controller */
59 nvmem-cells = <&macaddr_eeprom>;
60 nvmem-cell-names = "mac-address";
67 phy-handle = <ðphy4>;
69 nvmem-cells = <&macaddr_eeprom>;
70 nvmem-cell-names = "mac-address";
74 ethphy4: ethernet-phy@4 {
105 groups = "i2c", "uart2", "uart3", "jtag";
114 compatible = "jedec,spi-nor";
116 spi-max-frequency = <30000000>;
119 compatible = "fixed-partitions";
120 #address-cells = <1>;
130 label = "u-boot-env";
131 reg = <0x60000 0x10000>;
136 reg = <0x70000 0x10000>;
140 part_eeprom: partition@80000 {
141 compatible = "nvmem-cells";
143 #address-cells = <1>;
147 reg = <0x80000 0x10000>;
150 macaddr_eeprom: macaddr@0 {
157 reg = <0x90000 0x10000>;
162 reg = <0xa0000 0x100000>;
167 /* Combine kernel0 / kernel1 */
168 compatible = "denx,fit";
170 reg = <0x1a0000 0xe60000>;