Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp2662402rdb; Mon, 4 Dec 2023 04:16:17 -0800 (PST) X-Google-Smtp-Source: AGHT+IGSqTHgnadZEEzwEKiaBo2MmpSNHAg3SlMkAWCtkcQaTEGpRvPycrn7dyOUaOH12sgXIJbw X-Received: by 2002:a05:6a20:8f13:b0:18b:826c:411f with SMTP id b19-20020a056a208f1300b0018b826c411fmr5808081pzk.44.1701692176872; Mon, 04 Dec 2023 04:16:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701692176; cv=none; d=google.com; s=arc-20160816; b=0g7XO+7hZZXQLUJqTYOHKKmBWFRmawzqJWiZryDXS32764UxCqkuH9vrF7pYQ6yTzA K0Mx1wdGDhrUH5CFhdbUZiOoxXTaQV19rvj3UMFU0Uw5ghcHJzxbid+g7nsSE5M0qhvy 4KGW27WBT/T3T0xuIqFCUrKAqclOukXHkDufvJ+wYskI756cceHuW9UXzl+Vl1rGF0fS xBK3eA3i1RdqA6KOdgZCa+lJa9Rwy7KYUBkXFKpNbl4tJ9qJqb/9VfTz/AxQPEKOwPd1 +ZTFFMXF57EVtGqQf0WR9o+4ZJkYwWPAWnI72okSxRALgzWzmiNS0tloB7jYEenGfXPM l3Jg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=CiF7/12Dm2i6UBBXrc+6gWTBTxTGII6XU/FKSSqOGmQ=; fh=JCYfzGFwVasf7YesB/RtrONHvmC9ab0yNFun8UOuVPE=; b=PT0eJbk/A1gpsZ6J2FDaKXFiGRT7VDxaTuY12uPDK9+DHrTBY4y2s3RrHZ6WrfZZk8 iscJESBIhok6GG7vKzN7x6nnGNQlUEArFueRlLouLBTL2Zh9rKELgcce+OTqAnIsMP3b uuZtNrA0Hi/KzqnDIHAIU897KCqFrL1zT7uxIY/gy8PalLCmEh7YK2zL25X1tekcROns CA2UNuwryJEfHCmhKYho7St4oLe7UwmSrqMcUTV7Hrwhg3g42sHKfG/NN0MTaruf2JTe 6+PrM7ASzPPZmogW3Sdw8Yl5SgTjykYqvWFDZRGtvoJhl7URVxdO8EwTJyjdMLK6LD/C 1uig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=fBIQfxbB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id s14-20020a63d04e000000b005c627018c31si7781594pgi.322.2023.12.04.04.16.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 04:16:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=fBIQfxbB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (Postfix) with ESMTP id 773F3806610B; Mon, 4 Dec 2023 04:16:13 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232410AbjLDMP7 (ORCPT + 99 others); Mon, 4 Dec 2023 07:15:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40912 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229532AbjLDMP5 (ORCPT ); Mon, 4 Dec 2023 07:15:57 -0500 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DE283D2; Mon, 4 Dec 2023 04:16:03 -0800 (PST) Received: from pps.filterd (m0279866.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3B4CEgTg025884; Mon, 4 Dec 2023 12:15:41 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=CiF7/12Dm2i6UBBXrc+6gWTBTxTGII6XU/FKSSqOGmQ=; b=fBIQfxbBNoq2AwR0RA+qlOD/G1PTUPORDs4Vq8JkzrRLi8mtJDfVN1cw4SHH5F2OMXcR /kQ3A7Tjl3FJXRUyEjkinPL4kiMWfJ0J40YAcRoE4h2mBRxLizrTkNISVX4/BomKR6js HMbU68sTNeG2cxFn1tT9Yq/1MAfBwKp+iRL58crkFEF+m8fXikdF/LJWVy/I+LLbk8pD QoVOZ2986NZgXQqgwHr5vKgvlpCcFWD3Wb28HxE4Ewm97QSlVLbPkbuzPTyfFd8+yQms DzunLo4lx5SDou19fa7Kh7Ta0lYA7ABve2s673Tv1LJSx8qwcOpjw2HRbD9sfxkpHmsS Og== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3usektr02b-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 04 Dec 2023 12:15:40 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA04.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 3B4CFbeP003021 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 4 Dec 2023 12:15:37 GMT Received: from [10.50.1.19] (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Mon, 4 Dec 2023 04:15:31 -0800 Message-ID: <621388b9-dcee-4af2-9763-e5d623d722b7@quicinc.com> Date: Mon, 4 Dec 2023 17:45:28 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.3.2 Subject: Re: [PATCH v5 2/3] arm64: dts: qcom: sc7280: Add UFS nodes for sc7280 soc Content-Language: en-US To: Luca Weiss , Andy Gross , Bjorn Andersson , Konrad Dybcio , Manivannan Sadhasivam , Alim Akhtar , Avri Altman , Bart Van Assche , Rob Herring , Krzysztof Kozlowski , Conor Dooley , CC: <~postmarketos/upstreaming@lists.sr.ht>, , , , , References: <20231204-sc7280-ufs-v5-0-926ceed550da@fairphone.com> <20231204-sc7280-ufs-v5-2-926ceed550da@fairphone.com> From: Nitin Rawat In-Reply-To: <20231204-sc7280-ufs-v5-2-926ceed550da@fairphone.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: 1uD3QS97dnA-D3vyy35Ss2TlSsL4-2TU X-Proofpoint-ORIG-GUID: 1uD3QS97dnA-D3vyy35Ss2TlSsL4-2TU X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.997,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-12-04_11,2023-11-30_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 bulkscore=0 priorityscore=1501 lowpriorityscore=0 adultscore=0 spamscore=0 phishscore=0 impostorscore=0 mlxlogscore=999 suspectscore=0 clxscore=1011 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311060000 definitions=main-2312040092 X-Spam-Status: No, score=-5.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email 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 (fry.vger.email [0.0.0.0]); Mon, 04 Dec 2023 04:16:13 -0800 (PST) On 12/4/2023 3:54 PM, Luca Weiss wrote: > From: Nitin Rawat > > Add UFS host controller and PHY nodes for sc7280 soc. > > Signed-off-by: Nitin Rawat > Reviewed-by: Konrad Dybcio > Tested-by: Konrad Dybcio # QCM6490 FP5 > [luca: various cleanups and additions as written in the cover letter] > Signed-off-by: Luca Weiss > --- > arch/arm64/boot/dts/qcom/sc7280.dtsi | 74 +++++++++++++++++++++++++++++++++++- > 1 file changed, 73 insertions(+), 1 deletion(-) > > diff --git a/arch/arm64/boot/dts/qcom/sc7280.dtsi b/arch/arm64/boot/dts/qcom/sc7280.dtsi > index 04bf85b0399a..8b08569f2191 100644 > --- a/arch/arm64/boot/dts/qcom/sc7280.dtsi > +++ b/arch/arm64/boot/dts/qcom/sc7280.dtsi > @@ -15,6 +15,7 @@ > #include > #include > #include > +#include > #include > #include > #include > @@ -906,7 +907,7 @@ gcc: clock-controller@100000 { > clocks = <&rpmhcc RPMH_CXO_CLK>, > <&rpmhcc RPMH_CXO_CLK_A>, <&sleep_clk>, > <0>, <&pcie1_phy>, > - <0>, <0>, <0>, > + <&ufs_mem_phy 0>, <&ufs_mem_phy 1>, <&ufs_mem_phy 2>, > <&usb_1_qmpphy QMP_USB43DP_USB3_PIPE_CLK>; > clock-names = "bi_tcxo", "bi_tcxo_ao", "sleep_clk", > "pcie_0_pipe_clk", "pcie_1_pipe_clk", > @@ -2238,6 +2239,77 @@ pcie1_phy: phy@1c0e000 { > status = "disabled"; > }; > > + 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; > + > + interconnects = <&aggre1_noc MASTER_UFS_MEM QCOM_ICC_TAG_ALWAYS > + &mc_virt SLAVE_EBI1 QCOM_ICC_TAG_ALWAYS>, > + <&gem_noc MASTER_APPSS_PROC QCOM_ICC_TAG_ALWAYS > + &cnoc2 SLAVE_UFS_MEM_CFG QCOM_ICC_TAG_ALWAYS>; > + interconnect-names = "ufs-ddr", "cpu-ufs"; > + > + 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>; > + 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"; > + 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"; > + > + power-domains = <&gcc GCC_UFS_PHY_GDSC>; GCC_UFS_PHY_GDSC is UFS controller GDSC. For sc7280 Phy we don't need this. > + > + resets = <&ufs_mem_hc 0>; > + reset-names = "ufsphy"; > + > + #clock-cells = <1>; > + #phy-cells = <0>; > + > + status = "disabled"; > + }; > + > ipa: ipa@1e40000 { > compatible = "qcom,sc7280-ipa"; > >