From patchwork Wed May 31 05:29:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jassi Brar X-Patchwork-Id: 687282 Delivered-To: patch@linaro.org Received: by 2002:a5d:4d8a:0:0:0:0:0 with SMTP id b10csp1083660wru; Tue, 30 May 2023 22:29:55 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6guB8tPSP9x9dqPtnsookBW9T70bZ7rt+OKgaIVEoFscuV1cyBsmqbi1lyRdaElMCVvqHC X-Received: by 2002:a05:6870:6488:b0:187:85b1:1258 with SMTP id cz8-20020a056870648800b0018785b11258mr3737281oab.23.1685510994729; Tue, 30 May 2023 22:29:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685510994; cv=none; d=google.com; s=arc-20160816; b=Y8LWjYuICIPxcgQGJOvt1yJNkUD+igZyR/wtI0BB0T+KD386sItaAME09+mlVih9KS s9hNGj+j0aUNfsq1tz9ET1jwLaryPfnVuUcRh6KqY3JERCkTdWxCEJRNu9SSd8r7hHiq hVaIEIuOwDUxnU60WK1/xjrNdBAeXkyaJ04LB7R2QYR6D384Mkhk2wtx/i2YvOWwYIvP jcqQjMA+QCYN7hy8QOmRHDhAZKCXRicpmI2p/+6Bhwujhzgv1X2/mZ+IGSDnIqZrvet3 yr3oyqcQlOW9AK+sWClCeP9tOwJn6BGrC8IyfmOIfrFYsteadAvLJMQ07fsitdPzLE7A OafQ== 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=y93VOsaETcan16+pGceCR28TxpMLXVdftfEVVU2Ts+GDB3MPwCYnDRUk6uw+IxY/u5 SqzCSyJKSMXx0qpBbXAZq4DVVr98iER108ZmW9xZnrd+3EbbfYkTsLwIW7XPHJDUxZkr pdhDTn/3GoAwtt+fqHbSih3S0UnWTCsJPCIwxVEuQiTbmxICt6FbZihtE6mDj7pcg0kH h0Avoh6VVXnqQNsB9o6fDMo0W4pidx+nfN4Q3Vdpi77TWGRQKjGVv8gPlfqhuoh9XGD4 EWsT3Hy5SAkuXDXEhiBNuvLKKsrxbh8iUFb9dTdFjj24OKW5nEkGSD+f35dwPZmBmjwB 2/Zw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mPEXNjpQ; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id w21-20020aa79555000000b0063d3aed5eb8si2908812pfq.140.2023.05.30.22.29.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 May 2023 22:29:54 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=mPEXNjpQ; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 459F385F0A; Wed, 31 May 2023 07:29:45 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org 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=linaro.org header.i=@linaro.org header.b="mPEXNjpQ"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 1BA9486197; Wed, 31 May 2023 07:29:43 +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,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-yw1-x1134.google.com (mail-yw1-x1134.google.com [IPv6:2607:f8b0:4864:20::1134]) (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 9D75A861DE for ; Wed, 31 May 2023 07:29:37 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=jaswinder.singh@linaro.org Received: by mail-yw1-x1134.google.com with SMTP id 00721157ae682-565ca65e7ffso35599067b3.0 for ; Tue, 30 May 2023 22:29:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1685510976; x=1688102976; 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=mPEXNjpQ55dzJCqN8Ipsp8wS0Unl/mpie/wZ6qhCHOzfvcprCuId45wpz32z2ONyCy MUXAEbi3C2CFztkW0OiIvojHqmprS+ZoWmslP/3NO3ruyhivBkBHQA7fELrODa1sJR0D UcmsEkZYGEqIvzwIINx2tjanI1u5pjxE39+DtN022etLvOzAMISD56eGKCebOOfdl9nk yNvyhUFGssndVyrzjvwv/rUeqV++qZww64W/Pub54uyzQIU/t8ostgPEb1FxxcbUqVIZ OyR8G6icmz7mbBEWQib0ZEsHG9wNd1VuDq0wDokk2ePPI64CTn0CIVPfhvtY14EqduN4 4YYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685510976; x=1688102976; 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=J6TEe2MCF6ziyYewGjKua5RI97yUE4AKW13kNEoBdXLyUlwA5UTS1mbXI7KbAPy/LU IPna1djmGVrpXHC5B018RQI234H3U0dr2fJyrhZtOTpLxrHZisudd8P196BgKsTt6rZJ nXXpcPbr1/0pyAv1zcPNg9P8+GMD0Vg1nkDzQg5MtKUAwYWwKOLJ7ZBkiA3pvqEHGIcs cKURkCHRZCaZnCn1pNz9/zjViYaJLEIMiannR16KyjMT6tsIO7KrgFAI9BVe4bQktpyh bzVBBGdNPCnstuSPYOJRu/SAfQDchCKz5KtfWm24LYJM40MMLrOu5bob/5AZB2sNstHg aLug== X-Gm-Message-State: AC+VfDxSCRmUxmt1FVS99F/vCLn28qE1rQVPuqq/x3d8s6gIezKMQpUG vA1NGx5DmSl79MCkcLGvR14EitM+CGJ4UZTbtxA= X-Received: by 2002:a81:4849:0:b0:561:e8e0:2e82 with SMTP id v70-20020a814849000000b00561e8e02e82mr4882233ywa.30.1685510976205; Tue, 30 May 2023 22:29:36 -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 e6-20020a81e946000000b0054f80928ea4sm4990144ywm.140.2023.05.30.22.29.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 May 2023 22:29:35 -0700 (PDT) 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, michal.simek@amd.com, takahiro.akashi@linaro.org, Jassi Brar Subject: [PATCH v6 3/6] dt: fwu: developerbox: enable fwu banks and mdata regions Date: Wed, 31 May 2023 00:29:32 -0500 Message-Id: <20230531052932.21925-1-jaswinder.singh@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230531052804.21871-1-jaswinder.singh@linaro.org> References: <20230531052804.21871-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"; + }; + }; + }; }; };