Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp4099086rdh; Fri, 29 Sep 2023 11:01:33 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEXL5wufSvs8TL2CJIM1dJug7r/KlLOYico9M6Q2PPjbsTSJUxHD3M/ZNewELRxga8T6K0a X-Received: by 2002:a05:6a20:158e:b0:159:b4ba:a5bf with SMTP id h14-20020a056a20158e00b00159b4baa5bfmr5127352pzj.13.1696010493338; Fri, 29 Sep 2023 11:01:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696010493; cv=none; d=google.com; s=arc-20160816; b=qnHwCSCnTQRPITkuyq/n8rayTrJoQaL+1Z0duzfQKZbePv7J7P0WnlBLUcFDE58/Oj lk10lt4LVjRSlE7tqPJprdUbn/bz0wgGKAEO4IsL6oChXYjmi3oucho+6fRKO8CK/MxO cJCX2huyxyq4iBF89BUmCdVAzZyJ3/wK/JY/b21rTVttp83Ln9Jicr2kklP0jLpDbZAV AppYjod6vSct9CnGXlkfSuTFiL5slRFmwi4sfMGIgqBH1sA2R3Ht+guN/EaDx5wUjgEG RaOyWMrz5IW3mLrLxbL8fc4cET9P9ve0ILsjzNnGwDkF+PujJIYhEFP/N2vXO5S0HOjC X+/A== 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=jCib+YEJ6+7KaH85hc8Nb8MnFh17rpSkk5Oe5+3Arrc=; fh=0vQ/vHLq/+THJKIQwOOj2foUMU9IwrVFQU1SnCc1yUw=; b=suXi2+YsRAJWhdK7ICVIdX/BYP6jylrDvedxwD+t8cPR2OegTyvrCIdQix3A5cYS41 qfkukwrC7h6RlC9Qt4RE4R/tSFaYU9DdgyGNEkNdA3pMRmRVqda7C/pg93YWMiM2IU10 7UuoKES9lXOpjDNM13lgDroLEmi0AjxXr4em511qyDu1ZyPg+oWQyg0EUtDEDG5TNHt7 mo44XcpeQGeuyP+c5ONxZ54n2GU4vn3XQdJZlgKaIO2iu4G2BDDZdx7jywTOTimA3LAV LzlUD4msYscOHGCd9W1QoMmWQ3xQwfN99r/nDOMj9aJBxLko3oCYvFOgC7N7AXoxsTmR tC/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fairphone.com header.s=fair header.b=AUTSRteT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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 morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id w20-20020a63fb54000000b00564beb6145fsi20704230pgj.765.2023.09.29.11.01.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Sep 2023 11:01:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@fairphone.com header.s=fair header.b=AUTSRteT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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 morse.vger.email (Postfix) with ESMTP id 4BD6F803461D; Fri, 29 Sep 2023 02:01:32 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232713AbjI2JBL (ORCPT + 99 others); Fri, 29 Sep 2023 05:01:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45140 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231774AbjI2JBI (ORCPT ); Fri, 29 Sep 2023 05:01:08 -0400 Received: from mail-ej1-x636.google.com (mail-ej1-x636.google.com [IPv6:2a00:1450:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 939E494 for ; Fri, 29 Sep 2023 02:01:02 -0700 (PDT) Received: by mail-ej1-x636.google.com with SMTP id a640c23a62f3a-99bdcade7fbso1772173366b.1 for ; Fri, 29 Sep 2023 02:01:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fairphone.com; s=fair; t=1695978061; x=1696582861; 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=jCib+YEJ6+7KaH85hc8Nb8MnFh17rpSkk5Oe5+3Arrc=; b=AUTSRteTyo95zFGGVfWFGl3v8vYxH4Nrnn738GzkQogs6CJJyrteC1PupHgsY9Yb62 7WnGA8wfXdvUL6Xa/D1MStfhsB17K/BU32odY0TQvY4q5pEqjqPyOocyoQYrLoDtaakv yHkDccJ6GM1zsAmBEHQ1s9wzyWCXisEvcs4+DGFL1Le9WEV6nix+rcvQEd1UlpBzcdlp auPSSM+j9hXKvMPVt9WiY6sgN20r3qn6fVj3m9HTLLxo3aXH1FOpSCfy1QkyRGgiS+PA or9zXUg/RNB2j/hiI3YgQd+e0SnoEkRRoITO0KzhuUkBQ5VR3OE48tOop7QCujYpYBJN 0DQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695978061; x=1696582861; 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=jCib+YEJ6+7KaH85hc8Nb8MnFh17rpSkk5Oe5+3Arrc=; b=vWoYOCoeP9iGgXmCfYzgrIMnmlEsvct5fp452Rsv895Qvxutkm2/1tTz+LV1mEQq9B d1v6hXbH/QFVIlTwPgF8iqo68c4eWIUBw2HG41LkAFeoBJidBwSzgToR0LZMimtUmG57 UeEPJARmjReMYHOgGkmUx3sxbwNQz1M/gqyYaFR81Tk0IiVImej6R45B9V6G2PMCXcqy ja8bIGZqeq3k5E3xootG6V3KwoHkB1hlOkgcEk++GVNL+E4YFdWbxt089O3c/AG0t9Xf cExw9HxtsIS2Q4swfWOVvVF44bktv56l9laPLf9YzrBLMDtJ6lXCUau/ZXDzVodh2Xy9 1YIA== X-Gm-Message-State: AOJu0Ywv2KRHZhBhBpul32hdHszo2Hq4J4vkkcBmbJB8Dla6gnj/oqTO zbSxySm5ZWbosCAvubmivrTrpg== X-Received: by 2002:a17:906:3050:b0:9ae:65a5:b6f4 with SMTP id d16-20020a170906305000b009ae65a5b6f4mr3370291ejd.20.1695978060936; Fri, 29 Sep 2023 02:01:00 -0700 (PDT) Received: from localhost (144-178-202-138.static.ef-service.nl. [144.178.202.138]) by smtp.gmail.com with ESMTPSA id bl19-20020a170906c25300b0099bc8db97bcsm12087256ejb.131.2023.09.29.02.01.00 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 29 Sep 2023 02:01:00 -0700 (PDT) Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Fri, 29 Sep 2023 11:01:00 +0200 Message-Id: Cc: , , , Subject: Re: [PATCH V3 2/4] arm64: dts: qcom: sc7280: Add UFS nodes for sc7280 soc From: "Luca Weiss" To: "Nitin Rawat" , , , , , , , , , , , X-Mailer: aerc 0.15.2 References: <20230927081858.15961-1-quic_nitirawa@quicinc.com> <20230927081858.15961-3-quic_nitirawa@quicinc.com> In-Reply-To: <20230927081858.15961-3-quic_nitirawa@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 autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.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 (morse.vger.email [0.0.0.0]); Fri, 29 Sep 2023 02:01:32 -0700 (PDT) Hi Nitin, On Wed Sep 27, 2023 at 10:18 AM CEST, Nitin Rawat wrote: > Add UFS host controller and PHY nodes for sc7280 soc. > > Signed-off-by: Nitin Rawat > --- > arch/arm64/boot/dts/qcom/sc7280.dtsi | 63 ++++++++++++++++++++++++++++ > 1 file changed, 63 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/sc7280.dtsi b/arch/arm64/boot/dts/q= com/sc7280.dtsi > index 66f1eb83cca7..0b50b8557311 100644 > --- a/arch/arm64/boot/dts/qcom/sc7280.dtsi > +++ b/arch/arm64/boot/dts/qcom/sc7280.dtsi > @@ -3353,6 +3353,69 @@ > }; > }; I think above you should also have this diff: --- a/arch/arm64/boot/dts/qcom/sc7280.dtsi +++ b/arch/arm64/boot/dts/qcom/sc7280.dtsi @@ -868,11 +868,11 @@ gcc: clock-controller@100000 { compatible =3D "qcom,gcc-sc7280"; reg =3D <0 0x00100000 0 0x1f0000>; clocks =3D <&rpmhcc RPMH_CXO_CLK>, <&rpmhcc RPMH_CXO_CLK_A>, <&sleep_clk>, <0>, <&pcie1_lane>, - <0>, <0>, <0>, <0>; + <&ufs_mem_phy 0>, <&ufs_mem_phy 1>, <&ufs_mem_phy 2>, <0>; clock-names =3D "bi_tcxo", "bi_tcxo_ao", "sleep_clk", "pcie_0_pipe_clk", "pcie_1_pipe_clk", "ufs_phy_rx_symbol_0_clk", "ufs_phy_rx_symbol_1_clk", "ufs_phy_tx_symbol_0_clk", "usb3_phy_wrapper_gcc_usb30_pipe_clk"; > > + 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; > + > + 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"; > + > + resets =3D <&ufs_mem_hc 0>; > + reset-names =3D "ufsphy"; > + > + #clock-cells =3D <1>; > + #phy-cells =3D <0>; > + > + status =3D "disabled"; > + }; Would you mind adding something like the following at the same time? + ice: crypto@1d88000 { + compatible =3D "qcom,sc7280-inline-crypto-engine", + "qcom,inline-crypto-engine"; + reg =3D <0 0x01d88000 0 0x8000>; + clocks =3D <&gcc GCC_UFS_PHY_ICE_CORE_CLK>; + }; And then link it to the ufs_mem_hc node with qcom,ice =3D <&ice>; ? Or add it in a followup patch, also fine with me. Other than that, looks pretty similar to the nodes that I have in my own tree which work fine for the most part. Regards Luca > + > usb_1_hsphy: phy@88e3000 { > compatible =3D "qcom,sc7280-usb-hs-phy", > "qcom,usb-snps-hs-7nm-phy"; > -- > 2.17.1