From: Stephan Gerhold <stephan@gerhold.net>
To: "J.R. Divya Antony" <d.antony.jr@gmail.com>
Cc: bjorn.andersson@linaro.org, linux-arm-msm@vger.kernel.org
Subject: Re: [PATCH v2 2/3] arm64: dts: qcom: msm8916-asus-z00l: Add SDCard
Date: Tue, 12 Oct 2021 14:12:56 +0200 [thread overview]
Message-ID: <YWV7yL3tFJNgRqgO@gerhold.net> (raw)
In-Reply-To: <20211012112735.2765-2-d.antony.jr@gmail.com>
On Tue, Oct 12, 2021 at 04:57:34PM +0530, J.R. Divya Antony wrote:
> Enable SDHCI (SD Card) Storage.
>
> Signed-off-by: J.R. Divya Antony <d.antony.jr@gmail.com>
Reviewed-by: Stephan Gerhold <stephan@gerhold.net>
> ---
> .../arm64/boot/dts/qcom/msm8916-asus-z00l.dts | 33 +++++++++++++++++++
> 1 file changed, 33 insertions(+)
>
> diff --git a/arch/arm64/boot/dts/qcom/msm8916-asus-z00l.dts b/arch/arm64/boot/dts/qcom/msm8916-asus-z00l.dts
> index 71f4aa16058f..355c95365fcd 100644
> --- a/arch/arm64/boot/dts/qcom/msm8916-asus-z00l.dts
> +++ b/arch/arm64/boot/dts/qcom/msm8916-asus-z00l.dts
> @@ -42,6 +42,21 @@ volume-down {
> };
> };
>
> + reg_sd_vmmc: regulator-sdcard-vmmc {
> + compatible = "regulator-fixed";
> + regulator-name = "sdcard-vmmc";
> + regulator-min-microvolt = <2950000>;
> + regulator-max-microvolt = <2950000>;
> +
> + gpio = <&msmgpio 87 GPIO_ACTIVE_HIGH>;
> + enable-active-high;
> +
> + startup-delay-us = <200>;
> +
> + pinctrl-names = "default";
> + pinctrl-0 = <&sd_vmmc_en_default>;
> + };
> +
> usb_id: usb-id {
> compatible = "linux,extcon-usb-gpio";
> id-gpios = <&msmgpio 110 GPIO_ACTIVE_HIGH>;
> @@ -89,6 +104,16 @@ &sdhc_1 {
> pinctrl-1 = <&sdc1_clk_off &sdc1_cmd_off &sdc1_data_off>;
> };
>
> +&sdhc_2 {
> + status = "okay";
> + vmmc-supply = <®_sd_vmmc>;
> +
> + pinctrl-names = "default", "sleep";
> + pinctrl-0 = <&sdc2_clk_on &sdc2_cmd_on &sdc2_data_on &sdc2_cd_on>;
> + pinctrl-1 = <&sdc2_clk_off &sdc2_cmd_off &sdc2_data_off &sdc2_cd_off>;
> + cd-gpios = <&msmgpio 38 GPIO_ACTIVE_LOW>;
> +};
> +
> &usb {
> status = "okay";
> extcon = <&usb_id>, <&usb_id>;
> @@ -210,6 +235,14 @@ gpio_keys_default: gpio-keys-default {
> bias-pull-up;
> };
>
> + sd_vmmc_en_default: sd-vmmc-en-default {
> + pins = "gpio87";
> + function = "gpio";
> +
> + drive-strength = <2>;
> + bias-disable;
> + };
> +
> touchscreen_default: touchscreen-default {
> pins = "gpio13";
> function = "gpio";
> --
> 2.33.0
>
next prev parent reply other threads:[~2021-10-12 12:13 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-12 11:27 [PATCH v2 1/3] arm64: dts: qcom: msm8916-asus-z00l: Add touchscreen J.R. Divya Antony
2021-10-12 11:27 ` [PATCH v2 2/3] arm64: dts: qcom: msm8916-asus-z00l: Add SDCard J.R. Divya Antony
2021-10-12 12:12 ` Stephan Gerhold [this message]
2021-10-12 11:27 ` [PATCH v2 3/3] arm64: dts: qcom: msm8916-asus-z00l: Add sensors J.R. Divya Antony
2021-10-12 12:14 ` Stephan Gerhold
2021-10-12 12:11 ` [PATCH v2 1/3] arm64: dts: qcom: msm8916-asus-z00l: Add touchscreen Stephan Gerhold
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=YWV7yL3tFJNgRqgO@gerhold.net \
--to=stephan@gerhold.net \
--cc=bjorn.andersson@linaro.org \
--cc=d.antony.jr@gmail.com \
--cc=linux-arm-msm@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox