From patchwork Fri Aug 26 09:57:05 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sughosh Ganu X-Patchwork-Id: 600273 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:4388:0:0:0:0 with SMTP id w8csp309849mae; Fri, 26 Aug 2022 02:58:34 -0700 (PDT) X-Google-Smtp-Source: AA6agR5V9/jUiFMl+O0bZHEIsaGQiYB8xjHPRntzoNoFOtbMKk1kdkYGCR/Af1Vwrxnf08aN7Mb5 X-Received: by 2002:a17:907:1c8a:b0:6e9:2a0d:d7b7 with SMTP id nb10-20020a1709071c8a00b006e92a0dd7b7mr4721386ejc.572.1661507914435; Fri, 26 Aug 2022 02:58:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661507914; cv=none; d=google.com; s=arc-20160816; b=Zb8T5xQgOEo7da9trPGjFKnZ9e0iF1tT/VBZNdP8s4eD/IWtUZJNfOPhGd6p52w3Ud RsfbHiK8usUtUpvz2KyO7AHJymexPPvRQA4ZFYn7g14Ys94VYNReQyKUEPf6iLtR1uSm zyzSoZbyqgrdJFkLYWxA5SuD5tloi/H/t2KDrBpqfbKUGHM+odH24Z9TQ9i2S8wtsJvZ WfnMUtgYsBzi8rWY+vA33pDfX63p2BrI7B2XpoZHdMXli2weTUbCdAnW6JteET0LLuJD AL+iw46e92MEja9xtwF0gkQ2pgPqLgv67bcT7ZPusrszTg6rbf0+ds/pGAv0DrkWPPDb FHog== 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=rwic/SpjGNbNrJo8QGVOB+JrhDi0CkUyBdq1UiDtKa4=; b=Th46ersGkk1grZ0cBPYSHbu9VSrA8OzxGrKcHSxHtX0g771NCNVdkX2pNpQSPF9DGj H6lcaz4Oy8x8zbNgMni8vW6uBcDs4qw5OIPa4ZsXGXI6GHnLvkYmH/l0FP6UK6PHe541 79b0cBjZn/hxhcP8Vc/nPlVJ/d+e1koTnph4yIApkNmGkJ+B+G5BzY2H1PijmPM84St8 PugnVqlFasseZwOKY/p5AKNb/1tPzO7jcDj2twWqINMMqF+DQbm0PHskBdkT3vUvG2C0 V598jY3CNnk1E5pYbgyFoYJQfQcRm+1cEFzy4T+gh/jT6Z14gD2EcJGTecNUu8HW2qkL mKbA== 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 nc20-20020a1709071c1400b0073d67d3313dsi1215767ejc.364.2022.08.26.02.58.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Aug 2022 02:58:34 -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 5731B848FF; Fri, 26 Aug 2022 11:58:06 +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 63E3F848EE; Fri, 26 Aug 2022 11:57:55 +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 62CCE84901 for ; Fri, 26 Aug 2022 11:57:50 +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 7C77323A; Fri, 26 Aug 2022 02:57:54 -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 D4B6F3F93E; Fri, 26 Aug 2022 02:57:45 -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 v9 04/15] stm32mp1: dk2: Add a node for the FWU metadata device Date: Fri, 26 Aug 2022 15:27:05 +0530 Message-Id: <20220826095716.1676150-5-sughosh.ganu@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220826095716.1676150-1-sughosh.ganu@linaro.org> References: <20220826095716.1676150-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 V8: 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>; + }; +};