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";
95 groups = "i2c", "uart2", "uart3", "jtag";
104 compatible = "jedec,spi-nor";
106 spi-max-frequency = <30000000>;
109 compatible = "fixed-partitions";
110 #address-cells = <1>;
120 label = "u-boot-env";
121 reg = <0x60000 0x10000>;
126 reg = <0x70000 0x10000>;
130 part_eeprom: partition@80000 {
131 compatible = "nvmem-cells";
133 #address-cells = <1>;
137 reg = <0x80000 0x10000>;
140 macaddr_eeprom: macaddr@0 {
147 reg = <0x90000 0x10000>;
152 reg = <0xa0000 0x100000>;
157 compatible = "denx,fit";
159 reg = <0x1a0000 0x730000>;
164 reg = <0x8d0000 0x730000>;