From patchwork Fri Jul 22 17:43:15 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jassi Brar X-Patchwork-Id: 592478 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:b811:0:0:0:0 with SMTP id fc17csp710586mab; Fri, 22 Jul 2022 10:43:59 -0700 (PDT) X-Google-Smtp-Source: AGRyM1s7Q1fmhkjEgivBJX1IjEz6PGkPeY1zC7JwgcZHBIpZwSRncy8200ui8HmVplvJ8de/fYQM X-Received: by 2002:a92:ca46:0:b0:2dd:52b:bfd1 with SMTP id q6-20020a92ca46000000b002dd052bbfd1mr426906ilo.315.1658511838953; Fri, 22 Jul 2022 10:43:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658511838; cv=none; d=google.com; s=arc-20160816; b=P6ame0YMo0GIs4qlrg0XTs+Hbudxq9EMVJtnm45X0b8nnXdxp07FJIjwt7sXJYWD7L aZGvdy1npp5t5CKm0CEmc2jgiiewaEjqxYYhVhSTMXhtTmrdVXRQpG6bjc73e4Hv0z2u sg5lQk4nalistZZCLKzaH2bOTtT/rbhrg7qTWMuxynlGk3xeCs8s4aQXMfS1/GgQLJnk zl64/nn4IZnYyc1R1FckviauqMJDA2kgiAdaq52o+POAm50xXPyyUfLUwlyoGqUjQRAC Mg09Jp/kDNJgB3Cns/vIJjRpCM5Rxhsb941oxLhosvC6raV51I5zoRbYU3kZuADShxuR cljw== 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:dkim-signature; bh=nXenbi8S+JkNhheD7P0GbIzhuSKu5hm4C4u20NfFT/Q=; b=k5vrK+EJx7fTdETRM64FViAbEvOqkybz0xtw5YMj4CWlWRryNq7NbHNXePt2uevMr+ nguByd6yG8DSezHJz4h9NRjPneqgOwZbDc9OxPYG4JfEIZh+EhQIj9tbwVeYOcUpIuDq J/6pWTlfVom2xy/22nc0ljla/KeEPld2xVJ0SVe8X0zD/c59xiJPD8G6/nFXpx/bQ0Z/ x/gT+L1gbw8HaPtr/utpFI4hLZrJ74qfTRPNoai+67IbphwvA80/lnJCOas8QnNL8x1Y jjJVm6bN+akzoEMTKj1uP4tSTAGrwJ2DRmbLkGG1mM8PWQX48tLJEp9yzdpT4aP0KRrt chmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ZVhhd+NZ; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 u10-20020a056e021a4a00b002dd2065c122si1196976ilv.103.2022.07.22.10.43.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Jul 2022 10:43:58 -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; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ZVhhd+NZ; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 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-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 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>; + };