1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Google Veyron (and derivatives) fragment for sdmmc cards
5 * Copyright 2015 Google, Inc
9 sdcard-supply = <&vccio_sd>;
15 * We run sdmmc at max speed; bump up drive strength.
16 * We also have external pulls, so disable the internal ones.
18 sdmmc_bus4: sdmmc-bus4 {
19 rockchip,pins = <6 16 RK_FUNC_1 &pcfg_pull_none_drv_8ma>,
20 <6 17 RK_FUNC_1 &pcfg_pull_none_drv_8ma>,
21 <6 18 RK_FUNC_1 &pcfg_pull_none_drv_8ma>,
22 <6 19 RK_FUNC_1 &pcfg_pull_none_drv_8ma>;
25 sdmmc_clk: sdmmc-clk {
26 rockchip,pins = <6 20 RK_FUNC_1 &pcfg_pull_none_drv_8ma>;
29 sdmmc_cmd: sdmmc-cmd {
30 rockchip,pins = <6 21 RK_FUNC_1 &pcfg_pull_none_drv_8ma>;
34 * Builtin CD line is hooked to ground to prevent JTAG at boot
35 * (and also to get the voltage rail correct).
36 * Configure gpio6_C6 as GPIO so dw_mmc builtin CD doesn't
37 * think there's a card inserted
39 sdmmc_cd_disabled: sdmmc-cd-disabled {
40 rockchip,pins = <6 22 RK_FUNC_GPIO &pcfg_pull_none>;
43 /* This is where we actually hook up CD */
44 sdmmc_cd_gpio: sdmmc-cd-gpio {
45 rockchip,pins = <7 5 RK_FUNC_GPIO &pcfg_pull_none>;
51 vcc9-supply = <&vcc_5v>;
55 regulator-name = "vccio_sd";
56 regulator-min-microvolt = <1800000>;
57 regulator-max-microvolt = <3300000>;
59 regulator-off-in-suspend;
64 regulator-name = "vcc33_sd";
65 regulator-min-microvolt = <3300000>;
66 regulator-max-microvolt = <3300000>;
68 regulator-off-in-suspend;
80 card-detect-delay = <200>;
81 cd-gpios = <&gpio7 RK_PA5 GPIO_ACTIVE_LOW>;
82 rockchip,default-sample-phase = <90>;
87 vmmc-supply = <&vcc33_sd>;
88 vqmmc-supply = <&vccio_sd>;