From patchwork Tue Oct 18 11:43:26 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sughosh Ganu X-Patchwork-Id: 616038 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp2570300pvb; Tue, 18 Oct 2022 04:45:16 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7ncMCZ7qXLZ7Y5YomTIjoN7mJUyEpvySvC7LfLsZYtLnNb+62s8xvf0tXbrIOoWYKa0YyY X-Received: by 2002:a05:6a00:124e:b0:565:ba3c:58bf with SMTP id u14-20020a056a00124e00b00565ba3c58bfmr2553715pfi.82.1666093516439; Tue, 18 Oct 2022 04:45:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666093516; cv=none; d=google.com; s=arc-20160816; b=0x9/73Nq0+MHviNgWVnZSFxN/PNOyzw/lBWGpPyrpCxpguTAozgt9xp3c0KjBkQOAj hB9eTsrbGI9QzZD8d+8GGsbup6oJmNNc9A+T4dg6sFTPKC1ecuu90Ne3LtGdE1qHteaV EE82Zx62ADy5X4vQyneC04TcoXB/yN7woyhJgqIcrad3CSHVnze2TGeKrNH3kNlIf/wO 774n52IMmeUchB1U8za4hzJkdLiVGs01uUjZxgMkQSQiGzGtRcSfqi6pZOtnI3EILAPu dSprxvMCJ5IRLXMFQrDFS3kbpIRB22gHAJhDkXoaZ64CatpPUIa1v9Dhwywdk44i5Q4Z EAjw== 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; bh=1QmA4ILE36SJyGCfrRf6F5aMoc4AM89RyNGSeZIRRdQ=; b=V2f/X5YAg3twN9xZBfyS2F83Niyo2hmRleVh1Orf028v64WiNzPhiHuOU8X/NZ35Xm TmEgyWZhTraChht+trB8T33P0jLVRvPjk54jxvrp4P/w0lRbhNcA1DZjXUYGAPYAxLzE UCXjBL1XKMK8mNXP4Xnz7leFLZQXS4dOQc99wQD/BfBGpxu6AodZ54tw7pKX1EodMRpR qdtHPU+iJbywaitnI71SDjfezwng6i5qc0WrnHU/8LDqfLqcesUZagLaqO8V4eDtbhUr uqcLEQsh4Us9v9ycO8nXdrHyHG58ZwhXaZPSCQ02zAc3Z2xw/o/LDqFqEZVZ2WC3qpuH kpTQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (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 w8-20020a17090a780800b00205593e76e8si20329147pjk.81.2022.10.18.04.45.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Oct 2022 04:45:16 -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; 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=fail (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 C965B84F8D; Tue, 18 Oct 2022 13:44:58 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id CE70384F56; Tue, 18 Oct 2022 13:44:24 +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=-1.2 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_SOFTFAIL autolearn=no autolearn_force=no version=3.4.2 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by phobos.denx.de (Postfix) with ESMTP id C9F5C84F70 for ; Tue, 18 Oct 2022 13:44:18 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=sughosh.ganu@linaro.org Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 28C81113E; Tue, 18 Oct 2022 04:44:23 -0700 (PDT) Received: from a076522.blr.arm.com (a076522.blr.arm.com [10.162.16.44]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 4DB1A3F7D8; Tue, 18 Oct 2022 04:44:13 -0700 (PDT) From: Sughosh Ganu To: u-boot@lists.denx.de Cc: Heinrich Schuchardt , Ilias Apalodimas , Takahiro Akashi , Patrick Delaunay , Patrice Chotard , Simon Glass , Bin Meng , Tom Rini , Etienne Carriere , Michal Simek , Jassi Brar , Sughosh Ganu Subject: [PATCH v14 04/15] stm32mp1: Add a node for the FWU metadata device Date: Tue, 18 Oct 2022 17:13:26 +0530 Message-Id: <20221018114337.439816-5-sughosh.ganu@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221018114337.439816-1-sughosh.ganu@linaro.org> References: <20221018114337.439816-1-sughosh.ganu@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.6 at phobos.denx.de X-Virus-Status: Clean The FWU metadata structure is accessed through the driver model interface. On the stm32mp157c dk2 and ev1 boards, the FWU metadata is stored on the uSD card. Add the fwu-mdata node on the u-boot specifc dtsi file for accessing the metadata structure. Signed-off-by: Sughosh Ganu Reviewed-by: Patrick Delaunay Acked-by: Ilias Apalodimas Acked-by: Etienne Carriere --- Changes since V13: * Add a node for the ev1 board as suggested by Etienne arch/arm/dts/stm32mp157c-dk2-u-boot.dtsi | 7 +++++++ arch/arm/dts/stm32mp157c-ev1-u-boot.dtsi | 5 +++++ 2 files changed, 12 insertions(+) diff --git a/arch/arm/dts/stm32mp157c-dk2-u-boot.dtsi b/arch/arm/dts/stm32mp157c-dk2-u-boot.dtsi index 06ef3a4095..24f86209db 100644 --- a/arch/arm/dts/stm32mp157c-dk2-u-boot.dtsi +++ b/arch/arm/dts/stm32mp157c-dk2-u-boot.dtsi @@ -4,3 +4,10 @@ */ #include "stm32mp157a-dk1-u-boot.dtsi" + +/ { + fwu-mdata { + compatible = "u-boot,fwu-mdata-gpt"; + fwu-mdata-store = <&sdmmc1>; + }; +}; diff --git a/arch/arm/dts/stm32mp157c-ev1-u-boot.dtsi b/arch/arm/dts/stm32mp157c-ev1-u-boot.dtsi index ec60486f41..7bf08bec6d 100644 --- a/arch/arm/dts/stm32mp157c-ev1-u-boot.dtsi +++ b/arch/arm/dts/stm32mp157c-ev1-u-boot.dtsi @@ -14,6 +14,11 @@ spi0 = &qspi; usb0 = &usbotg_hs; }; + + fwu-mdata { + compatible = "u-boot,fwu-mdata-gpt"; + fwu-mdata-store = <&sdmmc1>; + }; }; &flash0 {