kernel: bump 5.4 to 5.4.112
[openwrt/openwrt.git] / target / linux / mediatek / patches-5.4 / 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 @@ -108,7 +108,7 @@
4 };
5
6 &bch {
7 - status = "disabled";
8 + status = "okay";
9 };
10
11 &btif {
12 @@ -283,14 +283,40 @@
13 status = "disabled";
14 };
15
16 -&nor_flash {
17 +&snfi {
18 pinctrl-names = "default";
19 - pinctrl-0 = <&spi_nor_pins>;
20 - status = "disabled";
21 + pinctrl-0 = <&serial_nand_pins>;
22 + status = "okay";
23
24 - flash@0 {
25 - compatible = "jedec,spi-nor";
26 + snand: spi_nand@0 {
27 + #address-cells = <1>;
28 + #size-cells = <1>;
29 + compatible = "spi-nand";
30 + spi-max-frequency = <104000000>;
31 reg = <0>;
32 +
33 + partitions {
34 + compatible = "fixed-partitions";
35 + #address-cells = <1>;
36 + #size-cells = <1>;
37 +
38 + partition@0 {
39 + label = "bl2";
40 + reg = <0x0 0x80000>;
41 + read-only;
42 + };
43 +
44 + partition@80000 {
45 + label = "fip";
46 + reg = <0x80000 0x200000>;
47 + read-only;
48 + };
49 +
50 + partition@280000 {
51 + label = "ubi";
52 + reg = <0x280000 0x7d80000>;
53 + };
54 + };
55 };
56 };
57