711d58d0e55beadbdde30243b5f368c2b45e818b
[openwrt/staging/stintel.git] / target / linux / mediatek / dts / mt7622-ubnt-unifi-6-lr-v2-ubootmod.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "mt7622-ubnt-unifi-6-lr-v2.dtsi"
4
5 / {
6 model = "Ubiquiti UniFi 6 LR v2 (U-Boot mod)";
7 compatible = "ubnt,unifi-6-lr-ubootmod-v2", "mediatek,mt7622";
8 };
9
10 &nor_partitions {
11 partition@0 {
12 label = "bl2";
13 reg = <0x0 0x20000>;
14 };
15
16 partition@20000 {
17 label = "fip";
18 reg = <0x20000 0xa0000>;
19 };
20
21 partition@c0000 {
22 label = "u-boot-env";
23 reg = <0xc0000 0x10000>;
24 };
25
26 factory: partition@d0000 {
27 label = "factory";
28 reg = <0xd0000 0x40000>;
29 read-only;
30 };
31
32 eeprom: partition@110000 {
33 label = "eeprom";
34 reg = <0x110000 0x10000>;
35 read-only;
36 };
37
38 partition@120000 {
39 label = "recovery";
40 reg = <0x120000 0xee0000>;
41 };
42
43 partition@1000000 {
44 compatible = "denx,fit";
45 label = "firmware";
46 reg = <0x1000000 0x3000000>;
47 };
48 };
49
50 &wmac {
51 mediatek,mtd-eeprom = <&factory 0x0>;
52 nvmem-cells = <&macaddr_eeprom_0>;
53 nvmem-cell-names = "mac-address";
54 status = "okay";
55 };
56
57 &slot0 {
58 wifi@0,0 {
59 reg = <0x0 0 0 0 0>;
60 mediatek,mtd-eeprom = <&factory 0x20000>;
61 nvmem-cells = <&macaddr_eeprom_6>;
62 nvmem-cell-names = "mac-address";
63 ieee80211-freq-limit = <5000000 6000000>;
64 };
65 };
66
67 &gmac0 {
68 nvmem-cells = <&macaddr_eeprom_0>;
69 nvmem-cell-names = "mac-address";
70 };
71
72 &eeprom {
73 compatible = "nvmem-cells";
74 #address-cells = <1>;
75 #size-cells = <1>;
76
77 macaddr_eeprom_0: macaddr@0 {
78 reg = <0x0 0x6>;
79 };
80
81 macaddr_eeprom_6: macaddr@6 {
82 reg = <0x6 0x6>;
83 };
84 };