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 588C6C77B73 for ; Wed, 31 May 2023 05:29:51 +0000 (UTC) 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) 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-Google-Smtp-Source: ACHHUZ4hwA+BAXvpZUaDfdVimYwIUFB2WU3PCaKc331dG3uiMm+i1JNmOarGHENw86PE2ySxShJZ7g== 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 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.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"; + }; + }; + }; }; }; -- 2.34.1