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 547D8C433EF for ; Fri, 1 Jul 2022 19:10:17 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 277A9844BE; 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=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="Ghc8nMAa"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 317ED844BE; Fri, 1 Jul 2022 21:09:48 +0200 (CEST) Received: from mail-ed1-x52b.google.com (mail-ed1-x52b.google.com [IPv6:2a00:1450:4864:20::52b]) (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 91ECB844A5 for ; Fri, 1 Jul 2022 21:09:45 +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-ed1-x52b.google.com with SMTP id z19so4025212edb.11 for ; Fri, 01 Jul 2022 12:09:45 -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=ECO/jM3EvBI9bWOFwSgwzsAm/uz+6894I41sq5s76TY=; b=Ghc8nMAaGYKvmNeVwAaluS6+Z1auImztN6zdLf2BcMn0mEUkeHDBjpXDJ2Lfx4iURZ 4QljbTH1aQDSJOlHy/3KlLwfGLbwRAJ7TslPSckWfTp+GPdynWk2Lmc22h/aL1y54vld t0Iv+iiDKqmCHViMB272zTHNz5Tlix+mmhyRuRBqBFoh04FD7V3tPU8fr6Jfd2tVzZjh RoQps+KOe944xZd43pbKwFSQKqYjgSKNnkknI7JvzXvaXWCNj4lCjN03GoxyrhOllX2K 3yOvYnVMca6HEDNrbauzjQwDhsbL2aXeFtCjmJl8igJ/x7zzTg6ehS2EUiv50tNmHIe/ 8rXA== 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=ECO/jM3EvBI9bWOFwSgwzsAm/uz+6894I41sq5s76TY=; b=Or8E5oPlOKA3VynMwxtcep8HGElaTZNO1DyvYb+PCKQpR8CtcFMGv9c5HAsnOibuOQ rjRpvDpaMyk4GyCb7TUctvAG/MmjkGxtwIoA1WVJFR0uI6lrGzZBzlBNLrH3SXJW6pSn Y9CIasSdhUefaiUiVtPRrKLrc0RNL4/1QruzGFomdCG86s6m6fdhChc7qXkYvSJAsKHx 4XfSv21KHdlMEYizSFkrHcbxz+QlOXyBJLRIeFoM19lPC25spvcVTm/KCErUBHO6y9AW CnG5N6YWsRBr8K7yZc5pSoT8bslDRBqEV8a2cBRWzKfvWiAbE6DFJtSsGU/3j82iDXBb FBfw== X-Gm-Message-State: AJIora8L53Cua0s01NN2Bxa3gAVy0L9zd5/Ury8X0n6Nir6HsWTnhQuU bUlYp7j8u9azigw3+x3kN2A= X-Google-Smtp-Source: AGRyM1vbDhyePcg4W9HwjpK/9+ub83iwmN01j53/Rgr+x0KjV/MqZ/Eo90os8dzXsaPvMTWGdXJrtQ== X-Received: by 2002:a05:6402:501d:b0:437:e000:a898 with SMTP id p29-20020a056402501d00b00437e000a898mr17847025eda.265.1656702585270; Fri, 01 Jul 2022 12:09:45 -0700 (PDT) Received: from [192.168.0.74] ([178.233.178.185]) by smtp.gmail.com with ESMTPSA id z4-20020a1709060f0400b00722f069fd40sm10713250eji.159.2022.07.01.12.09.43 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 01 Jul 2022 12:09:44 -0700 (PDT) Message-ID: Date: Fri, 1 Jul 2022 22:07:55 +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 09/11] ti: dtsi: j721e: Use binman to package sysfw.itb and tiboot3.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-10-n-francis@ti.com> Content-Language: en-US In-Reply-To: <20220615064804.29553-10-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: > By providing entries in the binman node of the device tree, binman will > be able to find and package board config binary artifacts generated by > TIBoardConfig with sysfw.bin and generate the final image sysfw.itb. > > k3-j721e-r5-binman.dtsi has been introduced for R5 specific binman node. > It can be then be include by files that require it like > k3-j721e-r5-common-proc-board-u-boot.dtsi. > > Signed-off-by: Tarun Sahu > [n-francis@ti.com: prepared patch for upstreaming] > Signed-off-by: Neha Malcom Francis > --- > arch/arm/dts/k3-j721e-r5-binman.dtsi | 88 +++++++++++++++++++ > .../k3-j721e-r5-common-proc-board-u-boot.dtsi | 1 + > board/ti/j721e/Kconfig | 1 + > 3 files changed, 90 insertions(+) > create mode 100644 arch/arm/dts/k3-j721e-r5-binman.dtsi > > diff --git a/arch/arm/dts/k3-j721e-r5-binman.dtsi b/arch/arm/dts/k3-j721e-r5-binman.dtsi > new file mode 100644 > index 0000000000..e3aeefb08f > --- /dev/null > +++ b/arch/arm/dts/k3-j721e-r5-binman.dtsi > @@ -0,0 +1,88 @@ > +// SPDX-License-Identifier: GPL-2.0+ > +// Copyright (C) 2022 Texas Instruments Incorporated - https://www.ti.com/ > + > +#include > + > +/ { > + binman: binman { > + multiple-images; > + }; > +}; > + > +&binman { > + tiboot3 { > + filename = "tiboot3.bin"; > + ti-x509-cert { > + content = <&image1>; > + core = <16>; > + load = ; > + }; > + image1: u-boot-spl { > + no-expanded; > + }; Please put empty lines between properties and nodes, and between each node. Labels could be u_boot_spl, ti_sysfw instead of image1/2. > + }; > + binary { > + filename = "sysfw.bin"; > + ti-x509-cert { > + content = <&image2>; > + core = <0>; > + load = <0x0040000>; > + }; > + image2: ti-sysfw { > + }; > + }; > + itb { > + filename = "sysfw.itb"; > + fit { > + description = "SYSFW and Config Fragments"; > + #address-cells = <1>; > + images { > + sysfw.bin { > + description = "sysfw"; > + type = "firmware"; > + arch = "arm"; > + compression = "none"; > + blob { > + filename = "sysfw.bin"; > + }; > + }; I dislike having the meaningless 'blob' and 'blob-ext' as node names. Having the extension doesn't make much sense to me for the FIT entry, but I like it for the blob itself: sysfw { description = "sysfw"; type = "firmware"; arch = "arm"; compression = "none"; sysfw.bin { filename = "sysfw.bin"; type = "blob"; }; }; > + board-cfg.bin { > + description = "board-cfg"; > + type = "firmware"; > + arch = "arm"; > + compression = "none"; > + blob-ext { > + filename = "board-cfg.bin"; > + }; > + }; > + pm-cfg.bin { > + description = "pm-cfg"; > + type = "firmware"; > + arch = "arm"; > + compression = "none"; > + blob-ext { > + filename = "pm-cfg.bin"; > + }; > + }; > + rm-cfg.bin { > + description = "rm-cfg"; > + type = "firmware"; > + arch = "arm"; > + compression = "none"; > + blob-ext { > + filename = "rm-cfg.bin"; > + }; > + }; > + sec-cfg.bin { > + description = "sec-cfg"; > + type = "firmware"; > + arch = "arm"; > + compression = "none"; > + blob-ext { > + filename = "sec-cfg.bin"; > + }; > + }; > + }; > + }; > + }; > +}; > diff --git a/arch/arm/dts/k3-j721e-r5-common-proc-board-u-boot.dtsi b/arch/arm/dts/k3-j721e-r5-common-proc-board-u-boot.dtsi > index 48c6ddf672..75ec722e89 100644 > --- a/arch/arm/dts/k3-j721e-r5-common-proc-board-u-boot.dtsi > +++ b/arch/arm/dts/k3-j721e-r5-common-proc-board-u-boot.dtsi > @@ -4,6 +4,7 @@ > */ > > #include "k3-j721e-common-proc-board-u-boot.dtsi" > +#include "k3-j721e-r5-binman.dtsi" > > / { > chosen { > diff --git a/board/ti/j721e/Kconfig b/board/ti/j721e/Kconfig > index c28752a658..a3a9d504ae 100644 > --- a/board/ti/j721e/Kconfig > +++ b/board/ti/j721e/Kconfig > @@ -24,6 +24,7 @@ config TARGET_J721E_R5_EVM > select RAM > select SPL_RAM > select K3_DDRSS > + select BINMAN > imply SYS_K3_SPL_ATF > imply TI_I2C_BOARD_DETECT >