134e5997e2509856d887824cc93cfcc81f540189
[openwrt/staging/jow.git] / target / linux / mediatek / patches-5.15 / 131-dts-mt7622-add-snand-support.patch
1 --- a/arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts
2 +++ b/arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts
3 @@ -539,6 +539,65 @@
4 status = "disabled";
5 };
6
7 +&bch {
8 + status = "okay";
9 +};
10 +
11 +&snfi {
12 + pinctrl-names = "default";
13 + pinctrl-0 = <&serial_nand_pins>;
14 + status = "okay";
15 + flash@0 {
16 + compatible = "spi-nand";
17 + reg = <0>;
18 + spi-tx-bus-width = <4>;
19 + spi-rx-bus-width = <4>;
20 + nand-ecc-engine = <&snfi>;
21 +
22 + partitions {
23 + compatible = "fixed-partitions";
24 + #address-cells = <1>;
25 + #size-cells = <1>;
26 +
27 + partition@0 {
28 + label = "Preloader";
29 + reg = <0x00000 0x0080000>;
30 + read-only;
31 + };
32 +
33 + partition@80000 {
34 + label = "ATF";
35 + reg = <0x80000 0x0040000>;
36 + };
37 +
38 + partition@c0000 {
39 + label = "Bootloader";
40 + reg = <0xc0000 0x0080000>;
41 + };
42 +
43 + partition@140000 {
44 + label = "Config";
45 + reg = <0x140000 0x0080000>;
46 + };
47 +
48 + partition@1c0000 {
49 + label = "Factory";
50 + reg = <0x1c0000 0x0100000>;
51 + };
52 +
53 + partition@200000 {
54 + label = "firmware";
55 + reg = <0x2c0000 0x2000000>;
56 + };
57 +
58 + partition@2200000 {
59 + label = "User_data";
60 + reg = <0x22c0000 0x4000000>;
61 + };
62 + };
63 + };
64 +};
65 +
66 &spi0 {
67 pinctrl-names = "default";
68 pinctrl-0 = <&spic0_pins>;