mediatek: copy files-6.1 to files-6.6
[openwrt/staging/stintel.git] / target / linux / mediatek / files-6.6 / arch / arm64 / boot / dts / mediatek / mt7988a-rfb-snfi-nand.dtso
1 // SPDX-License-Identifier: (GPL-2.0 OR MIT)
2 /*
3 * Copyright (C) 2022 MediaTek Inc.
4 * Author: Sam.Shih <sam.shih@mediatek.com>
5 */
6
7 /dts-v1/;
8 /plugin/;
9
10 / {
11 compatible = "mediatek,mt7988a-rfb", "mediatek,mt7988a";
12
13 fragment@0 {
14 target = <&snand>;
15 __overlay__ {
16 status = "okay";
17
18 flash@0 {
19 compatible = "spi-nand";
20 reg = <0>;
21 spi-max-frequency = <52000000>;
22 spi-tx-bus-width = <4>;
23 spi-rx-bus-width = <4>;
24 mediatek,nmbm;
25 mediatek,bmt-max-ratio = <1>;
26 mediatek,bmt-max-reserved-blocks = <64>;
27
28 partitions {
29 compatible = "fixed-partitions";
30 #address-cells = <1>;
31 #size-cells = <1>;
32
33 partition@0 {
34 label = "BL2";
35 reg = <0x00000 0x0100000>;
36 read-only;
37 };
38
39 partition@100000 {
40 label = "u-boot-env";
41 reg = <0x0100000 0x0080000>;
42 };
43
44 partition@180000 {
45 label = "Factory";
46 reg = <0x180000 0x0400000>;
47 };
48
49 partition@580000 {
50 label = "FIP";
51 reg = <0x580000 0x0200000>;
52 };
53
54 partition@780000 {
55 label = "ubi";
56 reg = <0x780000 0x7080000>;
57 };
58 };
59 };
60 };
61 };
62
63 fragment@1 {
64 target = <&bch>;
65 __overlay__ {
66 status = "okay";
67 };
68 };
69 };