From patchwork Mon Mar 27 21:16:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jassi Brar X-Patchwork-Id: 667416 Delivered-To: patch@linaro.org Received: by 2002:a5d:4d08:0:0:0:0:0 with SMTP id z8csp1317014wrt; Mon, 27 Mar 2023 14:27:39 -0700 (PDT) X-Google-Smtp-Source: AKy350aBGjgXIgpV+TiBTbRGr9rpXqlOD9VKoiA3kj3CKgWIE/dYeFByZ/v1CurjdbiRtCExeuRX X-Received: by 2002:a17:90a:18e:b0:23b:2c51:6e7 with SMTP id 14-20020a17090a018e00b0023b2c5106e7mr14060436pjc.21.1679952459291; Mon, 27 Mar 2023 14:27:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679952459; cv=none; d=google.com; s=arc-20160816; b=fNSaI8tZZfJu3Esm4gyw3x6Py43BkFd96XOycTb3n1zDXbK/BIrmJDUQAMEMUOuStN 7OuwxqQEsIQJ1tUiqrLgwZRfR7IB1jGNWI+3+IK7pLvKych3E/VP9KkmCtXHluJTVNlS WGCQuG7xP/fbTSN+z7iqaNztEw/S3kbGMEny0RQxBp/I2CpzqPVvDz8dUh6WdJgTNSYl BtABI49+dZQDIqbqhMy7780Td5xInmQMn+IGoZiZHgVmqpcahqwyUUTStc0Ecf+LsK3Y 0p9CJLowaNBEqayLYJ909eREGFpfKj0R0MQPmnqAE0y/aiAxbeCcwDd9zNiSphXRMDF4 8JsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=4fyDe/0cTHlEQ9lVYN3dBZWaoU0hi0zVBuGeGw2+mA8=; b=dSCiqb+ADHCBJofDDPtkGMe/hlu6JUpOsKaLKWvMf7ebLKNkvcJuvuvD7dTSBC0YX8 PaExEm3JR+AuTaO8PCWVwCVd3Dj1kLmuobHMZ2rnMu6UuJ6R3dc7ZE0vSSLHRLN7J+ck KAdmMklTqGWc4S8j2g2yhys63bXfEuxKidEKzRD/SSiR6xJYmoFY5zkAflldRDAx2Qq0 8eFqD6MK12SuQXh1hOLT330J9X+bPB/m9C700QK1lqV1mIvB1zJigV12O4IXjfEFnuT1 MQtWUitsNZSo1hWmuqjWYnPMwmIhvy02bmcZRX4WMzAx8uPNtCzij/xBOQIHJy3Q9U+N pW2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=pngGxvf0; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id s17-20020a632151000000b0050bee8d3e4bsi27807431pgm.691.2023.03.27.14.27.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Mar 2023 14:27:39 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=pngGxvf0; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 7729481E3E; Mon, 27 Mar 2023 23:26:47 +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="pngGxvf0"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 9137685C66; Mon, 27 Mar 2023 23:26:41 +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.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-io1-xd33.google.com (mail-io1-xd33.google.com [IPv6:2607:f8b0:4864:20::d33]) (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 8143C85C7B for ; Mon, 27 Mar 2023 23:17:23 +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=jassisinghbrar@gmail.com Received: by mail-io1-xd33.google.com with SMTP id e13so4521681ioc.0 for ; Mon, 27 Mar 2023 14:17:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679951783; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=4fyDe/0cTHlEQ9lVYN3dBZWaoU0hi0zVBuGeGw2+mA8=; b=pngGxvf0vHRRHHNKhP87RI1dyx74YYNQYduI+FhMchMeG1k1lD4EyOcF8lnNsesYs7 6ZI0JluQLClMmVA9Rg1zv5T2h0fPP0nFRHNVXLhSUcvE73yp9gYvjKVvb11mx0biCBel WkhFsjWKvqy4E8BWtLFJKOoFJzizhGxwGHPBaoZ2FKEgCZSaAVl4B43NxrWqtdDZXq6l MBxSCZmDu8Y2cqeow6W4RF4pCHE4tWfm2gxftLv0wiN9UijRo47LZAO7p+VrQyoI0zib OtImlpq/k98SyFWM19j4g5RLMU4xWT3bgA1XEqgfafGetR79BOJzDwcY4QBsi18GGzB8 EbyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679951783; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=4fyDe/0cTHlEQ9lVYN3dBZWaoU0hi0zVBuGeGw2+mA8=; b=xb3vWui8EMbG8676a0iNcSqlzCFml1sg2JGBaKrqrB7y3xMA2hGIMiC9A0v/qQ57Ez +IdGTyXTD3DbsB/rrZbEFrP6lsViVUe4xWE6UqMll+boXHp0rcLaOx5YIIr7z1n+mx/7 5qmmQerJFRIqf6Bb2dEGpmfh+HE4C5cYg0RiQoHPWHQ+YcTvK755T8dsSkIZcr68SdSX 2rvkHTwVi5l2fWTCUgkZ+Ia/fVrm0mhpqow4A5Vj62h7Kdh5uv0B2kTjcZLYJQV/Z115 xGdcJDlXCOhfBJ3VhOkTvxlqFJTfLHEU19C/KUME6fubHLbFDsHUHLLV3U9h1xlXEnhK snxg== X-Gm-Message-State: AO0yUKXVIoOcOGtF98geDOmblafsy1R3Z5sZfbnmNj/UqUNByCmN1GfG O1JtY2WXQxXgX52VEjtp8tg2AGH3bQY= X-Received: by 2002:a05:6602:228a:b0:758:917b:c313 with SMTP id d10-20020a056602228a00b00758917bc313mr10032182iod.13.1679951782761; Mon, 27 Mar 2023 14:16:22 -0700 (PDT) Received: from jassi-desktop.. (wnpgmb0311w-ds01-45-177-228.dynamic.bellmts.net. [206.45.177.228]) by smtp.gmail.com with ESMTPSA id t8-20020a056638348800b004061eb055dcsm7682340jal.140.2023.03.27.14.16.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Mar 2023 14:16:22 -0700 (PDT) From: jassisinghbrar@gmail.com X-Google-Original-From: jaswinder.singh@linaro.org To: u-boot@lists.denx.de Cc: ilias.apalodimas@linaro.org, etienne.carriere@linaro.org, trini@konsulko.com, sjg@chromium.org, sughosh.ganu@linaro.org, xypron.glpk@gmx.de, takahiro.akashi@linaro.org, michal.simek@amd.com, Jassi Brar Subject: [PATCH v4 4/6] dt: fwu: developerbox: enable fwu banks and mdata regions Date: Mon, 27 Mar 2023 16:16:19 -0500 Message-Id: <20230327211619.498967-1-jaswinder.singh@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230327211458.498879-1-jaswinder.singh@linaro.org> References: <20230327211458.498879-1-jaswinder.singh@linaro.org> MIME-Version: 1.0 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.8 at phobos.denx.de X-Virus-Status: Clean From: Jassi Brar Specify Bank-0/1 and fwu metadata mtd regions. Signed-off-by: Jassi Brar --- .../synquacer-sc2a11-developerbox-u-boot.dtsi | 49 +++++++++++++++++-- 1 file changed, 46 insertions(+), 3 deletions(-) diff --git a/arch/arm/dts/synquacer-sc2a11-developerbox-u-boot.dtsi b/arch/arm/dts/synquacer-sc2a11-developerbox-u-boot.dtsi index 9f9837b33b..9957646a46 100644 --- a/arch/arm/dts/synquacer-sc2a11-developerbox-u-boot.dtsi +++ b/arch/arm/dts/synquacer-sc2a11-developerbox-u-boot.dtsi @@ -21,7 +21,7 @@ #size-cells = <0>; status = "okay"; - flash@0 { + flash0: flash@0 { #address-cells = <1>; #size-cells = <1>; compatible = "jedec,spi-nor"; @@ -74,8 +74,24 @@ }; partition@500000 { - label = "Ex-OPTEE"; - reg = <0x500000 0x200000>; + label = "MDATA-Pri"; + reg = <0x500000 0x1000>; + }; + + partition@530000 { + label = "MDATA-Sec"; + reg = <0x530000 0x1000>; + }; + + /* FWU Multi bank update partitions */ + partition@600000 { + label = "FIP-Bank0"; + reg = <0x600000 0x400000>; + }; + + partition@a00000 { + label = "FIP-Bank1"; + reg = <0xa00000 0x400000>; }; }; }; @@ -102,6 +118,33 @@ optee { status = "okay"; }; + + fwu-mdata { + compatible = "u-boot,fwu-mdata-mtd"; + fwu-mdata-store = <&flash0>; + mdata-parts = "MDATA-Pri", "MDATA-Sec"; + + fwu-bank0 { + id = <0>; + label = "FIP-Bank0"; + fwu-image0 { + id = <0>; + offset = <0x0>; + size = <0x400000>; + uuid = "5a66a702-99fd-4fef-a392-c26e261a2828"; + }; + }; + fwu-bank1 { + id = <1>; + label = "FIP-Bank1"; + fwu-image0 { + id = <0>; + offset = <0x0>; + size = <0x400000>; + uuid = "a8f868a1-6e5c-4757-878d-ce63375ef2c0"; + }; + }; + }; }; };