mediatek: convert to nvmem-layout
[openwrt/staging/hauke.git] / target / linux / mediatek / dts / mt7622-linksys-e8450.dts
1 // SPDX-License-Identifier: (GPL-2.0-only OR MIT)
2
3 /dts-v1/;
4 #include "mt7622-linksys-e8450.dtsi"
5
6 / {
7 model = "Linksys E8450";
8 compatible = "linksys,e8450", "mediatek,mt7622";
9
10 aliases {
11 label-mac-device = &wan;
12 };
13 };
14
15 &snand {
16 mediatek,bmt-v2;
17 mediatek,bmt-table-size = <0x1000>;
18
19 partitions {
20 compatible = "fixed-partitions";
21 #address-cells = <1>;
22 #size-cells = <1>;
23
24 partition@0 {
25 label = "Preloader";
26 reg = <0x00000 0x0080000>;
27 read-only;
28 };
29
30 partition@80000 {
31 label = "ATF";
32 reg = <0x80000 0x0040000>;
33 };
34
35 partition@c0000 {
36 label = "u-boot";
37 reg = <0xc0000 0x0080000>;
38 };
39
40 partition@140000 {
41 label = "u-boot-env";
42 reg = <0x140000 0x0080000>;
43 };
44
45 factory: partition@1c0000 {
46 label = "factory";
47 reg = <0x1c0000 0x0100000>;
48
49 nvmem-layout {
50 compatible = "fixed-layout";
51 #address-cells = <1>;
52 #size-cells = <1>;
53
54 macaddr_factory_7fff4: macaddr@7fff4 {
55 reg = <0x7fff4 0x6>;
56 };
57
58 macaddr_factory_7fffa: macaddr@7fffa {
59 reg = <0x7fffa 0x6>;
60 };
61 };
62 };
63
64 partition@300000 {
65 label = "devinfo";
66 reg = <0x300000 0x020000>;
67 };
68
69 partition@320000 {
70 label = "senv";
71 reg = <0x320000 0x020000>;
72 };
73
74 partition@360000 {
75 label = "bootseq";
76 reg = <0x360000 0x020000>;
77 };
78
79 partition@500000 {
80 label = "firmware1";
81 compatible = "denx,fit";
82 openwrt,cmdline-match = "mtdparts=master";
83 reg = <0x500000 0x1E00000>;
84 };
85
86 partition@2300000 {
87 label = "firmware2";
88 compatible = "denx,fit";
89 openwrt,cmdline-match = "mtdparts=slave";
90 reg = <0x2300000 0x1E00000>;
91 };
92
93 partition@4100000 {
94 label = "data";
95 reg = <0x4100000 0x1900000>;
96 };
97
98 partition@5100000 {
99 label = "mfg";
100 reg = <0x5a00000 0x1400000>;
101 };
102 };
103 };
104
105 &wmac {
106 mediatek,mtd-eeprom = <&factory 0x0000>;
107 status = "okay";
108 };
109
110 &wmac1 {
111 mediatek,mtd-eeprom = <&factory 0x05000>;
112 };
113
114 &gmac0 {
115 nvmem-cells = <&macaddr_factory_7fff4>;
116 nvmem-cell-names = "mac-address";
117 };
118
119 &wan {
120 nvmem-cells = <&macaddr_factory_7fffa>;
121 nvmem-cell-names = "mac-address";
122 };