1 // SPDX-License-Identifier: (GPL-2.0 OR MIT)
3 * Copyright (C) 2023 MediaTek Inc.
4 * Author: Frank Wunderlich <frank-w@public-files.de>
10 #include <dt-bindings/gpio/gpio.h>
13 compatible = "bananapi,bpi-r4", "mediatek,mt7988a";
16 target-path = "/soc/mmc@11230000";
18 pinctrl-names = "default", "state_uhs";
19 pinctrl-0 = <&mmc0_pins_sdcard>;
20 pinctrl-1 = <&mmc0_pins_sdcard>;
21 cd-gpios = <&pio 12 GPIO_ACTIVE_LOW>;
23 max-frequency = <52000000>;
25 vmmc-supply = <®_3p3v>;
26 vqmmc-supply = <®_3p3v>;
33 compatible = "mmc-card";
37 compatible = "block-device";
40 partname = "ubootenv";
42 compatible = "u-boot,env-layout";
45 sd_rootfs: block-partition-production {
46 partname = "production";
55 target-path = "/chosen";
57 rootdisk-sd = <&sd_rootfs>;