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 phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7FDD6C43334 for ; Fri, 1 Jul 2022 19:10:27 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 819ED844A5; Fri, 1 Jul 2022 21:09:53 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="XbeL2Imv"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 6027A844A5; Fri, 1 Jul 2022 21:09:52 +0200 (CEST) Received: from mail-ej1-x636.google.com (mail-ej1-x636.google.com [IPv6:2a00:1450:4864:20::636]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id B2351844B6 for ; Fri, 1 Jul 2022 21:09:49 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=alpernebiyasak@gmail.com Received: by mail-ej1-x636.google.com with SMTP id dn9so379806ejc.7 for ; Fri, 01 Jul 2022 12:09:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:date:mime-version:user-agent:from:subject:to:cc :references:content-language:in-reply-to:content-transfer-encoding; bh=SM3LRgk+5w9BPWGtlj0x+j3jgbkjdg5ROQMSDhXj+sA=; b=XbeL2Imvz8MXOdraNUlBMjay65BnhL2IyBxfp72OVH7nZfiPoW1u2YfDm7ibgV61p0 NDQY8XdFAb4xYZK+tgVgrTy//yIWz+KHFR7p00yDz7M1qOlu69zJjHiTdzzacjq7kUTF k+nrAet5bogO4poM8Q71orSMCXJP1bp5uvHSkMwCVujJfyX0yENsIa/J08vD8L4nUdYj mVo9Fj0MSso/Cf9Ui7z0PeQmyXLIWr87ie2ibBgZ/fUT9i6+D9FE7Qs03mRlpEfZUWuX Fi1HEAbE4mmdK04jid3acnTZ71IgFcw/psB/zSxHzfPTx4nFoFGAyi2r38AMHVkxF6uz LrZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:from :subject:to:cc:references:content-language:in-reply-to :content-transfer-encoding; bh=SM3LRgk+5w9BPWGtlj0x+j3jgbkjdg5ROQMSDhXj+sA=; b=LjlBOyMO4w5N0flvyTz2elO39+jhKCSYof5vTVIzxKqp6ppvLnNvvgXKKt/y9maoUQ wMjpX7X4VfwDNwDj5ou+x0fVkIXvlR3EumOn1QqlLZkFcMCGDNIxOppQRqWxbAk4xUuJ RsznOjUVZVAtAC/aHugcdnib5ou/+8ATb/u4GLcjQVshbXSdlzvK6sx81c6NRqtjFYor 51RZwCjSfYwEHk5SJTTMcO6Zm8/QEKc89i2N4iaLa24QVXnewv4mbK9tLi3e3eF7TcZM Rep23gDgsS9D4a0ku7D+yUDtTKZB8+jsSGoZnziS5GRDJUXOsJ/BSWazusFuP+/1qftr oYmA== X-Gm-Message-State: AJIora/PFCCM8rwBkr13EP537flO7Xha/rASdNPlDEw4ihscAssKPtLR BosxLqo87zVxbmRCxrGhHqg= X-Google-Smtp-Source: AGRyM1siU4+WQuQysCtBELYFylXu7le6vjloCG8IiqEjSYwE+khhxV0qZozCnlBQzuSm+92vasryAw== X-Received: by 2002:a17:907:608b:b0:722:fb4c:5675 with SMTP id ht11-20020a170907608b00b00722fb4c5675mr16397649ejc.273.1656702589388; Fri, 01 Jul 2022 12:09:49 -0700 (PDT) Received: from [192.168.0.74] ([178.233.178.185]) by smtp.gmail.com with ESMTPSA id z5-20020a1709063a0500b00722fadc4279sm10746533eje.124.2022.07.01.12.09.47 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 01 Jul 2022 12:09:48 -0700 (PDT) Message-ID: Date: Fri, 1 Jul 2022 22:08:09 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux aarch64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 From: Alper Nebi Yasak Subject: Re: [PATCH RFC v3 10/11] ti: dtsi: j721e: Use binman to package tispl.bin To: Neha Malcom Francis Cc: u-boot@lists.denx.de, afd@ti.com, trini@konsulko.com, rogerq@kernel.org, a-govindraju@ti.com, vigneshr@ti.com References: <20220615064804.29553-1-n-francis@ti.com> <20220615064804.29553-11-n-francis@ti.com> Content-Language: en-US In-Reply-To: <20220615064804.29553-11-n-francis@ti.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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.6 at phobos.denx.de X-Virus-Status: Clean On 15/06/2022 09:48, Neha Malcom Francis wrote: > tispl.bin must be packaged (with ATF, OPTEE, DM and A72 SPL) for J721E. > Binman picks up and packages entries according to the > description given in the device tree. > > k3-j721e-a72-binman.dtsi has been introduced for A72 specific binman > node. It is included by k3-j721e-common-proc-board-u-boot.dtsi > > Signed-off-by: Neha Malcom Francis > --- > arch/arm/dts/k3-j721e-a72-binman.dtsi | 86 +++++++++++++++++++ > .../k3-j721e-common-proc-board-u-boot.dtsi | 1 + > board/ti/j721e/Kconfig | 1 + > 3 files changed, 88 insertions(+) > create mode 100644 arch/arm/dts/k3-j721e-a72-binman.dtsi > > diff --git a/arch/arm/dts/k3-j721e-a72-binman.dtsi b/arch/arm/dts/k3-j721e-a72-binman.dtsi > new file mode 100644 > index 0000000000..beb3424bb9 > --- /dev/null > +++ b/arch/arm/dts/k3-j721e-a72-binman.dtsi > @@ -0,0 +1,86 @@ > +// SPDX-License-Identifier: GPL-2.0+ > +// Copyright (C) 2022 Texas Instruments Incorporated - https://www.ti.com/ > + > +#include > + > +#ifdef CONFIG_ARM64 > +/ { > + binman: binman { > + multiple-images; > + }; > +}; > + > +&binman { > + tispl { > + filename = "tispl.bin"; Empty lines for this file as well. > + fit { > + description = "FIT IMAGE"; > + #address-cells = <1>; > + images { > + atf { > + description = "ARM Trusted Firmware"; > + type = "firmware"; > + arch = "arm64"; > + compression = "none"; > + os = "arm-trusted-firmware"; > + load = ; > + entry = ; > + atf-bl31 { > + }; > + }; > + tee { > + description = "OPTEE"; > + type = "tee"; > + arch = "arm64"; > + compression = "none"; > + os = "tee"; > + load = <0x9e800000>; > + entry = <0x9e800000>; > + tee-os { > + }; > + }; > + dm { > + description = "DM binary"; > + type = "firmware"; > + arch = "arm32"; > + compression = "none"; > + os = "DM"; > + load = <0x89000000>; > + entry = <0x89000000>; > + ti-dm { > + }; > + }; > + spl { > + description = "SPL (64-bit)"; > + type = "standalone"; > + os = "U-Boot"; > + arch = "arm64"; > + compression = "none"; > + load = ; > + entry = ; > + u-boot-spl-nodtb { > + }; > + }; > + k3-j721e-common-proc-board.dtb { > + description = "k3-j721e-common-proc-board"; > + type = "flat_dt"; > + arch = "arm"; > + compression = "none"; > + blob-ext { > + filename = "spl/dts/k3-j721e-common-proc-board.dtb"; Indentation here, but it could be a u-boot-spl-dtb entry instead. Or, there's a @fdt-SEQ mechanism to include files based on CONFIG_OF_LIST, which you might want to look at. > + }; > + }; > + }; > + configurations { > + default = "conf"; > + conf { > + description = "k3-j721e-common-proc-board"; > + firmware = "atf"; > + loadables = "tee", "dm", "spl"; > + fdt = "k3-j721e-common-proc-board.dtb"; > + }; > + }; > + }; > + }; > +}; > +#endif > diff --git a/arch/arm/dts/k3-j721e-common-proc-board-u-boot.dtsi b/arch/arm/dts/k3-j721e-common-proc-board-u-boot.dtsi > index 677a72d2a2..6490d71f7e 100644 > --- a/arch/arm/dts/k3-j721e-common-proc-board-u-boot.dtsi > +++ b/arch/arm/dts/k3-j721e-common-proc-board-u-boot.dtsi > @@ -4,6 +4,7 @@ > */ > > #include > +#include "k3-j721e-a72-binman.dtsi" > > / { > chosen { > diff --git a/board/ti/j721e/Kconfig b/board/ti/j721e/Kconfig > index a3a9d504ae..3cf05f0d3b 100644 > --- a/board/ti/j721e/Kconfig > +++ b/board/ti/j721e/Kconfig > @@ -14,6 +14,7 @@ config TARGET_J721E_A72_EVM > select BOARD_LATE_INIT > imply TI_I2C_BOARD_DETECT > select SYS_DISABLE_DCACHE_OPS > + select BINMAN > > config TARGET_J721E_R5_EVM > bool "TI K3 based J721E EVM running on R5"