From patchwork Sun Oct 2 23:51:58 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jassi Brar X-Patchwork-Id: 611760 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp826845pvb; Sun, 2 Oct 2022 16:52:12 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5eVLoNcK1fqlxOhje1lQ6Cpu+Cmz9Ol+Rt8yiGFQhZexaa9Np8CmVqKnduq9w0d643NUTA X-Received: by 2002:a50:fc0a:0:b0:458:73c0:7e04 with SMTP id i10-20020a50fc0a000000b0045873c07e04mr12098857edr.270.1664754732510; Sun, 02 Oct 2022 16:52:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664754732; cv=none; d=google.com; s=arc-20160816; b=VLIhVUcl/Lzi9rmc61mfl+NKFDHfjx1VG5SOdxgGncSySqlXKkXPmkLeeGHJ9yGbgT LvRBHFirYQ53qhU5Mh7n4VnD2xzYXRjm2VTmZxPeHzDjNUf/iM68fTPPeW2R2Quqo1mB hOm3qdGnu4HoJN4j63awoJYETaPe4PEOuCdMwu8vdagASE5Cl9u+N+i+OKUaqiGKbnp/ 93rQqBrjbYoDxWsXW/8Rf0zbJMuSa5wE9yChGgGbd2dZJbtuPISUydPwKSSdPt5eoY9N fGFgMB+3oJWRFUhrRJtauklXUs9A2bBxGyK3MMdZlx/5o9TGb8k9IYxY8KZjk3dsd3d0 CBWQ== 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=TyH+9L/R0beIiYjupwRBnfXFGhvstFS6mgE7GSKLGbY=; b=sD7C3MB+2WJnq3PmN9VpTYmDXPELUbnV93QpE/SBZ0XMb1eJpbXvbjENUs2VjBDARz bQANbRqWdXopYMRFndjfs2pbmlFU41OPOo/YVQsYjgg2/JqH89MUj0vqdMn55n/N6lF1 WGmZTAFj5Ltpsx6vqUc+GWbp39eNFGMZ+jqGUU98ljSA/nhkfuU19o/3sn06AteOeZ/+ ycJuJFQxbkD9W5tVPV8yTCptNLCMQlHDum8O5sMea1IvoD30iOVk9RotkucuDTARAFlV ZKLKhUjId0HrXg1/IO6KXlakdXWUq28veDWpAzoaFb40QqaFYyskylC08ExfCTXRDDuW s/Mg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=bTGn34+v; 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=QUARANTINE dis=NONE) header.from=gmail.com 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 hh4-20020a170906a94400b0073d710fec77si6800869ejb.251.2022.10.02.16.52.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Oct 2022 16:52:12 -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=@gmail.com header.s=20210112 header.b=bTGn34+v; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 1EE4484D34; Mon, 3 Oct 2022 01:52:11 +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="bTGn34+v"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 69B6384D2E; Mon, 3 Oct 2022 01:52:09 +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-xd30.google.com (mail-io1-xd30.google.com [IPv6:2607:f8b0:4864:20::d30]) (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 40FE484D3A for ; Mon, 3 Oct 2022 01:52:05 +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-xd30.google.com with SMTP id n192so7040531iod.3 for ; Sun, 02 Oct 2022 16:52:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=TyH+9L/R0beIiYjupwRBnfXFGhvstFS6mgE7GSKLGbY=; b=bTGn34+veRv2mIQ1JMKyyPaoggI2WZsJzXUHTTdjEgKx0BoMiz3OvY2+nA8ZPXbloV 0f4pTVKUe3aTpSlzot2+an5RUCgIWZ0trhCgUDaXFbp1B5jSDt3BN1ZgX4bOFqkHj+QO gsp1KDA2qhK+4ctAVx0hnTv2n7dRT9IAt0sPmagAYYXzcjVuIKANwMApD96T4VJoto7g rEZgOrzZWs0HTSfLwBW80cETdXm1cOxKRlxff44LBKOEpIIuXVGvyeidRtnxQ6aHJvhZ RCxXPSmqKlPddMynTVAc6eUnWm8x+tBVVckmuJzu6yx4U3YcS70/cQNLEIVMwDpxEu5P MGtg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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; bh=TyH+9L/R0beIiYjupwRBnfXFGhvstFS6mgE7GSKLGbY=; b=uRVOysnLM4KXmOT10daF3TgwgHQi779a+Un1ksI9uaOmbE6qGEEzVVhc0qXd64aqQp iTyc+JeftR6rHXSD1++m3mS5MUKDwviVNopEZigM9Rx+EMRymmd8YmyDPC1H/vvSCyxv D3mwkdEZEKim3m3RLQwGb7bkC+YcOzFiQ5B2lbyHhMz1sRHUR5kmx9u7ueEyHzKgAQvx mSx+KaRmIi2NouHMIulBWOIpXxD3dYG86xbnG55PPYZYBaPdBhVyl2SUIxfCaySRDa4u kfk+QPvLC963j7FcaW+ShsiAx4mldP0k0JokCZvEjqYVQFIzC8PhQtuiIyrbud/qq+BK S9XA== X-Gm-Message-State: ACrzQf3ycbkuphOJgMR/mPWMbP91JxtxUb5c63HRrzQNSzZfGnCxoZwK HP8w2NaIQIyN6jNp2fWufZlasYWxy10= X-Received: by 2002:a6b:6913:0:b0:6a0:eeaa:8d2d with SMTP id e19-20020a6b6913000000b006a0eeaa8d2dmr7447759ioc.92.1664754723190; Sun, 02 Oct 2022 16:52:03 -0700 (PDT) Received: from localhost.localdomain (wnpgmb0311w-ds01-45-179-115.dynamic.bellmts.net. [206.45.179.115]) by smtp.gmail.com with ESMTPSA id 8-20020a6b0108000000b006abd2d94a92sm1137576iob.9.2022.10.02.16.52.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 02 Oct 2022 16:52:02 -0700 (PDT) From: jassisinghbrar@gmail.com To: u-boot@lists.denx.de Cc: xypron.glpk@gmx.de, ilias.apalodimas@linaro.org, takahiro.akashi@linaro.org, sjg@chromium.org, trini@konsulko.com, etienne.carriere@linaro.org, monstr@monstr.eu, Masami Hiramatsu , Jassi Brar Subject: [PATCHv2 3/5] dt: fwu: developerbox: enable fwu banks and mdata regions Date: Sun, 2 Oct 2022 18:51:58 -0500 Message-Id: <20221002235158.344362-1-jassisinghbrar@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221002235046.344149-1-jassisinghbrar@gmail.com> References: <20221002235046.344149-1-jassisinghbrar@gmail.com> 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.6 at phobos.denx.de X-Virus-Status: Clean From: Masami Hiramatsu Specify Bank-0/1 and fwu metadata mtd regions. Signed-off-by: Masami Hiramatsu Signed-off-by: Jassi Brar Acked-by: Ilias Apalodimas --- .../synquacer-sc2a11-developerbox-u-boot.dtsi | 22 ++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/arch/arm/dts/synquacer-sc2a11-developerbox-u-boot.dtsi b/arch/arm/dts/synquacer-sc2a11-developerbox-u-boot.dtsi index 7a56116d6f..62eee0aaf0 100644 --- a/arch/arm/dts/synquacer-sc2a11-developerbox-u-boot.dtsi +++ b/arch/arm/dts/synquacer-sc2a11-developerbox-u-boot.dtsi @@ -23,7 +23,7 @@ active_clk_edges; chipselect_num = <1>; - spi-flash@0 { + spi_flash: spi-flash@0 { #address-cells = <1>; #size-cells = <1>; compatible = "jedec,spi-nor"; @@ -36,6 +36,7 @@ compatible = "fixed-partitions"; #address-cells = <1>; #size-cells = <1>; + uuid = "17e86d77-41f9-4fd7-87ec-a55df9842de5"; partition@0 { label = "BootStrap-BL1"; @@ -79,6 +80,19 @@ label = "Ex-OPTEE"; reg = <0x500000 0x200000>; }; + + /* FWU Multi bank update partitions */ + partition@600000 { + label = "FIP-Bank0"; + reg = <0x600000 0x400000>; + uuid = "5a66a702-99fd-4fef-a392-c26e261a2828"; + }; + + partition@a00000 { + label = "FIP-Bank1"; + reg = <0xa00000 0x400000>; + uuid = "a8f868a1-6e5c-4757-878d-ce63375ef2c0"; + }; }; }; }; @@ -104,6 +118,12 @@ optee { status = "okay"; }; + + fwu-mdata { + compatible = "u-boot,fwu-mdata-mtd"; + fwu-mdata-store = <&spi_flash>; + mdata-offsets = <0x500000 0x530000>; + }; }; };