From patchwork Thu Jun 9 12:29:51 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sughosh Ganu X-Patchwork-Id: 580294 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:5806:0:0:0:0 with SMTP id j6csp733221max; Thu, 9 Jun 2022 05:31:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy9tPalM9Kv4tVe5e+FMhF68EKc0bY+9ztzfsaQvixU50SalYiPJcx9n2mGYycho03IeDSA X-Received: by 2002:a05:6638:1507:b0:331:a18b:2f53 with SMTP id b7-20020a056638150700b00331a18b2f53mr12670473jat.205.1654777862036; Thu, 09 Jun 2022 05:31:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654777862; cv=none; d=google.com; s=arc-20160816; b=BG5HWmlc/JcTcvfuTOYaWynF4l/P9AvG9WyXfITDytPW3y8b0TQEaRjAiNBMZ11X5f A2f6VGvru7D2x2afERdp9+iyBRFWm1axs0iaFeZ8vGMESjr76iIgrJoZMbZZNNmJvK4N aK2f6sdQxomnNoXWhTytTl4V8YTPrH+0N4Iae2ZEQMT2KIzTx14VvF4EsXYimddnsOnc L3awsvioaro9OmZgX4pEAWDd04SV0Idj/wzKzAxFyE9rCYokx1WowVQNEywGGnOLcDWi GIcAb/sRxeK8f00TeBxwUwlcL5ylYLWJN/0M5a2HgVYrAcZaygUXGIgr70UR5HGbKvi1 FYjg== 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=vYvog5mTosxvxjHqJ3xvpojC4RsHNbSHIYLYnl+h0DU=; b=LtElbfmso3csCYn/i1f5Z5e/WAfQTP+RSAMvEH+M4CzdmVzTH9wwmzR1I/qQu/UVyX H8lA7dmPK7+02n+l/fiwUMgFs9eJE2a9lKps+lbsw0zBe4zPuXiHYNtHEH+cQKF0UnL9 a5zwzKVZueCbFahl5tfu4GQQ+nKXyP9CDSA8pAyEvf709/zv4ukXGDyPWVUmrA91TNB8 4Pn8j1avOhMFV9Tv4lshc9pgoCYzajXvK4yPNSZ3ZvWqcxliePsS6dD95+LqvNHthHoj /Or9QCfmp8Ko6Onnj5THv4RaCo26vqfUnww+7wLDLxAqRrixqHKj6U8y5/PaIdOf9tk8 Op8g== 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 y15-20020a056e021bef00b002d1c265966dsi30037655ilv.6.2022.06.09.05.30.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Jun 2022 05:31:02 -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 1AD5F843D1; Thu, 9 Jun 2022 14:30: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 2CF2F843D9; Thu, 9 Jun 2022 14:30:53 +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 6F087843D2 for ; Thu, 9 Jun 2022 14:30:46 +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 0175A1570; Thu, 9 Jun 2022 05: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 4956E3F766; Thu, 9 Jun 2022 05:30:40 -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 v5 04/23] stm32mp1: dk2: Add a node for the FWU metadata device Date: Thu, 9 Jun 2022 17:59:51 +0530 Message-Id: <20220609123010.1017463-5-sughosh.ganu@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220609123010.1017463-1-sughosh.ganu@linaro.org> References: <20220609123010.1017463-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.5 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 --- 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>; + }; +};