mediatek: convert to nvmem-layout
[openwrt/staging/wigyori.git] / target / linux / mediatek / dts / mt7622-ubnt-unifi-6-lr-v3.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "mt7622-ubnt-unifi-6-lr-v3.dtsi"
4
5 / {
6 model = "Ubiquiti UniFi 6 LR v3";
7 compatible = "ubnt,unifi-6-lr-v3", "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 nvmem-layout {
43 compatible = "fixed-layout";
44 #address-cells = <1>;
45 #size-cells = <1>;
46
47 macaddr_eeprom_0: macaddr@0 {
48 reg = <0x0 0x6>;
49 };
50
51 macaddr_eeprom_6: macaddr@6 {
52 reg = <0x6 0x6>;
53 };
54 };
55 };
56
57 partition@120000 {
58 label = "bs";
59 reg = <0x120000 0x10000>;
60 };
61
62 partition@130000 {
63 label = "cfg";
64 reg = <0x130000 0x100000>;
65 read-only;
66 };
67
68 partition@230000 {
69 compatible = "denx,fit";
70 label = "firmware";
71 reg = <0x230000 0x1ee0000>;
72 };
73
74 partition@2110000 {
75 label = "kernel1";
76 reg = <0x2110000 0x1ee0000>;
77 };
78 };
79
80 &wmac {
81 mediatek,mtd-eeprom = <&factory 0x0>;
82 nvmem-cells = <&macaddr_eeprom_0>;
83 nvmem-cell-names = "mac-address";
84 status = "okay";
85 };
86
87 &slot0 {
88 wifi@0,0 {
89 reg = <0x0 0 0 0 0>;
90 mediatek,mtd-eeprom = <&factory 0x20000>;
91 nvmem-cells = <&macaddr_eeprom_6>;
92 nvmem-cell-names = "mac-address";
93 ieee80211-freq-limit = <5000000 6000000>;
94 };
95 };
96
97 &gmac0 {
98 nvmem-cells = <&macaddr_eeprom_0>;
99 nvmem-cell-names = "mac-address";
100 };