Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp2665504rdb; Mon, 4 Dec 2023 04:22:15 -0800 (PST) X-Google-Smtp-Source: AGHT+IFcBkdZdwk8hVfdSXxruhu7O7itfJOExczvsJ3x9vxocTlr237FQQ47rKynU6lD5d4+ujJx X-Received: by 2002:a05:6a20:8416:b0:18f:97c:5b72 with SMTP id c22-20020a056a20841600b0018f097c5b72mr1275747pzd.64.1701692535394; Mon, 04 Dec 2023 04:22:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701692535; cv=none; d=google.com; s=arc-20160816; b=Rszt1aC8We86Iqxm/G7H0M2IEdxmxn8Na7dxni5jlVsvM+sue3Kcq2pb7YvYtkwBgK CEy7hHA/b1azgZrmvtayb1Qgd1MrsrJtTfcBlhkSLuWXiagHeiCbwcP+SOrK75eQKtMQ O9DgYJta0NayaMkwsY3ii7MDV43yZ8/+lhFLIwabAzrPQ4c2su8cHdb1Zmomx56PglhL 1NikvqGHzqh9GbicZVr1sk3GqGu1zj4kY9Ohvfx6eljKsePszYrLIWFPSO1XQ3ZWxbAj 3mc1VpD5PcQvJkBmubWJD4iAi1yldAqdoeRsQ03lI4/PibdbymaNuIAwvgEm/9ADB14z 8c6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:references:to:from:subject:cc :message-id:date:content-transfer-encoding:mime-version :dkim-signature; bh=q8RFfNckjuKt1jz+rzrb9C96eRyO85w6LaaTlbGWMzo=; fh=vL7HeKY9RJGSXKlxCQPorawBIKMkwraoA4jCL+5CyPs=; b=Q5oAdGUogeLl6XTfshyLB9fBHXIIG5q7Ezu1rn0kflm/Y0N63AzbIIPsk4L2FVWx3I AJGHfCvHcsK7rpry/gBst6NNM8CGa4TD6R3SazOAvl9ZFlOFGYCWGaU3ZCxkB8PIdbcg WiADnWfwsza0ihCKAZ6KuDjOjPEzC9KXN9N8ZnVyLeSCgNoc95MoJz+/o98wXyoVj/O0 1TdhToe7F00qLV1VCOi/GTtht7zTzIWKFqH/zGpsLs7jzlKePC1tcUjOiuH7/EFZmgMu 1K1RQ+r0/F2XgETy/hclaDaksklBa9Iph9kVU86GtK2C4Bugl1J98F6KLDM9DodazZPg 3h9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fairphone.com header.s=fair header.b=zTrCvs2e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fairphone.com Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id t5-20020a17090a448500b00286bd949d17si1059462pjg.81.2023.12.04.04.22.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 04:22:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@fairphone.com header.s=fair header.b=zTrCvs2e; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=fairphone.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 9113C8093F56; Mon, 4 Dec 2023 04:22:12 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229532AbjLDMVl (ORCPT + 99 others); Mon, 4 Dec 2023 07:21:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36188 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233019AbjLDMVk (ORCPT ); Mon, 4 Dec 2023 07:21:40 -0500 Received: from mail-ed1-x52c.google.com (mail-ed1-x52c.google.com [IPv6:2a00:1450:4864:20::52c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 368D0E5 for ; Mon, 4 Dec 2023 04:21:45 -0800 (PST) Received: by mail-ed1-x52c.google.com with SMTP id 4fb4d7f45d1cf-54c7744a93fso2598647a12.2 for ; Mon, 04 Dec 2023 04:21:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fairphone.com; s=fair; t=1701692503; x=1702297303; darn=vger.kernel.org; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-transfer-encoding:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=q8RFfNckjuKt1jz+rzrb9C96eRyO85w6LaaTlbGWMzo=; b=zTrCvs2eCip52po00dOtx2DzzrpJtMPOcRbQDM41h23Lx7hyqZxquQ69VS47qcYEMu yG2brI5VZgUBHkfUJXTbD0K+qWqlZ/1GC/ZOHB8LD9LLFHTcfaDmXObrOoxtFjl2R3Gj mQtUppBX715VHQdSeTPR4z8hQovq8amq899U2XrnbiFWqxXwwAM5gqJgnMBwOwf19Ngs Kx5hWG5VOXcISr2x1YXfknjL/hHYkMMmOd3P2Gb09YWolz2PnH34nWfNQUDW0hRTRcVf /njPrbJORv8hDzE0T6SPXaXnAKEs3AZatCrws3M3WGs9Ln5eF7zRQAZhGaZnDGbWSJFw BoXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701692503; x=1702297303; h=in-reply-to:references:to:from:subject:cc:message-id:date :content-transfer-encoding:mime-version:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=q8RFfNckjuKt1jz+rzrb9C96eRyO85w6LaaTlbGWMzo=; b=KlUl55Jh3k/2URg+WrsXHxmQhYwyKMXiVWy+vC+BsbzYBhLLnmYVLilEuqbJy+H/eP wvdHqEyCA7csvVXH5kXAnFLRxQt3HorJ4dAlduI9SDKuPK9iz6436+2fn5HpERvfAUzi 99Z1GDSfgXTEkhGvH9e1XatG8vYExX46mN9eLPnBUh/v0xxG1KFd+m7/suA9pe/fmZF5 KxM2weqIMwNZHVT+pvrdrbS8NtxcIkaEkdbNyNKIxILmsWyGiYrJXmMBW/tYCaIYZYpV 7V29TFcvEGEXXv0ZRRQZVkJsxG2Ilai5wMiEEOp2jVN6E5YkyVANm3Fjkx5ujPPTvjSr 5V+g== X-Gm-Message-State: AOJu0YzMXJHtgMsAhSdW6pG1XHmP7nGWMnfNgVoX1c3KMfk3czi3U0zS cmRxC9L8BGRv3kZoJdRahNslRA== X-Received: by 2002:a50:9b50:0:b0:54c:4837:9a9b with SMTP id a16-20020a509b50000000b0054c48379a9bmr2873330edj.66.1701692503652; Mon, 04 Dec 2023 04:21:43 -0800 (PST) Received: from localhost (144-178-202-138.static.ef-service.nl. [144.178.202.138]) by smtp.gmail.com with ESMTPSA id dg28-20020a0564021d1c00b0054c9177d18esm2522554edb.2.2023.12.04.04.21.42 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 04 Dec 2023 04:21:43 -0800 (PST) Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Mon, 04 Dec 2023 13:21:42 +0100 Message-Id: Cc: <~postmarketos/upstreaming@lists.sr.ht>, , , , , Subject: Re: [PATCH v5 2/3] arm64: dts: qcom: sc7280: Add UFS nodes for sc7280 soc From: "Luca Weiss" To: "Nitin Rawat" , "Andy Gross" , "Bjorn Andersson" , "Konrad Dybcio" , "Manivannan Sadhasivam" , "Alim Akhtar" , "Avri Altman" , "Bart Van Assche" , "Rob Herring" , "Krzysztof Kozlowski" , "Conor Dooley" , X-Mailer: aerc 0.15.2 References: <20231204-sc7280-ufs-v5-0-926ceed550da@fairphone.com> <20231204-sc7280-ufs-v5-2-926ceed550da@fairphone.com> <621388b9-dcee-4af2-9763-e5d623d722b7@quicinc.com> In-Reply-To: <621388b9-dcee-4af2-9763-e5d623d722b7@quicinc.com> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, 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 groat.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 (groat.vger.email [0.0.0.0]); Mon, 04 Dec 2023 04:22:12 -0800 (PST) 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 > >=20 > > Add UFS host controller and PHY nodes for sc7280 soc. > >=20 > > 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(-) > >=20 > > 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 =3D <&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 =3D "bi_tcxo", "bi_tcxo_ao", "sleep_clk", > > "pcie_0_pipe_clk", "pcie_1_pipe_clk", > > @@ -2238,6 +2239,77 @@ pcie1_phy: phy@1c0e000 { > > status =3D "disabled"; > > }; > > =20 > > + ufs_mem_hc: ufs@1d84000 { > > + compatible =3D "qcom,sc7280-ufshc", "qcom,ufshc", > > + "jedec,ufs-2.0"; > > + reg =3D <0x0 0x01d84000 0x0 0x3000>; > > + interrupts =3D ; > > + phys =3D <&ufs_mem_phy>; > > + phy-names =3D "ufsphy"; > > + lanes-per-direction =3D <2>; > > + #reset-cells =3D <1>; > > + resets =3D <&gcc GCC_UFS_PHY_BCR>; > > + reset-names =3D "rst"; > > + > > + power-domains =3D <&gcc GCC_UFS_PHY_GDSC>; > > + required-opps =3D <&rpmhpd_opp_nom>; > > + > > + iommus =3D <&apps_smmu 0x80 0x0>; > > + dma-coherent; > > + > > + interconnects =3D <&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 =3D "ufs-ddr", "cpu-ufs"; > > + > > + clocks =3D <&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 =3D "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 =3D > > + <75000000 300000000>, > > + <0 0>, > > + <0 0>, > > + <75000000 300000000>, > > + <0 0>, > > + <0 0>, > > + <0 0>, > > + <0 0>; > > + status =3D "disabled"; > > + }; > > + > > + ufs_mem_phy: phy@1d87000 { > > + compatible =3D "qcom,sc7280-qmp-ufs-phy"; > > + reg =3D <0x0 0x01d87000 0x0 0xe00>; > > + clocks =3D <&rpmhcc RPMH_CXO_CLK>, > > + <&gcc GCC_UFS_PHY_PHY_AUX_CLK>, > > + <&gcc GCC_UFS_1_CLKREF_EN>; > > + clock-names =3D "ref", "ref_aux", "qref"; > > + > > + power-domains =3D <&gcc GCC_UFS_PHY_GDSC>; Hi Nitin, > > GCC_UFS_PHY_GDSC is UFS controller GDSC. For sc7280 Phy we don't need thi= s. 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 > > > + > > + resets =3D <&ufs_mem_hc 0>; > > + reset-names =3D "ufsphy"; > > + > > + #clock-cells =3D <1>; > > + #phy-cells =3D <0>; > > + > > + status =3D "disabled"; > > + }; > > + > > ipa: ipa@1e40000 { > > compatible =3D "qcom,sc7280-ipa"; > > =20 > >=20