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 {
41 reg = <0x70000 0x40000>;
45 eeprom: partition@b0000 {
47 reg = <0xb0000 0x10000>;
53 reg = <0xc0000 0x10000>;
58 reg = <0xd0000 0x100000>;
63 compatible = "denx,fit";
65 reg = <0x1d0000 0xf10000>;
70 reg = <0x10e0000 0xf10000>;
77 nvmem-cells = <&macaddr_eeprom_0>;
78 nvmem-cell-names = "mac-address";
82 mediatek,mtd-eeprom = <&factory 0x0>;
84 nvmem-cells = <&macaddr_eeprom_0>;
85 nvmem-cell-names = "mac-address";
89 compatible = "mediatek,mt76";
91 mediatek,mtd-eeprom = <&factory 0x20000>;
93 nvmem-cells = <&macaddr_eeprom_6>;
94 nvmem-cell-names = "mac-address";
96 /* This is a workaround.
98 * Ubiquiti uses a +2 offset in the first octet relative
99 * to the 2.4 GHz WMAC. Other octets are identical.
101 * The vendor firmware increases the last octet by 2 for each
104 * This is in conflict on how mac80211 addresses subsequent VAPs.
105 * mac80211 increases the first octet by two for each VAP, leading
106 * to conflicting MAC addresses for subsequent interfaces.
108 mac-address-increment = <1>;
110 ieee80211-freq-limit = <5000000 6000000>;
112 mediatek,disable-radar-background;
116 compatible = "nvmem-cells";
117 #address-cells = <1>;
120 macaddr_eeprom_0: macaddr@0 {
124 macaddr_eeprom_6: macaddr@6 {