From patchwork Wed May 29 13:24:34 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jayesh Choudhary X-Patchwork-Id: 1941247 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=ti.com header.i=@ti.com header.a=rsa-sha256 header.s=ti-com-17Q1 header.b=P0VgyDDh; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org) Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Vq99Q5SG2z20Pb for ; Wed, 29 May 2024 23:25:14 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 416EA8844E; Wed, 29 May 2024 15:25:03 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=ti.com header.i=@ti.com header.b="P0VgyDDh"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 91F2B885C5; Wed, 29 May 2024 15:25:01 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED,RCVD_IN_VALIDITY_RPBL_BLOCKED, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 3AD8C87D33 for ; Wed, 29 May 2024 15:24:58 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=j-choudhary@ti.com Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 44TDOnOk048981; Wed, 29 May 2024 08:24:49 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1716989089; bh=eIjGAvfujoq5cc8QIvj9q0Z9c7qZu21YonLcd/C93Do=; h=From:To:CC:Subject:Date; b=P0VgyDDh4CXquJ78MM3mReJDWcDbJQ/9TU283LGptUPLH8kn6w2tQhyCphlcUW6od gQXLwtML6nkEXvE1Blci1DaL3QPO9LTvzAQEAOPK6TGPoZo81zcBWsummvqeLFg5YZ SG+3itGFTxrxk+ymTm5lo9NCO+uqC8jm/yjeil5g= Received: from DFLE115.ent.ti.com (dfle115.ent.ti.com [10.64.6.36]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 44TDOnDI019836 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 29 May 2024 08:24:49 -0500 Received: from DFLE109.ent.ti.com (10.64.6.30) by DFLE115.ent.ti.com (10.64.6.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Wed, 29 May 2024 08:24:49 -0500 Received: from lelvsmtp6.itg.ti.com (10.180.75.249) 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; Wed, 29 May 2024 08:24:49 -0500 Received: from localhost (jayesh-hp-probook-440-g8-notebook-pc.dhcp.ti.com [172.24.227.102]) by lelvsmtp6.itg.ti.com (8.15.2/8.15.2) with ESMTP id 44TDOmcm002098; Wed, 29 May 2024 08:24:49 -0500 From: Jayesh Choudhary To: , , , , , , , , , , CC: , , , Subject: [PATCH 00/14] Add basic U-Boot Support for J722S-EVM Date: Wed, 29 May 2024 18:54:34 +0530 Message-ID: <20240529132448.459330-1-j-choudhary@ti.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean Hello there, This series add the U-Boot support for our new platform of K3-SOC family - J722S-EVM which is a superset of AM62P. It shares the same memory map and thus the nodes are being reused from AM62P includes instead of duplicating the definitions. Some highlights of J722S SoC (in addition to AM62P SoC features) are: - Two Cortex-R5F for Functional Safety or general-purpose usage and two C7x floating point vector DSP with Matrix Multiply Accelerator for deep learning. - Vision Processing Accelerator (VPAC) with image signal processor and Depth and Motion Processing Accelerator (DMPAC). - 7xUARTs, 3xSPI, 5xI2C, 2xUSB2, 2xCAN-FD, 3xMMC and SD, GPMC for NAND/FPGA connection, OSPI memory controller, 5xMcASP for audio, 4xCSI-RX for Camera, 1 PCIe Gen3 controller, USB3.0 eCAP/eQEP, ePWM, among other peripherals. TRM: Schematics: Boot test log: RFC series that was posted before this: Changes from RFC series to this series: - Remove main_pktdma node and k3_sysreset node from k3-j722s-evm-u-boot.dtsi as suggested by Andrew[0] k3_sysreset will be taken care of in [1] which is not a real dependency for this series - Fix documentation according to comments here[2] - Pick up R-by for 2 patches from RFC series[3][4] - Pick the binman change for optional DM[5] - Move init code according to [6] [0]: https://lore.kernel.org/all/d738eaaf-6f13-4502-98a1-ef1bfe82d2ff@ti.com/ [1]: https://lore.kernel.org/all/20240402160908.508974-3-afd@ti.com/ [2]: https://lore.kernel.org/all/ac5780c5-f1ca-4138-a027-d3ed65911733@ti.com/ [3]: https://lore.kernel.org/all/20240404163641.6qmcierya6svcgfb@bryanbrattlof.com/ [4]: https://lore.kernel.org/all/20240404163714.p2wonpenkiz44cnd@bryanbrattlof.com/ [5]: https://lore.kernel.org/all/20240529074849.363281-1-n-francis@ti.com/ [6]: https://lore.kernel.org/all/20240510202124.794448-1-afd@ti.com/ Jayesh Choudhary (14): arm: mach-k3: Sort CONFIG_SOC* and K3_SOC_ID entries soc: ti: k3-socinfo: Fix SOC JTAG entry order soc: add info to identify the J722S SoC family clk: ti: clk-k3: use IS_ENABLED macro and fix the clock-data order power: domain: ti: Fix the order for platform data entries arm: mach-k3: r5: Makefile: Fix the order for entries arm: mach-k3: j722s: introduce clock and device files for wkup spl ram: k3-ddrss: Enable the am62ax's DDR controller for J722S arch: mach-k3: Introduce basic files to support J722S SoC family board: ti: Introduce basic board files for the J722S family firmware: ti_sci_static_data: Add static DMA channel arm: dts: Introduce J722S U-Boot dts files configs: introduce configs needed for the J722S doc: board: ti: Add J722S-EVM documentation arch/arm/dts/Makefile | 2 + arch/arm/dts/k3-j722s-binman.dtsi | 172 + arch/arm/dts/k3-j722s-ddr-lp4-50-3733.dtsi | 2795 +++++++++++++++++ arch/arm/dts/k3-j722s-evm-u-boot.dtsi | 18 + arch/arm/dts/k3-j722s-r5-evm.dts | 82 + arch/arm/mach-k3/Kconfig | 7 +- arch/arm/mach-k3/Makefile | 1 + arch/arm/mach-k3/include/mach/hardware.h | 43 +- .../arm/mach-k3/include/mach/j722s_hardware.h | 83 + arch/arm/mach-k3/include/mach/j722s_spl.h | 49 + arch/arm/mach-k3/include/mach/spl.h | 4 + arch/arm/mach-k3/j722s/Kconfig | 32 + arch/arm/mach-k3/j722s/Makefile | 6 + arch/arm/mach-k3/j722s/j722s_init.c | 277 ++ arch/arm/mach-k3/r5/Makefile | 7 +- arch/arm/mach-k3/r5/j722s/Makefile | 6 + arch/arm/mach-k3/r5/j722s/clk-data.c | 312 ++ arch/arm/mach-k3/r5/j722s/dev-data.c | 69 + board/ti/j722s/Kconfig | 26 + board/ti/j722s/MAINTAINERS | 9 + board/ti/j722s/Makefile | 7 + board/ti/j722s/board-cfg.yaml | 36 + board/ti/j722s/evm.c | 29 + board/ti/j722s/j722s.env | 15 + board/ti/j722s/pm-cfg.yaml | 12 + board/ti/j722s/rm-cfg.yaml | 1119 +++++++ board/ti/j722s/sec-cfg.yaml | 379 +++ board/ti/j722s/tifs-rm-cfg.yaml | 981 ++++++ configs/j722s_evm_a53_defconfig | 177 ++ configs/j722s_evm_r5_defconfig | 137 + doc/board/ti/j722s_evm.rst | 260 ++ doc/board/ti/k3.rst | 1 + drivers/clk/ti/clk-k3.c | 41 +- drivers/firmware/ti_sci_static_data.h | 2 +- drivers/power/domain/ti-power-domain.c | 36 +- drivers/ram/Kconfig | 2 +- drivers/soc/soc_ti_k3.c | 29 +- include/configs/j722s_evm.h | 14 + include/k3-clk.h | 1 + include/k3-dev.h | 1 + 40 files changed, 7210 insertions(+), 69 deletions(-) create mode 100644 arch/arm/dts/k3-j722s-binman.dtsi create mode 100644 arch/arm/dts/k3-j722s-ddr-lp4-50-3733.dtsi create mode 100644 arch/arm/dts/k3-j722s-evm-u-boot.dtsi create mode 100644 arch/arm/dts/k3-j722s-r5-evm.dts create mode 100644 arch/arm/mach-k3/include/mach/j722s_hardware.h create mode 100644 arch/arm/mach-k3/include/mach/j722s_spl.h create mode 100644 arch/arm/mach-k3/j722s/Kconfig create mode 100644 arch/arm/mach-k3/j722s/Makefile create mode 100644 arch/arm/mach-k3/j722s/j722s_init.c create mode 100644 arch/arm/mach-k3/r5/j722s/Makefile create mode 100644 arch/arm/mach-k3/r5/j722s/clk-data.c create mode 100644 arch/arm/mach-k3/r5/j722s/dev-data.c create mode 100644 board/ti/j722s/Kconfig create mode 100644 board/ti/j722s/MAINTAINERS create mode 100644 board/ti/j722s/Makefile create mode 100644 board/ti/j722s/board-cfg.yaml create mode 100644 board/ti/j722s/evm.c create mode 100644 board/ti/j722s/j722s.env create mode 100644 board/ti/j722s/pm-cfg.yaml create mode 100644 board/ti/j722s/rm-cfg.yaml create mode 100644 board/ti/j722s/sec-cfg.yaml create mode 100644 board/ti/j722s/tifs-rm-cfg.yaml create mode 100644 configs/j722s_evm_a53_defconfig create mode 100644 configs/j722s_evm_r5_defconfig create mode 100644 doc/board/ti/j722s_evm.rst create mode 100644 include/configs/j722s_evm.h