Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp3089585rdb; Fri, 22 Sep 2023 19:06:02 -0700 (PDT) X-Google-Smtp-Source: AGHT+IElzPCGyKx/hce7y0HdrmRwRRZKNNkCxK6AWzkTep6VEMW+jI1VGmEkFwZcUoPhbQs5x9Ff X-Received: by 2002:a92:c568:0:b0:34c:b992:58b1 with SMTP id b8-20020a92c568000000b0034cb99258b1mr1515370ilj.2.1695434762589; Fri, 22 Sep 2023 19:06:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695434762; cv=none; d=google.com; s=arc-20160816; b=C1ndux/Crbjv1Q5pZZ5RQbwxwOhBWb15PC7MVpKUWo2G0eg5zy+W6Ra3f0oqNyk1lO qIHtHHCWlb4Bu3QAXfdLiqVVNuihwwuij12F8d6Jo787AilHmMG2RFDz83jvpCu0hSnW T01cCDaWNsNi9RYGp7RyHHSI/dOKrZ8S/dVUMag4X4Bh5Mwj4ym7+8SMCi7rOgoiIPYs bQZd9IjyMrW8xqZZH+KU2FfY5j67GrwgzKsBGgx3hmictTS+Zt9LtyywxCeJuz1jFMzc f3ebmiQnpNt7xLRN2Ma85zgfZmIcLMYW+fOPC15wJIqTLtxCQWdkuXW+cSrhRcDGphmN f3KA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:date:subject:message-id:references:in-reply-to :cc:to:from:mime-version:content-transfer-encoding:dkim-signature; bh=QITi9X8oA+EfREtuaqxJ2iwsj8kVMox1OSxNojN60X8=; fh=/xXt1vcpEWS5yCzS/dqakfC8ZiIjxOY/AtzVjuftQNM=; b=qdAmookLsFbMUB+N3PfTTZb8jJMo3Y4LP4JhekbSYxao0q0kYR6gLPyJJ/31B0VEsT OezrvFBp0GBWY8qB2wUKXTyK5u8g8CmqWtz0vVXawqh9Km1m2WkjVGPaye1Os6fSdBrX IBRne7zvlxp8zlRe8Ca/eDMQutrInPrQjR+MHn4ALAYAaBroSjYqaVPqhZymmT+ZmXAb xCHRXMh2/Q3ai0vDUi14SNEBV1ELCYRRF8cw+9mqCWOzZArIyfO3yIRuHbMb296Bkv42 2Gtjc1GWlFkf4NkFmc4wAPO3GduJswAl24PPUkXVrKhFV2f/J/BPEj0ufS3YBmPPNmUx VR3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KqvuwPYI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id o15-20020a656a4f000000b0055c8fd5fe00si5660283pgu.886.2023.09.22.19.06.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Sep 2023 19:06:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=KqvuwPYI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 9A8E38582FD3; Fri, 22 Sep 2023 19:06:01 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230502AbjIWCGD (ORCPT + 99 others); Fri, 22 Sep 2023 22:06:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46146 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229568AbjIWCGB (ORCPT ); Fri, 22 Sep 2023 22:06:01 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 57961C6 for ; Fri, 22 Sep 2023 19:05:55 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 28A12C433C7; Sat, 23 Sep 2023 02:05:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695434754; bh=p6evCoFssqFuGsisKlNTxes4uUL1dao28ODNmXXWwJg=; h=From:To:Cc:In-Reply-To:References:Subject:Date:From; b=KqvuwPYIlU0o0FKqDw41Ed2qxZ8lElH59XB+Vi/GW5MuBI5qmAzwM+zZKsqV1gthF 8f7rG1IP5BNrS6RBjH5ki9Gbas0sUFXNCldkOdRZz6nVIxf6TQ76WLxB48UVL7Avwm tlayms+kBx/vf1bNm5XdjOarL+TYkjrV5jQCVdPlv9DgOKiDTsdm6S9rK0Oo2QSMPl d+Nc5MBcszqecggWXWG/4UXJe9u5+wE475gSzr7ZekkkQ2Bkw+aJDQJE6gZGBTw/en 7w87A+xEbuO+FA82VJztyVBH07WzXuYb8Y0Tzbe34K4BOkGISOBYsjUw7i724fyFJO FJ6d6gES9PhXA== Received: (nullmailer pid 118963 invoked by uid 1000); Sat, 23 Sep 2023 02:05:52 -0000 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit MIME-Version: 1.0 From: Rob Herring To: Simon Glass Cc: linux-kernel@vger.kernel.org, Conor Dooley , Nick Terrell , Rob Herring , Miquel Raynal , devicetree@vger.kernel.org, Krzysztof Kozlowski , Dhruva Gole , Pratyush Yadav , Richard Weinberger , Vignesh Raghavendra , =?utf-8?q?Rafa=C5=82_Mi=C5=82ecki?= , Tom Rini , U-Boot Mailing List , linux-mtd@lists.infradead.org In-Reply-To: <20230922193417.1697379-1-sjg@chromium.org> References: <20230922193417.1697379-1-sjg@chromium.org> Message-Id: <169543475215.118855.13530210565205347052.robh@kernel.org> Subject: Re: [PATCH v2] dt-bindings: mtd: Add a schema for binman Date: Fri, 22 Sep 2023 21:05:52 -0500 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Fri, 22 Sep 2023 19:06:01 -0700 (PDT) On Fri, 22 Sep 2023 13:34:15 -0600, Simon Glass wrote: > Binman[1] is a tool for creating firmware images. It allows you to > combine various binaries and place them in an output file. > > Binman uses a DT schema to describe an image, in enough detail that > it can be automatically built from component parts, disassembled, > replaced, listed, etc. > > Images are typically stored in flash, which is why this binding is > targeted at mtd. Previous discussion is at [2] [3]. > > This is only a starting point, an attempt to align on the best way to > add this to the schema. > > [1] https://u-boot.readthedocs.io/en/stable/develop/package/binman.html > [2] https://lore.kernel.org/u-boot/20230821180220.2724080-3-sjg@chromium.org/ > [3] https://www.spinics.net/lists/devicetree/msg626149.html > > Signed-off-by: Simon Glass > --- > > Changes in v2: > - Use "binman" for compatible instead of "u-boot,binman" > - Significantly rework the patch > - Use make dt_binding_check DT_SCHEMA_FILES=Documentation/../partitions > > .../bindings/mtd/partitions/binman.yaml | 59 ++++++++++++++++++ > .../mtd/partitions/binman/atf-bl31.yaml | 43 +++++++++++++ > .../bindings/mtd/partitions/binman/entry.yaml | 62 +++++++++++++++++++ > .../mtd/partitions/binman/u-boot.yaml | 43 +++++++++++++ > .../bindings/mtd/partitions/partitions.yaml | 1 + > MAINTAINERS | 5 ++ > 6 files changed, 213 insertions(+) > create mode 100644 Documentation/devicetree/bindings/mtd/partitions/binman.yaml > create mode 100644 Documentation/devicetree/bindings/mtd/partitions/binman/atf-bl31.yaml > create mode 100644 Documentation/devicetree/bindings/mtd/partitions/binman/entry.yaml > create mode 100644 Documentation/devicetree/bindings/mtd/partitions/binman/u-boot.yaml > My bot found errors running 'make DT_CHECKER_FLAGS=-m dt_binding_check' on your patch (DT_CHECKER_FLAGS is new in v5.13): yamllint warnings/errors: dtschema/dtc warnings/errors: Documentation/devicetree/bindings/mtd/partitions/binman/atf-bl31.example.dtb: /example-0/binman/partition@0: failed to match any schema with compatible: ['binman,entry'] Documentation/devicetree/bindings/mtd/partitions/binman/entry.example.dtb: /example-0/binman/partition@0: failed to match any schema with compatible: ['binman,entry'] Documentation/devicetree/bindings/mtd/partitions/binman/entry.example.dtb: /example-0/binman/partition@100000: failed to match any schema with compatible: ['binman,entry'] doc reference errors (make refcheckdocs): See https://patchwork.ozlabs.org/project/devicetree-bindings/patch/20230922193417.1697379-1-sjg@chromium.org The base for the series is generally the latest rc1. A different dependency should be noted in *this* patch. If you already ran 'make dt_binding_check' and didn't see the above error(s), then make sure 'yamllint' is installed and dt-schema is up to date: pip3 install dtschema --upgrade Please check and re-submit after running the above command yourself. Note that DT_SCHEMA_FILES can be set to your schema file to speed up checking your schema. However, it must be unset to test all examples with your schema.