mediatek: fix the name of buswidth to bus-width
[openwrt/staging/hauke.git] / target / linux / mediatek / files-5.15 / arch / arm64 / boot / dts / mediatek / mt7988a-rfb-spim-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 = <&spi0>;
15 __overlay__ {
16 pinctrl-names = "default";
17 pinctrl-0 = <&spi0_flash_pins>;
18 status = "okay";
19
20 flash@0 {
21 compatible = "spi-nand";
22 reg = <0>;
23 spi-max-frequency = <52000000>;
24 spi-tx-bus-width = <4>;
25 spi-rx-bus-width = <4>;
26 mediatek,nmbm;
27 mediatek,bmt-max-ratio = <1>;
28 mediatek,bmt-max-reserved-blocks = <64>;
29
30 partitions {
31 compatible = "fixed-partitions";
32 #address-cells = <1>;
33 #size-cells = <1>;
34
35 partition@0 {
36 label = "BL2";
37 reg = <0x00000 0x0100000>;
38 read-only;
39 };
40
41 partition@100000 {
42 label = "u-boot-env";
43 reg = <0x0100000 0x0080000>;
44 };
45
46 partition@180000 {
47 label = "Factory";
48 reg = <0x180000 0x0400000>;
49 };
50
51 partition@580000 {
52 label = "FIP";
53 reg = <0x580000 0x0200000>;
54 };
55
56 partition@780000 {
57 label = "ubi";
58 reg = <0x780000 0x7080000>;
59 };
60 };
61 };
62 };
63 };
64 };