f40e8e632b05d313b84c949ba3d03dc12c64ce7d
[openwrt/staging/dedeckeh.git] / target / linux / mediatek / dts / mt7622-ubnt-unifi-6-lr-v2.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";
7 compatible = "ubnt,unifi-6-lr-v2", "mediatek,mt7622";
8 };
9
10 &nor_partitions {
11 partition@0 {
12 label = "preloader";
13 reg = <0x0 0x40000>;
14 };
15
16 partition@40000 {
17 label = "atf";
18 reg = <0x40000 0x20000>;
19 };
20
21 partition@60000 {
22 label = "u-boot";
23 reg = <0x60000 0x60000>;
24 };
25
26 partition@c0000 {
27 label = "u-boot-env";
28 reg = <0xc0000 0x10000>;
29 };
30
31 factory: partition@d0000 {
32 label = "factory";
33 reg = <0xd0000 0x40000>;
34 read-only;
35 };
36
37 eeprom: partition@110000 {
38 label = "eeprom";
39 reg = <0x110000 0x10000>;
40 read-only;
41 };
42
43 partition@120000 {
44 label = "bs";
45 reg = <0x120000 0x10000>;
46 };
47
48 partition@130000 {
49 label = "cfg";
50 reg = <0x130000 0x100000>;
51 read-only;
52 };
53
54 partition@230000 {
55 compatible = "denx,fit";
56 label = "firmware";
57 reg = <0x230000 0x1ee0000>;
58 };
59
60 partition@2110000 {
61 label = "kernel1";
62 reg = <0x2110000 0x1ee0000>;
63 };
64 };
65
66 &wmac {
67 mediatek,mtd-eeprom = <&factory 0x0>;
68 nvmem-cells = <&macaddr_eeprom_0>;
69 nvmem-cell-names = "mac-address";
70 status = "okay";
71 };
72
73 &slot0 {
74 wifi@0,0 {
75 reg = <0x0 0 0 0 0>;
76 mediatek,mtd-eeprom = <&factory 0x20000>;
77 nvmem-cells = <&macaddr_eeprom_6>;
78 nvmem-cell-names = "mac-address";
79 ieee80211-freq-limit = <5000000 6000000>;
80 };
81 };
82
83 &gmac0 {
84 nvmem-cells = <&macaddr_eeprom_0>;
85 nvmem-cell-names = "mac-address";
86 };
87
88 &eeprom {
89 compatible = "nvmem-cells";
90 #address-cells = <1>;
91 #size-cells = <1>;
92
93 macaddr_eeprom_0: macaddr@0 {
94 reg = <0x0 0x6>;
95 };
96
97 macaddr_eeprom_6: macaddr@6 {
98 reg = <0x6 0x6>;
99 };
100 };