From patchwork Thu Jun 9 12:30:01 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sughosh Ganu X-Patchwork-Id: 580305 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:5806:0:0:0:0 with SMTP id j6csp735158max; Thu, 9 Jun 2022 05:33:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzF4eAtlCjC4Rx7tuYRR0weWm18pQXIw0jprcLDyOUkeKUzZ7hSsx/8xqq9jJVyGxx6E5QL X-Received: by 2002:a05:6638:1902:b0:331:cce7:553 with SMTP id p2-20020a056638190200b00331cce70553mr7609346jal.153.1654778005059; Thu, 09 Jun 2022 05:33:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654778005; cv=none; d=google.com; s=arc-20160816; b=irqfrfrOQY5RAbhSo5+gDbOtA+Jg6NTcyvbLuaimxwxzzlhHqQcRewFxlr7WZbBQL3 79NrgNTSayBA1330ByszTKkTgS2Vv1Dq7AxnvluQN6Ib43lJSgqRrfFzYYcufiHt1ebL nHDxVr/7HpfSaQ55X7cYIpiw8WjmgadBrP4feLC16cUc+2EHbCmsvhvk+sf2ZVLLvMLd EXSEwcCFSN059Wg8rGFpXkzjfvB9pHz7u2MS8zmp9vnpElaYPYqLC9d2gAW4xfB20Rcq zujTONVtJd710NJ7nDmL5eNrmIfNv4qkWZ6N2Gn6lNmRbvbolaP26Nv1FBfYz0gYy0/+ iIyw== 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=m49ERDLi3vUQSwl9KrgAwMqIqIy9vE0+gFf9aZeC3mA=; b=NPFPSS1m+bMQMmeshvPc8rVN27IaFFuPTBmGTuP0SudB/IXADlS84IOjJiTsQyVt2x bxBfc+l2rBoMjsdWZ0cl30425CPxM4ttDt+KufeDUXy9zVrFXbt3xmtFk79shIkIBaRB dOu9+afHx6dGHU58QSKL0c12zJkrW+/8XjkjvIqYXTs/0XZpK7HhnMvf5jHYA7Y15Gv/ k6LLLeXXW8PGNz7/gHcXP+B1+Fzv/WSV/o3QpAjVC5+T6znS6yHWeIYfI3/uX6VlMmSw cEXHpwdSRo6/R6AJEPMtBZaeihZprmBgn80NOH/35HGDwi2HZgoTsVwShnLhNbevhuaX gO2g== 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 f31-20020a02241f000000b0032e458aeeb9si20486110jaa.33.2022.06.09.05.33.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Jun 2022 05:33:25 -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 8E4138441A; Thu, 9 Jun 2022 14:32:13 +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 6CC1D84416; Thu, 9 Jun 2022 14:32:06 +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 4B9B484404 for ; Thu, 9 Jun 2022 14:31:39 +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 99AC8139F; Thu, 9 Jun 2022 05:31:38 -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 8C2FC3F766; Thu, 9 Jun 2022 05:31:33 -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 , Masami Hiramatsu , Sughosh Ganu Subject: [PATCH v5 14/23] dt/bindings: firmware: Add FWU metadata on MTD devices binding Date: Thu, 9 Jun 2022 18:00:01 +0530 Message-Id: <20220609123010.1017463-15-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 From: Masami Hiramatsu Add a devicetree-binding YAML file for the FWU metadata on MTD devices without GPT. Signed-off-by: Masami Hiramatsu Signed-off-by: Sughosh Ganu --- .../firmware/uboot,fwu-mdata-mtd.yaml | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 doc/device-tree-bindings/firmware/uboot,fwu-mdata-mtd.yaml diff --git a/doc/device-tree-bindings/firmware/uboot,fwu-mdata-mtd.yaml b/doc/device-tree-bindings/firmware/uboot,fwu-mdata-mtd.yaml new file mode 100644 index 0000000000..4f5404f999 --- /dev/null +++ b/doc/device-tree-bindings/firmware/uboot,fwu-mdata-mtd.yaml @@ -0,0 +1,38 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/firmware/u-boot,fwu-mdata-sf.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: FWU metadata on MTD device without GPT + +maintainers: + - Masami Hiramatsu + +properties: + compatible: + items: + - const: u-boot,fwu-mdata-mtd + + fwu-mdata-store: + maxItems: 1 + description: Phandle of the MTD device which contains the FWU medatata. + + mdata-offsets: + minItems: 2 + description: Offsets of the primary and secondary FWU metadata in the NOR flash. + +required: + - compatible + - fwu-mdata-store + - mdata-offsets + +additionalProperties: false + +examples: + - | + fwu-mdata { + compatible = "u-boot,fwu-mdata-mtd"; + fwu-mdata-store = <&spi-flash>; + mdata-offsets = <0x500000 0x530000>; + };