1/* SPDX-License-Identifier: (GPL-2.0-only OR MIT) */
2/*
3 * Authors: Daniel Golle <daniel@makrotopia.org>
4 *          Frank Wunderlich <frank-w@public-files.de>
5 */
6
7/dts-v1/;
8/plugin/;
9
10/ {
11	compatible = "bananapi,bpi-r3", "mediatek,mt7986a";
12
13	fragment@0 {
14		target-path = "/soc/spi@1100a000";
15		__overlay__ {
16			#address-cells = <1>;
17			#size-cells = <0>;
18			flash@0 {
19				compatible = "jedec,spi-nor";
20				reg = <0>;
21				spi-max-frequency = <10000000>;
22
23				partitions {
24					compatible = "fixed-partitions";
25					#address-cells = <1>;
26					#size-cells = <1>;
27
28					partition@0 {
29						label = "bl2";
30						reg = <0x0 0x20000>;
31						read-only;
32					};
33
34					partition@20000 {
35						label = "reserved";
36						reg = <0x20000 0x20000>;
37					};
38
39					partition@40000 {
40						label = "u-boot-env";
41						reg = <0x40000 0x40000>;
42					};
43
44					partition@80000 {
45						label = "reserved2";
46						reg = <0x80000 0x80000>;
47					};
48
49					partition@100000 {
50						label = "fip";
51						reg = <0x100000 0x80000>;
52						read-only;
53					};
54
55					partition@180000 {
56						label = "recovery";
57						reg = <0x180000 0xa80000>;
58					};
59
60					partition@c00000 {
61						label = "fit";
62						reg = <0xc00000 0x1400000>;
63					};
64				};
65			};
66		};
67	};
68};
69