ea148315f055345418516f7a3ce7c22f30f75cbc
[openwrt/staging/jow.git] / target / linux / mediatek / files-5.15 / arch / arm64 / boot / dts / mediatek / mt7986a-rfb-spim-nor.dts
1 /* SPDX-License-Identifier: (GPL-2.0-only OR MIT) */
2
3 #include "mt7986a-rfb.dtsi"
4
5 / {
6 compatible = "mediatek,mt7986a-rfb-snor";
7 };
8
9 &spi0 {
10 status = "okay";
11
12 spi_nor: spi_nor@0 {
13 #address-cells = <1>;
14 #size-cells = <1>;
15 compatible = "jedec,spi-nor";
16 reg = <0>;
17 spi-max-frequency = <52000000>;
18 spi-tx-bus-width = <4>;
19 spi-rx-bus-width = <4>;
20 partitions {
21 compatible = "fixed-partitions";
22 #address-cells = <1>;
23 #size-cells = <1>;
24
25 partition@00000 {
26 label = "BL2";
27 reg = <0x00000 0x0040000>;
28 };
29 partition@40000 {
30 label = "u-boot-env";
31 reg = <0x40000 0x0010000>;
32 };
33 factory: partition@50000 {
34 label = "Factory";
35 reg = <0x50000 0x00B0000>;
36 };
37 partition@100000 {
38 label = "FIP";
39 reg = <0x100000 0x0080000>;
40 };
41 partition@180000 {
42 label = "firmware";
43 reg = <0x180000 0xE00000>;
44 };
45 };
46 };
47 };
48
49 &wifi {
50 mediatek,mtd-eeprom = <&factory 0>;
51 };