Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp2884657rdb; Fri, 22 Sep 2023 10:56:51 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE68lu54/1ZmcMx8iTpqy8RX2xttZVIWcWRbjNS60y2L/Ojwyl2Bbwhvyi4oS4drInpQR5d X-Received: by 2002:a05:6a00:1a4e:b0:68c:57c7:1eb0 with SMTP id h14-20020a056a001a4e00b0068c57c71eb0mr118934pfv.11.1695405411026; Fri, 22 Sep 2023 10:56:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695405411; cv=none; d=google.com; s=arc-20160816; b=njNjfwkOayjadtBFkxgdRzf4iMp1xB84v+QoyrBxAQKk7OaQbrNIewC3gpnIo8TIts 9AzWvNGhQobdP6G9R4+e5VwSf7Py6157LVVIa4Ewm6hS1of7PLh3qia3LsnkBjq40xnp c+W207crweAdcG3Sq3DFK2mNymPAxpXcLAnyT0+RU7Vmc7vR7zCZaIMTLFGw5pihLDty +H/1gd91ZZ0zPhBKRZsR2GmeLifeCDG0yHx/kW7jrSxdHdmquYiVfSmi9rN5hSh33Hdu txBiYTDLiZdZCxwmFpLH0myRYQN8PpLNqBpI7tI1YLQIsMV0HTDLMTVDAVhEuE6RxZr6 ZrUw== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=FLOXVdt20P0eHJIaGppovplKZwK5VpsJgPDXhv7mNRs=; fh=Nss5Ujji403ipKihoTGzzTUmFGogOA1p+ewpM5xescY=; b=JaRXDforUkp9UqFGp5H7rqVfJ02LnXzeSNKfDcWW3rIDrVxXKnyv/yF4mGRYEvJau3 I63xUdsv9rjUjP25/NJG6j/14ezEhWLKJaaBsNN+JxOfXcapTqtd6AVrBjDA64sJ20a4 OHeQUYmHDjZUKhQ6spuU2vDGMP1GxMWe5UoBX8rDO3Ha1jLLMFIvx3cno0YTmQwQsTQ6 1DXj1/NXINP9pqtfRMlUALePW5vdOJYg+mtfaTQc7NLeZZ4gWRaz1Gr8GHtx394waKfb BqtwB0flTykgTBX/dUIXhpKHSCmVz/K7sJU6ppSJpBGBfW4jWsuowLrnaIIPNZGEwHD2 qcfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jRLqWf9m; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 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 pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id f20-20020a637554000000b00578d71884b4si4371651pgn.194.2023.09.22.10.56.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Sep 2023 10:56:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jRLqWf9m; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 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 pete.vger.email (Postfix) with ESMTP id 9164881A7BEA; Fri, 22 Sep 2023 10:47:03 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231843AbjIVRrC (ORCPT + 99 others); Fri, 22 Sep 2023 13:47:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59052 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229541AbjIVRrA (ORCPT ); Fri, 22 Sep 2023 13:47:00 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D211494 for ; Fri, 22 Sep 2023 10:46:51 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 48C83C433C7; Fri, 22 Sep 2023 17:46:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695404811; bh=fFQxg4Rz4GjFZugxozdndSgNXISpfnkbSpJ11bW+6OA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=jRLqWf9mSuD59sCEiQszieC9KPYDD/iNV/2RGV4Xdqt0cnH/s/H9SYypt0yo2zgmO 54MLtIg6ulX/hGC1S3Xv9FTFWVZghM3zlLb3pj2VrFUF973M24PScMfpZaZX8UwzD5 9GSE7xii8ByH5bCW7cuXWGHHeFFj7AyeCtk58Wa2anrTS6sM87Qz9bOsleIEY79qB6 0oOTRZORaulf4T/SSst+w+JOaqe7Gt6ikwlqVKwq6mAYs6qP6QSjsu/Bl2X8d1vSES MbbWluj4wLah3zEVzS5+WR7tDxrFrm1Y/achLiOkrdBYoDYtWkcqPJX0ZLZFHNFOvk 9fBtxjPpFgIBg== Received: (nullmailer pid 3342355 invoked by uid 1000); Fri, 22 Sep 2023 17:46:49 -0000 Date: Fri, 22 Sep 2023 12:46:49 -0500 From: Rob Herring To: Simon Glass Cc: devicetree@vger.kernel.org, U-Boot Mailing List , linux-mtd@lists.infradead.org, Tom Rini , Conor Dooley , Dhruva Gole , Krzysztof Kozlowski , Miquel Raynal , =?utf-8?B?UmFmYcWCIE1pxYJlY2tp?= , Richard Weinberger , Vignesh Raghavendra , linux-kernel@vger.kernel.org Subject: Re: [PATCH] dt-bindings: mtd: Add a schema for binman Message-ID: <20230922174649.GA3320366-robh@kernel.org> References: <20230921124459.1.I91ddcfacf9b234af5cc3eabea4b62edb31153317@changeid> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.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 (pete.vger.email [0.0.0.0]); Fri, 22 Sep 2023 10:47:03 -0700 (PDT) On Fri, Sep 22, 2023 at 11:01:18AM -0600, Simon Glass wrote: > Hi Rob, > > On Fri, 22 Sept 2023 at 10:00, Rob Herring wrote: > > > > On Thu, Sep 21, 2023 at 1:45 PM 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]. > > > > > > [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 > > > > You missed: > > > > https://github.com/devicetree-org/dt-schema/pull/110 > > > > where I said: We certainly shouldn't duplicate the existing partitions > > bindings. What's missing from them (I assume we're mostly talking > > about "fixed-partitions" which has been around forever I think (before > > me))? > > > > To repeat, unless there is some reason binman partitions conflict with > > fixed-partitions, you need to start there and extend it. From what's > > posted here, it neither conflicts nor needs extending. > > I think at this point I am just hopelessly confused. Have you taken a > look at the binman schema? [1] Why do I need to? That's used for some tool and has nothing to do with a device's DTB. However, I thought somewhere in this discussion you showed it under a flash device node. Then I care because then it overlaps with what we already have for partitions. If I misunderstood that, then just put your schema with your tool. Only users of the tool should care about the tool's schema. > > I saw this file, which seems to extend a partition. > > Documentation/devicetree/bindings/mtd/partitions/brcm,bcm4908-partitions.yaml IIRC, that's a different type where partition locations are stored in the flash, so we don't need location and size in DT. > > I was assuming that I should create a top-level compatible = "binman" > node, with subnodes like compatible = "binman,bl31-atf", for example. > I should use the compatible string to indicate the contents, right? Yes for subnodes, and we already have some somewhat standard ones for "u-boot" and "u-boot-env". Though historically, "label" was used. Top-level, meaning the root of the DT? That sound like just something for the tool, so I don't care, but it doesn't belong in the DTB. > > Re extending, what is the minimum I can do? Are you looking for > something like a "compress" property that indicates that the entry is > compressed? > > I'm really just a bit lost. Me too. Rob