blob: 6044c8c91cb1123007033e5420940f34e536458a [file] [log] [blame]
// SPDX-License-Identifier: GPL-2.0
/*
* Copyright (C) 2019 BayLibre, SAS.
* Author: Fabien Parent <fparent@baylibre.com>
*/
&mmc0 {
pinctrl-names = "default", "state_uhs";
pinctrl-0 = <&mmc0_pins_default>;
pinctrl-1 = <&mmc0_pins_uhs>;
status = "okay";
bus-width = <8>;
max-frequency = <200000000>;
cap-mmc-highspeed;
mmc-hs200-1_8v;
cap-mmc-hw-reset;
vmmc-supply = <&mt6392_vemc3v3_reg>;
vqmmc-supply = <&mt6392_vio18_reg>;
non-removable;
};
&pio {
mmc0_pins_default: mmc0default {
pins_cmd_dat {
pinmux = <MT8516_PIN_120_MSDC0_DAT0__FUNC_MSDC0_DAT0>,
<MT8516_PIN_119_MSDC0_DAT1__FUNC_MSDC0_DAT1>,
<MT8516_PIN_118_MSDC0_DAT2__FUNC_MSDC0_DAT2>,
<MT8516_PIN_117_MSDC0_DAT3__FUNC_MSDC0_DAT3>,
<MT8516_PIN_113_MSDC0_DAT4__FUNC_MSDC0_DAT4>,
<MT8516_PIN_112_MSDC0_DAT5__FUNC_MSDC0_DAT5>,
<MT8516_PIN_111_MSDC0_DAT6__FUNC_MSDC0_DAT6>,
<MT8516_PIN_110_MSDC0_DAT7__FUNC_MSDC0_DAT7>,
<MT8516_PIN_115_MSDC0_CMD__FUNC_MSDC0_CMD>;
input-enable;
bias-pull-up;
};
pins_clk {
pinmux = <MT8516_PIN_116_MSDC0_CLK__FUNC_MSDC0_CLK>;
bias-pull-down;
};
pins_rst {
pinmux = <MT8516_PIN_114_MSDC0_RSTB__FUNC_MSDC0_RSTB>;
bias-pull-up;
};
};
mmc0_pins_uhs: mmc0@0{
pins_cmd_dat {
pinmux = <MT8516_PIN_120_MSDC0_DAT0__FUNC_MSDC0_DAT0>,
<MT8516_PIN_119_MSDC0_DAT1__FUNC_MSDC0_DAT1>,
<MT8516_PIN_118_MSDC0_DAT2__FUNC_MSDC0_DAT2>,
<MT8516_PIN_117_MSDC0_DAT3__FUNC_MSDC0_DAT3>,
<MT8516_PIN_113_MSDC0_DAT4__FUNC_MSDC0_DAT4>,
<MT8516_PIN_112_MSDC0_DAT5__FUNC_MSDC0_DAT5>,
<MT8516_PIN_111_MSDC0_DAT6__FUNC_MSDC0_DAT6>,
<MT8516_PIN_110_MSDC0_DAT7__FUNC_MSDC0_DAT7>,
<MT8516_PIN_115_MSDC0_CMD__FUNC_MSDC0_CMD>;
input-enable;
drive-strength = <MTK_DRIVE_6mA>;
bias-pull-up = <MTK_PUPD_SET_R1R0_01>;
};
pins_clk {
pinmux = <MT8516_PIN_116_MSDC0_CLK__FUNC_MSDC0_CLK>;
drive-strength = <MTK_DRIVE_8mA>;
bias-pull-down = <MTK_PUPD_SET_R1R0_10>;
};
pins_rst {
pinmux = <MT8516_PIN_114_MSDC0_RSTB__FUNC_MSDC0_RSTB>;
bias-pull-up;
};
};
};