From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id F1DA3C3F68F for ; Tue, 11 Feb 2020 15:13:47 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C8EB52086A for ; Tue, 11 Feb 2020 15:13:47 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="vezmg+e2" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728537AbgBKPNq (ORCPT ); Tue, 11 Feb 2020 10:13:46 -0500 Received: from mail-ua1-f65.google.com ([209.85.222.65]:43520 "EHLO mail-ua1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728825AbgBKPNp (ORCPT ); Tue, 11 Feb 2020 10:13:45 -0500 Received: by mail-ua1-f65.google.com with SMTP id o42so4053642uad.10 for ; Tue, 11 Feb 2020 07:13:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=GUARnD6k50jzUsw10kMIXjV4VmujixpGyNZoQ1+vFIw=; b=vezmg+e2zVcCqvOz1QNUIhR6b4psUJ7GBjXUl/w5u3TKKW5m2at+Dkenjv6Z4DUTFI Tk0wTGDgR75xfdMkdy0hvZZojCjOVrXPeyjV/zwyKx+3mGrbq9y2tRX9+HwnygydMFO/ 95NDXx1CjgmBO9SLKD/eIx0AzfTj81rp4frsf+iGJYx3sH5Y/yJXRL7UxmdiFGMEddYx S4EhjTxhAEKrLig/K5wUNsDw902thoBRCv9xdoV7euC7E/BlQrPQn6BpDHxeHNf8YAJE EZ3gSfrwgeri4HLwd9vjx75vhLrxHqm/bJ0m5JfdhE0FMIHxPc2Qdd1eAVbTja/NN4dX wONA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=GUARnD6k50jzUsw10kMIXjV4VmujixpGyNZoQ1+vFIw=; b=NeWNMSIUqPLiQ5MHr/26cAYGXyj0sypdzgKFyFZXyF5JGZbvtmNHSkKpnI8t/n+pO8 9hpHk3HLSwe6NTt/iOFuVtLhAFgKG1BbSr5/S/y6G6EFGYtH/PO0R6HAx8DVmrD7512U o45D5//XDGfZcqANgdqia1U0m4E4T0ER8fJfT4OazMXGHuuOxjBTCifGb2+gJB5o17Iw g6+XMfabs3H8KLCVf0cxnp2WngCoSFoa94ID40wIVt0cdu0Fq5BiIh/h+DkHjcsIlZza I8neh4wayFyN+HSsaUZciuj46ie4Ifw2C76Cv9rU5paphcWSM+DryDtOk8o5jI3lM2yf caiQ== X-Gm-Message-State: APjAAAWPZk0UfWDeBEDBEnBHJYKdAkKhD3Ee9A7HfxH4M79C0U4Imd/t 2GSgPJr1crCrn0YBXlyj2LVGuRKvvB9g3uVpBkqhXT/a X-Google-Smtp-Source: APXvYqzE310oyVlFxDykq0yJMv5V52vUJ/aZlRdz88ytg55ClBK5PqlR6olX6sPJIZQLvU4FVZaHf/beaLIbPl6zeIY= X-Received: by 2002:ab0:e16:: with SMTP id g22mr1849367uak.129.1581434022257; Tue, 11 Feb 2020 07:13:42 -0800 (PST) MIME-Version: 1.0 References: <1578495250-10672-1-git-send-email-sbhanu@codeaurora.org> <25a96f3f-c4cd-4ff1-3ce6-d894fb1c20fe@codeaurora.org> In-Reply-To: <25a96f3f-c4cd-4ff1-3ce6-d894fb1c20fe@codeaurora.org> From: Ulf Hansson Date: Tue, 11 Feb 2020 16:13:05 +0100 Message-ID: Subject: Re: [PATCH V3] arm64: dts: qcom: sc7180: Add nodes for eMMC and SD card To: Veerabhadrarao Badiganti Cc: Shaik Sajida Bhanu , Adrian Hunter , Rob Herring , Matthias Kaehlcke , "linux-mmc@vger.kernel.org" , Linux Kernel Mailing List , linux-arm-msm , DTML , Andy Gross , Bjorn Andersson , Mark Rutland Content-Type: text/plain; charset="UTF-8" Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org On Tue, 11 Feb 2020 at 15:30, Veerabhadrarao Badiganti wrote: > > ping! > I think you need to ping the SoC maintainers, this isn't something that I normally pick up via the mmc subsystem. Kind regards Uffe > On 1/8/2020 8:24 PM, Shaik Sajida Bhanu wrote: > > From: Veerabhadrarao Badiganti > > > > Add sdhc instances for supporting eMMC and SD-card on sc7180. > > The regulators should be in HPM state for proper functionality of > > eMMC and SD-card. Updating corresponding regulators accordingly. > > > > Signed-off-by: Veerabhadrarao Badiganti > > Signed-off-by: Shaik Sajida Bhanu > > --- > > Changes since V2: > > - Added cmdq register space and support-cqe flag. > > - Incorporated review comments by Matthias Kaehlcke. > > > > Changes since V1: > > - Updated the regulator min, max voltages as per > > eMMC/SD-card voltage requirements > > - Enabled IOMMU for eMMC and SD-card. > > - Added pull and drive strength to SD-card cd-gpio. > > - Incorporated review comments by Matthias Kaehlcke. > > --- > > arch/arm64/boot/dts/qcom/sc7180-idp.dts | 47 +++++++--- > > arch/arm64/boot/dts/qcom/sc7180.dtsi | 148 ++++++++++++++++++++++++++++++++ > > 2 files changed, 183 insertions(+), 12 deletions(-) > > > > diff --git a/arch/arm64/boot/dts/qcom/sc7180-idp.dts b/arch/arm64/boot/dts/qcom/sc7180-idp.dts > > index 388f50a..a790d82 100644 > > --- a/arch/arm64/boot/dts/qcom/sc7180-idp.dts > > +++ b/arch/arm64/boot/dts/qcom/sc7180-idp.dts > > @@ -7,6 +7,7 @@ > > > > /dts-v1/; > > > > +#include > > #include > > #include "sc7180.dtsi" > > #include "pm6150.dtsi" > > @@ -101,9 +102,9 @@ > > }; > > > > vreg_l12a_1p8: ldo12 { > > - regulator-min-microvolt = <1696000>; > > - regulator-max-microvolt = <1952000>; > > - regulator-initial-mode = ; > > + regulator-min-microvolt = <1800000>; > > + regulator-max-microvolt = <1800000>; > > + regulator-initial-mode = ; > > }; > > > > vreg_l13a_1p8: ldo13 { > > @@ -143,9 +144,9 @@ > > }; > > > > vreg_l19a_2p9: ldo19 { > > - regulator-min-microvolt = <2696000>; > > - regulator-max-microvolt = <3304000>; > > - regulator-initial-mode = ; > > + regulator-min-microvolt = <2960000>; > > + regulator-max-microvolt = <2960000>; > > + regulator-initial-mode = ; > > }; > > }; > > > > @@ -189,9 +190,9 @@ > > }; > > > > vreg_l6c_2p9: ldo6 { > > - regulator-min-microvolt = <2696000>; > > - regulator-max-microvolt = <3304000>; > > - regulator-initial-mode = ; > > + regulator-min-microvolt = <1800000>; > > + regulator-max-microvolt = <2950000>; > > + regulator-initial-mode = ; > > }; > > > > vreg_l7c_3p0: ldo7 { > > @@ -207,9 +208,9 @@ > > }; > > > > vreg_l9c_2p9: ldo9 { > > - regulator-min-microvolt = <2952000>; > > - regulator-max-microvolt = <3304000>; > > - regulator-initial-mode = ; > > + regulator-min-microvolt = <2960000>; > > + regulator-max-microvolt = <2960000>; > > + regulator-initial-mode = ; > > }; > > > > vreg_l10c_3p3: ldo10 { > > @@ -254,6 +255,28 @@ > > status = "okay"; > > }; > > > > +&sdhc_1 { > > + status = "okay"; > > + > > + pinctrl-names = "default", "sleep"; > > + pinctrl-0 = <&sdc1_on>; > > + pinctrl-1 = <&sdc1_off>; > > + vmmc-supply = <&vreg_l19a_2p9>; > > + vqmmc-supply = <&vreg_l12a_1p8>; > > +}; > > + > > +&sdhc_2 { > > + status = "okay"; > > + > > + pinctrl-names = "default","sleep"; > > + pinctrl-0 = <&sdc2_on>; > > + pinctrl-1 = <&sdc2_off>; > > + vmmc-supply = <&vreg_l9c_2p9>; > > + vqmmc-supply = <&vreg_l6c_2p9>; > > + > > + cd-gpios = <&tlmm 69 GPIO_ACTIVE_LOW>; > > +}; > > + > > &uart3 { > > status = "okay"; > > }; > > diff --git a/arch/arm64/boot/dts/qcom/sc7180.dtsi b/arch/arm64/boot/dts/qcom/sc7180.dtsi > > index 3676bfd..525bc02 100644 > > --- a/arch/arm64/boot/dts/qcom/sc7180.dtsi > > +++ b/arch/arm64/boot/dts/qcom/sc7180.dtsi > > @@ -226,6 +226,33 @@ > > }; > > }; > > > > + sdhc_1: sdhci@7c4000 { > > + compatible = "qcom,sc7180-sdhci", "qcom,sdhci-msm-v5"; > > + reg = <0 0x7c4000 0 0x1000>, > > + <0 0x07c5000 0 0x1000>; > > + reg-names = "hc_mem", "cqhci_mem"; > > + > > + iommus = <&apps_smmu 0x60 0x0>; > > + interrupts = , > > + ; > > + interrupt-names = "hc_irq", "pwr_irq"; > > + > > + clocks = <&gcc GCC_SDCC1_APPS_CLK>, > > + <&gcc GCC_SDCC1_AHB_CLK>; > > + clock-names = "core", "iface"; > > + > > + bus-width = <8>; > > + non-removable; > > + supports-cqe; > > + > > + mmc-ddr-1_8v; > > + mmc-hs200-1_8v; > > + mmc-hs400-1_8v; > > + mmc-hs400-enhanced-strobe; > > + > > + status = "disabled"; > > + }; > > + > > qupv3_id_0: geniqup@8c0000 { > > compatible = "qcom,geni-se-qup"; > > reg = <0 0x008c0000 0 0x6000>; > > @@ -929,6 +956,127 @@ > > function = "qup15"; > > }; > > }; > > + > > + sdc1_on: sdc1-on { > > + pinconf-clk { > > + pins = "sdc1_clk"; > > + bias-disable; > > + drive-strength = <16>; > > + }; > > + > > + pinconf-cmd { > > + pins = "sdc1_cmd"; > > + bias-pull-up; > > + drive-strength = <10>; > > + }; > > + > > + pinconf-data { > > + pins = "sdc1_data"; > > + bias-pull-up; > > + drive-strength = <10>; > > + }; > > + > > + pinconf-rclk { > > + pins = "sdc1_rclk"; > > + bias-pull-down; > > + }; > > + }; > > + > > + sdc1_off: sdc1-off { > > + pinconf-clk { > > + pins = "sdc1_clk"; > > + bias-disable; > > + drive-strength = <2>; > > + }; > > + > > + pinconf-cmd { > > + pins = "sdc1_cmd"; > > + bias-pull-up; > > + drive-strength = <2>; > > + }; > > + > > + pinconf-data { > > + pins = "sdc1_data"; > > + bias-pull-up; > > + drive-strength = <2>; > > + }; > > + > > + pinconf-rclk { > > + pins = "sdc1_rclk"; > > + bias-pull-down; > > + }; > > + }; > > + > > + sdc2_on: sdc2-on { > > + pinconf-clk { > > + pins = "sdc2_clk"; > > + bias-disable; > > + drive-strength = <16>; > > + }; > > + > > + pinconf-cmd { > > + pins = "sdc2_cmd"; > > + bias-pull-up; > > + drive-strength = <10>; > > + }; > > + > > + pinconf-data { > > + pins = "sdc2_data"; > > + bias-pull-up; > > + drive-strength = <10>; > > + }; > > + > > + pinconf-sd-cd { > > + pins = "gpio69"; > > + bias-pull-up; > > + drive-strength = <2>; > > + }; > > + }; > > + > > + sdc2_off: sdc2-off { > > + pinconf-clk { > > + pins = "sdc2_clk"; > > + bias-disable; > > + drive-strength = <2>; > > + }; > > + > > + pinconf-cmd { > > + pins = "sdc2_cmd"; > > + bias-pull-up; > > + drive-strength = <2>; > > + }; > > + > > + pinconf-data { > > + pins = "sdc2_data"; > > + bias-pull-up; > > + drive-strength = <2>; > > + }; > > + > > + pinconf-sd-cd { > > + pins = "gpio69"; > > + bias-disable; > > + drive-strength = <2>; > > + }; > > + }; > > + }; > > + > > + sdhc_2: sdhci@8804000 { > > + compatible = "qcom,sc7180-sdhci", "qcom,sdhci-msm-v5"; > > + reg = <0 0x08804000 0 0x1000>; > > + reg-names = "hc_mem"; > > + > > + iommus = <&apps_smmu 0x80 0>; > > + interrupts = , > > + ; > > + interrupt-names = "hc_irq", "pwr_irq"; > > + > > + clocks = <&gcc GCC_SDCC2_APPS_CLK>, > > + <&gcc GCC_SDCC2_AHB_CLK>; > > + clock-names = "core", "iface"; > > + > > + bus-width = <4>; > > + > > + status = "disabled"; > > }; > > > > qspi: spi@88dc000 {