ramips: mt7621: add support for Cudy X6 v2
[openwrt/openwrt.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 compatible = "nvmem-cells";
35 #address-cells = <1>;
36 #size-cells = <1>;
37
38 macaddr_bdinfo_de00: macaddr@de00 {
39 reg = <0xde00 0x6>;
40 };
41 };
42 };
43
44 &gmac0 {
45 nvmem-cells = <&macaddr_bdinfo_de00>;
46 nvmem-cell-names = "mac-address";
47 };
48
49 &gmac1 {
50 nvmem-cells = <&macaddr_bdinfo_de00>;
51 nvmem-cell-names = "mac-address";
52 mac-address-increment = <1>;
53 };
54
55 &wifi {
56 nvmem-cells = <&macaddr_bdinfo_de00>;
57 nvmem-cell-names = "mac-address";
58 };