Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp2394055rdb; Fri, 8 Dec 2023 07:02:39 -0800 (PST) X-Google-Smtp-Source: AGHT+IGwjmPA38PjYnB/BfAc/8ljIqUkJCvG8ROQNJ7efapFmKzwrHAHKUEFRu6Fi6HIHEQHmNSD X-Received: by 2002:a05:6a20:bc95:b0:18f:97c:616a with SMTP id fx21-20020a056a20bc9500b0018f097c616amr97959pzb.103.1702047759554; Fri, 08 Dec 2023 07:02:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702047759; cv=none; d=google.com; s=arc-20160816; b=QE3UnbfS4GG79l8Gvc/DuxKn/FvAck8wPUTigvlNTS9+QrhwzdWIskJU8rKQSmxbif ugtkvaLCWacGgoni6JEBruGrLLS7N8V/vcSFFezFsMohKNqJGDY+FmgDFtFUD3rJOJnp A+YBp56+IPob5fOE+fdDfdCu8UWXZxHRbFNsW5bbzoThzvf9HKWrc+AENUlAF4/hTjcN PnbzLckaqZPyVJokuZ8b3o8u7AfbpLaiWLgr2CBlUMcaF23pfavsRXIjnSYKwO3Y3zUr xfTBhRuuxIM2Kj/Jq3a47mHHFzCUvMZdChu1/XtnXR04OGJtIIX/c++dkIrLik8AHz5q InxA== 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=yhQWuvNrfy0nDTet/URpa1HIQtUWnl4nOPZplCeKz7Q=; fh=DWzW5SYcu+gk1YzOxRYplQucuqs7Q2zsrbtYiMoLtPU=; b=G0F13/9vfdEblgAuKhQNHOIaqftM6GmtF4sA1M5sfOd77R+ACj/JoagE4CL6M83Gpr XorWC9dNOKLwfyE75OFkEoZDqAcle2UazupVhManteq0EyGfZ42htXm6kIvtR6aLNE85 oLuU2rIWyxDXUb9+ec1MYP5JzB0fokXGTwyqbXofmUinsOPzTkWa9/P+i9ArjuL8JQkk lwzaGK2GpHYge9RFlBlmB964UDBsD2NI2clFNugRfySON5CCMtj6XoHlydTKv2cMMj6s xYjAX3oYcT311sZHCRO1sLpYpZFj/ZcwJF+KYuzJNWDvaPNHSGiW7dNPXbBPkRppUBdD Y4uQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id n2-20020a632702000000b00578b63123desi1695504pgn.789.2023.12.08.07.02.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Dec 2023 07:02:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 E1169805A583; Fri, 8 Dec 2023 07:01:30 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1574033AbjLHPBP (ORCPT + 99 others); Fri, 8 Dec 2023 10:01:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47846 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1574034AbjLHPAl (ORCPT ); Fri, 8 Dec 2023 10:00:41 -0500 Received: from mail-ot1-f41.google.com (mail-ot1-f41.google.com [209.85.210.41]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 38163F1; Fri, 8 Dec 2023 07:00:46 -0800 (PST) Received: by mail-ot1-f41.google.com with SMTP id 46e09a7af769-6d9da088ca3so1153657a34.1; Fri, 08 Dec 2023 07:00:46 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702047645; x=1702652445; 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=yhQWuvNrfy0nDTet/URpa1HIQtUWnl4nOPZplCeKz7Q=; b=STndtIHCyClfCUk87Ad27LlPsWA9C8KNXJbltLeB57byjSdnp2mUtzVcR6LL+IF9Jj MvvTYraasWJ7QQ2+TdiInvnysuBUDWSubArhYFXtrREqBuD0sR86d1QNxG2IVu8WzzzQ DPKBozKqr0Sdr6ymHjONw6Qv4PFqZaWI6WmpMGyu+daiFiJYkEEt7Y3QQMk5+sxM09oT S2furNkEgjhgHpWXYEMbULFZfLe83qUiu9LW3xOielLnn4A5oWPDQDUffFa9u2nFpVZZ Olei8ip6emEr23OTfBuweCLLa8r/eC82Z49+aCYA3cFwvIHegR/e+DgCpgGZ7xHJcGEa FGvQ== X-Gm-Message-State: AOJu0Yx+jCSh8yI3w53u4w66b7mTo/W5oTp9XImr2sN2WyGQ46/1pvOm HKE7BKT7pncxLBm5uDs4i2bQn10Z/w== X-Received: by 2002:a05:6830:110f:b0:6d9:ef4a:82db with SMTP id w15-20020a056830110f00b006d9ef4a82dbmr203527otq.13.1702047644628; Fri, 08 Dec 2023 07:00:44 -0800 (PST) Received: from herring.priv (66-90-144-107.dyn.grandenetworks.net. [66.90.144.107]) by smtp.gmail.com with ESMTPSA id bn20-20020a0568300c9400b006d9e756fac2sm283283otb.51.2023.12.08.07.00.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Dec 2023 07:00:43 -0800 (PST) Received: (nullmailer pid 1287216 invoked by uid 1000); Fri, 08 Dec 2023 15:00:42 -0000 Date: Fri, 8 Dec 2023 09:00:42 -0600 From: Rob Herring To: Simon Glass 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 Subject: Re: [PATCH v6 1/3] dt-bindings: mtd: partitions: Add binman compatible Message-ID: <20231208150042.GA1278773-robh@kernel.org> References: <20231116172859.393744-1-sjg@chromium.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231116172859.393744-1-sjg@chromium.org> X-Spam-Status: No, score=-1.0 required=5.0 tests=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 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]); Fri, 08 Dec 2023 07:01:31 -0800 (PST) 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. Rob