From patchwork Tue May 23 13:57:31 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Komal Bajaj X-Patchwork-Id: 98003 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2169216vqo; Tue, 23 May 2023 07:07:06 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5BYEgMFfM+wqvV8m5rvXFYVLVdCjhjY+gMDQ9w2BXQz90qBE3Mf2Qhg7cCfMJ3fMEcS9UV X-Received: by 2002:a05:6a20:7d99:b0:10b:7008:584c with SMTP id v25-20020a056a207d9900b0010b7008584cmr7620577pzj.22.1684850825848; Tue, 23 May 2023 07:07:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684850825; cv=none; d=google.com; s=arc-20160816; b=yRLy2hanNOxQZvNPltc/s55lpFu+OAlTPhG5qyfWEl43Luxqawut4a8ZWcn1leRNHk QVJN5x7Dx3yHjFXZonlUPJiD6KzViv0gxZY9fUJpHrL4KCpm92GFaKNp7OnuwKepkljx nZ1408rZl7dxbO+y0VuqCf8JRrOx4bb7HJfrHsprcoWSVGoZK8sKP0eHMn5tzC5oI/qv MHer0XgswD5EbPvLkhahyxuVMWtdMjjU35s9VYnWtXis9zvaRga4R4fAaOogKOjZB1HL oHELqzHovmPJRyCnnEwBVB8iPdOoQMFerlLZPI0+CKfH36kTz1H9B7Qp02D0OB06CYT5 Ma8A== 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=ksX52XQkyOLXrPtHRR5XkYgyP7703TmZUwHinw78i2c=; b=yWYI3G+hzbYkBl3uXFJDKfUSBkrQrgvyxZ9H1HkIGELxF3SCSfRxwhud079K6eW8Ao UQZgWh+baX+MiokK2egd1zOClJfb6FuMUR4OyR8FYEZrptCW+3SqCH4pOLRVrE/vXX6D cHaoXEbfCE/mqClAYZNgvnIZBM9PKoRsjLRY65c+BYMKsdxrEVYJd2bzuLLLUkpGhe5P lutMHucHX0JIW3o7j4wBhNN4osPqCH9LMJwordIvC1KoNmHJ7lmxmUSVG4Z5mfgXsrpm xRlsf2k5PflxYBo1sh1H/dOpHKiN4+HuNNHvv8oD7vaC9D8YKfby1ZlOcEeEb/3j+64X WAZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=B7ZJu6pC; 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 m18-20020a637d52000000b005303b3df73bsi6830221pgn.320.2023.05.23.07.06.52; Tue, 23 May 2023 07:07:05 -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=B7ZJu6pC; 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 S237134AbjEWN6g (ORCPT + 99 others); Tue, 23 May 2023 09:58:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41464 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237149AbjEWN6T (ORCPT ); Tue, 23 May 2023 09:58:19 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E846BE58; Tue, 23 May 2023 06:57:45 -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 34NDtg0w007078; Tue, 23 May 2023 13:57:42 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=ksX52XQkyOLXrPtHRR5XkYgyP7703TmZUwHinw78i2c=; b=B7ZJu6pCxWb/fFsRZpmTmVjw2B6XFaneXyLanw0lpQscrQwTevG9+IMYb4WOEMySLBa4 hKnr7+0CzuvkqG5oNAKjwacb8Oqt0r00pmTwqWfp6QLx/U2IJCyZoVB94gzcsC4yBdsG e74W39u2qbIVqqYe3KphkYWqNptxlIdeTnmx7BCP3c+5getOwxGx2bRN509B1sxP5DvE h2pxbalCg/GiOpHkIi6ffFxKJ5ttqub02jPOpQOC3zGBakxUqeJNRN2UXsHvg/JyIDit A9yNJG9fYm70D6I/o19hf+xjhQUez7SjoHwl7y6Qdy59M1sNiTffBkvK+W2uieZ3I9bQ 4A== 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 3qrhb0hss7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 23 May 2023 13:57:42 +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 34NDvdV7032161; Tue, 23 May 2023 13:57:39 GMT Received: from pps.reinject (localhost [127.0.0.1]) by APBLRPPMTA02.qualcomm.com (PPS) with ESMTPS id 3qpq9kjvt6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 23 May 2023 13:57:39 +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 34NDvcYJ032155; Tue, 23 May 2023 13:57:38 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 34NDvc5B032154; Tue, 23 May 2023 13:57:38 +0000 Received: by hu-maiyas-hyd.qualcomm.com (Postfix, from userid 2340697) id E454E529754; Tue, 23 May 2023 19:27:37 +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 v3 2/4] arm: dts: qcom: qdu1000: Add SDHCI node Date: Tue, 23 May 2023 19:27:31 +0530 Message-Id: <20230523135733.3852-3-quic_kbajaj@quicinc.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230523135733.3852-1-quic_kbajaj@quicinc.com> References: <20230523135733.3852-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: RF58ETlihi9m6K694QV-npGz2fxXdBww X-Proofpoint-GUID: RF58ETlihi9m6K694QV-npGz2fxXdBww X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.573,FMLib:17.11.176.26 definitions=2023-05-23_09,2023-05-23_02,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=910 clxscore=1015 lowpriorityscore=0 impostorscore=0 adultscore=0 phishscore=0 malwarescore=0 spamscore=0 bulkscore=0 suspectscore=0 priorityscore=1501 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2304280000 definitions=main-2305230109 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, URIBL_BLOCKED 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?1766694139820340191?= X-GMAIL-MSGID: =?utf-8?q?1766694139820340191?= Add sdhc node for eMMC on QDU1000 and QRU1000 SoCs. Signed-off-by: Komal Bajaj --- arch/arm64/boot/dts/qcom/qdu1000.dtsi | 47 +++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) -- 2.17.1 diff --git a/arch/arm64/boot/dts/qcom/qdu1000.dtsi b/arch/arm64/boot/dts/qcom/qdu1000.dtsi index 734438113bba..6df07334f1d3 100644 --- a/arch/arm64/boot/dts/qcom/qdu1000.dtsi +++ b/arch/arm64/boot/dts/qcom/qdu1000.dtsi @@ -842,6 +842,53 @@ #hwlock-cells = <1>; }; + sdhc: 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>;