From patchwork Mon Aug 17 23:15:06 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Suman Anna X-Patchwork-Id: 1346542 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: 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=rpE18/OL; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4BVqf026Bbz9sRK for ; Tue, 18 Aug 2020 09:15:34 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D405581817; Tue, 18 Aug 2020 01:15:27 +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="rpE18/OL"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id A488B808B2; Tue, 18 Aug 2020 01:15:25 +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.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,SPF_HELO_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) (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 AD9FA808B2 for ; Tue, 18 Aug 2020 01:15:21 +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=s-anna@ti.com Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 07HNFJBW062895 for ; Mon, 17 Aug 2020 18:15:19 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1597706119; bh=ioEE/XvxAWBULkmHwzYn+lZQ4pqb4LVo413hZs89dWU=; h=From:To:CC:Subject:Date; b=rpE18/OLuGHHYMnNsz0bkI8TApnTDIP0O3EwHI7jSwhnCxc0spLWGnoXNVVeZVLy3 jORR0Z6VT433FCc+EpNp/0LVgI2i46DL79RQXYp0hiJwVcXILCFTQTHJQi6Aoq3wMx G5IzStfaGSWoOjYe+Wms3ZA4RaCn9aq6MO7vMTdE= Received: from DLEE115.ent.ti.com (dlee115.ent.ti.com [157.170.170.26]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTP id 07HNFJCu031068 for ; Mon, 17 Aug 2020 18:15:19 -0500 Received: from DLEE105.ent.ti.com (157.170.170.35) by DLEE115.ent.ti.com (157.170.170.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Mon, 17 Aug 2020 18:15:19 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DLEE105.ent.ti.com (157.170.170.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3 via Frontend Transport; Mon, 17 Aug 2020 18:15:19 -0500 Received: from fllv0103.dal.design.ti.com (fllv0103.dal.design.ti.com [10.247.120.73]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 07HNFJBX048036; Mon, 17 Aug 2020 18:15:19 -0500 Received: from localhost ([10.250.220.118]) by fllv0103.dal.design.ti.com (8.14.7/8.14.7) with ESMTP id 07HNFISO018983; Mon, 17 Aug 2020 18:15:18 -0500 From: Suman Anna To: Lokesh Vutla CC: , Suman Anna Subject: [PATCH 0/8] Early-boot support of R5FSS from A72 U-Boot for J7200 SoCs Date: Mon, 17 Aug 2020 18:15:06 -0500 Message-ID: <20200817231514.8034-1-s-anna@ti.com> X-Mailer: git-send-email 2.28.0 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.34 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.102.3 at phobos.denx.de X-Virus-Status: Clean Hi Lokesh, The following series adds the early-boot support of the revised R5FSS IP on J7200 SoCS from A72 U-Boot. The J7200 SoCs has two R5FSS clusters, one in MCU domain and another in MAIN domain. Patches are on top of the latest master + "Configure J721E Main R5FSS1 to Split-mode & env" series [1]. The current series enables the default variables only for the MAIN R5FSS cores. The config file used is common between J721E and J7200 SoCs, so is adjusted accordingly. The MCU R5FSS is shutdown at the end of R5 SPL, and can be booted by modifying env variables. Early-boot is supported only through the MMC rootfs just like on J721E SoCs. Following are the default modes and firmware image names supported with this series: 1. Modes MCU R5FSS0: LockStep mode MAIN R5FSS0: Split mode 2. Firmware images MCU R5FSS0 Core0 : j7200-mcu-r5f0_0-fw MCU R5FSS0 Core1 : j7200-mcu-r5f0_1-fw MAIN R5FSS0 Core0 : j7200-main-r5f0_0-fw MAIN R5FSS0 Core0 : j7200-main-r5f0_1-fw Following is the patch summary: - Patches #1 and #2 update the binding and the K3 R5F remoteproc driver for J7200 SoCs - Patch #3 sets up a separate MMU map for J7200 SoCs using the appropriate CONFIG_TARGET__A72_EVM symbols - Patches #4 and #5 add the dts nodes with LockStep for MCU R5FSS0 and Split-mode for MAIN R5FSS0 - Patch #6 leverages the CONFIG_TARGET__A72_EVM symbols to set the SoC-specific default remoteproc boot list - Patch #7 enables the R5F remoteproc driver and needed options for A72 U-Boot - Patch #8 enhances the bootcmd variable to include the booting of the rprocs based on couple of control variables regards Suman [1] https://patchwork.ozlabs.org/project/uboot/list/?series=196091 Suman Anna (8): dt-bindings: remoteproc: k3-r5f: Update bindings for J7200 SoCs remoteproc: k3-r5: Add support for J7200 R5Fs armv8: K3: j7200: Add custom MMU support arm: dts: k3-j7200-mcu: Add MCU domain R5F cluster node arm: dts: k3-j7200-main: Add MAIN domain R5F cluster nodes env: ti: j721e-evm: Update rproc_fw_binaries env variable for J7200 configs: j7200_evm_a72: Enable R5F remoteproc driver configs: j7200_evm_a72: Enhance bootcmd to start remoteprocs arch/arm/dts/k3-j7200-common-proc-board.dts | 7 ++ arch/arm/dts/k3-j7200-main.dtsi | 40 ++++++++ arch/arm/dts/k3-j7200-mcu-wakeup.dtsi | 40 ++++++++ arch/arm/mach-k3/arm64-mmu.c | 59 ++++++++++- configs/j7200_evm_a72_defconfig | 6 +- .../remoteproc/ti,k3-r5f-rproc.txt | 5 +- drivers/remoteproc/ti_k3_r5f_rproc.c | 99 +++++++++++++++++-- include/configs/j721e_evm.h | 14 ++- 8 files changed, 255 insertions(+), 15 deletions(-)