Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 3E754C433EF for ; Fri, 22 Jul 2022 17:43:59 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id EF39583FAE; Fri, 22 Jul 2022 19:43:56 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="ZVhhd+NZ"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 9BB5F83FA7; Fri, 22 Jul 2022 19:43:54 +0200 (CEST) Received: from mail-io1-xd2b.google.com (mail-io1-xd2b.google.com [IPv6:2607:f8b0:4864:20::d2b]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id C180483FA1 for ; Fri, 22 Jul 2022 19:43:51 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=jassisinghbrar@gmail.com Received: by mail-io1-xd2b.google.com with SMTP id p81so4171665iod.2 for ; Fri, 22 Jul 2022 10:43:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=nXenbi8S+JkNhheD7P0GbIzhuSKu5hm4C4u20NfFT/Q=; b=ZVhhd+NZ2wOKxVAUaJ5Rl+ZZjfuGzEKJAYpf23FjmwK1dtL/fF7nIono2lMi2lhmTX Jb7rXR4QQ1g/RNwPCVMdQ2UiobD5ckQY8pFWRy7L8hBUXrH79RWxsgs6yOkGe5etjrZb 8tpEc6ueGehZPvkyqpWQdYNI//s+H5mJDESUCBZUoj5T9uVmcptkxK68cPhqmOfNt0Vn c08JJma0ExiMmxm+vO+MgwE18Q4EO4UAR0DeemmySV5CGooEnEQBMSSpBQsCv2la/yvS zzwzuh8HTb8xRy10a4VOkWFtcfL2eOhnxK1qQa7R8XyOP7iPAHsmbWuDhH/XJixxwtlJ O7Sg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=nXenbi8S+JkNhheD7P0GbIzhuSKu5hm4C4u20NfFT/Q=; b=dC0dGdBLtLGEpMsfOGpqXsiGRhuaFFvg0AXilJGCo+AhmZcNHOIqv+NxqajBLMpEfg b7MPJJtOHJPJBqgNOCavQiPX0kjiI8wU4Km04R8BvsiP71++2R63mID92MuUDmazR09A s8p1/XeB5AmhyIQ9mIC3Ifz2ehtPulMxivc66kcRExcGtIBNI1ihOknr5bqFxKBNAbp1 sODZMOFVrnqZld0jUPo/TvSldxmPcpj6GsCqvwsdxtdVjCU+8mvFRym1YotitJEVLN0/ erX3FV7ZFHOxvJoj7qj6kT2OfwZl3Iq5ijspaBFR4H1mj5WjWcZ+c4tloA2PMOunh3fV +zxg== X-Gm-Message-State: AJIora/b4Zqu5rso3LEd7Vg6HOaB7Qb1Pj/y7DONzEgOc+ECvDZb2RFu wwlL7ost6c2l7WlpIlL82z0lE9ZWcrM= X-Google-Smtp-Source: AGRyM1srUeFlFvOmfveJji+5o5/iaJaLlG2NYGjtuewN8sFwOBL0yz3U5f2jRCXdDf5mleuQFP93sQ== X-Received: by 2002:a02:84e2:0:b0:33f:7ec1:b430 with SMTP id f89-20020a0284e2000000b0033f7ec1b430mr544187jai.63.1658511830038; Fri, 22 Jul 2022 10:43:50 -0700 (PDT) Received: from localhost.localdomain (wnpgmb0311w-ds01-179-115.dynamic.bellmts.net. [206.45.179.115]) by smtp.gmail.com with ESMTPSA id s26-20020a02c51a000000b00339eedc7840sm2242348jam.94.2022.07.22.10.43.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Jul 2022 10:43:49 -0700 (PDT) From: jassisinghbrar@gmail.com To: u-boot@lists.denx.de Cc: xypron.glpk@gmx.de, ilias.apalodimas@linaro.org, takahiro.akashi@linaro.org, patrick.delaunay@foss.st.com, patrice.chotard@foss.st.com, sjg@chromium.org, bmeng.cn@gmail.com, trini@konsulko.com, etienne.carriere@linaro.org, monstr@monstr.eu, Sughosh Ganu , Masami Hiramatsu , Jassi Brar Subject: [PATCH 1/5] dt/bindings: Add bindings for FWU Metadata mtd storage Date: Fri, 22 Jul 2022 12:43:15 -0500 Message-Id: <20220722174319.64006-2-jassisinghbrar@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220722174319.64006-1-jassisinghbrar@gmail.com> References: <20220722174240.63935-1-jassisinghbrar@gmail.com> <20220722174319.64006-1-jassisinghbrar@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 From: Sughosh Ganu Add bindings needed for accessing the FWU metadata regions. These include the compatible string which point to the access method, the actual device which stores the FWU metadata and the offsets for both metadata regions. The current patch adds basic bindings needed for accessing the metadata structure on non-GPT mtd regions. Signed-off-by: Masami Hiramatsu Signed-off-by: Jassi Brar --- .../firmware/fwu-mdata-mtd.yaml | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 doc/device-tree-bindings/firmware/fwu-mdata-mtd.yaml diff --git a/doc/device-tree-bindings/firmware/fwu-mdata-mtd.yaml b/doc/device-tree-bindings/firmware/fwu-mdata-mtd.yaml new file mode 100644 index 0000000000..4f5404f999 --- /dev/null +++ b/doc/device-tree-bindings/firmware/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>; + }; -- 2.25.1