1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include "mt7621_ubnt_unifi.dtsi"
6 compatible = "ubnt,unifi-6-lite", "mediatek,mt7621-soc";
7 model = "Ubiquiti UniFi 6 Lite";
10 bootargs-override = "console=ttyS0,115200";
18 compatible = "jedec,spi-nor";
20 spi-max-frequency = <50000000>;
23 compatible = "fixed-partitions";
35 reg = <0x60000 0x10000>;
39 factory: partition@70000 {
40 compatible = "nvmem-cells";
42 reg = <0x70000 0x40000>;
47 eeprom_factory_0: eeprom@0 {
51 eeprom_factory_20000: eeprom@20000 {
52 reg = <0x20000 0xe00>;
56 eeprom: partition@b0000 {
57 compatible = "nvmem-cells";
59 reg = <0xb0000 0x10000>;
64 macaddr_eeprom_0: macaddr@0 {
68 macaddr_eeprom_6: macaddr@6 {
75 reg = <0xc0000 0x10000>;
80 reg = <0xd0000 0x100000>;
85 compatible = "denx,fit";
87 reg = <0x1d0000 0xf10000>;
92 reg = <0x10e0000 0xf10000>;
99 nvmem-cells = <&macaddr_eeprom_0>;
100 nvmem-cell-names = "mac-address";
104 nvmem-cells = <&eeprom_factory_0>, <&macaddr_eeprom_0>;
105 nvmem-cell-names = "eeprom", "mac-address";
109 compatible = "mediatek,mt76";
111 nvmem-cells = <&eeprom_factory_20000>, <&macaddr_eeprom_6>;
112 nvmem-cell-names = "eeprom", "mac-address";
114 /* This is a workaround.
116 * Ubiquiti uses a +2 offset in the first octet relative
117 * to the 2.4 GHz WMAC. Other octets are identical.
119 * The vendor firmware increases the last octet by 2 for each
122 * This is in conflict on how mac80211 addresses subsequent VAPs.
123 * mac80211 increases the first octet by two for each VAP, leading
124 * to conflicting MAC addresses for subsequent interfaces.
126 mac-address-increment = <1>;
128 ieee80211-freq-limit = <5000000 6000000>;
130 mediatek,disable-radar-background;