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 5ADABC433FE for ; Sat, 5 Feb 2022 16:23:41 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 0981C83A8D; Sat, 5 Feb 2022 17:23:16 +0100 (CET) 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="DBiRh4e8"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 392B683B5F; Sat, 5 Feb 2022 17:23:14 +0100 (CET) Received: from mail-io1-xd2f.google.com (mail-io1-xd2f.google.com [IPv6:2607:f8b0:4864:20::d2f]) (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 6FDC783AA4 for ; Sat, 5 Feb 2022 17:23:05 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=aford173@gmail.com Received: by mail-io1-xd2f.google.com with SMTP id 9so11333858iou.2 for ; Sat, 05 Feb 2022 08:23:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=mCausld+i+8SgW4tyX32WTWYXRon6zk7yiG4QoszWcU=; b=DBiRh4e8YL9oFHB7oTpaIM7BiEscXOJpxLFBibv/bOz9gnzOrDTSIc6aQqO19oNfBf dX3JKBkCLghpkfyLkFSwcUFMUT+0N6lrIOVjX+n5xNdNa1YuHL8UZFAz+PxUmj/dU86O UuToS5KDz654h2vCKT3+3GL8bd5cRoXcFSCxvyFd5EEezNRa3bnnOYLMe9EQoEvCVIOO T0//WTUCfrvVwra6hQImALO1aee44/BfFijxzRUMFQ4suPFA8Ufif35wvJQbgsFIj6nl at5NE7XJeTVxg3Dhk7/5hqXCnMzeWXNaDWyggDX4i+DEj21XJ1+kSsOSzOMR9bJeA68v cE5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=mCausld+i+8SgW4tyX32WTWYXRon6zk7yiG4QoszWcU=; b=xmA2ntjcRBxymOnxW8rdhWiaT9zSlrlW3vnDVgr9BkjHvxLGitVA9hGVplJ/CC/voq POZ0D9XYgcS5cbvMimaKGlqPjyvAW//Mb03HGLU4NytzEiSddq1Ou52LWc+6TswUyEO+ rnVLkqXBlV2BXJa4YGExui6he3WrOUtyQXA3dXGKTWNBEfYQt/yuffHg8RpGdkN7uWgy 0rVZBV7mYs1uQ+91s8uwov6lxOIG0sKhlaFXqcubiVsK63aPwPafQVNxXtP/Ugt3Yv8G 0Bby0WNXlmG2Aus+zQ7gORPgyU+Y28IoapJeSb96dB9gwg1dKnhID3lCiJpfeQUzzkE0 0Bfw== X-Gm-Message-State: AOAM533jAuTNmkBdaoDZ18u1bRYlyDhpy63mQDuAPP3coR4TDMNvGHRL geqmsxe97tuBEiDmGW2r/JJSp6Hng5I= X-Google-Smtp-Source: ABdhPJwduVnYte3QkWOyVYa2RXaQLeCZGsfPDKjOF0PdyGN02lioO4osyKQOvfCl25L5Ijxx5rI4Dg== X-Received: by 2002:a5d:8419:: with SMTP id i25mr1901856ion.163.1644078183816; Sat, 05 Feb 2022 08:23:03 -0800 (PST) Received: from aford-IdeaCentre-A730.lan ([2601:448:8400:9e8:3c7c:8f64:a6ca:72d3]) by smtp.gmail.com with ESMTPSA id i10sm2598543ilv.86.2022.02.05.08.23.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 05 Feb 2022 08:23:03 -0800 (PST) From: Adam Ford To: u-boot@lists.denx.de Cc: marcel.ziswiler@toradex.com, tharvey@gateworks.com, Adam Ford , Stefano Babic , Fabio Estevam , "NXP i.MX U-Boot Team" Subject: [PATCH 4/7] arm: dts: imx8mm: Create generic DTSI for booting from FlexSPI Date: Sat, 5 Feb 2022 10:22:36 -0600 Message-Id: <20220205162240.854948-4-aford173@gmail.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220205162240.854948-1-aford173@gmail.com> References: <20220205162240.854948-1-aford173@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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.5 at phobos.denx.de X-Virus-Status: Clean There is a common imx8mm-u-boot.dtsi that generates images for booting from MMC, but when booting FlexSPI, the image needs to be created differently. To facilitate this, the new dtsi file includes the old one, deletes the node that packages the SPL + U-Boot.itb, and replaces it with a node that packages the FlexSPI Config Block + SPL + U-Boot.itb and puts them to their proper respective locations for FlexSPI booting. Signed-off-by: Adam Ford diff --git a/arch/arm/dts/imx8mm-flexspi-u-boot-dtsi b/arch/arm/dts/imx8mm-flexspi-u-boot-dtsi new file mode 100644 index 0000000000..1b889afa0c --- /dev/null +++ b/arch/arm/dts/imx8mm-flexspi-u-boot-dtsi @@ -0,0 +1,37 @@ +// SPDX-License-Identifier: GPL-2.0+ + +#include "imx8mm-u-boot.dtsi" + +/* + * According to the TRM, the FlexSPI Configuration block exists at + * offset 0. This pushes SPL and U-Boot proper to different addresses + * To facilicate this, we'll delete the previous node and create a new + * one specific to the FlexSPI booting. + */ + + &binman { + /delete-node/ imx-boot; + + imx-fspi-boot { + filename = "flash.bin"; + pad-byte = <0x00>; + + fcfb { + filename = "arch/arm/mach-imx/imx8m/fcfb.bin"; + offset = <0x00>; + type = "blob-ext"; + }; + + spl { + filename = "spl.bin"; + offset = <0x1000>; + type = "blob-ext"; + }; + + binman_uboot: uboot { + filename = "u-boot.itb"; + offset = <0x600000>; + type = "blob-ext"; + }; + }; + }; -- 2.32.0