ramips: mt7621: convert to nvmem-layout
[openwrt/staging/hauke.git] / target / linux / ramips / dts / mt7621_cudy_x6-v1.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-v1", "mediatek,mt7621-soc";
7 model = "CUDY X6 v1";
8 };
9
10 &partitions {
11 partition@50000 {
12 compatible = "denx,uimage";
13 label = "firmware";
14 reg = <0x50000 0x1f80000>;
15 };
16
17 partition@1fd0000 {
18 label = "debug";
19 reg = <0x1fd0000 0x10000>;
20 read-only;
21 };
22
23 partition@1fe0000 {
24 label = "backup";
25 reg = <0x1fe0000 0x10000>;
26 read-only;
27 };
28
29 partition@1ff0000 {
30 label = "bdinfo";
31 reg = <0x1ff0000 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 reg = <0xde00 0x6>;
41 };
42 };
43 };
44 };
45
46 &gmac0 {
47 nvmem-cells = <&macaddr_bdinfo_de00>;
48 nvmem-cell-names = "mac-address";
49 };
50
51 &gmac1 {
52 nvmem-cells = <&macaddr_bdinfo_de00>;
53 nvmem-cell-names = "mac-address";
54 mac-address-increment = <1>;
55 };
56
57 &wifi {
58 nvmem-cells = <&macaddr_bdinfo_de00>;
59 nvmem-cell-names = "mac-address";
60 };