Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp1013689rdb; Sun, 1 Oct 2023 16:05:00 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFCajFlA6H95sW22RiPENXklgbnDYJtY/MkS8d6xV8terr8kMZcv5hzVKSLLkByN9oFf9g4 X-Received: by 2002:a17:903:1109:b0:1c6:17a4:afae with SMTP id n9-20020a170903110900b001c617a4afaemr11936460plh.4.1696201500176; Sun, 01 Oct 2023 16:05:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696201500; cv=none; d=google.com; s=arc-20160816; b=hBvCPP0RTrn9Uv39G1VX5H4OhfyWQyD8Mda8418nRdGLkH8tI2AS35evSsk8jb3WDD 02I6ZSjPSv34sJaFlETDXyh6eaFOHCL21DHCtodjRkv2NR7c+Ct6WE/R8XBs61kaLvkY JylNfzxJE9Hb7jj6gJutmcZYEs1WXYX+crWWTRNcItAO4jwhnxg17IIV+LvuVvZIT8jk pt/OKiEQvTnaurws0srAmlr0NQZDk/uxds1YUvzp6WDM/8wnKre3x7zhRrUBNTSgW8ls thEuzCHz5H0bA/t2Le81mPqHgJ9+zH2oC935WGrKnTXDFlmd6nxqxMHqcg9d79E6KiuZ izsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature; bh=OhbZnwWf71+UUTHRQ8xN/7PXzLXHc8GR+wwelJyyT+I=; fh=ZbZOsQsXGYVGDqO9D38M3NnFmmOLUPK0fpsNbeC8lbM=; b=jDxuuEeWMepatLvVuc6niuFZ6/hf2IsEjLK5J7fYJGQuGtQpCXLzm8qyW8cGlpzDFV Yq9kAja9CkFzKQ9h6beYan8Bbi1dx4LtFGROVdo+Z0oT+roFwS5EOIzKrhjF0y/qEw8Q CbFVrj1NcXkrKsEx+PYGLahd4sF/iT7jFffuW9bsRgyO3sb4KMPiBxZMtgGtFquNaTfe k5cYijXj2zx2m83DRHky6SSnIILqNMm3ST6DcFcTkqnOsXJpJFJF6ut0lPuuYyA8OEaR hfHpWfCyI6VoNfyCfZk0ZQlo/8ViKsWqouUzrnhOEuJk4GMStONN+sxWgoEzo/haXG9d 8fhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=oT2ZWjim; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id lq13-20020a170903144d00b001b9fb1a0465si23641599plb.385.2023.10.01.16.04.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 01 Oct 2023 16:05:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=oT2ZWjim; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 978F48038B0C; Sun, 1 Oct 2023 10:08:00 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235238AbjJARHr (ORCPT + 99 others); Sun, 1 Oct 2023 13:07:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35998 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235161AbjJARHq (ORCPT ); Sun, 1 Oct 2023 13:07:46 -0400 Received: from relay3-d.mail.gandi.net (relay3-d.mail.gandi.net [217.70.183.195]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 09B5EC9; Sun, 1 Oct 2023 10:07:41 -0700 (PDT) Received: by mail.gandi.net (Postfix) with ESMTPSA id 2CBD760006; Sun, 1 Oct 2023 17:07:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1696180060; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=OhbZnwWf71+UUTHRQ8xN/7PXzLXHc8GR+wwelJyyT+I=; b=oT2ZWjimx5qHzixIKM7c7VWYaAj1uOO65Ya3XyLsWoPaf2VxZNCgELNFEHIeV4aEAe2tmV pkJBP5ox4+dWXfG5X0GGTGvQxQt+YiJE9xoxqHlKHWuwMiY2uqiBEkFONTkwuc0cgedgsv Rx4KvBirWej1myOJeDy0qyPWl3lrfpwKmBsGkWcOfUEY9wKrVNMVBfUrpq3FH2w8XH+nOc 91RqaVUj9CB0esMCwFnOW6G4goNVVhsEbe+cu+2g9Wcsp7GIr5O35n8ohCULxiovkCPtbL +4fvJLMv6kdJl+yyzndjwEDD9PgoSTzOuRvt7/PhEsB3lOmz27zKixa1mPmfZQ== Date: Sun, 1 Oct 2023 19:07:36 +0200 From: Miquel Raynal To: Simon Glass Cc: devicetree@vger.kernel.org, linux-mtd@lists.infradead.org, U-Boot Mailing List , Tom Rini , Rob Herring , Conor Dooley , Dhruva Gole , Krzysztof Kozlowski , Pratyush Yadav , =?UTF-8?B?UmFmYcWCIE1pxYJlY2tp?= , Richard Weinberger , Rob Herring , Vignesh Raghavendra , linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/3] dt-bindings: mtd: fixed-partitions: Add binman compatible Message-ID: <20231001190736.4f007796@xps-13> In-Reply-To: <20230927202057.3676497-1-sjg@chromium.org> References: <20230927202057.3676497-1-sjg@chromium.org> Organization: Bootlin X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-GND-Sasl: miquel.raynal@bootlin.com X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email 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 (lipwig.vger.email [0.0.0.0]); Sun, 01 Oct 2023 10:08:00 -0700 (PDT) Hi Simon, sjg@chromium.org wrote on Wed, 27 Sep 2023 14:20:51 -0600: > Add a compatible string for binman, so we can extend fixed-partitions > in various ways. >=20 > Signed-off-by: Simon Glass > --- >=20 > .../bindings/mtd/partitions/binman.yaml | 49 +++++++++++++++++++ > .../mtd/partitions/fixed-partitions.yaml | 6 +++ > .../bindings/mtd/partitions/partitions.yaml | 1 + > MAINTAINERS | 5 ++ > 4 files changed, 61 insertions(+) > create mode 100644 Documentation/devicetree/bindings/mtd/partitions/binm= an.yaml >=20 > diff --git a/Documentation/devicetree/bindings/mtd/partitions/binman.yaml= b/Documentation/devicetree/bindings/mtd/partitions/binman.yaml > new file mode 100644 > index 000000000000..34fd10c1a318 > --- /dev/null > +++ b/Documentation/devicetree/bindings/mtd/partitions/binman.yaml > @@ -0,0 +1,49 @@ > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > +# Copyright 2023 Google LLC > + > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/mtd/partitions/binman.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Binman firmware layout > + > +maintainers: > + - Simon Glass > + > +select: false > + > +description: | > + The binman node provides a layout for firmware, used when packaging fi= rmware > + from multiple projects. It is based on fixed-partitions, with some > + extensions. Could you mention the input file vs. output file and which one this binding describes? > + > + Documentation for Binman is available at: > + > + https://u-boot.readthedocs.io/en/latest/develop/package/binman.html > + > + with the current image-description format at: > + > + https://u-boot.readthedocs.io/en/latest/develop/package/binman.html#im= age-description-format > + > +allOf: > + - $ref: /schemas/mtd/partitions/fixed-partitions.yaml# > + > +properties: > + compatible: > + const: binman > + > +additionalProperties: false > + > +examples: > + - | > + partitions { > + compatible =3D "binman", "fixed-partitions"; > + #address-cells =3D <1>; > + #size-cells =3D <1>; > + > + partition-u-boot@100000 { Do you mind if we avoid playing with the node name? I would prefer: partition@100000 { label =3D "foo"; > + label =3D "u-boot"; > + reg =3D <0x100000 0xf00000>; > + }; > + }; > diff --git a/Documentation/devicetree/bindings/mtd/partitions/fixed-parti= tions.yaml b/Documentation/devicetree/bindings/mtd/partitions/fixed-partiti= ons.yaml > index 331e564f29dc..1c04bc2b95af 100644 > --- a/Documentation/devicetree/bindings/mtd/partitions/fixed-partitions.y= aml > +++ b/Documentation/devicetree/bindings/mtd/partitions/fixed-partitions.y= aml > @@ -14,6 +14,9 @@ description: | > The partition table should be a node named "partitions". Partitions ar= e then > defined as subnodes. > =20 > + The Binman tool provides some enhanced features, so provides a compati= ble > + string to indicate that these are permitted. I believe this is not necessary and is implied by the $ref in partitions.yaml. > maintainers: > - Rafa=C5=82 Mi=C5=82ecki > =20 > @@ -24,6 +27,9 @@ properties: > - items: > - const: sercomm,sc-partitions > - const: fixed-partitions > + - items: > + - const: binman > + - const: fixed-partitions > =20 > "#address-cells": true > =20 > diff --git a/Documentation/devicetree/bindings/mtd/partitions/partitions.= yaml b/Documentation/devicetree/bindings/mtd/partitions/partitions.yaml > index 1dda2c80747b..849fd15d085c 100644 > --- a/Documentation/devicetree/bindings/mtd/partitions/partitions.yaml > +++ b/Documentation/devicetree/bindings/mtd/partitions/partitions.yaml > @@ -15,6 +15,7 @@ maintainers: > =20 > oneOf: > - $ref: arm,arm-firmware-suite.yaml > + - $ref: binman.yaml > - $ref: brcm,bcm4908-partitions.yaml > - $ref: brcm,bcm947xx-cfe-partitions.yaml > - $ref: fixed-partitions.yaml > diff --git a/MAINTAINERS b/MAINTAINERS > index 5f18c6ba3c3c..367c843ec348 100644 > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -3517,6 +3517,11 @@ F: Documentation/filesystems/bfs.rst > F: fs/bfs/ > F: include/uapi/linux/bfs_fs.h > =20 > +BINMAN > +M: Simon Glass > +S: Supported > +F: Documentation/devicetree/bindings/mtd/partitions/binman* > + > BITMAP API > M: Yury Norov > R: Andy Shevchenko The rest of the series otherwise lgtm. Thanks, Miqu=C3=A8l