mediatek: add support for Bananapi BPi-R3
[openwrt/staging/lynxis.git] / target / linux / mediatek / dts / mt7986a-bananapi-bpi-r3-emmc-nor.dts
1 /* SPDX-License-Identifier: (GPL-2.0-only OR MIT) */
2
3 /dts-v1/;
4 /plugin/;
5
6 / {
7 compatible = "bananapi,bpi-r3", "mediatek,mt7986a";
8
9 fragment@0 {
10 target-path = "/soc/mmc@11230000";
11 __overlay__ {
12 pinctrl-names = "default", "state_uhs";
13 pinctrl-0 = <&mmc0_pins_default>;
14 pinctrl-1 = <&mmc0_pins_uhs>;
15 bus-width = <8>;
16 max-frequency = <200000000>;
17 /delete-property/ cap-sd-highspeed;
18 cap-mmc-highspeed;
19 mmc-hs200-1_8v;
20 mmc-hs400-1_8v;
21 hs400-ds-delay = <0x14014>;
22 vmmc-supply = <&reg_3p3v>;
23 vqmmc-supply = <&reg_1p8v>;
24 non-removable;
25 no-sd;
26 no-sdio;
27 status = "okay";
28 };
29 };
30
31 fragment@1 {
32 target-path = "/soc/spi@1100a000";
33 __overlay__ {
34 flash@0 {
35 compatible = "jedec,spi-nor";
36 reg = <0>;
37 spi-max-frequency = <10000000>;
38
39 partitions {
40 compatible = "fixed-partitions";
41 #address-cells = <1>;
42 #size-cells = <1>;
43
44 partition@0 {
45 label = "bl2";
46 reg = <0x0 0x40000>;
47 read-only;
48 };
49
50 partition@40000 {
51 label = "u-boot-env";
52 reg = <0x40000 0x40000>;
53 };
54
55 partition@80000 {
56 label = "reserved2";
57 reg = <0x80000 0x80000>;
58 };
59
60 partition@100000 {
61 label = "fip";
62 reg = <0x100000 0x80000>;
63 read-only;
64 };
65
66 partition@180000 {
67 label = "recovery";
68 reg = <0x180000 0xa80000>;
69 };
70
71 partition@c00000 {
72 label = "fit";
73 reg = <0xc00000 0x1400000>;
74 compatible = "denx,fit";
75 };
76 };
77 };
78 };
79 };
80 };