summaryrefslogtreecommitdiffstats
path: root/arch/arm64/boot/dts/mediatek/mt7986a-bananapi-bpi-r3-nor.dtso
blob: e48881be4ed60c98bc89214cfe7b1dfdbf1ddf35 (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
/* SPDX-License-Identifier: (GPL-2.0-only OR MIT) */
/*
 * Authors: Daniel Golle <daniel@makrotopia.org>
 *          Frank Wunderlich <frank-w@public-files.de>
 */

/dts-v1/;
/plugin/;

/ {
	compatible = "bananapi,bpi-r3", "mediatek,mt7986a";

	fragment@0 {
		target-path = "/soc/spi@1100a000";
		__overlay__ {
			#address-cells = <1>;
			#size-cells = <0>;
			flash@0 {
				compatible = "jedec,spi-nor";
				reg = <0>;
				spi-max-frequency = <10000000>;

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

					partition@0 {
						label = "bl2";
						reg = <0x0 0x40000>;
						read-only;
					};

					partition@40000 {
						label = "u-boot-env";
						reg = <0x40000 0x40000>;
					};

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

					partition@100000 {
						label = "fip";
						reg = <0x100000 0x80000>;
						read-only;
					};

					partition@180000 {
						label = "recovery";
						reg = <0x180000 0xa80000>;
					};

					partition@c00000 {
						label = "fit";
						reg = <0xc00000 0x1400000>;
					};
				};
			};
		};
	};
};