From nobody Sat Feb 7 15:21:39 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 EE3FEC001DF for ; Tue, 25 Jul 2023 13:36:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230523AbjGYNgl (ORCPT ); Tue, 25 Jul 2023 09:36:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33264 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231131AbjGYNgj (ORCPT ); Tue, 25 Jul 2023 09:36:39 -0400 Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8B0EC1BF0; Tue, 25 Jul 2023 06:36:37 -0700 (PDT) Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 36PDaP47028056; Tue, 25 Jul 2023 08:36:25 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1690292185; bh=y8hCOVQRjYYdNxFOnYXCkG+jnG8Eib57vG5f+4XMEps=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=YN8vz2U056MMITlvzs2CvcgfihlauPNrGDOM0dNU2Tg8hCrvTpU6r+uT71NeF+axf TuXfEH9q9aOLUV8WMDh66YRfNoPnuLXOcO4AS240eGRLCjgnlBtWiKWHjNVGD4RfM+ a3LVKv85G6vM7Rh/cH12tDHv5CJS4h+eT5R7pxiE= Received: from DFLE112.ent.ti.com (dfle112.ent.ti.com [10.64.6.33]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 36PDaJwd040675 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 25 Jul 2023 08:36:25 -0500 Received: from DFLE109.ent.ti.com (10.64.6.30) by DFLE112.ent.ti.com (10.64.6.33) 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 08:36:21 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DFLE109.ent.ti.com (10.64.6.30) 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 08:36:21 -0500 Received: from udit-HP-Z2-Tower-G9-Workstation-Desktop-PC.dhcp.ti.com (ileaxei01-snat.itg.ti.com [10.180.69.5]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 36PDaFwh017340; Tue, 25 Jul 2023 08:36:18 -0500 From: Udit Kumar To: , , , , , , , , CC: Udit Kumar , Chai Wenle Subject: [PATCH v2 1/2] arm64: dts: ti: k3-j784s4-main: Add DT node for UFS Date: Tue, 25 Jul 2023 19:06:06 +0530 Message-ID: <20230725133607.2021379-2-u-kumar1@ti.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230725133607.2021379-1-u-kumar1@ti.com> References: <20230725133607.2021379-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" Add UFS support present in J784S4 SOC. UFS is documented in J784S4 TRM[1] Section 12.3.7 'Universal Flash Storage (UFS) Interface' [1] http://www.ti.com/lit/zip/spruj52 Cc: Chai Wenle Tested-by: Chai Wenle Signed-off-by: Udit Kumar Reviewed-by: Vignesh Raghavendra --- 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..a04c44708a09 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 <0x00 0x4e80000 0x00 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 <0x00 0x4e84000 0x00 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 15:21:39 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 5A69EC0015E for ; Tue, 25 Jul 2023 13:36:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231161AbjGYNgo (ORCPT ); Tue, 25 Jul 2023 09:36:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33262 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231132AbjGYNgj (ORCPT ); Tue, 25 Jul 2023 09:36:39 -0400 Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8B04E1BDB; Tue, 25 Jul 2023 06:36:37 -0700 (PDT) Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 36PDaQus036819; Tue, 25 Jul 2023 08:36:26 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1690292186; bh=R24fSK+msQniVPtAE0t8FTJjKo26RqttZCvJU5EMfS0=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=y+duT1UhzcFJzd86c9ByKtMGz68XDulpsXdNK5qh7JrUow5iOrAJp/2wd2K8/THtL UbIn3kdfxcmKEmPn5jj/LWyLRP6BM4edKhJz+hlVC7gk6QTU1Mlkm9tqZYWAQluEbi Zj/lN97RILRW8OgQDImNUncCiTuun98/fqN1uqbQ= Received: from DLEE106.ent.ti.com (dlee106.ent.ti.com [157.170.170.36]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 36PDaQ1C069027 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 25 Jul 2023 08:36:26 -0500 Received: from DLEE110.ent.ti.com (157.170.170.21) by DLEE106.ent.ti.com (157.170.170.36) 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 08:36:25 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DLEE110.ent.ti.com (157.170.170.21) 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 08:36:25 -0500 Received: from udit-HP-Z2-Tower-G9-Workstation-Desktop-PC.dhcp.ti.com (ileaxei01-snat.itg.ti.com [10.180.69.5]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 36PDaFwi017340; Tue, 25 Jul 2023 08:36:22 -0500 From: Udit Kumar To: , , , , , , , , CC: Udit Kumar , Chai Wenle Subject: [PATCH v2 2/2] arm64: dts: ti: k3-j784s4-evm: Add Support for UFS peripheral Date: Tue, 25 Jul 2023 19:06:07 +0530 Message-ID: <20230725133607.2021379-3-u-kumar1@ti.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230725133607.2021379-1-u-kumar1@ti.com> References: <20230725133607.2021379-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 Tested-by: Chai Wenle Signed-off-by: Udit Kumar Reviewed-by: Vignesh Raghavendra --- 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