aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/mediatek/dts/mt7622-linksys-e8450.dts
blob: 8552dbf1a92b117a4934b4e3761ebea1a8eb1d69 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
// SPDX-License-Identifier: (GPL-2.0-only OR MIT)

/dts-v1/;
#include "mt7622-linksys-e8450.dtsi"

/ {
	model = "Linksys E8450";
	compatible = "linksys,e8450", "mediatek,mt7622";

	aliases {
		label-mac-device = &wan;
	};
};

&snand {
	mediatek,bmt-v2;
	mediatek,bmt-table-size = <0x1000>;

	partitions {
		compatible = "fixed-partitions";
		#address-cells = <1>;
		#size-cells = <1>;

		partition@0 {
			label = "Preloader";
			reg = <0x00000 0x0080000>;
			read-only;
		};

		partition@80000 {
			label = "ATF";
			reg = <0x80000 0x0040000>;
		};

		partition@c0000 {
			label = "u-boot";
			reg = <0xc0000 0x0080000>;
		};

		partition@140000 {
			label = "u-boot-env";
			reg = <0x140000 0x0080000>;
		};

		factory: partition@1c0000 {
			label = "factory";
			reg = <0x1c0000 0x0100000>;
		};

		partition@300000 {
			label = "devinfo";
			reg = <0x300000 0x020000>;
		};

		partition@320000 {
			label = "senv";
			reg = <0x320000 0x020000>;
		};

		partition@360000 {
			label = "bootseq";
			reg = <0x360000 0x020000>;
		};

		partition@500000 {
			label = "firmware1";
			compatible = "denx,fit";
			openwrt,cmdline-match = "mtdparts=master";
			reg = <0x500000 0x1E00000>;
		};

		partition@2300000 {
			label = "firmware2";
			compatible = "denx,fit";
			openwrt,cmdline-match = "mtdparts=slave";
			reg = <0x2300000 0x1E00000>;
		};

		partition@4100000 {
			label = "data";
			reg = <0x4100000 0x1900000>;
		};

		partition@5100000 {
			label = "mfg";
			reg = <0x5a00000 0x1400000>;
		};
	};
};

&wmac {
	mediatek,mtd-eeprom = <&factory 0x0000>;
	status = "okay";
};

&wmac1 {
	mediatek,mtd-eeprom = <&factory 0x05000>;
};

&gmac0 {
	nvmem-cells = <&macaddr_factory_7fff4>;
	nvmem-cell-names = "mac-address";
};

&wan {
	nvmem-cells = <&macaddr_factory_7fffa>;
	nvmem-cell-names = "mac-address";
};

&factory {
	compatible = "nvmem-cells";
	#address-cells = <1>;
	#size-cells = <1>;

	macaddr_factory_7fff4: macaddr@7fff4 {
		reg = <0x7fff4 0x6>;
	};

	macaddr_factory_7fffa: macaddr@7fffa {
		reg = <0x7fffa 0x6>;
	};
};