Received: by 2002:a05:7412:1492:b0:e2:908c:2ebd with SMTP id s18csp574084rdh; Tue, 22 Aug 2023 04:54:45 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGzc2/Z8/LHtS6KalaopOLnLy015Ac5ztizyvvC5wpXfUQzeiptenp7eq0QgnSuMqwg1wwd X-Received: by 2002:a17:902:ab5a:b0:1b6:649b:92cc with SMTP id ij26-20020a170902ab5a00b001b6649b92ccmr6511930plb.69.1692705285466; Tue, 22 Aug 2023 04:54:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692705285; cv=none; d=google.com; s=arc-20160816; b=aY3p/Z9vQYBksAI3K/Uz/F+GzevYeVRbOQuJNHD6yjPkrDILXML5dCw2NEG75vVkyl y/Rm0CInV3KA4b5xwxSyCA7IaKhUn7koC+VkZNjiL776i3Aet4KVA8QBp5eei8m7iHxU jEZd20iVhIE4a67Bgf3GxKz2P+KqnT4l1jFN38Bi4OWDix7Q7+eTOn3r6GHCFzDl39Wm AEKrWwe+Wkev6EnGZKSvjVfsTwINeQJOM4jhzHyM8HGzFLJMSp3Y6VjdhhctdVKacOow Xrg/PVM5M4TKkl2TAme42L06rLq12F5K6re8TZA0sIry/VVK8yuYxk65qPeLntipAumg IY2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=uHec5QY5U/GnNgoBPhxmflX2BFVzj+0p9sT4TD2j0ng=; fh=55UjwAkq6WuMShCQFNCstI6178UjCvd3Hqo9YRilYN8=; b=CykTTiorvC12XINCh6ZB7EEGv/NWfA/WoeMglhqKie7028afcrONDt1xnjz3Njp/Xz 2BLygMpkfHz7sWgBQ3Vp7frBjNRNWYnZzjfGnuI93qkAWPO9c3xRxbsRE8Ruu1Zuqsli 9s3xrMwvhzwxs99DSIWyEN9wI09YypzgR5w5K4X2bsymxyNnIIn3qKlcbtv5DPyW7X6W 9dBKgn7+B7PTplqQF13h7cLU/MEzNx8RvZIfQ2lb4/gTljVLGPv/bBX7RmlrBZKwKaLG EWVCTm0sNhOXk36dlR2YyC5J2fvUNCwhIb9HpxXlsLIQmkQY/rYpxLS1R42CbsA9ks2B ScmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=cI6ZxRwJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ks12-20020a170903084c00b001bbd785e1d2si8660806plb.201.2023.08.22.04.54.33; Tue, 22 Aug 2023 04:54:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=cI6ZxRwJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233183AbjHVHJA (ORCPT + 99 others); Tue, 22 Aug 2023 03:09:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54248 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231804AbjHVHI7 (ORCPT ); Tue, 22 Aug 2023 03:08:59 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 47200130; Tue, 22 Aug 2023 00:08:58 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id CACC3649D9; Tue, 22 Aug 2023 07:08:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 163FBC433C7; Tue, 22 Aug 2023 07:08:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1692688137; bh=5hSodPEEf8w2mXzyybmlDZ2gdf+T/pqZKs15hGJ2vzQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=cI6ZxRwJ4FRgxQg4afnEpd417/qgNVYmsbAcZfmEvwA9d/S4iKW4+OjK2DGyEQYkF 9tnMLTa7hMAZpUZi77tnGzPV+ACDM2iaesmkbxIA1gxhhdLiTLquv7MDB22+OQ3u1W +MC/jjikMYdyMncp0XxCU7Lq8K8CWH3BkbfGaGKrAIGrcqkwtNI95FEA1FSegKxYWa RezDJPa+iO0DsxCjhJUPzBCqqZokjrF8au5ihyr/BbMzWvc1cN+UubZ/klBxNiN4MC MPuIVx9QqeAzISY7gX1J/bkLfnrxCiW+Z30gir7Id0Z3tfmq6Wi/liAtw6qzT5gOcy 7+arXCY1ulWhg== Date: Tue, 22 Aug 2023 12:38:41 +0530 From: Manivannan Sadhasivam To: Nitin Rawat Cc: mani@kernel.org, agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, alim.akhtar@samsung.com, bvanassche@acm.org, robh+dt@kernel.org, avri.altman@wdc.com, cros-qcom-dts-watchers@chromium.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, linux-arm-msm@vger.kernel.org, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH V1 2/2] arm64: dts: qcom: sc7280: Add UFS host controller and phy nodes Message-ID: <20230822070841.GA24753@thinkpad> References: <20230821094937.13059-1-quic_nitirawa@quicinc.com> <20230821094937.13059-3-quic_nitirawa@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230821094937.13059-3-quic_nitirawa@quicinc.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=ham 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 On Mon, Aug 21, 2023 at 03:19:37PM +0530, Nitin Rawat wrote: > Add UFS host controller and PHY nodes for sc7280. > You should split this patch into 2. One for SoC and another for board. > Signed-off-by: Nitin Rawat > --- > arch/arm64/boot/dts/qcom/sc7280-idp.dtsi | 19 +++++++ > arch/arm64/boot/dts/qcom/sc7280.dtsi | 64 ++++++++++++++++++++++++ > 2 files changed, 83 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/sc7280-idp.dtsi b/arch/arm64/boot/dts/qcom/sc7280-idp.dtsi > index 2ff549f4dc7a..c60cdd511222 100644 > --- a/arch/arm64/boot/dts/qcom/sc7280-idp.dtsi > +++ b/arch/arm64/boot/dts/qcom/sc7280-idp.dtsi > @@ -451,6 +451,25 @@ > status = "okay"; > }; > > +&ufs_mem_hc { > + reset-gpios = <&tlmm 175 GPIO_ACTIVE_LOW>; > + vcc-supply = <&vreg_l7b_2p9>; > + vcc-max-microamp = <800000>; > + vccq-supply = <&vreg_l9b_1p2>; > + vccq-max-microamp = <900000>; > + vccq2-supply = <&vreg_l9b_1p2>; > + vccq2-max-microamp = <900000>; > + > + status = "okay"; > +}; > + > +&ufs_mem_phy { > + vdda-phy-supply = <&vreg_l10c_0p8>; > + vdda-pll-supply = <&vreg_l6b_1p2>; > + > + status = "okay"; > +}; > + > &sdhc_1 { > status = "okay"; > > diff --git a/arch/arm64/boot/dts/qcom/sc7280.dtsi b/arch/arm64/boot/dts/qcom/sc7280.dtsi > index 925428a5f6ae..d4a15d56b384 100644 > --- a/arch/arm64/boot/dts/qcom/sc7280.dtsi > +++ b/arch/arm64/boot/dts/qcom/sc7280.dtsi > @@ -908,6 +908,70 @@ > }; > }; > > + ufs_mem_phy: phy@1d87000 { Please sort the nodes in ascending order. > + 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"; > + > + }; > + > + 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" property should come first. - Mani > + 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"; > + }; > + > sdhc_1: mmc@7c4000 { > compatible = "qcom,sc7280-sdhci", "qcom,sdhci-msm-v5"; > pinctrl-names = "default", "sleep"; > -- > 2.17.1 > -- மணிவண்ணன் சதாசிவம்