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>;
41 reg = <0x70000 0x40000>;
45 compatible = "fixed-layout";
49 eeprom_factory_0: eeprom@0 {
53 eeprom_factory_20000: eeprom@20000 {
54 reg = <0x20000 0xe00>;
57 precal_factory_20e10: precal@20e10 {
58 reg = <0x20e10 0x19c10>;
65 reg = <0xb0000 0x10000>;
69 compatible = "fixed-layout";
73 macaddr_eeprom_0: macaddr@0 {
77 macaddr_eeprom_6: macaddr@6 {
78 compatible = "mac-base";
80 #nvmem-cell-cells = <1>;
87 reg = <0xc0000 0x10000>;
92 reg = <0xd0000 0x100000>;
97 compatible = "denx,fit";
99 reg = <0x1d0000 0xf10000>;
104 reg = <0x10e0000 0xf10000>;
111 nvmem-cells = <&macaddr_eeprom_0>;
112 nvmem-cell-names = "mac-address";
116 nvmem-cells = <&eeprom_factory_0>, <&macaddr_eeprom_0>;
117 nvmem-cell-names = "eeprom", "mac-address";
121 compatible = "mediatek,mt76";
123 /* This is a workaround.
125 * Ubiquiti uses a +2 offset in the first octet relative
126 * to the 2.4 GHz WMAC. Other octets are identical.
128 * The vendor firmware increases the last octet by 2 for each
131 * This is in conflict on how mac80211 addresses subsequent VAPs.
132 * mac80211 increases the first octet by two for each VAP, leading
133 * to conflicting MAC addresses for subsequent interfaces.
135 nvmem-cells = <&macaddr_eeprom_6 1>, <&eeprom_factory_20000>, <&precal_factory_20e10>;
136 nvmem-cell-names = "mac-address", "eeprom", "precal";
138 ieee80211-freq-limit = <5000000 6000000>;
140 mediatek,disable-radar-background;