From patchwork Mon Apr 10 23:03:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jassi Brar X-Patchwork-Id: 672042 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:184:0:0:0:0 with SMTP id p4csp495425wrx; Mon, 10 Apr 2023 16:04:28 -0700 (PDT) X-Google-Smtp-Source: AKy350as8sCSHers0pHWgbW4gQxvKRZnB8RxepE/O+3c7V3NazSZMGjiP0TnXT9JaPvV1CKkLRoo X-Received: by 2002:a05:6214:29cd:b0:572:636d:625f with SMTP id gh13-20020a05621429cd00b00572636d625fmr1230354qvb.33.1681167867914; Mon, 10 Apr 2023 16:04:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681167867; cv=none; d=google.com; s=arc-20160816; b=TILEqItn6rPcbjDCME+9qVK/p9LrKLJMQTaQJoAsS3P5RIGBPo3fPD04PVG0Fp3wjy S0NQgbnYfMo+lP2BDbQo0eSwYbtTmO2AMO2g0sSVczeo1I77975vm2Pm03E9ANDw6AR1 fRCsQEpriZ3Nivvj0dbaCqWXw3XFq+XmaEocJRF8EAi6v9r+pHhvBd8zHy/7XxAne4Ai BOoO+Cr5oumB07gwiLkU87XOUcCSpyanyS/P/oSTXiNvncvJXEzahlM+caPjU+L76wfd lPjKTkRTV+IOKMUqeHdnE6dNSOAiLwqhC3i5g8U7GMzqW16pktjaMJCXcxQYQhkXhxL0 rieA== 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=iMyAGIiAWj/UZlTpNMhYvxVT7YE/UXwwAdyBTVkBl47W7kZyljNYCaGlSqA+5pWv0R WD7nWpjw/1O2grV4qRJfJ3DR4UWDjL/pHIdUgwWE2aoDTuZ1cpiJsWILRUA/8B3Xb1eA iqg9ZXzR8L/lHxL9dyK30Y/k0oAU62d8uMXpYSMsP81FYc1FGZsjrjXMPyqxi+AETSg+ dZcAVykQMQh69jJ4nVzBTgSjfWsxA8HNhZoqS64JlorjdW6AOGSDLh7WwN8yieWWOxYQ 82mmxwKqtCvAbqEZ3oAwRF/fuODQ1/Vf6wBe7MX1wKH226LaO4lZtxW5yNBRqBMS19NL D5Ow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DsjAgkxQ; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id jv1-20020a05621429e100b0056eb3abe4f1si8432494qvb.168.2023.04.10.16.04.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Apr 2023 16:04:27 -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=@linaro.org header.s=google header.b=DsjAgkxQ; 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=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 4C54885D95; Tue, 11 Apr 2023 01:04:24 +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="DsjAgkxQ"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 4C92885D95; Tue, 11 Apr 2023 01:04:07 +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 autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-yw1-x1129.google.com (mail-yw1-x1129.google.com [IPv6:2607:f8b0:4864:20::1129]) (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 82D4F85CD8 for ; Tue, 11 Apr 2023 01:04:01 +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-x1129.google.com with SMTP id 00721157ae682-54c061acbc9so266406507b3.11 for ; Mon, 10 Apr 2023 16:04:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1681167840; x=1683759840; 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=DsjAgkxQXmkrhKG4cm9Zxb1pAftCF6WeFxcerO0FYYh80/MCyO56sL6ym9EIYqbUvG IoO5wShlM4MwYcJq5XUCtaRYW7xGlViXgNa7PHs+cz8H1z+lWBBrhJiWXYEFYSDJCVR2 yxePSswny+9plUU+l4Bi6doFiiBNaR0ouAPkrIJ8vOWRQr4XqSon4IYS40OTaiY//bFj kutF9geetDSHlOlBRp+m8rvDy0reXgt21scbxO2hXlhmwUUd2K1oBKAVAc7tZ6XCCkdX LVE8R7Zybw7nkj918JPHONoL1GiOe82VyYPBvzg12rlWoad7kiw9xX53jmMoakW6rXFG JHig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1681167840; x=1683759840; 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=ViV4UmC0AAwcU0iK8MvWz71vj69fIOIxtbfkfoNvLs758uyBqmNe2zn083AmDZ/qAR +CeaAH+JjC67EveKY9epavfFvOQkSo6GugP65VRbS5AnOH1zL4Mo84jz+JVVUzEU7BYQ 4NSkDdKJYL22lrZrukD3cR2pOG2JcsGSHVUbs5WzcY6BGbl3y/ZWi3bD14R4yXpFzDOD wl0QMwi+/RcVqel8jyUv3CKYa3T11rU3xJeI6TznuG8WHZQ7HQIjEXGWdtiZ3zlPyqQz F/F8DGsfKqbQ8955DZaKzFJww3R+IeuL2PPrBdApmWeilqCzYfzCWlxOy+BPie5RNdV+ NKXA== X-Gm-Message-State: AAQBX9eQjazLOwZODQpYbd1en77veAkD+of13hI160/pqACmW0Uz1MvA 0L4ISwxsrcKkRblaOn64ZMXu90aI4V70p8Khp/w= X-Received: by 2002:a81:4ac3:0:b0:54b:f97a:3264 with SMTP id x186-20020a814ac3000000b0054bf97a3264mr792341ywa.8.1681167840111; Mon, 10 Apr 2023 16:04:00 -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 bq7-20020a05690c060700b00545a08184cesm3090787ywb.94.2023.04.10.16.03.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Apr 2023 16:03:59 -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, takahiro.akashi@linaro.org, michal.simek@amd.com, Jassi Brar Subject: [PATCH v5 3/6] dt: fwu: developerbox: enable fwu banks and mdata regions Date: Mon, 10 Apr 2023 18:03:55 -0500 Message-Id: <20230410230355.72619-1-jaswinder.singh@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230410230143.72556-1-jaswinder.singh@linaro.org> References: <20230410230143.72556-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"; + }; + }; + }; }; };