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 {
52 eeprom: partition@b0000 {
53 compatible = "nvmem-cells";
55 reg = <0xb0000 0x10000>;
60 macaddr_eeprom_0: macaddr@0 {
64 macaddr_eeprom_6: macaddr@6 {
71 reg = <0xc0000 0x10000>;
76 reg = <0xd0000 0x100000>;
81 compatible = "denx,fit";
83 reg = <0x1d0000 0xf10000>;
88 reg = <0x10e0000 0xf10000>;
95 nvmem-cells = <&macaddr_eeprom_0>;
96 nvmem-cell-names = "mac-address";
100 nvmem-cells = <&eeprom_factory_0>, <&macaddr_eeprom_0>;
101 nvmem-cell-names = "eeprom", "mac-address";
105 compatible = "mediatek,mt76";
107 mediatek,mtd-eeprom = <&factory 0x20000>;
109 nvmem-cells = <&macaddr_eeprom_6>;
110 nvmem-cell-names = "mac-address";
112 /* This is a workaround.
114 * Ubiquiti uses a +2 offset in the first octet relative
115 * to the 2.4 GHz WMAC. Other octets are identical.
117 * The vendor firmware increases the last octet by 2 for each
120 * This is in conflict on how mac80211 addresses subsequent VAPs.
121 * mac80211 increases the first octet by two for each VAP, leading
122 * to conflicting MAC addresses for subsequent interfaces.
124 mac-address-increment = <1>;
126 ieee80211-freq-limit = <5000000 6000000>;
128 mediatek,disable-radar-background;