Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1985025rda; Tue, 24 Oct 2023 08:57:42 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHFVDb1IGo4eAB8Iu/GBqNz/TTGVC8OW/R73dy8+ME4hiB63mKBy6Z+9a03MrySaEMaZoOa X-Received: by 2002:a17:903:138f:b0:1ca:90bf:156f with SMTP id jx15-20020a170903138f00b001ca90bf156fmr9611288plb.37.1698163062635; Tue, 24 Oct 2023 08:57:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698163062; cv=none; d=google.com; s=arc-20160816; b=fdRLXwE81+q8JYwVZm0gmlOdngcEMMEN4/nsjQEn6K1gZl0xaLzSuUNsaqh+Y4GJ8l dOCHQTeYbwVN2o8GF4NmQ64gmDZjEP9yXtWMOgzZ+BwoFEHbrlMV4GRzxFPb/Fbaz3Tm NkYX5Pden7Gg46zgysEPKMAA1nOGUiAVXfKp9qz7FhTuyRWJ8QJOrwxOgoyuTWd0fKaw EIY4vr05sbfEVXwTkeFpLd4fjR19oR7zHXxmcyVITl1ic7AqDJlmvzrO5VXxuRUTS5C8 QKRGu8880NsWkKhjzeyDY5rR9FU31igDn4Yv/l0e3cv24RRkgcUwRn0OCDkFTfevkvXq eG7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=NHcRvpJFapb0Q3P+9BlCR7HD1XqDuZe4P3/x1wWBCyM=; fh=WgMkFWvoBjKi9O2El6u3lGliLy8Kj4gqTpJLEf3cTC0=; b=mO0z45MhMjleaOiXO74976K9/XzPDZZdKG2sTM+IXfJlTLTs3n39k4XM6GCkRsyyZr 6mme6ytUn33IMY4rOMu9PY+m8GW+eZEy4vE04rwMMII1qRFIQncGqnHRyBWZDFfjtW/Y PCfyeOOgULbEhPB9KYYnGg27GDN03xd1jeoElWMZev4MsaLorTARklYC0N0NvDMj9i5J VdWqhzX5HDcZzXFERnLd1dlPzrF+9fo2xuR0srEr0tZNuWNHrn2pbBpBN04AovqZ0gf3 mT1M7QzfHfjwbYdfp1O2WGBZro6b/DsnYjIvZzqk6wjOzDBqTgdWgBXpER/muBlYliFT TYVA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id u5-20020a170902e5c500b001c89c86160bsi5564115plf.385.2023.10.24.08.57.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Oct 2023 08:57:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (Postfix) with ESMTP id B6175803F979; Tue, 24 Oct 2023 08:57:39 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343958AbjJXP5d (ORCPT + 99 others); Tue, 24 Oct 2023 11:57:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52826 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232602AbjJXP5c (ORCPT ); Tue, 24 Oct 2023 11:57:32 -0400 Received: from mail-ot1-f42.google.com (mail-ot1-f42.google.com [209.85.210.42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8732310A; Tue, 24 Oct 2023 08:57:30 -0700 (PDT) Received: by mail-ot1-f42.google.com with SMTP id 46e09a7af769-6c7b3adbeb6so3053821a34.0; Tue, 24 Oct 2023 08:57:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698163050; x=1698767850; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=NHcRvpJFapb0Q3P+9BlCR7HD1XqDuZe4P3/x1wWBCyM=; b=e/aYb36J9bJmw7VKSOMzbPOlEo9IyRl6tUx+LJNhRMFWgJVtnuBi6XkOb6Fsd9K8a/ NbU1PnEo2IfER2htsqEQxHHvwEqduOog8PwY4/0IK2FH+eLF8wzzvteCfq6/LjzF1176 quxJMGllPmIbIKEUfKt+h6I2V6Nn6twxRVEF/kMRW0mcUA4nOXfyBoksbUw5vUgEjrfk EvEg5p7FNLxzUvZFzx8bfU2tQuu5Ws1TjiKrChHZ1wq7aJdfmf/BMrc8mJrW6ASl6Xzj VWygi5cKcqo2AE0HKnZOP3SZjbcggUYDpAI3y0r8P3nkmUwRX7dzEKJmbSTJqHr3QpCm SFmA== X-Gm-Message-State: AOJu0YxmDLo5bGCtlYua/Hvv399yDu6HY8JdeiFP50g53oVdyaZMGVd9 gEFAD5BG8O3CLbX8V7d+Jg== X-Received: by 2002:a9d:618d:0:b0:6b9:26ce:5e5c with SMTP id g13-20020a9d618d000000b006b926ce5e5cmr13881917otk.31.1698163049764; Tue, 24 Oct 2023 08:57:29 -0700 (PDT) Received: from herring.priv (66-90-144-107.dyn.grandenetworks.net. [66.90.144.107]) by smtp.gmail.com with ESMTPSA id f3-20020a4ae603000000b0057b74352e3asm1986286oot.25.2023.10.24.08.57.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Oct 2023 08:57:29 -0700 (PDT) Received: (nullmailer pid 3929057 invoked by uid 1000); Tue, 24 Oct 2023 15:57:28 -0000 Date: Tue, 24 Oct 2023 10:57:28 -0500 From: Rob Herring To: Simon Glass Cc: devicetree@vger.kernel.org, linux-mtd@lists.infradead.org, Miquel Raynal , Michael Walle , U-Boot Mailing List , Tom Rini , Conor Dooley , Dhruva Gole , Krzysztof Kozlowski , =?utf-8?B?UmFmYcWCIE1pxYJlY2tp?= , Richard Weinberger , Vignesh Raghavendra , linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 1/3] dt-bindings: mtd: partitions: Add binman compatible Message-ID: <20231024155728.GA3707756-robh@kernel.org> References: <20231009220436.2164245-1-sjg@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231009220436.2164245-1-sjg@chromium.org> X-Spam-Status: No, score=-1.0 required=5.0 tests=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 agentk.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 (agentk.vger.email [0.0.0.0]); Tue, 24 Oct 2023 08:57:39 -0700 (PDT) On Mon, Oct 09, 2023 at 04:04:13PM -0600, Simon Glass wrote: > Add a compatible string for binman, so we can extend fixed-partitions > in various ways. > > Signed-off-by: Simon Glass > --- > > Changes in v4: > - Change subject line > > Changes in v3: > - Drop fixed-partition additional compatible string > - Drop fixed-partitions from the example > - Mention use of compatible instead of label > > Changes in v2: > - Drop mention of 'enhanced features' in fixed-partitions.yaml > - Mention Binman input and output properties > - Use plain partition@xxx for the node name > > .../bindings/mtd/partitions/binman.yaml | 63 +++++++++++++++++++ > .../bindings/mtd/partitions/partitions.yaml | 1 + > MAINTAINERS | 5 ++ > 3 files changed, 69 insertions(+) > create mode 100644 Documentation/devicetree/bindings/mtd/partitions/binman.yaml > > diff --git a/Documentation/devicetree/bindings/mtd/partitions/binman.yaml b/Documentation/devicetree/bindings/mtd/partitions/binman.yaml > new file mode 100644 > index 000000000000..7d6c8bd738f5 > --- /dev/null > +++ b/Documentation/devicetree/bindings/mtd/partitions/binman.yaml > @@ -0,0 +1,63 @@ > +# 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 firmware > + from multiple projects. It is based on fixed-partitions, with some > + extensions, but uses 'compatible' to indicate the contents of the node, to > + avoid perturbing or confusing existing installations which use 'label' for a > + particular purpose. > + > + Binman supports properties used as inputs to the firmware-packaging process, > + such as those which control alignment of partitions. This binding addresses > + these 'input' properties. For example, it is common for the 'reg' property > + (an 'output' property) to be set by Binman, based on the alignment requested > + in the input. > + > + Once processing is complete, input properties have mostly served their > + purpose, at least until the firmware is repacked later, e.g. due to a > + firmware update. The 'fixed-partitions' binding should provide enough > + information to read the firmware at runtime, including decompression if > + needed. > + > + 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#image-description-format > + > +allOf: > + - $ref: /schemas/mtd/partitions/fixed-partitions.yaml# > + > +properties: > + compatible: > + const: binman This couldn't possibly pass validation. Including fixed-partitions.yaml says the compatible must be one thing and this says something else. > + > +additionalProperties: false > + > +examples: > + - | > + partitions { > + compatible = "binman"; > + #address-cells = <1>; > + #size-cells = <1>; > + > + partition@100000 { > + label = "u-boot"; > + reg = <0x100000 0xf00000>; > + }; > + }; > 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: > > 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 c934244acc31..ebc8158fe67d 100644 > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -3536,6 +3536,11 @@ F: Documentation/filesystems/bfs.rst > F: fs/bfs/ > F: include/uapi/linux/bfs_fs.h > > +BINMAN > +M: Simon Glass > +S: Supported > +F: Documentation/devicetree/bindings/mtd/partitions/binman* > + > BITMAP API > M: Yury Norov > R: Andy Shevchenko > -- > 2.42.0.609.gbb76f46606-goog >