|
| 1 | +// SPDX-License-Identifier: BSD-3-Clause |
| 2 | +/* |
| 3 | + * Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries. |
| 4 | + */ |
| 5 | + |
| 6 | +/dts-v1/; |
| 7 | +/plugin/; |
| 8 | + |
| 9 | +#include <dt-bindings/gpio/gpio.h> |
| 10 | + |
| 11 | +/ { |
| 12 | + vmmc_sdc: regulator-dummy { |
| 13 | + compatible = "regulator-fixed"; |
| 14 | + |
| 15 | + regulator-name = "vmmc_sdc"; |
| 16 | + regulator-min-microvolt = <2950000>; |
| 17 | + regulator-max-microvolt = <2950000>; |
| 18 | + }; |
| 19 | + |
| 20 | + vreg_sdc: regulator-sdc { |
| 21 | + compatible = "regulator-gpio"; |
| 22 | + |
| 23 | + regulator-name = "vreg_sdc"; |
| 24 | + regulator-type = "voltage"; |
| 25 | + regulator-min-microvolt = <1800000>; |
| 26 | + regulator-max-microvolt = <2950000>; |
| 27 | + |
| 28 | + gpios = <&expander1 7 GPIO_ACTIVE_HIGH>; |
| 29 | + states = <1800000 1>, <2950000 0>; |
| 30 | + |
| 31 | + startup-delay-us = <100>; |
| 32 | + }; |
| 33 | +}; |
| 34 | + |
| 35 | +&sdhc_1 { |
| 36 | + vmmc-supply = <&vmmc_sdc>; |
| 37 | + vqmmc-supply = <&vreg_sdc>; |
| 38 | + |
| 39 | + pinctrl-0 = <&sdc1_state_on>, <&sd_cd>; |
| 40 | + pinctrl-1 = <&sdc1_state_off>, <&sd_cd>; |
| 41 | + pinctrl-names = "default", "sleep"; |
| 42 | + |
| 43 | + cap-sd-highspeed; |
| 44 | + no-1-8-v; |
| 45 | + |
| 46 | + bus-width = <4>; |
| 47 | + cd-gpios = <&tlmm 11 GPIO_ACTIVE_LOW>; |
| 48 | + no-mmc; |
| 49 | + no-sdio; |
| 50 | + |
| 51 | + status = "okay"; |
| 52 | +}; |
| 53 | + |
| 54 | +&sdhc1_opp_table { |
| 55 | + opp-100000000 { |
| 56 | + opp-hz = /bits/ 64 <100000000>; |
| 57 | + required-opps = <&rpmhpd_opp_low_svs>; |
| 58 | + }; |
| 59 | + |
| 60 | + opp-202000000 { |
| 61 | + opp-hz = /bits/ 64 <202000000>; |
| 62 | + required-opps = <&rpmhpd_opp_svs_l1>; |
| 63 | + }; |
| 64 | +}; |
| 65 | + |
| 66 | +&tlmm { |
| 67 | + sd_cd: sd-cd-state { |
| 68 | + pins = "gpio11"; |
| 69 | + function = "gpio"; |
| 70 | + bias-pull-up; |
| 71 | + }; |
| 72 | +}; |
0 commit comments