3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5 #include <dt-bindings/leds/common.h>
8 model = "Ubiquiti UniFi Switch Flex";
9 compatible = "ubnt,usw-flex", "mediatek,mt7621-soc";
12 led-boot = &led_white;
13 led-failsafe = &led_white;
14 led-running = &led_blue;
15 led-upgrade = &led_blue;
16 label-mac-device = &gmac0;
20 bootargs-override = "console=ttyS0,115200";
24 compatible = "gpio-keys";
28 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
29 linux,code = <KEY_RESTART>;
34 compatible = "gpio-leds";
36 led_blue: status_blue {
37 function = LED_FUNCTION_STATUS;
38 color = <LED_COLOR_ID_BLUE>;
39 gpios = <&gpio 13 GPIO_ACTIVE_HIGH>;
42 led_white: status_white {
43 function = LED_FUNCTION_STATUS;
44 color = <LED_COLOR_ID_WHITE>;
45 gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
50 compatible = "i2c-gpio";
52 sda-gpios = <&gpio 3 GPIO_ACTIVE_HIGH>;
53 scl-gpios = <&gpio 4 GPIO_ACTIVE_HIGH>;
55 i2c-gpio,delay-us = <50>;
57 /* Microsemi PD69104B1 PSE controller */
62 nvmem-cells = <&macaddr_eeprom>;
63 nvmem-cell-names = "mac-address";
70 phy-handle = <ðphy4>;
72 nvmem-cells = <&macaddr_eeprom>;
73 nvmem-cell-names = "mac-address";
77 /delete-property/ interrupts;
106 groups = "i2c", "uart2", "uart3", "jtag";
115 compatible = "jedec,spi-nor";
117 spi-max-frequency = <30000000>;
120 compatible = "fixed-partitions";
121 #address-cells = <1>;
131 label = "u-boot-env";
132 reg = <0x60000 0x10000>;
137 reg = <0x70000 0x10000>;
143 reg = <0x80000 0x10000>;
147 compatible = "fixed-layout";
148 #address-cells = <1>;
151 macaddr_eeprom: macaddr@0 {
159 reg = <0x90000 0x10000>;
164 reg = <0xa0000 0x100000>;
169 /* Combine kernel0 / kernel1 */
170 compatible = "denx,fit";
172 reg = <0x1a0000 0xe60000>;