Skip to content

Commit ace4652

Browse files
committed
dts: r4lite: add basic nand/nor overlays (nor partitions copied from r3)
1 parent cd7b1fc commit ace4652

3 files changed

Lines changed: 129 additions & 0 deletions

File tree

arch/arm64/boot/dts/mediatek/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ dtb-$(CONFIG_ARCH_MEDIATEK) += mt7987a-bananapi-bpi-r4-lite-1pcie-2L.dtbo
2525
dtb-$(CONFIG_ARCH_MEDIATEK) += mt7987a-bananapi-bpi-r4-lite-2pcie-1L.dtbo
2626
dtb-$(CONFIG_ARCH_MEDIATEK) += mt7987a-bananapi-bpi-r4-lite-sd.dtbo
2727
dtb-$(CONFIG_ARCH_MEDIATEK) += mt7987a-bananapi-bpi-r4-lite-emmc.dtbo
28+
dtb-$(CONFIG_ARCH_MEDIATEK) += mt7987a-bananapi-bpi-r4-lite-nand.dtbo
29+
dtb-$(CONFIG_ARCH_MEDIATEK) += mt7987a-bananapi-bpi-r4-lite-nor.dtbo
2830
dtb-$(CONFIG_ARCH_MEDIATEK) += mt7987a-bananapi-bpi-r4-lite.dtb
2931
dtb-$(CONFIG_ARCH_MEDIATEK) += mt7988a-bananapi-bpi-r4.dtb
3032
dtb-$(CONFIG_ARCH_MEDIATEK) += mt7988a-bananapi-bpi-r4-2g5.dtb
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
/* SPDX-License-Identifier: (GPL-2.0-only OR MIT) */
2+
/*
3+
* Authors: Daniel Golle <daniel@makrotopia.org>
4+
* Frank Wunderlich <frank-w@public-files.de>
5+
*/
6+
7+
/dts-v1/;
8+
/plugin/;
9+
10+
/ {
11+
compatible = "bananapi,bpi-r4lite", "mediatek,mt7987a";
12+
};
13+
14+
&{/soc/spi@11009800} {
15+
#address-cells = <1>;
16+
#size-cells = <0>;
17+
18+
spi_nand: flash@0 {
19+
compatible = "spi-nand";
20+
reg = <0>;
21+
spi-max-frequency = <10000000>;
22+
spi-tx-bus-width = <4>;
23+
spi-rx-bus-width = <4>;
24+
25+
partitions {
26+
compatible = "fixed-partitions";
27+
#address-cells = <1>;
28+
#size-cells = <1>;
29+
30+
partition@0 {
31+
label = "bl2";
32+
reg = <0x0 0x200000>;
33+
};
34+
35+
partition@200000 {
36+
label = "ubi";
37+
reg = <0x200000 0xfe00000>;
38+
compatible = "linux,ubi";
39+
40+
volumes {
41+
ubi-volume-fip {
42+
volname = "fip";
43+
};
44+
45+
ubi-volume-ubootenv {
46+
volname = "ubootenv";
47+
nvmem-layout {
48+
compatible = "u-boot,env-redundant-bool";
49+
};
50+
};
51+
52+
ubi-volume-ubootenv2 {
53+
volname = "ubootenv2";
54+
nvmem-layout {
55+
compatible = "u-boot,env-redundant-bool";
56+
};
57+
};
58+
59+
ubi_rootfs: ubi-volume-rootfs {
60+
volname = "rootfs";
61+
};
62+
};
63+
};
64+
};
65+
};
66+
};
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
/* SPDX-License-Identifier: (GPL-2.0-only OR MIT) */
2+
/*
3+
* Authors: Daniel Golle <daniel@makrotopia.org>
4+
* Frank Wunderlich <frank-w@public-files.de>
5+
*/
6+
7+
/dts-v1/;
8+
/plugin/;
9+
10+
/ {
11+
compatible = "bananapi,bpi-r4lite", "mediatek,mt7987a";
12+
};
13+
14+
&{/soc/spi@11009800} {
15+
#address-cells = <1>;
16+
#size-cells = <0>;
17+
18+
flash@0 {
19+
compatible = "jedec,spi-nor";
20+
reg = <0>;
21+
spi-max-frequency = <10000000>;
22+
23+
partitions {
24+
compatible = "fixed-partitions";
25+
#address-cells = <1>;
26+
#size-cells = <1>;
27+
28+
partition@0 {
29+
label = "bl2";
30+
reg = <0x0 0x40000>;
31+
read-only;
32+
};
33+
34+
partition@40000 {
35+
label = "u-boot-env";
36+
reg = <0x40000 0x40000>;
37+
};
38+
39+
partition@80000 {
40+
label = "reserved2";
41+
reg = <0x80000 0x80000>;
42+
};
43+
44+
partition@100000 {
45+
label = "fip";
46+
reg = <0x100000 0x80000>;
47+
read-only;
48+
};
49+
50+
partition@180000 {
51+
label = "recovery";
52+
reg = <0x180000 0xa80000>;
53+
};
54+
55+
partition@c00000 {
56+
label = "fit";
57+
reg = <0xc00000 0x1400000>;
58+
};
59+
};
60+
};
61+
};

0 commit comments

Comments
 (0)