Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp4285699rwo; Tue, 25 Jul 2023 03:55:09 -0700 (PDT) X-Google-Smtp-Source: APBJJlGOgMbF0BxybPbJpMBczxDaudWDT20RwDP2Hbr5Lter6eTVeo0Ubw9Z4VemFNZp53BMOW+N X-Received: by 2002:a17:906:2212:b0:98d:63c5:d132 with SMTP id s18-20020a170906221200b0098d63c5d132mr11448255ejs.72.1690282509405; Tue, 25 Jul 2023 03:55:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690282509; cv=none; d=google.com; s=arc-20160816; b=dbkcPMi1JWNIx1B8q0hOAJpqY0DUvs07bvwLj/MWpQN1DYiStikt3F4r1+x2Jlbzr6 rPFxR94GCXK7LpoIodFEkZReB5fq/oaCG7MCFAaIfbn4RBEHZ4oC/SqDZcJ03jIpFqm1 bl0QiI1VaBqwCiuTw7YCSJMPqOzg584DzcMhTGQo/hpaXp3uKzNOmrFvLMVZ/5eT7jl6 JtJmH6oyGhRnxlPAajvC7mtb75dc59pLJuu7hx6/dpXmD/NCoZUdT/89ZU5zXoCcEmTy ywXjKAYmH0L8+XA4l+kTEXmD699JF0ulXwhOycReBozsEhnssibQkDBoxdQX6F/clIqh tmHw== 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 :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=si0RsurRtT3gRhZdEaCudl5DBgXDldw1oYByDtNVbgk=; fh=n//MB2ADdQletQhMGmJ5Q6lwpCQz2KLHHNe9OKVGlfw=; b=GVSsZVcKi+ZyOF9cMNC+t1IbAMoSaKH0imRT6BOPTtUw6uOq58WOwch34Ceyjt5H8Z C8WQ4eCqeeIqRZff15GQcz3VuodFuAKxUbCTveCaPzIy+ma+vcYkHJD8ud5yJ98d96BH tM5OhBPiWhxhcN2lNiatkTyqSQJUDhYzSzQJfnwZeaFVfDVmb4b3yDI/oChVJEqib8GP l9M3CM30yuOMbKQTVxlnobfPYH0/q15KaPD9VNqxWW/APqzKPiRPDfR4yATiSYxZ4gYN 3sWk2bWFytWk7H+Vq9xM/OlXczV7OMyu/ZFOCEChLi/IhYnd5R4qFI3h/r38sfpm9esA MiQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=JcLni2Iv; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bn5-20020a170906c0c500b009932d8a227asi8250745ejb.277.2023.07.25.03.54.43; Tue, 25 Jul 2023 03:55:09 -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=@ti.com header.s=ti-com-17Q1 header.b=JcLni2Iv; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233698AbjGYKhL (ORCPT + 99 others); Tue, 25 Jul 2023 06:37:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53002 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233672AbjGYKhJ (ORCPT ); Tue, 25 Jul 2023 06:37:09 -0400 Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BC51618D; Tue, 25 Jul 2023 03:37:05 -0700 (PDT) Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 36PAap7v128610; Tue, 25 Jul 2023 05:36:51 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1690281411; bh=si0RsurRtT3gRhZdEaCudl5DBgXDldw1oYByDtNVbgk=; h=Date:Subject:To:CC:References:From:In-Reply-To; b=JcLni2IviYrzBNi1Y36iEUpfZ2E7RCS9HAn6BMDOgPWCcpmPDLBvyf4gPiydqPuAD VEw7g2ar1GWFG4RLGEr4qPEpuhw/Vmz2nUJC5ThAMJixtOA29h8Qv69yB93Y2R+3wR iBtf3FK719/9sI+IFIW7D29tqQ528YU1jPt4dNe0= Received: from DLEE107.ent.ti.com (dlee107.ent.ti.com [157.170.170.37]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 36PAapUd104428 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 25 Jul 2023 05:36:51 -0500 Received: from DLEE102.ent.ti.com (157.170.170.32) by DLEE107.ent.ti.com (157.170.170.37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Tue, 25 Jul 2023 05:36:51 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DLEE102.ent.ti.com (157.170.170.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Tue, 25 Jul 2023 05:36:51 -0500 Received: from [172.24.227.94] (ileaxei01-snat.itg.ti.com [10.180.69.5]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 36PAalT5113777; Tue, 25 Jul 2023 05:36:48 -0500 Message-ID: Date: Tue, 25 Jul 2023 16:06:47 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH 1/2] arm64: dts: ti: k3-j784s4-main: Add DT node for UFS To: Udit Kumar , , , , , , , , CC: Chai Wenle References: <20230725053843.1721028-1-u-kumar1@ti.com> <20230725053843.1721028-2-u-kumar1@ti.com> Content-Language: en-US From: Vignesh Raghavendra In-Reply-To: <20230725053843.1721028-2-u-kumar1@ti.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED 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 Hi Udit Minor nits inline: On 25/07/23 11:08, Udit Kumar wrote: > This patch adds UFS support present in J784S4 SOC. "This patch" perhaps is redundant > > UFS is documentend in J784S4 TRM[1] s/documentend/documented > Section 12.3.7 'Universal Flash Storage (UFS) Interface' > > [1] http://www.ti.com/lit/zip/spruj52 > > Cc: Chai Wenle > Signed-off-by: Udit Kumar > --- > arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi | 24 ++++++++++++++++++++++ > 1 file changed, 24 insertions(+) > > diff --git a/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi b/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi > index 11f163e5cadf..f1db1ca5d6b1 100644 > --- a/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi > +++ b/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi > @@ -1370,6 +1370,30 @@ main_spi7: spi@2170000 { > status = "disabled"; > }; > > + ufs_wrapper: ufs-wrapper@4e80000 { > + compatible = "ti,j721e-ufs"; > + reg = <0x0 0x4e80000 0x0 0x100>; Inline with rest of the file please use 0x00 reg = <0x00 0x4e80000 0x00 0x100>; > + power-domains = <&k3_pds 387 TI_SCI_PD_EXCLUSIVE>; > + clocks = <&k3_clks 387 3>; > + assigned-clocks = <&k3_clks 387 3>; > + assigned-clock-parents = <&k3_clks 387 6>; > + ranges; > + #address-cells = <2>; > + #size-cells = <2>; > + status = "disabled"; > + > + ufs@4e84000 { > + compatible = "cdns,ufshc-m31-16nm", "jedec,ufs-2.0"; > + reg = <0x0 0x4e84000 0x0 0x10000>; Same here or perhaps use ranges in the parent node? > + interrupts = ; > + freq-table-hz = <250000000 250000000>, <19200000 19200000>, > + <19200000 19200000>; > + clocks = <&k3_clks 387 1>, <&k3_clks 387 3>, <&k3_clks 387 3>; > + clock-names = "core_clk", "phy_clk", "ref_clk"; > + dma-coherent; > + }; > + }; > + > main_r5fss0: r5fss@5c00000 { > compatible = "ti,j721s2-r5fss"; > ti,cluster-mode = <1>; -- Regards Vignesh