From patchwork Mon May 22 09:36:18 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Komal Bajaj X-Patchwork-Id: 97228 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1325235vqo; Mon, 22 May 2023 02:51:26 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6M2ksmYcv3FpRBehxVXr5wjob8Cza6qgY9qwyRdziNJTUcpGt2gQBWE1+4ryYAQnekLZeq X-Received: by 2002:a17:90a:71c2:b0:255:70e1:e41 with SMTP id m2-20020a17090a71c200b0025570e10e41mr2285567pjs.19.1684749086556; Mon, 22 May 2023 02:51:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684749086; cv=none; d=google.com; s=arc-20160816; b=NjwPeaA0yLqakVg/oWSRjEzEsBABHNQ2dJCP7Vqbqu34xohj/SLeyPFt5mZsLoQbWT srydlEkRV/y7ZFjTAKetHnrbcIwKLr1Yo6lNF92xgDfA5TTIs9LvzwYaPArW0NUzztCN 3P/8TcFk4+vrWM1/jO1FOehsHZ1OXiWUFZsSIw40tRk8/ZiH5GqMG8CMX2X7c/bvqG8j Vw0YHtVFh9UGdM9bOTSInD+VmGAOOfHDZ+OOW7YQDkwdD3uRMBNsfTVXGSyAE2uB6kQw rqH+2cVScLN5rocnPVRB9+zSld4vTx2lI9NsX3/83C52SY7ZHMcZ3lgUHiDs4nOZfBHC Kn4g== 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=PXapD9JxMsFjcT9UCiMPxZ6OLLakeDOwOjp3iq3BkHU=; b=jowwTqg8Ek2DbCAqWYA6Hnnf4MJDr/e+ywI4xbKbfOx7tIn7R/qAhAfkTzA/1SXR52 CFirr2Pvu8u8DNAhkLpsIvbqT8Nxk/frJsGrShzkwG8x/QGjovTXgA+D0JGpz9OQy6yS +adLJub9u51Kz9F8hkUWlsRnVLkKQqQSg4AivMyjy6i7/ap94BDXGTgylZuVw52dlLGX ufvYVC0gckxLIeQxga5IRWbU7mfNp+T19TqvtewTBIWbEjUjzEICnZ1nY20uZFoshcb6 F5VoOf/atJx1MZbTESrzMpflTGeJ9A9TIKwrjkQf9AtRQrAJBPfMgt0VDl9gbg67eyTM kEtw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=LRznRbYV; 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 iq12-20020a17090afb4c00b00250c1397245si2777871pjb.121.2023.05.22.02.51.12; Mon, 22 May 2023 02:51:26 -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=LRznRbYV; 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 S232311AbjEVJgl (ORCPT + 99 others); Mon, 22 May 2023 05:36:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34434 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232157AbjEVJgd (ORCPT ); Mon, 22 May 2023 05:36:33 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 144C7B7; Mon, 22 May 2023 02:36:33 -0700 (PDT) Received: from pps.filterd (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 34M9W6EI002775; Mon, 22 May 2023 09:36:30 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=PXapD9JxMsFjcT9UCiMPxZ6OLLakeDOwOjp3iq3BkHU=; b=LRznRbYV1yZ6RdLygPbdCNWAl1C1VMvMSWwW4wuXN/ZHQFwe7tJ3nL4XxbViqs+bTXr3 qJfTzv8p17gaeME5bUF/wgHceX5J3NxT8tc8Xl0R9WLW5imlKEI3qop9m5/tBCJqT80k 0ntP56c85fy5s9fTRQQBl13CWrPPaZG+49vvjUiaWfEceIp2ZlPJmiRTdWh0/ckzQ8El kX/+IVuF2L217R0fqmnkNEouAxQ+B2tsUG1P3YcRT3wxsyc9Cz7r9+hkgymgRv0OhKd9 X4ORBpD7M9ERanQLsqV5gO7ajWKwo+SeuLvC9jyc/CFO49OCfHUIlsSbWum++LPu7wFi aQ== Received: from apblrppmta01.qualcomm.com (blr-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com [103.229.18.19]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3qppypb700-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 22 May 2023 09:36:30 +0000 Received: from pps.filterd (APBLRPPMTA01.qualcomm.com [127.0.0.1]) by APBLRPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTP id 34M9aQSf026251; Mon, 22 May 2023 09:36:26 GMT Received: from pps.reinject (localhost [127.0.0.1]) by APBLRPPMTA01.qualcomm.com (PPS) with ESMTPS id 3qpq9kn8ff-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 22 May 2023 09:36:26 +0000 Received: from APBLRPPMTA01.qualcomm.com (APBLRPPMTA01.qualcomm.com [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 34M9aQuT026246; Mon, 22 May 2023 09:36:26 GMT Received: from hu-maiyas-hyd.qualcomm.com (hu-kbajaj-hyd.qualcomm.com [10.147.247.189]) by APBLRPPMTA01.qualcomm.com (PPS) with ESMTP id 34M9aPQJ026245; Mon, 22 May 2023 09:36:26 +0000 Received: by hu-maiyas-hyd.qualcomm.com (Postfix, from userid 2340697) id 49FE75001C2; Mon, 22 May 2023 15:06:25 +0530 (+0530) From: Komal Bajaj To: Ulf Hansson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Andy Gross , Bjorn Andersson , Konrad Dybcio , Bhupesh Sharma Cc: Komal Bajaj , linux-mmc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: [PATCH v2 2/4] arm: dts: qcom: qdu1000: Add SDHCI node Date: Mon, 22 May 2023 15:06:18 +0530 Message-Id: <20230522093620.3568-3-quic_kbajaj@quicinc.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230522093620.3568-1-quic_kbajaj@quicinc.com> References: <20230522093620.3568-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-ORIG-GUID: SGfk2F-htbFLEkHpItWkM1vtjqxYySYg X-Proofpoint-GUID: SGfk2F-htbFLEkHpItWkM1vtjqxYySYg 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-22_06,2023-05-17_02,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 mlxscore=0 clxscore=1015 mlxlogscore=999 phishscore=0 impostorscore=0 lowpriorityscore=0 bulkscore=0 suspectscore=0 malwarescore=0 spamscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2304280000 definitions=main-2305220081 X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766587458248239478?= X-GMAIL-MSGID: =?utf-8?q?1766587458248239478?= Add sdhc node for eMMC on QDU1000 and QRU1000 SoCs. Signed-off-by: Komal Bajaj --- arch/arm64/boot/dts/qcom/qdu1000.dtsi | 51 +++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/qdu1000.dtsi b/arch/arm64/boot/dts/qcom/qdu1000.dtsi index 734438113bba..38ee7115a35f 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; /* eMMC */ + }; + cpus { #address-cells = <2>; #size-cells = <0>; @@ -842,6 +846,53 @@ #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 = , + ; + 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"; + + 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 0x80 0x0>; + dma-coherent; + + bus-width = <8>; + + 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_nom>; + opp-peak-kBps = <6528000 1652800>; + opp-avg-kBps = <400000 0>; + }; + }; + }; + pdc: interrupt-controller@b220000 { compatible = "qcom,qdu1000-pdc", "qcom,pdc"; reg = <0x0 0xb220000 0x0 0x30000>, <0x0 0x174000f0 0x0 0x64>;