Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp2498837rdb; Fri, 8 Dec 2023 09:47:24 -0800 (PST) X-Google-Smtp-Source: AGHT+IGK0oxPs+fwGqbdiyygmFec80Tj5nqtic2VHKUeO683Rmavb8lEQdnOcV3G52QmyFFvt3rj X-Received: by 2002:a05:6a21:627:b0:190:6b0f:1bbf with SMTP id ll39-20020a056a21062700b001906b0f1bbfmr298418pzb.53.1702057643828; Fri, 08 Dec 2023 09:47:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702057643; cv=none; d=google.com; s=arc-20160816; b=BZMh5R7/gb0bGtpDkjwB9TBruIapfXLJ+QavB3yy+NHJ/N3jy+icFPeSCkgVjVLw4F 8WSD2Q0xZwKEWTrIBoq7vV7LNgsn8KEUE2Ilo/6brJ6//Ip+7fdxDeklniqFR3k2dltJ wXPzyN0l/L/ItBFZIPO1FDzkawgE7ZsOhnkAAi2C3N2iO8qTh4h9UlMzqhnhrnSEiMHI llaz/A6UgprAiOYASAVDO+q6QYm2xKb8REpr/TerWyL+/wcBx3fIW21a5v7Z37jTqwO2 qULXYNuWksr3Nq/hGdbhfbwwHKe1KS4Rs7T2gB2/wcA21ljDDpNxI1FSvvopbRIbyfle BgaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=hAJ1WnEzjSjmEz7f7Ppx70QG1I8gsBXxVNcDVYzxKYo=; fh=R7bbiEBvnOvZd5ig2ecax/actBO9V0NJACetIMciwDc=; b=EBzzOE98OZwBwUsjVDkHobSxxE73H9HUp9a8OAv6bx0kD9xbZ5bLVYteZ6S74hcCYM oUL/sJ3uRTk1eDab71EZcCf0wfYQw9IK5L3DaCxyR7S+ETdlsuSe8VYwcS6kINWOYT1r 1nG39W5WuaFyscde21rpS8zNH/eglqzs2ow3YYpP24OOlaapRnlYrn6tBy2C85O5i5IV o571+w7z7OzP7nhuDhsZrNL20N9/YXu2uJQ89pqMCE6rl3JLOoCgfzHZgA3QlR9eAHrT PiAt9zQ55iu2EhR5Mu4dxOwA8yQH6AQrxg4R48cqu+nTeaplFnkwU3CtwyQS7GMIi5fJ Nf8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=LTwXfJgY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id bd33-20020a056a0027a100b006ce6c8a7b63si1859361pfb.114.2023.12.08.09.47.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Dec 2023 09:47:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=LTwXfJgY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 0F03781C3D5F; Fri, 8 Dec 2023 09:47:21 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1574152AbjLHRrF (ORCPT + 99 others); Fri, 8 Dec 2023 12:47:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55946 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229938AbjLHRrE (ORCPT ); Fri, 8 Dec 2023 12:47:04 -0500 Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com [IPv6:2a00:1450:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1F875F9 for ; Fri, 8 Dec 2023 09:47:10 -0800 (PST) Received: by mail-ej1-x62c.google.com with SMTP id a640c23a62f3a-a1d93da3eb7so283980966b.0 for ; Fri, 08 Dec 2023 09:47:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1702057628; x=1702662428; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=hAJ1WnEzjSjmEz7f7Ppx70QG1I8gsBXxVNcDVYzxKYo=; b=LTwXfJgY06011nfwetny3418IDU9SmQu68Z+vVTqd21Es/g1WV9tau8qHFZydGC26X CQxaF5IeGGgqeZ35BrN+nVFyjfhmWhDJpWPghW5sTxbhmCkHseS0uTN9J9G9o7Ossn/9 PIKQoKjwSrflsJHzvG5nrBwdtGMRl7GJ//qEE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702057628; x=1702662428; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=hAJ1WnEzjSjmEz7f7Ppx70QG1I8gsBXxVNcDVYzxKYo=; b=ENm7M/NAKqY+OchTragkPO6qTXd+1/TCKq7LQ0eJMGvTzDbJYT34ryx6ZPBhGqDG+N qOoNCi4jWDnwP9LToDmOuYFVmHNxpIfdvlXBd9W6Dtb/krZqmvAXhepq3hgt9X/XOhVP ysIMqCkD+1OCIJdtNC/GAItebyEEoGbNpx+Kq4/YZyDww9GFdJ4uD936SEgMN9mN0eNN H+DhJO1jz30KuhOAATG7/HKd/PGQkYrkK7++P/eC+jsmlGnwvo8U7FnQIA2+4HcKS7UG kg7MDGeaELy5U2Xb3oJrlvjMmia8hx9V3XdiE+0bSJe726whCxwXxJRSbEhdXfsbwIDO GGPQ== X-Gm-Message-State: AOJu0YxI7PzCKu7cW9y910BOehwdVwoP4AqzAyzSEnpAY0m0d86Koz/r OvQqx5mM4DGpiwz9s7+2J9V6nzX4F45nKtXjr+l/Vw== X-Received: by 2002:a17:906:68d9:b0:a19:a1ba:8cfa with SMTP id y25-20020a17090668d900b00a19a1ba8cfamr158447ejr.152.1702057628271; Fri, 08 Dec 2023 09:47:08 -0800 (PST) MIME-Version: 1.0 References: <20231116172859.393744-1-sjg@chromium.org> <20231208150042.GA1278773-robh@kernel.org> In-Reply-To: <20231208150042.GA1278773-robh@kernel.org> From: Simon Glass Date: Fri, 8 Dec 2023 10:46:51 -0700 Message-ID: Subject: Re: [PATCH v6 1/3] dt-bindings: mtd: partitions: Add binman compatible To: Rob Herring Cc: devicetree@vger.kernel.org, Miquel Raynal , linux-mtd@lists.infradead.org, Tom Rini , Michael Walle , U-Boot Mailing List , Conor Dooley , Krzysztof Kozlowski , Pratyush Yadav , =?UTF-8?B?UmFmYcWCIE1pxYJlY2tp?= , Richard Weinberger , Vignesh Raghavendra , linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.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 (fry.vger.email [0.0.0.0]); Fri, 08 Dec 2023 09:47:21 -0800 (PST) Hi Rob, On Fri, 8 Dec 2023 at 08:00, Rob Herring wrote: > > On Thu, Nov 16, 2023 at 10:28:50AM -0700, Simon Glass wrote: > > Add a compatible string for binman, so we can extend fixed-partitions > > in various ways. > > > > Signed-off-by: Simon Glass > > --- > > > > (no changes since v5) > > > > Changes in v5: > > - Add #address/size-cells and parternProperties > > - Drop $ref to fixed-partitions.yaml > > - Drop 'select: false' > > > > 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 | 68 +++++++++++++++++++ > > .../bindings/mtd/partitions/partitions.yaml | 1 + > > MAINTAINERS | 5 ++ > > 3 files changed, 74 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..329217550a98 > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/mtd/partitions/binman.yaml > > @@ -0,0 +1,68 @@ > > +# 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 > > + > > +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. > > How is this going to work exactly? binman reads these nodes and then > writes out 'fixed-partitions' nodes. But then you've lost the binman > specifc parts needed for repacking. No, they are the same node. I do want the extra information to stick around. So long as it is compatible with fixed-partition as well, this should work OK. Regards, SImon