ramips: mt7621: convert NETGEAR devices EEPROM to NVMEM format
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7621_cudy_x6-v2.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "mt7621_cudy_x6.dtsi"
4
5 / {
6 compatible = "cudy,x6-v2", "mediatek,mt7621-soc";
7 model = "CUDY X6 v2";
8 };
9
10 &partitions {
11 partition@50000 {
12 compatible = "denx,uimage";
13 label = "firmware";
14 reg = <0x50000 0xf80000>;
15 };
16
17 partition@fd0000 {
18 label = "debug";
19 reg = <0xfd0000 0x10000>;
20 read-only;
21 };
22
23 partition@fe0000 {
24 label = "backup";
25 reg = <0xfe0000 0x10000>;
26 read-only;
27 };
28
29 partition@ff0000 {
30 label = "bdinfo";
31 reg = <0xff0000 0x10000>;
32 read-only;
33
34 nvmem-layout {
35 compatible = "fixed-layout";
36 #address-cells = <1>;
37 #size-cells = <1>;
38
39 macaddr_bdinfo_de00: macaddr@de00 {
40 compatible = "mac-base";
41 reg = <0xde00 0x6>;
42 #nvmem-cell-cells = <1>;
43 };
44 };
45 };
46 };
47
48 &gmac0 {
49 nvmem-cells = <&macaddr_bdinfo_de00 0>;
50 nvmem-cell-names = "mac-address";
51 };
52
53 &gmac1 {
54 nvmem-cells = <&macaddr_bdinfo_de00 1>;
55 nvmem-cell-names = "mac-address";
56 };
57
58 &wifi {
59 nvmem-cells = <&macaddr_bdinfo_de00 0>;
60 nvmem-cell-names = "mac-address";
61 };