From patchwork Thu Oct 6 09:06:18 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sughosh Ganu X-Patchwork-Id: 612907 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp83036pvb; Thu, 6 Oct 2022 02:08:10 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5wV20rlGYEto1MTtFTVgUrpWFUcWgIt0PPlLX698A4VzG5p8sTE+HzXOq+uL5E7dhgiHgw X-Received: by 2002:a17:906:8a73:b0:78d:427e:398a with SMTP id hy19-20020a1709068a7300b0078d427e398amr1712086ejc.63.1665047290394; Thu, 06 Oct 2022 02:08:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665047290; cv=none; d=google.com; s=arc-20160816; b=AS94QqOcBde6ng/zL2A4gOptL5+9YKT1ksz3lwJ0OXS8cfOddWx8i6ypRssJ3J0rIG TfoIkxUwx1XUkVgHgVw1WWU6z3VYn7SIEqhiBmLv32R59dqdEpshpixjhprcRFAGlyWU 1EXnzO8PGmA+leMeJVrBptPdn2tNvAfxImSMpAPhBTrrQaZYfpoWRw6ARv2wgT2eFyZu vIUYuq/qM5klX+v6AZSbEePaMnObW4SsQn8fL9YRqqQL6XJPnM6n0iLFnWVm5cHWBdS0 26IL3Rt8yEkRliKLZ9Xi3gVK64CtxbAyM506Ljn3sQDB3n023KjUP5hCi84o1X0DP6kI tzsg== 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=BEl9IqurdOPCuBT4YF9+8RzbMXfDuCIP33s7SG3LobI=; b=QveoyfdPbbtU1BSLsy5J3juhsBBqcdkf3rDEhm+gSdbIdJt4ubgZuNs5GJUFW1nqIN Z+uTx7yjPALUWTjcY15m3M+lfYC3GfxElvO4W+UJ7J02AZR/oBU5+cuYtcq28IRCyBY/ f4Yyy2ru5LjaPID1jsDp1HdzKGsVcRTeWh07O9W924ZgR0lxmV5XHt96vz5UBOxXWCM+ TugokgD6Z/hMe+g2JYbljTNm842csx58zpQOTia18PZRSE6yP59ONAxRkKcctZ/f5QDq RhQ6nveMWp2EjXFLRkt1HJZNUavLJsT3Qcn/ru3iEpmd9xBtuFgI6Ze/CWlIs3DNfEW5 l74w== 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 i3-20020a1709064fc300b0078005ff79e2si17968829ejw.880.2022.10.06.02.08.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Oct 2022 02:08:10 -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 9A59284BAA; Thu, 6 Oct 2022 11:07:45 +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 9D3A584DBE; Thu, 6 Oct 2022 11:07:34 +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 44E8F84DB9 for ; Thu, 6 Oct 2022 11:07:10 +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 E315C2B; Thu, 6 Oct 2022 02:07:15 -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 075C03F73B; Thu, 6 Oct 2022 02:07:05 -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 v13 04/15] stm32mp1: dk2: Add a node for the FWU metadata device Date: Thu, 6 Oct 2022 14:36:18 +0530 Message-Id: <20221006090629.436518-5-sughosh.ganu@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221006090629.436518-1-sughosh.ganu@linaro.org> References: <20221006090629.436518-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 board, 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 V12: None arch/arm/dts/stm32mp157c-dk2-u-boot.dtsi | 7 +++++++ 1 file changed, 7 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>; + }; +};