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 compatible = "fixed-layout";
70 eeprom_factory_0: eeprom@0 {
74 eeprom_factory_8000: eeprom@8000 {
75 reg = <0x8000 0x4da8>;
80 eeprom: partition@80000 {
82 reg = <0x80000 0x10000>;
86 compatible = "fixed-layout";
90 macaddr_eeprom_0: macaddr@0 {
91 compatible = "mac-base";
93 #nvmem-cell-cells = <1>;
100 reg = <0x90000 0x10000>;
105 reg = <0xa0000 0x100000>;
110 compatible = "denx,fit";
112 reg = <0x1a0000 0xf30000>;
117 reg = <0x10d0000 0xf30000>;
125 nvmem-cells = <&macaddr_eeprom_0 0>;
126 nvmem-cell-names = "mac-address";
145 // On newer devices there is a MediaTek MAC in the above
146 // device EEPROM, so override it with a calculated one.
147 nvmem-cells = <&eeprom_factory_0>, <&macaddr_eeprom_0 1>;
148 nvmem-cell-names = "eeprom", "mac-address";
155 // On newer devices there is a MediaTek MAC in the above
156 // device EEPROM, so override it with a calculated one.
157 nvmem-cells = <&eeprom_factory_8000>, <&macaddr_eeprom_0 2>;
158 nvmem-cell-names = "eeprom", "mac-address";
164 clock-frequency = <400000>;
167 compatible = "ubnt,ledbar";
170 enable-gpio = <&gpio 44 GPIO_ACTIVE_HIGH>;
171 reset-gpio = <&gpio 41 GPIO_ACTIVE_LOW>;