mediatek: add patches for 5.15 and kernel config for mt7622
[openwrt/openwrt.git] / target / linux / mediatek / patches-5.15 / 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 @@ -259,14 +259,32 @@
4 status = "disabled";
5 };
6
7 -&nor_flash {
8 +&snand {
9 pinctrl-names = "default";
10 - pinctrl-0 = <&spi_nor_pins>;
11 - status = "disabled";
12 + pinctrl-0 = <&serial_nand_pins>;
13 + mediatek,quad-spi;
14 + status = "okay";
15 + partitions {
16 + compatible = "fixed-partitions";
17 + #address-cells = <1>;
18 + #size-cells = <1>;
19 +
20 + partition@0 {
21 + label = "bl2";
22 + reg = <0x0 0x80000>;
23 + read-only;
24 + };
25 +
26 + partition@80000 {
27 + label = "fip";
28 + reg = <0x80000 0x200000>;
29 + read-only;
30 + };
31
32 - flash@0 {
33 - compatible = "jedec,spi-nor";
34 - reg = <0>;
35 + partition@280000 {
36 + label = "ubi";
37 + reg = <0x280000 0x7d80000>;
38 + };
39 };
40 };
41