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,unifi-flexhd", "mediatek,mt7621-soc";
10 model = "Ubiquiti UniFi FlexHD";
13 label-mac-device = &gmac0;
15 led-failsafe = &led_blue;
16 led-running = &led_blue;
17 led-upgrade = &led_blue;
21 bootargs = "console=ttyS0,115200";
25 compatible = "gpio-keys";
29 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
30 linux,code = <KEY_RESTART>;
39 compatible = "jedec,spi-nor";
41 spi-max-frequency = <50000000>;
44 compatible = "fixed-partitions";
56 reg = <0x60000 0x10000>;
60 factory: partition@70000 {
62 reg = <0x70000 0x10000>;
66 eeprom: partition@80000 {
68 reg = <0x80000 0x10000>;
74 reg = <0x90000 0x10000>;
79 reg = <0xa0000 0x100000>;
84 compatible = "denx,fit";
86 reg = <0x1a0000 0xf30000>;
91 reg = <0x10d0000 0xf30000>;
99 compatible = "nvmem-cells";
100 #address-cells = <1>;
103 macaddr_eeprom_0: macaddr@0 {
109 nvmem-cells = <&macaddr_eeprom_0>;
110 nvmem-cell-names = "mac-address";
129 mediatek,mtd-eeprom = <&factory 0x0>;
130 // On newer devices there is a MediaTek MAC in the above
131 // device EEPROM, so override it with a calculated one.
132 nvmem-cells = <&macaddr_eeprom_0>;
133 nvmem-cell-names = "mac-address";
134 mac-address-increment = <1>;
141 mediatek,mtd-eeprom = <&factory 0x8000>;
142 // On newer devices there is a MediaTek MAC in the above
143 // device EEPROM, so override it with a calculated one.
144 nvmem-cells = <&macaddr_eeprom_0>;
145 nvmem-cell-names = "mac-address";
146 mac-address-increment = <2>;
152 clock-frequency = <400000>;
155 compatible = "ubnt,ledbar";
158 enable-gpio = <&gpio 44 GPIO_ACTIVE_HIGH>;
159 reset-gpio = <&gpio 41 GPIO_ACTIVE_LOW>;