mediatek: add alternative UBI NAND layout for Linksys E8450
[openwrt/openwrt.git] / target / linux / mediatek / dts / mt7622-linksys-e8450-ubi.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 (UBI)";
8 compatible = "linksys,e8450-ubi", "mediatek,mt7622";
9
10 aliases {
11 label-mac-device = &wan;
12 };
13 };
14
15 &snand {
16 partitions {
17 compatible = "fixed-partitions";
18 #address-cells = <1>;
19 #size-cells = <1>;
20
21 partition@0 {
22 label = "bl2";
23 reg = <0x0 0x80000>;
24 read-only;
25 };
26
27 partition@80000 {
28 label = "fip";
29 reg = <0x80000 0x140000>;
30 read-only;
31 };
32
33 factory: partition@1c0000 {
34 label = "factory";
35 reg = <0x1c0000 0x100000>;
36 read-only;
37 };
38
39 partition@300000 {
40 label = "ubi";
41 reg = <0x300000 0x7d00000>;
42 };
43 };
44 };
45
46 &wmac {
47 mediatek,mtd-eeprom = <&factory 0x0>;
48 status = "okay";
49 };
50
51 &wmac1 {
52 mediatek,mtd-eeprom = <&factory 0x5000>;
53 };
54
55 &gmac0 {
56 mtd-mac-address = <&factory 0x7fff4>;
57 };
58
59 &wan {
60 mtd-mac-address = <&factory 0x7fffa>;
61 };