33bd57b3fb63b309666653247bb1cb4cb966b9d7
[openwrt/staging/dangole.git] / target / linux / mediatek / files-5.15 / arch / arm64 / boot / dts / mediatek / mt7988a-rfb-spim-nor.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 = <&spi2>;
15 __overlay__ {
16 pinctrl-names = "default";
17 pinctrl-0 = <&spi2_flash_pins>;
18 status = "okay";
19
20 flash@0 {
21 #address-cells = <1>;
22 #size-cells = <1>;
23 compatible = "jedec,spi-nor";
24 spi-cal-enable;
25 spi-cal-mode = "read-data";
26 spi-cal-datalen = <7>;
27 spi-cal-data = /bits/ 8 <
28 0x53 0x46 0x5F 0x42 0x4F 0x4F 0x54>; /* SF_BOOT */
29 spi-cal-addrlen = <1>;
30 spi-cal-addr = /bits/ 32 <0x0>;
31 reg = <0>;
32 spi-max-frequency = <52000000>;
33 spi-tx-bus-width = <4>;
34 spi-rx-bus-width = <4>;
35
36 partition@00000 {
37 label = "BL2";
38 reg = <0x00000 0x0040000>;
39 };
40 partition@40000 {
41 label = "u-boot-env";
42 reg = <0x40000 0x0010000>;
43 };
44 partition@50000 {
45 label = "Factory";
46 reg = <0x50000 0x0200000>;
47 };
48 partition@250000 {
49 label = "FIP";
50 reg = <0x250000 0x0080000>;
51 };
52 partition@2D0000 {
53 label = "firmware";
54 reg = <0x2D0000 0x1D30000>;
55 };
56 };
57 };
58 };
59 };