7a7a8a815911ea1c093f5aab5d036203a4a11c16
[openwrt/staging/jow.git] / target / linux / mediatek / dts / mt7622-ubnt-unifi-6-lr-v1-ubootmod.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "mt7622-ubnt-unifi-6-lr-v1.dtsi"
4
5 / {
6 model = "Ubiquiti UniFi 6 LR v1 (U-Boot mod)";
7 compatible = "ubnt,unifi-6-lr-v1-ubootmod", "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 nvmem-layout {
38 compatible = "fixed-layout";
39 #address-cells = <1>;
40 #size-cells = <1>;
41
42 macaddr_eeprom_0: macaddr@0 {
43 reg = <0x0 0x6>;
44 };
45
46 macaddr_eeprom_6: macaddr@6 {
47 reg = <0x6 0x6>;
48 };
49 };
50 };
51
52 partition@120000 {
53 label = "recovery";
54 reg = <0x120000 0xee0000>;
55 };
56
57 partition@1000000 {
58 compatible = "denx,fit";
59 label = "firmware";
60 reg = <0x1000000 0x3000000>;
61 };
62 };
63
64 &wmac {
65 mediatek,mtd-eeprom = <&factory 0x0>;
66 nvmem-cells = <&macaddr_eeprom_0>;
67 nvmem-cell-names = "mac-address";
68 status = "okay";
69 };
70
71 &slot0 {
72 wifi@0,0 {
73 reg = <0x0 0 0 0 0>;
74 mediatek,mtd-eeprom = <&factory 0x20000>;
75 nvmem-cells = <&macaddr_eeprom_6>;
76 nvmem-cell-names = "mac-address";
77 ieee80211-freq-limit = <5000000 6000000>;
78 };
79 };
80
81 &gmac0 {
82 nvmem-cells = <&macaddr_eeprom_0>;
83 nvmem-cell-names = "mac-address";
84 };