mediatek: also move &slot0 from dtsi down to board dts
[openwrt/openwrt.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
50 partition@300000 {
51 label = "devinfo";
52 reg = <0x300000 0x020000>;
53 };
54
55 partition@320000 {
56 label = "senv";
57 reg = <0x320000 0x020000>;
58 };
59
60 partition@360000 {
61 label = "bootseq";
62 reg = <0x360000 0x020000>;
63 };
64
65 partition@500000 {
66 label = "firmware1";
67 compatible = "denx,fit";
68 openwrt,cmdline-match = "mtdparts=master";
69 reg = <0x500000 0x1E00000>;
70 };
71
72 partition@2300000 {
73 label = "firmware2";
74 compatible = "denx,fit";
75 openwrt,cmdline-match = "mtdparts=slave";
76 reg = <0x2300000 0x1E00000>;
77 };
78
79 partition@4100000 {
80 label = "data";
81 reg = <0x4100000 0x1900000>;
82 };
83
84 partition@5100000 {
85 label = "mfg";
86 reg = <0x5a00000 0x1400000>;
87 };
88 };
89 };
90
91 &wmac {
92 mediatek,mtd-eeprom = <&factory 0x0000>;
93 status = "okay";
94 };
95
96 &wmac1 {
97 mediatek,mtd-eeprom = <&factory 0x05000>;
98 };
99
100 &gmac0 {
101 nvmem-cells = <&macaddr_factory_7fff4>;
102 nvmem-cell-names = "mac-address";
103 };
104
105 &wan {
106 nvmem-cells = <&macaddr_factory_7fffa>;
107 nvmem-cell-names = "mac-address";
108 };
109
110 &factory {
111 compatible = "nvmem-cells";
112 #address-cells = <1>;
113 #size-cells = <1>;
114
115 macaddr_factory_7fff4: macaddr@7fff4 {
116 reg = <0x7fff4 0x6>;
117 };
118
119 macaddr_factory_7fffa: macaddr@7fffa {
120 reg = <0x7fffa 0x6>;
121 };
122 };