From patchwork Wed Sep 28 09:29:45 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sughosh Ganu X-Patchwork-Id: 610072 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp139806pvb; Wed, 28 Sep 2022 02:31:23 -0700 (PDT) X-Google-Smtp-Source: AMsMyM715OnpDUuSJE/DtZLBpq39SBC59E+VlEV0IqFfaHvi1Z5bHTu+d6pNeEhrrz1W19h4OLJR X-Received: by 2002:a05:6402:50d4:b0:451:bf26:8c41 with SMTP id h20-20020a05640250d400b00451bf268c41mr32378874edb.219.1664357483085; Wed, 28 Sep 2022 02:31:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664357483; cv=none; d=google.com; s=arc-20160816; b=mdAamGvdheg3vXzMsrQG4W9NJaNTu+LA/FfPesmuTZnilmKYLHl1ZexSrU/4jKTzN5 c6SyfNf0hR51Q5WSobFx+yBp6H8mj91iyfLQXftUuKG3y2bNYckNR4Ttf7YwQ8SA0C0o Jz0yyB6tm05PkbWsvzmEinb7mBy47Vo9n33ZG7XmYIC7MeYqClwwYGtoJ/Rz75SQD/jr Qag6tRixmx30cs9tzM58OKMskdf4t7/IgaGo4hqBqgXss2DC+ZyM4lMfWptPjmQ98VFu ZLxie6iTRiOTI2W4E3Y56xa4fPttbH8rDV86H/nGQt2ZUrVzyfeU+gTPVdxZpa9o7Vd2 FShA== 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=/pPHE6P5VLjambomj0A7rVKFra6Cw2Icr6SdOA9G9KY=; b=J9EETsAHtxvgr0DYmIQaK1vJxJEQsFyOHoUISHbHY+P/TGsXiciRHvWWwDxn7GJ0cs gqL2cOqXouKT7zuoKexiobQHXI23jmS3kUuHR1sXB5OBHrkVlom0P06noku/HNFcN6qT ePKGAQK3Rf/qb8VKqrvLf25t/Rpih9V6UwNAG1xKdQdgpNeuhOFEnj1efC4spD9e/5m3 rh0FlBHz8wB55RQhdQJpsCMjvfoKQ36xzP8z6thgqXXDcMOFJENDrxi0ZsN1Kx5IibS1 +XmOHxlVEm5SRkt1s8Gk71hnuswLIGd4ezhk7vf9RT5nMg6ZiZTbR+Kjp1x56G+0aa5J vRYg== 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 cr13-20020a170906d54d00b00780a882d31fsi4578227ejc.486.2022.09.28.02.31.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Sep 2022 02:31:23 -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 2790284B82; Wed, 28 Sep 2022 11:30:59 +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 AC40084A93; Wed, 28 Sep 2022 11:30:46 +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 70B0384A93 for ; Wed, 28 Sep 2022 11:30:40 +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 22AE82103; Wed, 28 Sep 2022 02:30:46 -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 EBAB03F792; Wed, 28 Sep 2022 02:30:35 -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 v11 04/15] stm32mp1: dk2: Add a node for the FWU metadata device Date: Wed, 28 Sep 2022 14:59:45 +0530 Message-Id: <20220928092956.2535777-5-sughosh.ganu@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220928092956.2535777-1-sughosh.ganu@linaro.org> References: <20220928092956.2535777-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 V10: 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>; + }; +};