From patchwork Tue Jul 25 13:36:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Kumar, Udit" X-Patchwork-Id: 125634 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9010:0:b0:3e4:2afc:c1 with SMTP id l16csp2500553vqg; Tue, 25 Jul 2023 07:13:41 -0700 (PDT) X-Google-Smtp-Source: APBJJlFqaLYlAszyc6tnBgDXdAV4UwsnyflP7R5XCKaoC9hFHbqJsV/eOQFGogvngwYJPoQJOeHy X-Received: by 2002:a17:906:7695:b0:994:580c:5049 with SMTP id o21-20020a170906769500b00994580c5049mr13584921ejm.5.1690294420757; Tue, 25 Jul 2023 07:13:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690294420; cv=none; d=google.com; s=arc-20160816; b=jt96m60O2owxqxVRjWk2GKezZWBnonlnAm6+ucC7l22NZOd98FtiitImob63KK1yhO BD2cSypIWZdrkToOu8hczv6PwQE3LLXvXuslfGQN8TowmkB3FFuUjMByPeZj5SxvVJxm mTjNVsi6s8BTCtT65OfVUjZnOPLi0Ryl6hfCXGW3hY65lmUoS6aHDlbqAX1JTXRORAyX ancAke5lErAbZ6wKL5Me9voP1Sk2Kci0KYwMzeTuctUNlD7vvNKQzFerHZwW6AG+LKSh g2jXzG2Jty0kpiV1AJImb/6P8MjTLOjIOtdKGgYh2Z57ixgih32cmuyIDT9Fuaw0avp7 /W+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=y8hCOVQRjYYdNxFOnYXCkG+jnG8Eib57vG5f+4XMEps=; fh=W8M5sWR19yw0vukcLO20ao5ghWr5sh2UxTfR739PkBc=; b=09hBZQ/JFeDIYP5Aixd2egAJglBNO4yf9+bNerEuvvrmxmYS6cxbtQI/VWCmHv9Dft AeKqAWmRmPAEFjTadPnI3dC4cUrjDY9Hayq3hgmvwb+cFJbn5j6ntC9Ejwd+6JyqV7Tl lM45m3Jeec1yZO6Rck6uhZcatbieNZLEjABs4criroIJuVr6DEmBZMB1wdQqjmIxNLtn kSTX6FCjqV+mhynas3nTWjFSK6a6fPxPdcH18821nsRBBeLBNWqKVSNrdeqMR7Zq0gMV SIuwBH4aTKbmPvsXjFfzlPSozVcDGBsDgez46litoCFMKe7F3OgLpOFpPct7/CY2A4ny EHRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=YN8vz2U0; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lj14-20020a170906f9ce00b00993629db66asi8157972ejb.72.2023.07.25.07.13.16; Tue, 25 Jul 2023 07:13:40 -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=YN8vz2U0; 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 S231150AbjGYNgl (ORCPT + 99 others); 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 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 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, RCVD_IN_MSPIKE_H2,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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772402162590194122 X-GMAIL-MSGID: 1772402162590194122 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 --- 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..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 = "disabled"; }; + ufs_wrapper: ufs-wrapper@4e80000 { + compatible = "ti,j721e-ufs"; + 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 = <0x00 0x4e84000 0x00 0x10000>; + 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>;