Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp2864979rdb; Mon, 4 Dec 2023 09:28:19 -0800 (PST) X-Google-Smtp-Source: AGHT+IFhP8Wu0eP4cTMH5UASyBHO0vS+SYWrYt2/2+a1XfjEAV7g14lhdvzooEUjv3jY+n37yE9t X-Received: by 2002:a17:902:700c:b0:1d0:6ffd:e2ee with SMTP id y12-20020a170902700c00b001d06ffde2eemr4418994plk.136.1701710898976; Mon, 04 Dec 2023 09:28:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701710898; cv=none; d=google.com; s=arc-20160816; b=xo3MMXmkR03vTGixtTknjdRuh08VPrFEhA0UgUtdij0vrHM5MnPH4NT618IQogeRWD fAL86E5tvoLMQaLUi6Bl3SY3TZfeSsiTvTS0omwsU5dU13qQeYA9vD5wAFdKyWWgMCHI z1Rwdv3v8IyDx5NO9y6xKl/ghrYx1l6Zit+jcC1DhA8BqC4kNVDvYJFE0/sauN+FJ0DV b+fGAOXYVp9Mmo5Pr4kSvQaV/jbtH9RK3HtP6LVPdf9lIqV8iNEhN655VWcYcB4ZQrL6 EehZmVAT39W53asViHgxAZrrtQTDiZMih8pG5qJylwi/y0PsdwIg0Hr5Pyi1MRSAOmW9 9iOw== 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=O/w7GgStHBiYsuRqEUagQ6Lk0QgWtx1hIjwEQICjYDI=; fh=JCYfzGFwVasf7YesB/RtrONHvmC9ab0yNFun8UOuVPE=; b=aVp6oFIu455JZSaLLu2QNBBVYuV1ebsgQHEr50khRWxejL6QA/jZ9yeVGcOjsxilh/ K2hfpcdtpaA+n3ncQefiXKH7zaxpYPjCE1bhR8x2qEoCZVH0kyeEukBv6Z1dSTnWXS6+ 4hhPI6vBNaWa8YGFaKynzhBX1jJsV7vuMjlEeoXuLZS7Z9WxAJboV8tSFnP3ykjGvl0+ WcrBnom8POVvkpSq+LT/DTGyKyCZnbW5U4H7z5OCeqZD93J7Vmx8MUaVdpUqlLfDtZeR kVssPXz9OQg/zRVwRA5Pdn47CrWATx298X96Ly4+ke95t8paIEWIzR6tHxIEBM1F/KF6 dDjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=W2T82SdS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id p11-20020a1709028a8b00b001d0bc650573si520828plo.225.2023.12.04.09.28.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 09:28:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=W2T82SdS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (Postfix) with ESMTP id 7FDAB80958AD; Mon, 4 Dec 2023 09:28:16 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231737AbjLDR2C (ORCPT + 99 others); Mon, 4 Dec 2023 12:28:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33748 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229485AbjLDR2A (ORCPT ); Mon, 4 Dec 2023 12:28:00 -0500 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CD0EDA1; Mon, 4 Dec 2023 09:28:06 -0800 (PST) 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 3B4GpuMU000330; Mon, 4 Dec 2023 17:27:48 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=O/w7GgStHBiYsuRqEUagQ6Lk0QgWtx1hIjwEQICjYDI=; b=W2T82SdSr+YG7fUQz6sBvLVxXTDrulmbLYhB/MGvElTEHyrkZiNvngrMxvNeLmOUn28F vGf8seq6p9gu4zEWYUArgcOnsWPegW+af4bPZ06wJ3URPTuGzYW3nA5HueW0rYwyLpPg RaTiKSZHeON4FYhmA+AhJVw1yFzhkFLjlMc/7Z+aFPnEO2jAfIqbdGkUk6Eeh04ncqr/ jZuIdMX8/sW6lTTT4ezMd/n0G4xnru+rRIiCDFZe4pHkMtGsdGJnDmOWrTDsCLmMQxXx yhdaTzxyQr1DY4WzXJCmIyOzyYfjrmZuUM52GlAIGcMQuK93afO/kUGDQHdQM7jtCvaW dg== Received: from nalasppmta04.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3usjnqg33p-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 04 Dec 2023 17:27:48 +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 3B4HRlsS017881 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 4 Dec 2023 17:27:47 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 09:27:42 -0800 Message-ID: Date: Mon, 4 Dec 2023 22:57:38 +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> <621388b9-dcee-4af2-9763-e5d623d722b7@quicinc.com> From: Nitin Rawat In-Reply-To: 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-ORIG-GUID: oYCufc3jdikH9TciXY79BHDKGbAsylrl X-Proofpoint-GUID: oYCufc3jdikH9TciXY79BHDKGbAsylrl 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_16,2023-12-04_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 adultscore=0 lowpriorityscore=0 clxscore=1015 mlxscore=0 suspectscore=0 priorityscore=1501 spamscore=0 impostorscore=0 mlxlogscore=999 phishscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311060000 definitions=main-2312040133 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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Mon, 04 Dec 2023 09:28:16 -0800 (PST) On 12/4/2023 5:51 PM, Luca Weiss wrote: > On Mon Dec 4, 2023 at 1:15 PM CET, Nitin Rawat wrote: >> >> >> 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>; > > Hi Nitin, > >> >> GCC_UFS_PHY_GDSC is UFS controller GDSC. For sc7280 Phy we don't need this. > > In the current dt-bindings the power-domains property is required. > > Is there another power-domain for the PHY to use, or do we need to > adjust the bindings to not require power-domains property for ufs phy on > sc7280? > > Also, with "PHY" in the name, it's interesting that this is not for the > phy ;) > > Regards > Luca > Hi Luca, For sc7280 there is no PHY GDSC and only controller GDSC is there. Hence, I would suggest to update the binding to reflect that power-domains is not a required field. Regards, Nitin >> >>> + >>> + resets = <&ufs_mem_hc 0>; >>> + reset-names = "ufsphy"; >>> + >>> + #clock-cells = <1>; >>> + #phy-cells = <0>; >>> + >>> + status = "disabled"; >>> + }; >>> + >>> ipa: ipa@1e40000 { >>> compatible = "qcom,sc7280-ipa"; >>> >>> >