mediatek: disable btif for mt7622 devices
[openwrt/staging/stintel.git] / target / linux / mediatek / patches-6.1 / 115-dts-bpi64-add-snand-support.patch
1 --- a/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts
2 +++ b/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts
3 @@ -251,14 +251,42 @@
4 status = "disabled";
5 };
6
7 -&nor_flash {
8 - pinctrl-names = "default";
9 - pinctrl-0 = <&spi_nor_pins>;
10 - status = "disabled";
11 +&bch {
12 + status = "okay";
13 +};
14
15 +&snfi {
16 + pinctrl-names = "default";
17 + pinctrl-0 = <&serial_nand_pins>;
18 + status = "okay";
19 flash@0 {
20 - compatible = "jedec,spi-nor";
21 + compatible = "spi-nand";
22 reg = <0>;
23 + spi-tx-bus-width = <4>;
24 + spi-rx-bus-width = <4>;
25 + nand-ecc-engine = <&snfi>;
26 + partitions {
27 + compatible = "fixed-partitions";
28 + #address-cells = <1>;
29 + #size-cells = <1>;
30 +
31 + partition@0 {
32 + label = "bl2";
33 + reg = <0x0 0x80000>;
34 + read-only;
35 + };
36 +
37 + partition@80000 {
38 + label = "fip";
39 + reg = <0x80000 0x200000>;
40 + read-only;
41 + };
42 +
43 + partition@280000 {
44 + label = "ubi";
45 + reg = <0x280000 0x7d80000>;
46 + };
47 + };
48 };
49 };
50