From mboxrd@z Thu Jan 1 00:00:00 1970 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 C628EC38A2D for ; Mon, 24 Oct 2022 14:05:00 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E984A84D1E; Mon, 24 Oct 2022 16:03:32 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1666620213; bh=AL+DlDy4R3NFgjxXn2naagM3YDETt02hmhHIoPdW9tI=; h=From:To:Subject:In-reply-to:Date:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From; b=RzpzJ+qZ48ajDchzrs69KljSNcZBDpYRtfu5vsvfHi9QzTNg6HGpJ73CRXTa8bSCS ArUl8neu4SVAzn5+i9eNvgUmzpps7zn2OwUitAzNIVCMxXwF0OrJwrzit33LX8nV3V ntmb7lAlgKBgtujGhvsQPGppDoAKnBxlETpKA2UYclt78vwHpIFHu1C/3xdQEdtVVA 3V56sciDSvRTCI4a0eWmx4ygqzS7vT9xzu8RWDHUm2+wNGSvmXOQqk0Lairp11h9lx XzJNoS2f+YnmboC9nMp9f7nuPURCpeNnYwTNR/Aahbcm+8ehkumOtQ61TeDiXNFWNX iq/2BAKpiqZ2w== Received: by phobos.denx.de (Postfix, from userid 109) id 9C96F83EB9; Mon, 24 Oct 2022 15:56:51 +0200 (CEST) Received: from mail-out.m-online.net (mail-out.m-online.net [212.18.0.10]) (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 9F6AB83F51 for ; Mon, 24 Oct 2022 15:56:27 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=sbabic@denx.de Received: from frontend03.mail.m-online.net (unknown [192.168.6.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4MwxST5h6nz1s94Q; Mon, 24 Oct 2022 15:56:25 +0200 (CEST) Received: from localhost (dynscan3.mnet-online.de [192.168.6.84]) by mail.m-online.net (Postfix) with ESMTP id 4MwxST5Xgcz1qqlR; Mon, 24 Oct 2022 15:56:25 +0200 (CEST) X-Amavis-Alert: BAD HEADER SECTION, Missing required header field: "Date" Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan3.mail.m-online.net [192.168.6.84]) (amavisd-new, port 10024) with ESMTP id EiST2suNgYaY; Mon, 24 Oct 2022 15:56:24 +0200 (CEST) Received: from papero (host-88-217-136-221.customer.m-online.net [88.217.136.221]) by mail.mnet-online.de (Postfix) with ESMTP; Mon, 24 Oct 2022 15:56:24 +0200 (CEST) From: sbabic@denx.de X-Patchwork-Submitter: Adam Ford X-Patchwork-Id: 1693301 X-Patchwork-Delegate: sbabic@denx.de To: Adam Ford ,u-boot@lists.denx.de Subject: [PATCH V2 1/7] arm: dts: imx8mn-u-boot: Create common imx8mn-u-boot.dtsi In-reply-to: <20221022005837.170357-2-aford173@gmail.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Message-Id: <20221024135651.9C96F83EB9@phobos.denx.de> Date: Mon, 24 Oct 2022 15:56:36 +0200 (CEST) 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 > Multiple boards create duplicate entries in their respective > -u-boot.dtsi files which all basically do the same thing. > To consolidate these and make it easier to make improvements > going forward, consolidate them all into one place. > This file creates a flash.bin image using binman, and supports > LPDDR4, DDR4 and DDR3. Since individual boards use different > peripherals and different UART ports, those entries were kept > in their respective board files, but the spba1 node was addded > which contains all UART1-3 to help facilitate SPL_DM_SERIAL. > Individual users will still need to include their respective > UART and pinctrl nodes for those UARTS. > This consolidated file also supports generating a flash.bin file > which can boot from flexSPI if CONFIG_FSPI_CONF_HEADER is > enabled. > Signed-off-by: Adam Ford > Reviewed-by: Fabio Estevam > diff --git a/arch/arm/dts/imx8mn-u-boot.dtsi b/arch/arm/dts/imx8mn-u-boot.d= tsi > new file mode 100644 > index 0000000000..327d4070fc > --- /dev/null > +++ b/arch/arm/dts/imx8mn-u-boot.dtsi > @@ -0,0 +1,248 @@ > +// SPDX-License-Identifier: GPL-2.0+ > +/* > + * Copyright 2022 Logic PD, Inc dba Beacon EmbeddedWorks > + */ > + > +/ { > + binman: binman { > + multiple-images; > + }; > + > + firmware { > + optee { > + compatible =3D "linaro,optee-tz"; > + method =3D "smc"; > + }; > + }; > + > + wdt-reboot { > + compatible =3D "wdt-reboot"; > + wdt =3D <&wdog1>; > + u-boot,dm-spl; > + }; > +}; > + > +&{/soc@0} { > + u-boot,dm-pre-reloc; > + u-boot,dm-spl; > +}; > + > +&aips1 { > + u-boot,dm-spl; > + u-boot,dm-pre-reloc; > +}; > + > +&aips2 { > + u-boot,dm-spl; > +}; > + > +&aips3 { > + u-boot,dm-spl; > +}; > + > +&aips4 { > + u-boot,dm-spl; > +}; > + > +&clk { > + u-boot,dm-spl; > + u-boot,dm-pre-reloc; > + /delete-property/ assigned-clocks; > + /delete-property/ assigned-clock-parents; > + /delete-property/ assigned-clock-rates; > +}; > + > +&iomuxc { > + u-boot,dm-spl; > +}; > + > +&osc_24m { > + u-boot,dm-spl; > + u-boot,dm-pre-reloc; > +}; > + > +&spba1 { > + u-boot,dm-spl; > +}; > + > +&wdog1 { > + u-boot,dm-spl; > +}; > + > +&binman { > + u-boot-spl-ddr { > + filename =3D "u-boot-spl-ddr.bin"; > + pad-byte =3D <0xff>; > + align-size =3D <4>; > + align =3D <4>; > + > + u-boot-spl { > + align-end =3D <4>; > + filename =3D "u-boot-spl.bin"; > + }; > + > + ddr-1d-imem-fw { > +#ifdef CONFIG_IMX8M_LPDDR4 > + filename =3D "lpddr4_pmu_train_1d_imem.bin"; > +#elif CONFIG_IMX8M_DDR4 > + filename =3D "ddr4_imem_1d.bin"; > +#else > + filename =3D "ddr3_imem_1d.bin"; > +#endif > + type =3D "blob-ext"; > + align-end =3D <4>; > + }; > + > + ddr-1d-dmem-fw { > +#ifdef CONFIG_IMX8M_LPDDR4 > + filename =3D "lpddr4_pmu_train_1d_dmem.bin"; > +#elif CONFIG_IMX8M_DDR4 > + filename =3D "ddr4_dmem_1d.bin"; > +#else > + filename =3D "ddr3_dmem_1d.bin"; > +#endif > + type =3D "blob-ext"; > + align-end =3D <4>; > + }; > + > + ddr-2d-imem-fw { > +#ifdef CONFIG_IMX8M_LPDDR4 > + filename =3D "lpddr4_pmu_train_2d_imem.bin"; > +#elif CONFIG_IMX8M_DDR4 > + filename =3D "ddr4_imem_2d.bin"; > +#endif > + type =3D "blob-ext"; > + align-end =3D <4>; > + }; > + > + ddr-2d-dmem-fw { > +#ifdef CONFIG_IMX8M_LPDDR4 > + filename =3D "lpddr4_pmu_train_2d_dmem.bin"; > +#elif CONFIG_IMX8M_DDR4 > + filename =3D "ddr4_dmem_2d.bin"; > +#endif > + type =3D "blob-ext"; > + align-end =3D <4>; > + }; > + }; > + > + spl { > + filename =3D "spl.bin"; > + > + mkimage { > + args =3D "-n spl/u-boot-spl.cfgout -T imx8mimage -e 0x912000"; > + > + blob { > + filename =3D "u-boot-spl-ddr.bin"; > + }; > + }; > + }; > + > + itb { > + filename =3D "u-boot.itb"; > + > + fit { > + description =3D "Configuration to load ATF before U-Boot"; > + fit,external-offset =3D ; > + fit,fdt-list =3D "of-list"; > + #address-cells =3D <1>; > + > + images { > + uboot { > + arch =3D "arm64"; > + compression =3D "none"; > + description =3D "U-Boot (64-bit)"; > + load =3D ; > + type =3D "standalone"; > + > + uboot-blob { > + filename =3D "u-boot-nodtb.bin"; > + type =3D "blob-ext"; > + }; > + }; > + > + atf { > + arch =3D "arm64"; > + compression =3D "none"; > + description =3D "ARM Trusted Firmware"; > + entry =3D <0x960000>; > + load =3D <0x960000>; > + type =3D "firmware"; > + > + atf-blob { > + filename =3D "bl31.bin"; > + type =3D "atf-bl31"; > + }; > + }; > + > + binman_fip: fip { > + arch =3D "arm64"; > + compression =3D "none"; > + description =3D "Trusted Firmware FIP"; > + load =3D <0x40310000>; > + type =3D "firmware"; > + }; > + > + @fdt-SEQ { > + compression =3D "none"; > + description =3D "NAME"; > + type =3D "flat_dt"; > + > + uboot-fdt-blob { > + filename =3D "u-boot.dtb"; > + type =3D "blob-ext"; > + }; > + }; > + }; > + > + configurations { > + default =3D "@config-DEFAULT-SEQ"; > + > + binman_configuration: @config-SEQ { > + description =3D "NAME"; > + fdt =3D "fdt-SEQ"; > + firmware =3D "uboot"; > + loadables =3D "atf"; > + }; > + }; > + }; > + }; > + > + imx-boot { > + filename =3D "flash.bin"; > + pad-byte =3D <0x00>; > + > +#ifdef CONFIG_FSPI_CONF_HEADER > + fspi_conf_block { > + filename =3D CONFIG_FSPI_CONF_FILE; > + type =3D "blob-ext"; > + offset =3D <0x400>; > + }; > + > + spl { > + filename =3D "spl.bin"; > + offset =3D <0x1000>; > + type =3D "blob-ext"; > + }; > + > + binman_uboot: uboot { > + filename =3D "u-boot.itb"; > + offset =3D <0x59000>; > + type =3D "blob-ext"; > + }; > +#else > + > + spl { > + offset =3D <0x0>; > + filename =3D "spl.bin"; > + type =3D "blob-ext"; > + }; > + > + binman_uboot: uboot { > + offset =3D <0x58000>; > + filename =3D "u-boot.itb"; > + type =3D "blob-ext"; > + }; > +#endif > + }; > +}; Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic --=20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic@denx.de =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D