From patchwork Wed Jun 12 09:11:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jayesh Choudhary X-Patchwork-Id: 1946744 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=NIo3/yHP; 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 4Vzfv256vxz20Wq for ; Wed, 12 Jun 2024 19:12:14 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D733F887D7; Wed, 12 Jun 2024 11:11:41 +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="NIo3/yHP"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 93FC8887FE; Wed, 12 Jun 2024 11:11:40 +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.3 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 EC141887C9 for ; Wed, 12 Jun 2024 11:11:37 +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 lelv0266.itg.ti.com ([10.180.67.225]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 45C9BPrL041529; Wed, 12 Jun 2024 04:11:25 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1718183485; bh=jyFjkg9zk4A8wfHsqaMSJWrBRdMl+52edYRGWEBAt4w=; h=From:To:CC:Subject:Date; b=NIo3/yHPso34Q1GlHCPavbpro5eTxHv7MujiNJd56NV3O0ibdXmWH2SFplAoYZvYe 1guYNU3bbDgsjDrMbCuuwcXQp1uSQzfqC1nsYqVl3IEvfNOx/cpbjw05WsocbCNIkg ZSdjpG6mbbv5HrRdtyaRfaDZ1CzZ2x7HuHjRS53U= 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 45C9BP53080555 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 12 Jun 2024 04:11:25 -0500 Received: from DLEE108.ent.ti.com (157.170.170.38) 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; Wed, 12 Jun 2024 04:11:24 -0500 Received: from lelvsmtp5.itg.ti.com (10.180.75.250) by DLEE108.ent.ti.com (157.170.170.38) 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, 12 Jun 2024 04:11:24 -0500 Received: from localhost (jayesh-hp-probook-440-g8-notebook-pc.dhcp.ti.com [172.24.227.55]) by lelvsmtp5.itg.ti.com (8.15.2/8.15.2) with ESMTP id 45C9BOc0062202; Wed, 12 Jun 2024 04:11:24 -0500 From: Jayesh Choudhary To: , , , , , , , , , , CC: , , , Subject: [PATCH v2 00/14] Add basic U-Boot Support for J722S-EVM Date: Wed, 12 Jun 2024 14:41:09 +0530 Message-ID: <20240612091123.253835-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: v1 patch: Changelog v1->v2: - Fix space tab inconsistency in [3/14] - Break board_init_f into smaller logical functions as suggested by Neha[7] - Add DT fixup as suggested by Andrew[8] - Sync configs with savedefconfig to take care of redundant and invalid configs. - Pick up R-by for rest of the patches. 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/ [7]: https://patchwork.ozlabs.org/project/uboot/patch/20240529132448.459330-10-j-choudhary@ti.com/#3319318 [8]: https://patchwork.ozlabs.org/project/uboot/patch/20240529132448.459330-10-j-choudhary@ti.com/#3318999 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 | 33 + arch/arm/mach-k3/j722s/Makefile | 7 + arch/arm/mach-k3/j722s/j722s_fdt.c | 16 + arch/arm/mach-k3/j722s/j722s_init.c | 287 ++ 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 | 172 + configs/j722s_evm_r5_defconfig | 131 + 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 + 41 files changed, 7227 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_fdt.c 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