From patchwork Mon Jul 4 05:16:49 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sughosh Ganu X-Patchwork-Id: 587094 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:1ec:0:0:0:0 with SMTP id 12csp499132map; Sun, 3 Jul 2022 22:18:22 -0700 (PDT) X-Google-Smtp-Source: AGRyM1viIxI1FU+PsGsNAH71+T4RdMCHRWGqwWArf4uaND1iixzEE1rl4o4ekBCm4N8uwZzQylEc X-Received: by 2002:a2e:a7d4:0:b0:25a:73fd:3681 with SMTP id x20-20020a2ea7d4000000b0025a73fd3681mr15522311ljp.138.1656911902318; Sun, 03 Jul 2022 22:18:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656911902; cv=none; d=google.com; s=arc-20160816; b=NL01/rO/4vEMA/q+kr1mXePpZzu4I4I7B+pDHroX6+UwwjiFqJgNveNMtEx2mPT7pn lMW5o6abWhVxMJ3lcaLjVM5rfV2pOfa+L3t0PBEgP0H9Td7v5Tf2OSC2DQ75PqB0iVv1 uGDmDokD5D/uCsYicjJAm/apKOy+mFKbCe2Jf/0gYcjBwNqLWMME+mrX6eWhRK3JCFst strgryYaD4it+fPyE7zuZnMagdtUwg/8ywKjt2ATT86iClLcqbf+e/bj6Y3ji2mGwtn4 QGdMp92Hile9baA3CzDqDjlfymQsXHFAj6tL9jRrkWv9+dEIF1WCVRLDYFgA0onszazP Z2BA== 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=J9w2fyEb8Y7qLtb3fHsIUfu7kyqOcjCP7jjUfZZE3Nw=; b=SCxXuCrmpcN14FLQxt2do7sXOxDRNTIAnx0bO6hqOhB1EGWizOiUQbCCbYm9h/RkaO 94O59GR4++CTVEc/XamYYM61k7qeF0hne9kzwXc5M3hVx4966ehNFKJs2hVJ6AAFuPHl 83LRT9uHBbVJfsGWCenNxu9V4isrGd23p1P75t4lyMjvHPzcrPZHczLKJDs3rXkPz8h3 H7qCGXFK3Is03yH2nk8r89AqD4rdD+dcwQlDt9F8QqFH4UdxEsm0SaSyCERFrWEsJzAu hk6ZUtZzh4Lho0qUPqhjDX8HZynGJwqme8k09UUUJZCazYuchOyQl4ELLL3lhrJWBfeo zsaA== 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 k12-20020a2e888c000000b0025bb6ab5b6asi22464680lji.451.2022.07.03.22.18.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Jul 2022 22:18:22 -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 0EFC484509; Mon, 4 Jul 2022 07:17:51 +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 C356D8450B; Mon, 4 Jul 2022 07:17:49 +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 A1D1F84504 for ; Mon, 4 Jul 2022 07:17:47 +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 3016A23A; Sun, 3 Jul 2022 22:17:47 -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 3A6213F66F; Sun, 3 Jul 2022 22:17:42 -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 v6 04/13] stm32mp1: dk2: Add a node for the FWU metadata device Date: Mon, 4 Jul 2022 10:46:49 +0530 Message-Id: <20220704051658.1085442-5-sughosh.ganu@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220704051658.1085442-1-sughosh.ganu@linaro.org> References: <20220704051658.1085442-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 --- Changes since V5: 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>; + }; +};