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>;
72 compatible = "fixed-layout";
76 macaddr_eeprom_0: macaddr@0 {
77 compatible = "mac-base";
79 #nvmem-cell-cells = <1>;
86 reg = <0x90000 0x10000>;
91 reg = <0xa0000 0x100000>;
96 compatible = "denx,fit";
98 reg = <0x1a0000 0xf30000>;
103 reg = <0x10d0000 0xf30000>;
111 nvmem-cells = <&macaddr_eeprom_0 0>;
112 nvmem-cell-names = "mac-address";
131 mediatek,mtd-eeprom = <&factory 0x0>;
132 // On newer devices there is a MediaTek MAC in the above
133 // device EEPROM, so override it with a calculated one.
134 nvmem-cells = <&macaddr_eeprom_0 1>;
135 nvmem-cell-names = "mac-address";
142 mediatek,mtd-eeprom = <&factory 0x8000>;
143 // On newer devices there is a MediaTek MAC in the above
144 // device EEPROM, so override it with a calculated one.
145 nvmem-cells = <&macaddr_eeprom_0 2>;
146 nvmem-cell-names = "mac-address";
152 clock-frequency = <400000>;
155 compatible = "ubnt,ledbar";
158 enable-gpio = <&gpio 44 GPIO_ACTIVE_HIGH>;
159 reset-gpio = <&gpio 41 GPIO_ACTIVE_LOW>;