0d566f8ea85d2012fdec5a47f27152d34d0f7238
[openwrt/staging/mkresin.git] / target / linux / mediatek / dts / mt7622-ubnt-unifi-6-lr-ubootmod.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 /dts-v1/;
4 #include "mt7622-ubnt-unifi-6-lr.dtsi"
5
6 / {
7 model = "Ubiquiti UniFi 6 LR (U-Boot mod)";
8 compatible = "ubnt,unifi-6-lr-ubootmod", "mediatek,mt7622";
9 };
10
11 &nor_partitions {
12 partition@0 {
13 label = "bl2";
14 reg = <0x0 0x20000>;
15 };
16
17 partition@20000 {
18 label = "fip";
19 reg = <0x20000 0xa0000>;
20 };
21
22 partition@c0000 {
23 label = "u-boot-env";
24 reg = <0xc0000 0x10000>;
25 };
26
27 factory: partition@d0000 {
28 label = "factory";
29 reg = <0xd0000 0x40000>;
30 read-only;
31 };
32
33 eeprom: partition@110000 {
34 label = "eeprom";
35 reg = <0x110000 0x10000>;
36 read-only;
37 };
38
39 partition@120000 {
40 label = "recovery";
41 reg = <0x120000 0xee0000>;
42 };
43
44 partition@1000000 {
45 compatible = "denx,fit";
46 label = "firmware";
47 reg = <0x1000000 0x3000000>;
48 };
49 };
50
51 &wmac {
52 mediatek,mtd-eeprom = <&factory 0x0>;
53 mtd-mac-address = <&eeprom 0x0>;
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 mtd-mac-address = <&eeprom 0x6>;
62 ieee80211-freq-limit = <5000000 6000000>;
63 };
64 };
65
66 &gmac0 {
67 mtd-mac-address = <&eeprom 0x0>;
68 };