From patchwork Fri Oct 21 12:45:57 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sughosh Ganu X-Patchwork-Id: 617170 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp955584pvb; Fri, 21 Oct 2022 05:47:24 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6v8rFnEP3VOSFJAnK6LgiLeLib3+GDae+klcomw5QQDtDQv+xOkZzFYS7p8dh05jzYEwI4 X-Received: by 2002:a17:907:a42c:b0:78e:fd1:61b4 with SMTP id sg44-20020a170907a42c00b0078e0fd161b4mr15690244ejc.289.1666356444072; Fri, 21 Oct 2022 05:47:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666356444; cv=none; d=google.com; s=arc-20160816; b=Qdy5FxD2aDY6E/ZpN+ClMZRJwDBqlYP4J23boNjkgwY+Y1O5KRPUjxSnSH3Q/5mt2g pNiwWhpAGxn1wcwiiognVIfGFJb1ZGkZDUxa3RSnRgLqE7J+GantDhFpOHEOxsO+FUV9 D1IN3h3SWxHbug7XvA0Acg9zJ7wXDO6vh0Cs5lv55v7d1oTLEdrVLZjzrZ9eBTRErjpq s/Ds3BMyxzAk+XF1KTQqqrBD9Sirr72jC0hX/owoJ6lqgc+kt4VKlxJCoD0N5Er0FtRu 26M1+mD3KnMGX7ligMPaagb0ikCvZvZSbV+hoxQrxDgqG88+XlB7E9EXVQZWNFi67Mry qZNg== 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=HeODdgXtPuTyXfAbmKg/B6Rerv4OaUIT5Q7/CO8hI1E=; b=c1/Mp07ZMUbxx2TixzQvtYbCjyhzPe8Ezoho0S6ZHmTDuuINdN86ZF7x6liwu5/npz ce3dDADy9/NQWayWphmdlf2DpG/akQK8HaBKmZVcAeTcixy1tRoMk7KygNe7gKnS1hH8 BZ5atAC/jMJrQsQwfEyK4N0lbegv9TRBXuuMXzmD1rE72CqeRpo5//msRk0coLdaejFG OWl0Mm0Qx2kLEbcfP0OkdQ/18UGWD4f0XTk07NbeNt/5Szxe61xAqXSv/AcZ8gsHgzqC t2fz5mdZ0cwh8UvZ1YIshWMFecZWr8L6WAf+QHYjIsduZrrVNMsRBKxb+Q/7e3HUC3At DM6w== 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 e16-20020a17090658d000b00783a5f78700si20477312ejs.226.2022.10.21.05.47.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Oct 2022 05:47:24 -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 D899B84FF7; Fri, 21 Oct 2022 14:47:07 +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 EEB1484FCB; Fri, 21 Oct 2022 14:46:51 +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 EABC184FCB for ; Fri, 21 Oct 2022 14:46: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 2D90E1042; Fri, 21 Oct 2022 05:46:52 -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 C242E3F792; Fri, 21 Oct 2022 05:46: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 , Tom Rini , Etienne Carriere , Jassi Brar , Sughosh Ganu Subject: [PATCH v15 04/15] stm32mp1: Add a node for the FWU metadata device Date: Fri, 21 Oct 2022 18:15:57 +0530 Message-Id: <20221021124608.681387-5-sughosh.ganu@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221021124608.681387-1-sughosh.ganu@linaro.org> References: <20221021124608.681387-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 and ev1 boards, 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 V14: None arch/arm/dts/stm32mp157c-dk2-u-boot.dtsi | 7 +++++++ arch/arm/dts/stm32mp157c-ev1-u-boot.dtsi | 5 +++++ 2 files changed, 12 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>; + }; +}; diff --git a/arch/arm/dts/stm32mp157c-ev1-u-boot.dtsi b/arch/arm/dts/stm32mp157c-ev1-u-boot.dtsi index ec60486f41..7bf08bec6d 100644 --- a/arch/arm/dts/stm32mp157c-ev1-u-boot.dtsi +++ b/arch/arm/dts/stm32mp157c-ev1-u-boot.dtsi @@ -14,6 +14,11 @@ spi0 = &qspi; usb0 = &usbotg_hs; }; + + fwu-mdata { + compatible = "u-boot,fwu-mdata-gpt"; + fwu-mdata-store = <&sdmmc1>; + }; }; &flash0 {