Message ID | 20230519085122.15758-3-quic_kbajaj@quicinc.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1083578vqo; Fri, 19 May 2023 01:54:01 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7tFmDswXcLH0GU7MjJ5H2cZ6kdACmQ747phfCXvRHSAPCHdakptPoz4fcQxtvszF0Y2AFv X-Received: by 2002:a05:6a00:c96:b0:64a:ff32:7347 with SMTP id a22-20020a056a000c9600b0064aff327347mr2472360pfv.13.1684486441207; Fri, 19 May 2023 01:54:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684486441; cv=none; d=google.com; s=arc-20160816; b=ilGcs0/z70sBK1xg2NtBZFNnr8hxgFvfezJ4MnyfyxKmJZK2PR5YK0pCTGNUpXonkf ugXmtY4dkAmt40ekbUj2Svjx4Cezq+j6x4V/EF0cnL9T5neYe7I4oNO3D27w2C4ZvnyW snP6sbK614rlDE4bcS/a0hB0C02swQZtL0eXM9rW39zSgcBjudAa501BTvPdqs62HMmk tG1W1JCS0AJnzYg3coLFUug2aokEgRvnx17qQfraqhsqGYtgGo2IzbRpW1Bim1s4Pcbw FOLNDSyITVhiwzium5asSJlOUUuEGP2iBbl784GLj3/0QUKCIqU/VcwkXNPE43H/MZ8h 3U8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=icJ12M/eSNTMKFmsPXdcHfl4YlX5L70EX8rL7AnRR/M=; b=FJXUWcqFN+dBHLwuoElkijESchcsTIfL9NGJP8niDsPwua8zdiH8PEG945Keu9INKM nauaBASnOrJC/I7EV0pN+X48rfBr3WWvTU7OG+TyJMobjv5/DTZzb9etmt7gWzxRYrzK 4/YDrGmzQVyEN88zObQxEZt3sazsLW7QW8jGJlBfU68YjW08W69feQSIGPqMq6b48q8L apTEouXplOP6j/W0v7EPyTmYeAMc54/RrEtDyMS2QsYAAptk89dYvHMNGrQqyiDl5lrr wB2Oshn9maS6Sz1fZy5Rm29VvT4gMNzK6diyL7aWQlQD1gOcnNEqKQhcaQi3ZU6a/3XO w7jw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="lLadCYy/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d203-20020a621dd4000000b0063b7c4435c0si3716485pfd.54.2023.05.19.01.53.46; Fri, 19 May 2023 01:54:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="lLadCYy/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231181AbjESIvr (ORCPT <rfc822;cscallsign@gmail.com> + 99 others); Fri, 19 May 2023 04:51:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40616 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230388AbjESIvh (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 19 May 2023 04:51:37 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8DF4FE6B; Fri, 19 May 2023 01:51:35 -0700 (PDT) Received: from pps.filterd (m0279872.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 34J4JPos004343; Fri, 19 May 2023 08:51:31 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : in-reply-to : references; s=qcppdkim1; bh=icJ12M/eSNTMKFmsPXdcHfl4YlX5L70EX8rL7AnRR/M=; b=lLadCYy/skLOjPFAdq18aWQsq3Zp995hj3N+ZdA4Z9KOM8WMUsA816AOiOlB1/gDF1Re BLiorIx5nyal/oYe9CVUP5IfbE7vbQwQz6w87ks93e3K0FVtD8oVoWGJwwQCUCdJMxZb Ra9fHp1t71YzreqMFVD/IVADFeVhq418ug8t32tBh9etcP0RqqnZHaDFKZ3DU/tFJffD 0XF08x/KkdLK3s6PaED0nzq0qHJ9VlXaBXnK0sT9G+seajb+hE0+E4tqEqf8yZcNZbjB XbwjcKGlYOaHozJ/8+AVVohwtn9MDCpSt1vl2sHvHbmph+OwMxQ2+HbSE0JQzRJqcQuv 9A== Received: from apblrppmta02.qualcomm.com (blr-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com [103.229.18.19]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3qp0kermw7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 19 May 2023 08:51:31 +0000 Received: from pps.filterd (APBLRPPMTA02.qualcomm.com [127.0.0.1]) by APBLRPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTP id 34J8pSns012764; Fri, 19 May 2023 08:51:28 GMT Received: from pps.reinject (localhost [127.0.0.1]) by APBLRPPMTA02.qualcomm.com (PPS) with ESMTP id 3qj3mkd0q3-1; Fri, 19 May 2023 08:51:28 +0000 Received: from APBLRPPMTA02.qualcomm.com (APBLRPPMTA02.qualcomm.com [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 34J8pSOG012758; Fri, 19 May 2023 08:51:28 GMT Received: from hu-maiyas-hyd.qualcomm.com (hu-kbajaj-hyd.qualcomm.com [10.147.247.189]) by APBLRPPMTA02.qualcomm.com (PPS) with ESMTP id 34J8pS10012756; Fri, 19 May 2023 08:51:28 +0000 Received: by hu-maiyas-hyd.qualcomm.com (Postfix, from userid 2340697) id 96E3F529754; Fri, 19 May 2023 14:21:27 +0530 (+0530) From: Komal Bajaj <quic_kbajaj@quicinc.com> To: Ulf Hansson <ulf.hansson@linaro.org>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org>, Andy Gross <agross@kernel.org>, Bjorn Andersson <andersson@kernel.org>, Konrad Dybcio <konrad.dybcio@linaro.org>, Bhupesh Sharma <bhupesh.sharma@linaro.org> Cc: Komal Bajaj <quic_kbajaj@quicinc.com>, linux-mmc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: [PATCH 2/4] arm: dts: qcom: qdu1000: Add SDHCI node Date: Fri, 19 May 2023 14:21:20 +0530 Message-Id: <20230519085122.15758-3-quic_kbajaj@quicinc.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230519085122.15758-1-quic_kbajaj@quicinc.com> References: <20230519085122.15758-1-quic_kbajaj@quicinc.com> X-QCInternal: smtphost X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: q1Oo2B_XSoZOoSKRiU64rJCyIc_G__c7 X-Proofpoint-ORIG-GUID: q1Oo2B_XSoZOoSKRiU64rJCyIc_G__c7 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-05-19_05,2023-05-17_02,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 mlxlogscore=999 malwarescore=0 bulkscore=0 adultscore=0 priorityscore=1501 lowpriorityscore=0 clxscore=1015 impostorscore=0 phishscore=0 mlxscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2304280000 definitions=main-2305190074 X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766312054337256969?= X-GMAIL-MSGID: =?utf-8?q?1766312054337256969?= |
Series | arm64: dts: qcom: qdu1000: add SDHCI | |
Commit Message
Komal Bajaj
May 19, 2023, 8:51 a.m. UTC
Add sdhc node for eMMC on QDU1000 and QRU1000 SoCs.
Signed-off-by: Komal Bajaj <quic_kbajaj@quicinc.com>
---
arch/arm64/boot/dts/qcom/qdu1000.dtsi | 60 +++++++++++++++++++++++++++
1 file changed, 60 insertions(+)
--
2.17.1
Comments
Hi Komal, On 5/19/23 2:21 PM, Komal Bajaj wrote: > Add sdhc node for eMMC on QDU1000 and QRU1000 SoCs. > > Signed-off-by: Komal Bajaj <quic_kbajaj@quicinc.com> > --- > arch/arm64/boot/dts/qcom/qdu1000.dtsi | 60 +++++++++++++++++++++++++++ > 1 file changed, 60 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/qdu1000.dtsi b/arch/arm64/boot/dts/qcom/qdu1000.dtsi > index 734438113bba..6113def66a08 100644 > --- a/arch/arm64/boot/dts/qcom/qdu1000.dtsi > +++ b/arch/arm64/boot/dts/qcom/qdu1000.dtsi > @@ -19,6 +19,10 @@ > > chosen: chosen { }; > > + aliases { > + mmc0 = &sdhc_1; /*SDC1 eMMC slot*/ Please use the right comment formats /* text */ Also, just /* eMMC */ would be fine here. > + }; > + > cpus { > #address-cells = <2>; > #size-cells = <0>; > @@ -842,6 +846,62 @@ > #hwlock-cells = <1>; > }; > > + sdhc_1: mmc@8804000 { > + compatible = "qcom,qdu1000-sdhci", "qcom,sdhci-msm-v5"; > + reg = <0x0 0x08804000 0x0 0x1000>, > + <0x0 0x08805000 0x0 0x1000>; > + > + reg-names = "hc", "cqhci"; > + > + interrupts = <GIC_SPI 207 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 223 IRQ_TYPE_LEVEL_HIGH>; > + interrupt-names = "hc_irq", "pwr_irq"; > + > + clocks = <&gcc GCC_SDCC5_AHB_CLK>, > + <&gcc GCC_SDCC5_APPS_CLK>, > + <&rpmhcc RPMH_CXO_CLK>; > + clock-names = "iface", "core", "xo"; > + > + /* Add dt entry for gcc hw reset */ Please drop the comment above - it's not needed. > + resets = <&gcc GCC_SDCC5_BCR>; > + > + interconnects = <&system_noc MASTER_SDCC_1 0 &mc_virt SLAVE_EBI1 0>, > + <&gem_noc MASTER_APPSS_PROC 0 &system_noc SLAVE_SDCC_2 0>; > + interconnect-names = "sdhc-ddr", "cpu-sdhc"; > + power-domains = <&rpmhpd QDU1000_CX>; > + operating-points-v2 = <&sdhc1_opp_table>; > + > + iommus = <&apps_smmu 0x0080 0x0>; > + dma-coherent; > + > + bus-width = <8>; > + non-removable; > + supports-cqe; > + > + no-sd; > + no-sd; Can we club the following 3 together: non-removable; no-sd; no-sd; And normally these is a part of board file (.dts), right? Thanks, Bhupesh > + mmc-ddr-1_8v; > + mmc-hs200-1_8v; > + mmc-hs400-1_8v; > + mmc-hs400-enhanced-strobe; > + cap-mmc-hw-reset; > + > + qcom,dll-config = <0x0007642c>; > + qcom,ddr-config = <0x80040868>; > + > + status = "disabled"; > + > + sdhc1_opp_table: opp-table { > + compatible = "operating-points-v2"; > + > + opp-384000000 { > + opp-hz = /bits/ 64 <384000000>; > + required-opps = <&rpmhpd_opp_min_svs>; > + }; > + }; > + }; > + > pdc: interrupt-controller@b220000 { > compatible = "qcom,qdu1000-pdc", "qcom,pdc"; > reg = <0x0 0xb220000 0x0 0x30000>, <0x0 0x174000f0 0x0 0x64>; > -- > 2.17.1 >
On 5/19/2023 3:35 PM, Bhupesh Sharma wrote: > Hi Komal, > > On 5/19/23 2:21 PM, Komal Bajaj wrote: >> Add sdhc node for eMMC on QDU1000 and QRU1000 SoCs. >> >> Signed-off-by: Komal Bajaj <quic_kbajaj@quicinc.com> >> --- >> arch/arm64/boot/dts/qcom/qdu1000.dtsi | 60 +++++++++++++++++++++++++++ >> 1 file changed, 60 insertions(+) >> >> diff --git a/arch/arm64/boot/dts/qcom/qdu1000.dtsi >> b/arch/arm64/boot/dts/qcom/qdu1000.dtsi >> index 734438113bba..6113def66a08 100644 >> --- a/arch/arm64/boot/dts/qcom/qdu1000.dtsi >> +++ b/arch/arm64/boot/dts/qcom/qdu1000.dtsi >> @@ -19,6 +19,10 @@ >> >> chosen: chosen { }; >> >> + aliases { >> + mmc0 = &sdhc_1; /*SDC1 eMMC slot*/ > > Please use the right comment formats /* text */ > Also, just /* eMMC */ would be fine here. Sure, will keep just /* eMMC */ in comments. > >> + }; >> + >> cpus { >> #address-cells = <2>; >> #size-cells = <0>; >> @@ -842,6 +846,62 @@ >> #hwlock-cells = <1>; >> }; >> >> + sdhc_1: mmc@8804000 { >> + compatible = "qcom,qdu1000-sdhci", "qcom,sdhci-msm-v5"; >> + reg = <0x0 0x08804000 0x0 0x1000>, >> + <0x0 0x08805000 0x0 0x1000>; >> + >> + reg-names = "hc", "cqhci"; >> + >> + interrupts = <GIC_SPI 207 IRQ_TYPE_LEVEL_HIGH>, >> + <GIC_SPI 223 IRQ_TYPE_LEVEL_HIGH>; >> + interrupt-names = "hc_irq", "pwr_irq"; >> + >> + clocks = <&gcc GCC_SDCC5_AHB_CLK>, >> + <&gcc GCC_SDCC5_APPS_CLK>, >> + <&rpmhcc RPMH_CXO_CLK>; >> + clock-names = "iface", "core", "xo"; >> + >> + /* Add dt entry for gcc hw reset */ > > Please drop the comment above - it's not needed. Noted. Will remove it in the next patch set. > >> + resets = <&gcc GCC_SDCC5_BCR>; >> + >> + interconnects = <&system_noc MASTER_SDCC_1 0 &mc_virt >> SLAVE_EBI1 0>, >> + <&gem_noc MASTER_APPSS_PROC 0 &system_noc >> SLAVE_SDCC_2 0>; >> + interconnect-names = "sdhc-ddr", "cpu-sdhc"; >> + power-domains = <&rpmhpd QDU1000_CX>; >> + operating-points-v2 = <&sdhc1_opp_table>; >> + >> + iommus = <&apps_smmu 0x0080 0x0>; >> + dma-coherent; >> + >> + bus-width = <8>; >> + non-removable; >> + supports-cqe; >> + >> + no-sd; >> + no-sd; > > Can we club the following 3 together: > non-removable; > no-sd; > no-sd; > > And normally these is a part of board file (.dts), right? Sure, will move these to board file. Thanks Komal > > Thanks, > Bhupesh > >> + mmc-ddr-1_8v; >> + mmc-hs200-1_8v; >> + mmc-hs400-1_8v; >> + mmc-hs400-enhanced-strobe; >> + cap-mmc-hw-reset; >> + >> + qcom,dll-config = <0x0007642c>; >> + qcom,ddr-config = <0x80040868>; >> + >> + status = "disabled"; >> + >> + sdhc1_opp_table: opp-table { >> + compatible = "operating-points-v2"; >> + >> + opp-384000000 { >> + opp-hz = /bits/ 64 <384000000>; >> + required-opps = <&rpmhpd_opp_min_svs>; >> + }; >> + }; >> + }; >> + >> pdc: interrupt-controller@b220000 { >> compatible = "qcom,qdu1000-pdc", "qcom,pdc"; >> reg = <0x0 0xb220000 0x0 0x30000>, <0x0 0x174000f0 0x0 >> 0x64>; >> -- >> 2.17.1 >>
On 19.05.2023 10:51, Komal Bajaj wrote: > Add sdhc node for eMMC on QDU1000 and QRU1000 SoCs. > > Signed-off-by: Komal Bajaj <quic_kbajaj@quicinc.com> > --- > arch/arm64/boot/dts/qcom/qdu1000.dtsi | 60 +++++++++++++++++++++++++++ > 1 file changed, 60 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/qdu1000.dtsi b/arch/arm64/boot/dts/qcom/qdu1000.dtsi > index 734438113bba..6113def66a08 100644 > --- a/arch/arm64/boot/dts/qcom/qdu1000.dtsi > +++ b/arch/arm64/boot/dts/qcom/qdu1000.dtsi > @@ -19,6 +19,10 @@ > > chosen: chosen { }; > > + aliases { > + mmc0 = &sdhc_1; /*SDC1 eMMC slot*/ > + }; > + > cpus { > #address-cells = <2>; > #size-cells = <0>; > @@ -842,6 +846,62 @@ > #hwlock-cells = <1>; > }; > > + sdhc_1: mmc@8804000 { > + compatible = "qcom,qdu1000-sdhci", "qcom,sdhci-msm-v5"; > + reg = <0x0 0x08804000 0x0 0x1000>, > + <0x0 0x08805000 0x0 0x1000>; > + confusing newline > + reg-names = "hc", "cqhci"; > + > + interrupts = <GIC_SPI 207 IRQ_TYPE_LEVEL_HIGH>, > + <GIC_SPI 223 IRQ_TYPE_LEVEL_HIGH>; > + interrupt-names = "hc_irq", "pwr_irq"; > + > + clocks = <&gcc GCC_SDCC5_AHB_CLK>, > + <&gcc GCC_SDCC5_APPS_CLK>, SDCC>5<? > + <&rpmhcc RPMH_CXO_CLK>; > + clock-names = "iface", "core", "xo"; Please keep one per line > + > + /* Add dt entry for gcc hw reset */ > + resets = <&gcc GCC_SDCC5_BCR>; 5? > + > + interconnects = <&system_noc MASTER_SDCC_1 0 &mc_virt SLAVE_EBI1 0>, > + <&gem_noc MASTER_APPSS_PROC 0 &system_noc SLAVE_SDCC_2 0>; > + interconnect-names = "sdhc-ddr", "cpu-sdhc"; > + power-domains = <&rpmhpd QDU1000_CX>; > + operating-points-v2 = <&sdhc1_opp_table>; > + > + iommus = <&apps_smmu 0x0080 0x0>; Please remove the leading zeroes from the stream id > + dma-coherent; > + > + bus-width = <8>; ---- > + non-removable; > + supports-cqe; > + > + no-sd; > + no-sdio; > + > + mmc-ddr-1_8v; > + mmc-hs200-1_8v; > + mmc-hs400-1_8v; > + mmc-hs400-enhanced-strobe; > + cap-mmc-hw-reset; ---- This bit is board-specific > + > + qcom,dll-config = <0x0007642c>; > + qcom,ddr-config = <0x80040868>; > + > + status = "disabled"; > + > + sdhc1_opp_table: opp-table { > + compatible = "operating-points-v2"; > + > + opp-384000000 { > + opp-hz = /bits/ 64 <384000000>; > + required-opps = <&rpmhpd_opp_min_svs>; You added interconnects, but not any opp-peak-kBps / opp-avg-kBps, presumably mistakengly? Also, 384Mhz + min_svs sounds a bit weird? Is that the correct level for this SoC? Konrad > + }; > + }; > + }; > + > pdc: interrupt-controller@b220000 { > compatible = "qcom,qdu1000-pdc", "qcom,pdc"; > reg = <0x0 0xb220000 0x0 0x30000>, <0x0 0x174000f0 0x0 0x64>; > -- > 2.17.1 >
On 5/20/2023 4:53 PM, Konrad Dybcio wrote: > > On 19.05.2023 10:51, Komal Bajaj wrote: >> Add sdhc node for eMMC on QDU1000 and QRU1000 SoCs. >> >> Signed-off-by: Komal Bajaj <quic_kbajaj@quicinc.com> >> --- >> arch/arm64/boot/dts/qcom/qdu1000.dtsi | 60 +++++++++++++++++++++++++++ >> 1 file changed, 60 insertions(+) >> >> diff --git a/arch/arm64/boot/dts/qcom/qdu1000.dtsi b/arch/arm64/boot/dts/qcom/qdu1000.dtsi >> index 734438113bba..6113def66a08 100644 >> --- a/arch/arm64/boot/dts/qcom/qdu1000.dtsi >> +++ b/arch/arm64/boot/dts/qcom/qdu1000.dtsi >> @@ -19,6 +19,10 @@ >> >> chosen: chosen { }; >> >> + aliases { >> + mmc0 = &sdhc_1; /*SDC1 eMMC slot*/ >> + }; >> + >> cpus { >> #address-cells = <2>; >> #size-cells = <0>; >> @@ -842,6 +846,62 @@ >> #hwlock-cells = <1>; >> }; >> >> + sdhc_1: mmc@8804000 { >> + compatible = "qcom,qdu1000-sdhci", "qcom,sdhci-msm-v5"; >> + reg = <0x0 0x08804000 0x0 0x1000>, >> + <0x0 0x08805000 0x0 0x1000>; >> + > confusing newline Will remove it in the next patch set. >> + reg-names = "hc", "cqhci"; >> + >> + interrupts = <GIC_SPI 207 IRQ_TYPE_LEVEL_HIGH>, >> + <GIC_SPI 223 IRQ_TYPE_LEVEL_HIGH>; >> + interrupt-names = "hc_irq", "pwr_irq"; >> + >> + clocks = <&gcc GCC_SDCC5_AHB_CLK>, >> + <&gcc GCC_SDCC5_APPS_CLK>, > SDCC>5<? These names are used in accordance with the clock hardware. > >> + <&rpmhcc RPMH_CXO_CLK>; >> + clock-names = "iface", "core", "xo"; > Please keep one per line Noted. > >> + >> + /* Add dt entry for gcc hw reset */ >> + resets = <&gcc GCC_SDCC5_BCR>; > 5? Reason same as above. > >> + >> + interconnects = <&system_noc MASTER_SDCC_1 0 &mc_virt SLAVE_EBI1 0>, >> + <&gem_noc MASTER_APPSS_PROC 0 &system_noc SLAVE_SDCC_2 0>; >> + interconnect-names = "sdhc-ddr", "cpu-sdhc"; >> + power-domains = <&rpmhpd QDU1000_CX>; >> + operating-points-v2 = <&sdhc1_opp_table>; >> + >> + iommus = <&apps_smmu 0x0080 0x0>; > Please remove the leading zeroes from the stream id Sure, will do so. > > >> + dma-coherent; >> + >> + bus-width = <8>; > > ---- >> + non-removable; >> + supports-cqe; >> + >> + no-sd; >> + no-sdio; >> + >> + mmc-ddr-1_8v; >> + mmc-hs200-1_8v; >> + mmc-hs400-1_8v; >> + mmc-hs400-enhanced-strobe; >> + cap-mmc-hw-reset; > ---- > This bit is board-specific Okay, will move these bits to board specific file. > >> + >> + qcom,dll-config = <0x0007642c>; >> + qcom,ddr-config = <0x80040868>; >> + >> + status = "disabled"; >> + >> + sdhc1_opp_table: opp-table { >> + compatible = "operating-points-v2"; >> + >> + opp-384000000 { >> + opp-hz = /bits/ 64 <384000000>; >> + required-opps = <&rpmhpd_opp_min_svs>; > You added interconnects, but not any opp-peak-kBps / opp-avg-kBps, > presumably mistakengly? > > Also, 384Mhz + min_svs sounds a bit weird? Is that the correct > level for this SoC? Yes, you are right, this is wrong configuration, will correct it in the next patch set. Thanks Komal > > Konrad >> + }; >> + }; >> + }; >> + >> pdc: interrupt-controller@b220000 { >> compatible = "qcom,qdu1000-pdc", "qcom,pdc"; >> reg = <0x0 0xb220000 0x0 0x30000>, <0x0 0x174000f0 0x0 0x64>; >> -- >> 2.17.1 >>
diff --git a/arch/arm64/boot/dts/qcom/qdu1000.dtsi b/arch/arm64/boot/dts/qcom/qdu1000.dtsi index 734438113bba..6113def66a08 100644 --- a/arch/arm64/boot/dts/qcom/qdu1000.dtsi +++ b/arch/arm64/boot/dts/qcom/qdu1000.dtsi @@ -19,6 +19,10 @@ chosen: chosen { }; + aliases { + mmc0 = &sdhc_1; /*SDC1 eMMC slot*/ + }; + cpus { #address-cells = <2>; #size-cells = <0>; @@ -842,6 +846,62 @@ #hwlock-cells = <1>; }; + sdhc_1: mmc@8804000 { + compatible = "qcom,qdu1000-sdhci", "qcom,sdhci-msm-v5"; + reg = <0x0 0x08804000 0x0 0x1000>, + <0x0 0x08805000 0x0 0x1000>; + + reg-names = "hc", "cqhci"; + + interrupts = <GIC_SPI 207 IRQ_TYPE_LEVEL_HIGH>, + <GIC_SPI 223 IRQ_TYPE_LEVEL_HIGH>; + interrupt-names = "hc_irq", "pwr_irq"; + + clocks = <&gcc GCC_SDCC5_AHB_CLK>, + <&gcc GCC_SDCC5_APPS_CLK>, + <&rpmhcc RPMH_CXO_CLK>; + clock-names = "iface", "core", "xo"; + + /* Add dt entry for gcc hw reset */ + resets = <&gcc GCC_SDCC5_BCR>; + + interconnects = <&system_noc MASTER_SDCC_1 0 &mc_virt SLAVE_EBI1 0>, + <&gem_noc MASTER_APPSS_PROC 0 &system_noc SLAVE_SDCC_2 0>; + interconnect-names = "sdhc-ddr", "cpu-sdhc"; + power-domains = <&rpmhpd QDU1000_CX>; + operating-points-v2 = <&sdhc1_opp_table>; + + iommus = <&apps_smmu 0x0080 0x0>; + dma-coherent; + + bus-width = <8>; + non-removable; + supports-cqe; + + no-sd; + no-sdio; + + mmc-ddr-1_8v; + mmc-hs200-1_8v; + mmc-hs400-1_8v; + mmc-hs400-enhanced-strobe; + cap-mmc-hw-reset; + + qcom,dll-config = <0x0007642c>; + qcom,ddr-config = <0x80040868>; + + status = "disabled"; + + sdhc1_opp_table: opp-table { + compatible = "operating-points-v2"; + + opp-384000000 { + opp-hz = /bits/ 64 <384000000>; + required-opps = <&rpmhpd_opp_min_svs>; + }; + }; + }; + pdc: interrupt-controller@b220000 { compatible = "qcom,qdu1000-pdc", "qcom,pdc"; reg = <0x0 0xb220000 0x0 0x30000>, <0x0 0x174000f0 0x0 0x64>;