Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp2976201rdb; Fri, 22 Sep 2023 14:01:14 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF+t0ee3dbP9D0gByQ19NwtZT1TEmyXexBQHKMeVdA/4pmQR1xQIdGLTDEDJlXhktTMBjH3 X-Received: by 2002:a17:90a:b013:b0:276:c6b8:eaae with SMTP id x19-20020a17090ab01300b00276c6b8eaaemr761216pjq.7.1695416474265; Fri, 22 Sep 2023 14:01:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695416474; cv=none; d=google.com; s=arc-20160816; b=fgQHinCjqeBW1PAQp93NRJpKUmzjMIKZZbLhkH/z3PIA8RuaFEuYMPNrOs2Dv956eb oLOVNkOtsUvB7+OG8oM7vjmnrDOx5QPR+rI2Vpg/R74+30kdQStg/IPs/K+epwBJKWdn O1VFfvjMSTcTLTAE9Ayrx5QbMr8/x4kWGehDwNeftJMsqXwy969i4Q7b/aP+ze6CqYYt 4Ij2SXcvADaMgJLAkQPB9xCjRT8/mPvrOP+txjDt9qYdiDB1iIV3QOIflwRU8/hC5MoS QMnI3cREye+6ZkTNMGHQnjNmH8/NysDPn9aNEyIVHyU197cgliovYHzmCgeTeR+A26VW qfyw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=prIJYO4UCCa6Vt94U+NHB8APLB3E/mezXQCP+edywR0=; fh=45Whl7lPTefq0oFaGyz9A5JaF9AMZXCL9LfS9b+/aVU=; b=eoYVykmObB9MptkcrMvGed+g9nJpmJA6DGfB8mWeg6oB5Sb/ZQWmaEWvdOsnM5JwOu VlWh5hSBGspUc5KpeaBbpqZCdicUr8PQw9KmebJcOKZMIJzUJSnRaTifiL/jN6OZV1zJ V9SCNzvG6XVBovbOcUNj6XBcCJ0/BAVsODBCH8wZz6hZYN8d5YvLBU9VOUVEiLwL2T4a xbs+G45y7PGW9Cfrh2pCkwAmT4RuC0a9t6cXXABSOdX1/MQWH1L+pFa8i1zrpCbpqosx hJzAo9B1pddnrX90kRaRcetLVKRu9COFpnCvgP7j7Afk+RlC9YeKWuSqwMwSUDObfwa3 xYzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=BEMsmtup; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id bj23-20020a17090b089700b0025bf45ac365si6655215pjb.82.2023.09.22.14.01.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Sep 2023 14:01:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=BEMsmtup; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (Postfix) with ESMTP id C2F5E80C1132; Fri, 22 Sep 2023 10:01:47 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232713AbjIVRBq (ORCPT + 99 others); Fri, 22 Sep 2023 13:01:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54830 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232860AbjIVRBn (ORCPT ); Fri, 22 Sep 2023 13:01:43 -0400 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 4E700194 for ; Fri, 22 Sep 2023 10:01:37 -0700 (PDT) Received: by mail-ej1-x62c.google.com with SMTP id a640c23a62f3a-99357737980so296499966b.2 for ; Fri, 22 Sep 2023 10:01:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1695402096; x=1696006896; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=prIJYO4UCCa6Vt94U+NHB8APLB3E/mezXQCP+edywR0=; b=BEMsmtupvlAH0gzfsM4XZaqBFNVnsAPECW+HZ8ISoS3pIG/63qKRJVgby3915kuuwZ AX/HlaU28scNtw949VyZF2YHMmtdXRyACizRfq20UavdOLNF0HJiPM9ZMRm1SySq9Epc YjAFdfdAvWIRTiTRfLQi5RbuebW9Vm22LtDyo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695402096; x=1696006896; h=content-transfer-encoding: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=prIJYO4UCCa6Vt94U+NHB8APLB3E/mezXQCP+edywR0=; b=CVTS6inUQDwcVCan3p3FLsD67n/3YqPlG0mnghLiqkrLyOFWKKPlx0798mwj+5Gxoh QE8KFP9B9Jb2a2Q25KMLnZtCimSruu4haIVTLkSBYVM09e8Vel2PVWzIVabEP6gSiUic 48GW8FRGeZ98cjphV7uk8hvT8eA8JSmqAjq6DUZBrTxlDoTU1/YwF2l/yWxxc4XBAeg4 oDW4K+BKs/Bz0cwjnoO4yvjNcs8HrnxB/H/lR6bJOwIMlNhBD3iugojRYUQK2j0SsaIL v0CSci8tEdbZNLkFpXQ/KE3o39Gt9Ljhq0MLjoSsuMtYjwRS0hkhTwOPgYbygljD2teO 0UjQ== X-Gm-Message-State: AOJu0YxoNHZ9XVMG1LsxAzuVm95JO2Xo7PMosuCe253vjtEATfKmuVTg s2QZPUh3MqO3UEJV9eaPt8CP05AS9HunHxBi577Ibg== X-Received: by 2002:aa7:c7d3:0:b0:523:3fff:5ce2 with SMTP id o19-20020aa7c7d3000000b005233fff5ce2mr42790eds.41.1695402095589; Fri, 22 Sep 2023 10:01:35 -0700 (PDT) MIME-Version: 1.0 References: <20230921124459.1.I91ddcfacf9b234af5cc3eabea4b62edb31153317@changeid> In-Reply-To: From: Simon Glass Date: Fri, 22 Sep 2023 11:01:18 -0600 Message-ID: Subject: Re: [PATCH] dt-bindings: mtd: Add a schema for binman To: Rob Herring 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-9.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_IN_DEF_SPF_WL autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 (snail.vger.email [0.0.0.0]); Fri, 22 Sep 2023 10:01:47 -0700 (PDT) Hi Rob, On Fri, 22 Sept 2023 at 10:00, Rob Herring wrote: > > On Thu, Sep 21, 2023 at 1:45=E2=80=AFPM Simon Glass wr= ote: > > > > 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@chromiu= m.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] I saw this file, which seems to extend a partition. Documentation/devicetree/bindings/mtd/partitions/brcm,bcm4908-partitions.ya= ml I was assuming that I should create a top-level compatible =3D "binman" node, with subnodes like compatible =3D "binman,bl31-atf", for example. I should use the compatible string to indicate the contents, right? 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. > > I did a bit more research. "fixed-partitions" as a compatible has > "only" been around since 2015. Prior to that, it was implicit with > just partition nodes with addresses (i.e. reg) and that dates back to > 2007. Looks like u-boot only supports the newer form and since 2021. OK Regards, Simon [1] https://u-boot.readthedocs.io/en/latest/develop/package/binman.html#ima= ge-description-format