ramips: clean up useless dts partition labels
[openwrt/staging/jow.git] / target / linux / ramips / dts / mt7621_ubnt_unifi-6-lite.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "mt7621_ubnt_unifi.dtsi"
4
5 / {
6 compatible = "ubnt,unifi-6-lite", "mediatek,mt7621-soc";
7 model = "Ubiquiti UniFi 6 Lite";
8
9 chosen {
10 bootargs-override = "console=ttyS0,115200";
11 };
12 };
13
14 &spi0 {
15 status = "okay";
16
17 flash@0 {
18 compatible = "jedec,spi-nor";
19 reg = <0>;
20 spi-max-frequency = <50000000>;
21
22 partitions {
23 compatible = "fixed-partitions";
24 #address-cells = <1>;
25 #size-cells = <1>;
26
27 partition@0 {
28 label = "u-boot";
29 reg = <0x0 0x60000>;
30 read-only;
31 };
32
33 partition@60000 {
34 label = "u-boot-env";
35 reg = <0x60000 0x10000>;
36 read-only;
37 };
38
39 partition@70000 {
40 label = "factory";
41 reg = <0x70000 0x40000>;
42 read-only;
43
44 nvmem-layout {
45 compatible = "fixed-layout";
46 #address-cells = <1>;
47 #size-cells = <1>;
48
49 eeprom_factory_0: eeprom@0 {
50 reg = <0x0 0x400>;
51 };
52
53 eeprom_factory_20000: eeprom@20000 {
54 reg = <0x20000 0xe00>;
55 };
56
57 precal_factory_20e10: precal@20e10 {
58 reg = <0x20e10 0x19c10>;
59 };
60 };
61 };
62
63 partition@b0000 {
64 label = "eeprom";
65 reg = <0xb0000 0x10000>;
66 read-only;
67
68 nvmem-layout {
69 compatible = "fixed-layout";
70 #address-cells = <1>;
71 #size-cells = <1>;
72
73 macaddr_eeprom_0: macaddr@0 {
74 reg = <0x0 0x6>;
75 };
76
77 macaddr_eeprom_6: macaddr@6 {
78 compatible = "mac-base";
79 reg = <0x6 0x6>;
80 #nvmem-cell-cells = <1>;
81 };
82 };
83 };
84
85 partition@c0000 {
86 label = "bs";
87 reg = <0xc0000 0x10000>;
88 };
89
90 partition@d0000 {
91 label = "cfg";
92 reg = <0xd0000 0x100000>;
93 read-only;
94 };
95
96 partition@1d0000 {
97 compatible = "denx,fit";
98 label = "firmware";
99 reg = <0x1d0000 0xf10000>;
100 };
101
102 partition@10e0000 {
103 label = "kernel1";
104 reg = <0x10e0000 0xf10000>;
105 };
106 };
107 };
108 };
109
110 &gmac0 {
111 nvmem-cells = <&macaddr_eeprom_0>;
112 nvmem-cell-names = "mac-address";
113 };
114
115 &wlan_2g {
116 nvmem-cells = <&eeprom_factory_0>, <&macaddr_eeprom_0>;
117 nvmem-cell-names = "eeprom", "mac-address";
118 };
119
120 &wlan_5g {
121 compatible = "mediatek,mt76";
122
123 /* This is a workaround.
124 *
125 * Ubiquiti uses a +2 offset in the first octet relative
126 * to the 2.4 GHz WMAC. Other octets are identical.
127 *
128 * The vendor firmware increases the last octet by 2 for each
129 * VAP.
130 *
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.
134 */
135 nvmem-cells = <&macaddr_eeprom_6 1>, <&eeprom_factory_20000>, <&precal_factory_20e10>;
136 nvmem-cell-names = "mac-address", "eeprom", "precal";
137
138 ieee80211-freq-limit = <5000000 6000000>;
139
140 mediatek,disable-radar-background;
141 };