aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ath79/dts/qca9533_qca_ap143-16m.dts
blob: 05d87e3995990a66142fba8734b227bd503aff2a (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
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT

#include "qca9533_qca_ap143.dtsi"

/ {
	model = "Qualcomm Atheros AP143 (16M) reference board";
	compatible = "qca,ap143-16m", "qca,qca9533";

	virtual_flash {
		compatible = "mtd-concat";
		devices = <&fwconcat0 &fwconcat1>;

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

			partition@0 {
				reg = <0x0 0x0>;
				label = "firmware";
				compatible = "openwrt,uimage", "denx,uimage";
				openwrt,ih-magic = <IH_MAGIC_OKLI>;
			};
		};
	};
};

&partitions {
	fwconcat0: partition@50000 {
		label = "fwconcat0";
		reg = <0x050000 0xe30000>;
	};

	partition@e80000 {
		label = "loader";
		reg = <0xe80000 0x10000>;
	};

	fwconcat1: partition@e90000 {
		label = "fwconcat1";
		reg = <0xe90000 0x160000>;
	};

	art: partition@ff0000 {
		label = "art";
		reg = <0xff0000 0x010000>;
		read-only;
	};
};

&eth0 {
	nvmem-cells = <&macaddr_art_0>;
	nvmem-cell-names = "mac-address";
};

&eth1 {
	nvmem-cells = <&macaddr_art_6>;
	nvmem-cell-names = "mac-address";
};

&wmac {
	mtd-cal-data = <&art 0x1000>;
};

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

	macaddr_art_0: macaddr@0 {
		reg = <0x0 0x6>;
	};

	macaddr_art_6: macaddr@6 {
		reg = <0x6 0x6>;
	};
};