mediatek: add support for Bananapi BPi-R3
[openwrt/staging/noltari.git] / target / linux / mediatek / dts / mt7986a-bananapi-bpi-r3-snand.dts
1 /* SPDX-License-Identifier: (GPL-2.0-only OR MIT) */
2
3 /dts-v1/;
4 /plugin/;
5
6 / {
7 compatible = "bananapi,bpi-r3", "mediatek,mt7986a";
8
9 fragment@0 {
10 target-path = "/soc/spi@1100a000";
11 __overlay__ {
12 nand-flash@0 {
13 compatible = "spi-nand";
14 reg = <0>;
15 spi-max-frequency = <10000000>;
16 spi-tx-buswidth = <4>;
17 spi-rx-buswidth = <4>;
18
19 partitions {
20 compatible = "fixed-partitions";
21 #address-cells = <1>;
22 #size-cells = <1>;
23
24 partition@0 {
25 label = "bl2";
26 reg = <0x0 0x80000>;
27 read-only;
28 };
29
30 partition@80000 {
31 label = "reserved";
32 reg = <0x80000 0x300000>;
33 };
34
35 partition@380000 {
36 label = "fip";
37 reg = <0x380000 0x200000>;
38 read-only;
39 };
40
41 partition@580000 {
42 label = "ubi";
43 reg = <0x580000 0x7a80000>;
44 };
45 };
46 };
47 };
48 };
49 };