From nobody Sat Feb 7 18:20:54 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A6898EB64DD for ; Tue, 25 Jul 2023 05:39:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231190AbjGYFjU (ORCPT ); Tue, 25 Jul 2023 01:39:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49386 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230100AbjGYFjO (ORCPT ); Tue, 25 Jul 2023 01:39:14 -0400 Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 312011BD3; Mon, 24 Jul 2023 22:39:08 -0700 (PDT) Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 36P5d3Od049700; Tue, 25 Jul 2023 00:39:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1690263543; bh=UMFtptzY6+rXg55b5S+EeQ1L1IsRBMWP719LxrE4Y1E=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=di/5HYIZQpARDluJgZzFPsxVfpqd/5G6AYtryAGDuWUnLdiaWUG0ubpny0BJ+GwFN T9Dts2fzoRurLjO76TqzW//guYAxVhVhNzPGqJ9G2oPdCnv7Z0r9CIx8ScrMVnSgyW L3iP3IU+tThOxNUmjCNMJBijyOjQdRSn9g491b2A= Received: from DFLE100.ent.ti.com (dfle100.ent.ti.com [10.64.6.21]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 36P5d39E052867 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 25 Jul 2023 00:39:03 -0500 Received: from DFLE106.ent.ti.com (10.64.6.27) by DFLE100.ent.ti.com (10.64.6.21) 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 00:39:03 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DFLE106.ent.ti.com (10.64.6.27) 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 00:39:03 -0500 Received: from udit-HP-Z2-Tower-G9-Workstation-Desktop-PC.dhcp.ti.com (ileaxei01-snat.itg.ti.com [10.180.69.5]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 36P5cu76064880; Tue, 25 Jul 2023 00:39:00 -0500 From: Udit Kumar To: , , , , , , , , CC: Udit Kumar , Chai Wenle Subject: [PATCH 1/2] arm64: dts: ti: k3-j784s4-main: Add DT node for UFS Date: Tue, 25 Jul 2023 11:08:42 +0530 Message-ID: <20230725053843.1721028-2-u-kumar1@ti.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230725053843.1721028-1-u-kumar1@ti.com> References: <20230725053843.1721028-1-u-kumar1@ti.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" This patch adds UFS support present in J784S4 SOC. UFS is documentend in J784S4 TRM[1] 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/d= ts/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 =3D "disabled"; }; =20 + ufs_wrapper: ufs-wrapper@4e80000 { + compatible =3D "ti,j721e-ufs"; + reg =3D <0x0 0x4e80000 0x0 0x100>; + power-domains =3D <&k3_pds 387 TI_SCI_PD_EXCLUSIVE>; + clocks =3D <&k3_clks 387 3>; + assigned-clocks =3D <&k3_clks 387 3>; + assigned-clock-parents =3D <&k3_clks 387 6>; + ranges; + #address-cells =3D <2>; + #size-cells =3D <2>; + status =3D "disabled"; + + ufs@4e84000 { + compatible =3D "cdns,ufshc-m31-16nm", "jedec,ufs-2.0"; + reg =3D <0x0 0x4e84000 0x0 0x10000>; + interrupts =3D ; + freq-table-hz =3D <250000000 250000000>, <19200000 19200000>, + <19200000 19200000>; + clocks =3D <&k3_clks 387 1>, <&k3_clks 387 3>, <&k3_clks 387 3>; + clock-names =3D "core_clk", "phy_clk", "ref_clk"; + dma-coherent; + }; + }; + main_r5fss0: r5fss@5c00000 { compatible =3D "ti,j721s2-r5fss"; ti,cluster-mode =3D <1>; --=20 2.34.1 From nobody Sat Feb 7 18:20:54 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DB236EB64DD for ; Tue, 25 Jul 2023 05:39:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229597AbjGYFj1 (ORCPT ); Tue, 25 Jul 2023 01:39:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49528 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230100AbjGYFjV (ORCPT ); Tue, 25 Jul 2023 01:39:21 -0400 Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7A01819B1; Mon, 24 Jul 2023 22:39:17 -0700 (PDT) Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 36P5d65T059849; Tue, 25 Jul 2023 00:39:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1690263546; bh=/EXsNOFgFH3u1MSZBrCxKLAc7fekFmeZSeuVT53WoU0=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=YHnQRjMACmCMgt9GgVTDNDXPZd+242X/wV2gv6CVJ5p6WoYU3iaOP3neacjm4CigP 8qI+tyXRLKNQ0V4MHMTgvsoWxlSeRF7PiF6QxejxJJcBdNhlICb6c0U3S0aVQ0fsyr tIRuGi+nzaHLvIdvPhKlfIeD58sGnOXVsb7nIuqM= Received: from DLEE112.ent.ti.com (dlee112.ent.ti.com [157.170.170.23]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 36P5d6Dt017701 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 25 Jul 2023 00:39:06 -0500 Received: from DLEE104.ent.ti.com (157.170.170.34) by DLEE112.ent.ti.com (157.170.170.23) 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 00:39:06 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DLEE104.ent.ti.com (157.170.170.34) 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 00:39:06 -0500 Received: from udit-HP-Z2-Tower-G9-Workstation-Desktop-PC.dhcp.ti.com (ileaxei01-snat.itg.ti.com [10.180.69.5]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 36P5cu77064880; Tue, 25 Jul 2023 00:39:03 -0500 From: Udit Kumar To: , , , , , , , , CC: Udit Kumar , Chai Wenle Subject: [PATCH 2/2] arm64: dts: ti: k3-j784s4-evm: Add Support for UFS peripheral Date: Tue, 25 Jul 2023 11:08:43 +0530 Message-ID: <20230725053843.1721028-3-u-kumar1@ti.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230725053843.1721028-1-u-kumar1@ti.com> References: <20230725053843.1721028-1-u-kumar1@ti.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" J784S4 EVM board has 32GB Non-Volatile UFS Memory. So enabling UFS at board level. UFS flash details are documented in board data sheet[1] Section 1.2 Key Features and Interfaces. [1] https://www.ti.com/lit/pdf/spruj62 Cc: Chai Wenle Signed-off-by: Udit Kumar Tested-by: Wenle Chai --- arch/arm64/boot/dts/ti/k3-j784s4-evm.dts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-j784s4-evm.dts b/arch/arm64/boot/dts= /ti/k3-j784s4-evm.dts index 7ad152a1b90f..1e38a8f1bec5 100644 --- a/arch/arm64/boot/dts/ti/k3-j784s4-evm.dts +++ b/arch/arm64/boot/dts/ti/k3-j784s4-evm.dts @@ -430,6 +430,10 @@ &main_uart8 { pinctrl-0 =3D <&main_uart8_pins_default>; }; =20 +&ufs_wrapper { + status =3D "okay"; +}; + &fss { status =3D "okay"; }; --=20 2.34.1