Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp2437299rdb; Wed, 4 Oct 2023 00:36:34 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH7P1gknsnRG+yOY6WlIOB8s2j3QgpbQOhYsHIRC8dYxaK+E42NYFTWxqjx0YDl5cLW7h1C X-Received: by 2002:a17:90a:7d14:b0:276:5512:13ab with SMTP id g20-20020a17090a7d1400b00276551213abmr7833923pjl.10.1696404994190; Wed, 04 Oct 2023 00:36:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696404994; cv=none; d=google.com; s=arc-20160816; b=vUYNRc0uCsET9jfjE6bnpN/5dg9PkngDBajVk4GmUa01qRxaCMYI3Elkf7CVZOJ85S HiRw/429gBGg69k2pahIMrgdCtFdA7T4z7YdQWYd2MJecdh36DpN+m8VtfCJez43wLrK T8LevxUy+UUIVEjk6jZKSOJkDLQY4doM5t84m8vJ3u77QrbyPetfAQkqoGeiddZ0R8S0 2ALhchsXcDF++fYVlh9LAvkICUic4tfKf427fUMY24adflFZANuBEhsFIIeoAwP08Zb2 PtHRfNl4w2W/0KU05eM4cMzeFpchHpO/KCsMCJHgfgKvbJb8TYCl8VPhicBQwjs7OuYt 1jNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature; bh=ngPaH82ebBnbrryfOJbDz3IQaDzQY6NcyZOlki0nDMU=; fh=Y5bSp1JjA+Abilx1lR3jJQHvwEx0koywibR2Xi8j8ik=; b=lAKVTxKGa+HhK5KBV8zfDx3vul6FON7vh1ILLvTrkL/Co7apX50vRHkwFd5tJHBDw7 OC6du3fvkv+ubiPbA7GqvHc9S6RoC51w++3juuo7ATthtwjvnzSNrmO3wemuxIBV7S3S 42V8UsM2DJ6p3JtfgiDsiCaO1Hw8vBFQID8lltDLTJPmH1B7N5MznvioiylE7I6ZQARZ cXd4JFkGPZ3/gX2Y7PiBzu7/Gq+QRUXd0OksMScG9gt8ZDfvg3bm/WUzOsJfXSB9kfHr q+r1+E3oGr9RMW6xJONxlNaNoGTDz2N9mx+rSY4DOrNmrjrAH7RLKkl3734Kep37CEft nbgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=YdfN+yrx; 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=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id ml19-20020a17090b361300b0026d60f1627asi970450pjb.173.2023.10.04.00.36.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Oct 2023 00:36:34 -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=@bootlin.com header.s=gm1 header.b=YdfN+yrx; 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=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 1EEE181D2D74; Wed, 4 Oct 2023 00:36:33 -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 S241554AbjJDHgd (ORCPT + 99 others); Wed, 4 Oct 2023 03:36:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54924 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232766AbjJDHg3 (ORCPT ); Wed, 4 Oct 2023 03:36:29 -0400 Received: from relay2-d.mail.gandi.net (relay2-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::222]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F17CE9B; Wed, 4 Oct 2023 00:36:24 -0700 (PDT) Received: by mail.gandi.net (Postfix) with ESMTPSA id A69D04000A; Wed, 4 Oct 2023 07:36:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1696404983; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ngPaH82ebBnbrryfOJbDz3IQaDzQY6NcyZOlki0nDMU=; b=YdfN+yrxrO7j0TdmpeLWPl73yPq08XtmwZvNnFasDHk2kWC72GMksBZafFVGZ26euBCc+o oCDZyIvqYV1VsrHif4X3IdWPJbsQUZt4vGqXzvaFne1Ga/DM8et3GlgOHbWMaNpSnQFEgv zXW2ZF0Z9m0iaf456rpC/tXLMT57+7kRN45S0KFwvc4NoJ2AKWkmA5qh3QTbx6DqX7gIl0 lkZRjDbgqqPDi3tc+PUMejqbdIrn0haO1vLOAblySPti7AaGfajr6IcKEcRjN0uYtHoPQA s2zl+FVICo1l9qG6bi3eljZag5jIueQuCo/U1QFGIqBE4PkpIsPBtWKfDM7xJA== Date: Wed, 4 Oct 2023 09:36:20 +0200 From: Miquel Raynal To: Simon Glass Cc: devicetree@vger.kernel.org, Rob Herring , Tom Rini , U-Boot Mailing List , linux-mtd@lists.infradead.org, Conor Dooley , Krzysztof Kozlowski , Pratyush Yadav , =?UTF-8?B?UmFmYcWCIE1pxYJlY2tp?= , Richard Weinberger , Rob Herring , Vignesh Raghavendra , linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 1/3] dt-bindings: mtd: fixed-partitions: Add binman compatible Message-ID: <20231004093620.2b1d6917@xps-13> In-Reply-To: <20231002174948.1015223-1-sjg@chromium.org> References: <20231002174948.1015223-1-sjg@chromium.org> Organization: Bootlin X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-GND-Sasl: miquel.raynal@bootlin.com X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_PASS,SPF_PASS,URIBL_BLOCKED autolearn=ham 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]); Wed, 04 Oct 2023 00:36:33 -0700 (PDT) Hi Simon, sjg@chromium.org wrote on Mon, 2 Oct 2023 11:49:40 -0600: > Add a compatible string for binman, so we can extend fixed-partitions > in various ways. I've been thinking at the proper way to describe the binman partitions. I am wondering if we should really extend the fixed-partitions schema. This description is really basic and kind of supposed to remain like that. Instead, I wonder if we should not just keep the binman compatible alone, like many others already. This way it would be very clear what is expected and allowed in both cases. I am thinking about something like that: Documentation/devicetree/bindings/mtd/partitions/brcm,bcm4908-partitions.y= aml=20 this file is also referenced there (but this patch does the same, which is what I'd expect): Documentation/devicetree/bindings/mtd/partitions/partitions.yaml I'll let the binding maintainers judge whether they think it's relevant, it's not a strong opposition. > Signed-off-by: Simon Glass > --- [...] > +properties: > + compatible: > + const: binman Right now this does not fit (I believe) the example. But if we no longer extend fixed-partitions but just create binman.yaml, this will probably be enough. > + > +additionalProperties: false > + > +examples: > + - | > + partitions { > + compatible =3D "binman", "fixed-partitions"; > + #address-cells =3D <1>; > + #size-cells =3D <1>; > + > + partition@100000 { > + label =3D "u-boot"; > + reg =3D <0x100000 0xf00000>; > + }; > + }; Thanks, Miqu=C3=A8l