From patchwork Thu Jul 14 18:39:04 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sughosh Ganu X-Patchwork-Id: 590391 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:5817:0:0:0:0 with SMTP id j23csp1850026max; Thu, 14 Jul 2022 11:40:42 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vW+hPTRZ1gs2C+IqL38me12NwHRFvr7/r9kRnrBRFwG8hbiFXxiTLgEfXEaQhEMJ+GPH+/ X-Received: by 2002:a05:6638:4904:b0:33f:3af7:5ec6 with SMTP id cx4-20020a056638490400b0033f3af75ec6mr5523436jab.162.1657824042483; Thu, 14 Jul 2022 11:40:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657824042; cv=none; d=google.com; s=arc-20160816; b=iXwPq6lvX+kLr6SYj53u4Xv3xebzh4DNM/1ozjwQynhgpr6iLDY2iACuH8FPvD/SYu BQ4DAaWNTJfUdsn2ZLSg4K5emJAfs9HGlh+Y0Zsm2/f42Ep/JKrXd+rB4lAxvPmVFMQZ Vp5k9fK5YiUy/7wQ4YrPvYggrSg5Wln5oz8U5zNVZyrZUelr2Bx4qSxN7X4z4EKHqIa7 U7mOe7hJJEjTAdkxMOTjisDG4unTpysyrYFnsQ8r3/nhJC1nPqxwaRyvSYphnOXQc2Wp BJWDlUu27EUKFlLNIK1kQXJruklxrtI8h2x5nbQTZwXEd1Winkrm1U4rR7anD+lxyvuQ XrZQ== 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=6HpJFBDyeOU7NryBtIliU9dvukn1dIQqQvRRvasdOyA=; b=Z+xN3S/RYb9gsy6vxHGFhLkOjMCnyercKoaTPgW/gWxuXjQ0Zr2d5y4AOLqbXBTZP8 ACL4aaIm9mxGC62y2hVkauhQ4P6wnSj7qLEFVLnQIOffOYOe6bN1wqImxsXymcn750jl 8V4QrdgFE4zjaVsQRAyfwQOjveLK+uwY/+X77rBw1+6fmgPqM89VRodT73sGLQ74aTOd Us1YQBkuW3Df3iVShDzPyXQ0ehnQtRRT0cVGteBTSPIPPRKg/qaTAvMVDX1AfcpdZ6Ur GeMYDneZX+mkm7oPSr7QMM7huGmPplwRIAasULvxaIch0juZs3fo6geEmuTD9vtpBDvp nsYg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (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 q12-20020a92ca4c000000b002da6bf30181si3018601ilo.31.2022.07.14.11.40.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Jul 2022 11:40:42 -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; 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=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 C8F7B840FB; Thu, 14 Jul 2022 20:40:09 +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 DBDDF840AC; Thu, 14 Jul 2022 20:40:02 +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,T_SCC_BODY_TEXT_LINE 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 0461E840D3 for ; Thu, 14 Jul 2022 20:39:59 +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 DF5701D13; Thu, 14 Jul 2022 11:39:58 -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 E97973F70D; Thu, 14 Jul 2022 11:39:54 -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 v7 04/13] stm32mp1: dk2: Add a node for the FWU metadata device Date: Fri, 15 Jul 2022 00:09:04 +0530 Message-Id: <20220714183913.118505-5-sughosh.ganu@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220714183913.118505-1-sughosh.ganu@linaro.org> References: <20220714183913.118505-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 --- Changes since V6: 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>; + }; +};