mediatek: mt7622: convert BPi-R64 to all-UBI layout and fitblk
[openwrt/staging/dangole.git] / package / boot / uboot-mediatek / patches / 403-add-bananapi_bpi-r64-snand.patch
1 --- a/arch/arm/dts/mt7622-bananapi-bpi-r64.dts
2 +++ b/arch/arm/dts/mt7622-bananapi-bpi-r64.dts
3 @@ -20,7 +20,7 @@
4 };
5
6 aliases {
7 - spi0 = &snfi;
8 + spi0 = &snand;
9 ethernet0 = ð
10 };
11
12 @@ -208,16 +208,27 @@
13 };
14 };
15
16 -&snfi {
17 - pinctrl-names = "default", "snfi";
18 - pinctrl-0 = <&snor_pins>;
19 - pinctrl-1 = <&snfi_pins>;
20 +&snand {
21 + pinctrl-names = "default";
22 + pinctrl-0 = <&snfi_pins>;
23 + quad-spi;
24 status = "okay";
25
26 - spi-flash@0{
27 - compatible = "jedec,spi-nor";
28 - reg = <0>;
29 - bootph-all;
30 + partitions {
31 + compatible = "fixed-partitions";
32 + #address-cells = <1>;
33 + #size-cells = <1>;
34 +
35 + partition@0 {
36 + label = "bl2";
37 + reg = <0x0 0x80000>;
38 + };
39 +
40 + partition@80000 {
41 + label = "ubi";
42 + reg = <0x80000 0x7f80000>;
43 + compatible = "linux,ubi";
44 + };
45 };
46 };
47