Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp2038993rdh; Tue, 26 Sep 2023 10:23:53 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGA7LZtV7NbLo5R6/ktJy4pWkzIji+3hRL7mdLL6wGBeQZlWiKGDqyP90WxKxD/z4KgEXau X-Received: by 2002:a05:6a20:1b25:b0:15d:d250:d249 with SMTP id ch37-20020a056a201b2500b0015dd250d249mr9424235pzb.37.1695749032908; Tue, 26 Sep 2023 10:23:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695749032; cv=none; d=google.com; s=arc-20160816; b=WejUJecAbUijIUmdU2pUqUPvwqu2Vxw/vB9PDCiI7zplg3IT9TMRsUlCYP3aJYYqb7 k/fZLI0+ngOMUcmVluAf1QrOBsj0b5yL870RP7CR4lCTMIbQgwQ1m8V92RIfuOPaN3QH tpnDLa4qcH/sBCB8ClsI8Aj++9IzOycWYjNEoRLmYXXyMGki+di4kpIN9I3nzTl9j50Y jpabtFj9YkUM3eLG4QRoQWRrqJLIyXJNG4Qn12NoYhpN9Xvzc3rlif0rjFrRF/Z6nJg5 jkSQxnmzO5LJXNZuxyqYSCi77j6uZMoYUBxMOWehFpCaNIhlh1Wl4xjqmi5e1tGRXV6/ tkaw== 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=sAK5QFfC4hTLM7Yvbr3JcKfErAxzhSZSUtguTaWQ5No=; fh=K6pJT0tCUjjAwP4YTKohlR5+kEeLPFqNvlfg3NOMOtU=; b=L8XW0ACcOngoJqOVIVT7vcoFwyb+4Gk1nONRpkklHUcVNqfkq5t3GWRxQKGV/NykzC 4dEEwne0AhKJ6PVwtEdU6Z5JfikFAXnUu1YIt/RCIaDOgguuMk4tOmZKzpoxlhQ+0Ahe 9SNf5F+6jdiWPc5PHapdMVF26i1G1ZcgMUxz9TdKZYS3ANXUXS8vi/22CnWDFF8S5cGf bKg7RTpyeXsclUi/kUaAnHxFBIr2F5JAVZKxzRWwxitQshUlTaxhLIdd3QANbWZqGRDD OVMdATNh4Z6ddWTdF+rKlEhI9VTzfm436U0stmXzUftG3YiYKqhIM2avVkp9cht7WwFG PbEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=MT2thlS7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id ct11-20020a056a000f8b00b0068ff659af62si12798377pfb.106.2023.09.26.10.23.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Sep 2023 10:23:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=MT2thlS7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 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 (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 40D1B81B8038; Tue, 26 Sep 2023 09:21:18 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235254AbjIZQVP (ORCPT + 99 others); Tue, 26 Sep 2023 12:21:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39216 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229601AbjIZQVK (ORCPT ); Tue, 26 Sep 2023 12:21:10 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 24DA1B3; Tue, 26 Sep 2023 09:21:03 -0700 (PDT) Received: from pps.filterd (m0279868.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 38QDsC6O015169; Tue, 26 Sep 2023 16:20:51 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=sAK5QFfC4hTLM7Yvbr3JcKfErAxzhSZSUtguTaWQ5No=; b=MT2thlS7wYniQMqoMPOS77akq142I/hc8AUraFsuzwlo9uqsahIips99CeSWkPAyT5TK 2shAjW8BURz1HT2i0uVJrvILKJhemAzPUX4/ro29v9944Wk8F02Vm4JAXViejzV6K301 teD0LbnmQPh1mBgJ3UH2TAieQ9+az5mtSJioU7aT4LslDHeclYvknZDDwTP+DNVoVw7X scDGo3jlRD1o+y3A2W0UjP0UFZy4fCnG8jicmekYppzwSEiyyrrHzqfz6AmB+a3Nc1mi umPKLakZ65xm0b5+4/qhOQjS+SuDW/lbSk2rFYbiANCRayS4Dh9WiZO0vjnxjXqtKjd8 iA== 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 3tc00rgjpq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 26 Sep 2023 16:20:51 +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 38QGKmp4010063; Tue, 26 Sep 2023 16:20:48 GMT Received: from pps.reinject (localhost [127.0.0.1]) by APBLRPPMTA01.qualcomm.com (PPS) with ESMTP id 3t9s3kk6n9-1; Tue, 26 Sep 2023 16:20:48 +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 38QGKm1a010057; Tue, 26 Sep 2023 16:20:48 GMT Received: from hu-maiyas-hyd.qualcomm.com (hu-nitirawa-hyd.qualcomm.com [10.213.109.152]) by APBLRPPMTA01.qualcomm.com (PPS) with ESMTP id 38QGKlmk010056; Tue, 26 Sep 2023 16:20:48 +0000 Received: by hu-maiyas-hyd.qualcomm.com (Postfix, from userid 2342877) id 1DA8C601917; Tue, 26 Sep 2023 21:50:47 +0530 (+0530) From: Nitin Rawat To: agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, mani@kernel.org, alim.akhtar@samsung.com, bvanassche@acm.org, avri.altman@wdc.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, cros-qcom-dts-watchers@chromium.org Cc: linux-arm-msm@vger.kernel.org, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Nitin Rawat Subject: [PATCH V2 2/3] arm64: dts: qcom: sc7280: Add UFS nodes for sc7280 soc Date: Tue, 26 Sep 2023 21:50:41 +0530 Message-Id: <20230926162042.14180-3-quic_nitirawa@quicinc.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230926162042.14180-1-quic_nitirawa@quicinc.com> References: <20230926162042.14180-1-quic_nitirawa@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: j4Z62HMp98ey1XQF6alKAF6Xg3kFQuiR X-Proofpoint-ORIG-GUID: j4Z62HMp98ey1XQF6alKAF6Xg3kFQuiR X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.980,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-09-26_13,2023-09-26_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 mlxscore=0 priorityscore=1501 mlxlogscore=915 suspectscore=0 clxscore=1015 phishscore=0 adultscore=0 bulkscore=0 malwarescore=0 impostorscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2309180000 definitions=main-2309260142 X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE 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: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Tue, 26 Sep 2023 09:21:18 -0700 (PDT) Add UFS host controller and PHY nodes for sc7280 soc. Signed-off-by: Nitin Rawat --- arch/arm64/boot/dts/qcom/sc7280.dtsi | 64 ++++++++++++++++++++++++++++ 1 file changed, 64 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sc7280.dtsi b/arch/arm64/boot/dts/qcom/sc7280.dtsi index 66f1eb83cca7..3be8ea090ade 100644 --- a/arch/arm64/boot/dts/qcom/sc7280.dtsi +++ b/arch/arm64/boot/dts/qcom/sc7280.dtsi @@ -3353,6 +3353,70 @@ }; }; + ufs_mem_hc: ufs@1d84000 { + compatible = "qcom,sc7280-ufshc", "qcom,ufshc", + "jedec,ufs-2.0"; + reg = <0x0 0x01d84000 0x0 0x3000>; + interrupts = ; + phys = <&ufs_mem_phy>; + phy-names = "ufsphy"; + lanes-per-direction = <2>; + #reset-cells = <1>; + resets = <&gcc GCC_UFS_PHY_BCR>; + reset-names = "rst"; + + power-domains = <&gcc GCC_UFS_PHY_GDSC>; + required-opps = <&rpmhpd_opp_nom>; + + iommus = <&apps_smmu 0x80 0x0>; + dma-coherent; + + clock-names = "core_clk", + "bus_aggr_clk", + "iface_clk", + "core_clk_unipro", + "ref_clk", + "tx_lane0_sync_clk", + "rx_lane0_sync_clk", + "rx_lane1_sync_clk"; + clocks = <&gcc GCC_UFS_PHY_AXI_CLK>, + <&gcc GCC_AGGRE_UFS_PHY_AXI_CLK>, + <&gcc GCC_UFS_PHY_AHB_CLK>, + <&gcc GCC_UFS_PHY_UNIPRO_CORE_CLK>, + <&rpmhcc RPMH_CXO_CLK>, + <&gcc GCC_UFS_PHY_TX_SYMBOL_0_CLK>, + <&gcc GCC_UFS_PHY_RX_SYMBOL_0_CLK>, + <&gcc GCC_UFS_PHY_RX_SYMBOL_1_CLK>; + freq-table-hz = + <75000000 300000000>, + <0 0>, + <0 0>, + <75000000 300000000>, + <0 0>, + <0 0>, + <0 0>, + <0 0>; + status = "disabled"; + }; + + ufs_mem_phy: phy@1d87000 { + compatible = "qcom,sc7280-qmp-ufs-phy"; + reg = <0x0 0x01d87000 0x0 0xe00>; + clocks = <&rpmhcc RPMH_CXO_CLK>, + <&gcc GCC_UFS_PHY_PHY_AUX_CLK>, + <&gcc GCC_UFS_1_CLKREF_EN>; + clock-names = "ref", "ref_aux", "qref"; + + resets = <&ufs_mem_hc 0>; + reset-names = "ufsphy"; + + #clock-cells = <1>; + #phy-cells = <0>; + + status = "disabled"; + + }; + usb_1_hsphy: phy@88e3000 { compatible = "qcom,sc7280-usb-hs-phy", "qcom,usb-snps-hs-7nm-phy"; -- 2.17.1