uboot-mediatek: build fully-featured U-Boot for MT7988 RFB
[openwrt/staging/nbd.git] / target / linux / mediatek / files-6.1 / arch / arm64 / boot / dts / mediatek / mt7988a-rfb-spim-nand.dtsi
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 #include "mt7988a-rfb.dtsi"
9
10 &pio {
11 spi0_flash_pins: spi0-pins {
12 mux {
13 function = "spi";
14 groups = "spi0", "spi0_wp_hold";
15 };
16 };
17 };
18
19 &spi0 {
20 pinctrl-names = "default";
21 pinctrl-0 = <&spi0_flash_pins>;
22 status = "okay";
23
24 spi_nand: spi_nand@0 {
25 compatible = "spi-nand";
26 reg = <0>;
27 spi-max-frequency = <52000000>;
28 spi-tx-buswidth = <4>;
29 spi-rx-buswidth = <4>;
30 };
31
32 };
33
34 &spi_nand {
35 mediatek,nmbm;
36 mediatek,bmt-max-ratio = <1>;
37 mediatek,bmt-max-reserved-blocks = <64>;
38
39 partitions {
40 compatible = "fixed-partitions";
41 #address-cells = <1>;
42 #size-cells = <1>;
43
44 partition@0 {
45 label = "BL2";
46 reg = <0x00000 0x0100000>;
47 read-only;
48 };
49
50 partition@100000 {
51 label = "u-boot-env";
52 reg = <0x0100000 0x0080000>;
53 };
54
55 factory: partition@180000 {
56 label = "Factory";
57 reg = <0x180000 0x0400000>;
58 };
59
60 partition@580000 {
61 label = "FIP";
62 reg = <0x580000 0x0200000>;
63 };
64
65 partition@780000 {
66 label = "ubi";
67 reg = <0x780000 0x7080000>;
68 };
69 };
70 };