2ca865d6e6f8714ea72724ac2a0001e88a5e8b66
[openwrt/staging/hauke.git] / target / linux / mediatek / dts / mt7986a-bananapi-bpi-r3-emmc-snand.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 = "spi-nand";
36 reg = <0>;
37 spi-max-frequency = <10000000>;
38 spi-tx-buswidth = <4>;
39 spi-rx-buswidth = <4>;
40
41 partitions {
42 compatible = "fixed-partitions";
43 #address-cells = <1>;
44 #size-cells = <1>;
45
46 partition@0 {
47 label = "bl2";
48 reg = <0x0 0x80000>;
49 read-only;
50 };
51
52 partition@80000 {
53 label = "reserved";
54 reg = <0x80000 0x300000>;
55 };
56
57 partition@380000 {
58 label = "fip";
59 reg = <0x380000 0x200000>;
60 read-only;
61 };
62
63 partition@580000 {
64 label = "ubi";
65 reg = <0x580000 0x7a80000>;
66 };
67 };
68 };
69 };
70 };
71 };