Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp2708467rdb; Wed, 4 Oct 2023 09:06:25 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFk4PHx+F+qzcF9lVUpN1LTZnd8m2gq7upLt7A7929Jqvy9psYO3OP4rJw6kOmFRLj88vCZ X-Received: by 2002:a05:6a20:1612:b0:149:9b2f:a79d with SMTP id l18-20020a056a20161200b001499b2fa79dmr3222747pzj.6.1696435584681; Wed, 04 Oct 2023 09:06:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696435584; cv=none; d=google.com; s=arc-20160816; b=aw11j51sW2Gt50mC3UYzBXqkCmqREf8qFIrY6g2XOZcFSk308voMkX3PAwSZWKb/mU jB87tyKJiaNeP3piN9efnCwN0cKRRj9jX8OPsx6nEsYCDbex1eCWXuOeBAbELek4daiO ZYDdWiVAUmkw7uZWNHw+jWuqiwp9N8500LtPopiwUYAvieKuPDdO3w6pdUG+S5Jnoy9Z 5YuAoCriM0Y8l0PfpZeJt5VLBIuFXKQM1TG7RrnvfLRHjc/LZ0G3hDalQrzmLP/dw0jy XqzkdN0eW3zLY2oLHMiR8BAhCHoydZBLB/7iNTHT1jhvVNFjO6v83ug4QAtmkgn0Gsp5 UKsg== 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=JXMY0UlzCXXysobfPTUw3MvymyulfDMm4djV4xjuSLo=; fh=baHkjTO2ZjNmxC7l+5b9EI4qqWuGKQA15JuGoR9dKZI=; b=cK54NX/xswXgVvTR6gegK7t7B6+C/5dOYU7bot6IVAGea2M5CzcyvMu4FgC/yBokqR RcGEDRIjo4YtvGd3F8mXDDM3LQjXWulJRhm17otrgUZJ6zFME6Qj9/5U9rMxMW6qc3eV ZomCa8gV4FaxIvb5PU7d+Bs+Jodp2nMosmwfx8iegKllV5HvYTAXcnON4+2eivHnogZ2 k46oiYYAcHgBuVUEOlvFyQWIjyS0Zf0hyCnP7cN6F1Cbvg2Zu1HeXLuZaF7a7xmu2fuA 0/vXg+dmGHOoRsL5axN6FIkoYtFmZo/VSzPNx2W3sqo5EqbJ89ojQJX9qYxZMei/sLQs PlMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=ZVa3Rbpw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id t23-20020a656097000000b005775c819f23si3996890pgu.336.2023.10.04.09.06.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Oct 2023 09:06:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=ZVa3Rbpw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (Postfix) with ESMTP id 529E8826EBA9; Wed, 4 Oct 2023 09:06:18 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233451AbjJDQGM (ORCPT + 99 others); Wed, 4 Oct 2023 12:06:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45842 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233085AbjJDQGL (ORCPT ); Wed, 4 Oct 2023 12:06:11 -0400 Received: from mail-ej1-x62f.google.com (mail-ej1-x62f.google.com [IPv6:2a00:1450:4864:20::62f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2A215C0 for ; Wed, 4 Oct 2023 09:06:04 -0700 (PDT) Received: by mail-ej1-x62f.google.com with SMTP id a640c23a62f3a-9b1ebc80d0aso750166b.0 for ; Wed, 04 Oct 2023 09:06:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1696435562; x=1697040362; 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=JXMY0UlzCXXysobfPTUw3MvymyulfDMm4djV4xjuSLo=; b=ZVa3RbpwCT1AiRfWJqPz+yV61jZMJz4Ltv/Fo0omcqeAmEtfAc9x4VlJOw90ukIynr VOmqQ559D2IpWxHPKnDuE498p+GQtv2rQIwaP71l+Gcp2bCoW7ddu2hUtEwRv7KeOHjp Kql7MgV6qK77+KMiMQT6KVkcUSdgJcfKsVC5k= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696435562; x=1697040362; 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=JXMY0UlzCXXysobfPTUw3MvymyulfDMm4djV4xjuSLo=; b=WCf4hX/DQ5RKVZugSnNCHBmVQ5xTsBmr9jZF7XFqTJdaaLn/zeZ7ZrO/+bGH5K02i7 JRwthgfvSqQce/RHIc+AE56wjrjiUbnXIXrAiYRCrIdAKaj4EGNWEzZkWte4oLSamazg Gtmvv26HCwFheP5+jQtQMXHz2AzL7NFGix1sqHpj/18PrQn2CRcxtnh1ZCtEqFSlSjp2 jqLJnzLPKubHnt3PgfsuAadOBjJRKc6iC8/NXcI6xCXwpQKTNTwziY0zxpX+tUtFYKyv Lm+ZF26GIEML0pY19fFZ4GOnO0tVij9WUgEuHcEy0LmVdfgFUMoDYjevQ1iLxINhkFXn c5hA== X-Gm-Message-State: AOJu0Yxe3mnoVXyai3HPgFHqesYrxL8qPvR3nOuW2Azp4gacfRER/al8 Er53v0zk09wpTm+1CJeesapRYjg3gDH+YfB4hhCrww== X-Received: by 2002:a17:906:23e9:b0:9b2:c583:cd71 with SMTP id j9-20020a17090623e900b009b2c583cd71mr2451474ejg.50.1696435562091; Wed, 04 Oct 2023 09:06:02 -0700 (PDT) MIME-Version: 1.0 References: <20231002174948.1015223-1-sjg@chromium.org> <20231004093620.2b1d6917@xps-13> In-Reply-To: <20231004093620.2b1d6917@xps-13> From: Simon Glass Date: Wed, 4 Oct 2023 10:05:43 -0600 Message-ID: Subject: Re: [PATCH v2 1/3] dt-bindings: mtd: fixed-partitions: Add binman compatible To: Miquel Raynal 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 Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-9.2 required=5.0 tests=BAYES_00,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 (howler.vger.email [0.0.0.0]); Wed, 04 Oct 2023 09:06:18 -0700 (PDT) Hi Miquel, On Wed, 4 Oct 2023 at 01:36, Miquel Raynal wrote: > > 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.yaml > > 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. OK, yes I can do that. I suppose they would still remain backwards compatible, due to the use of '$ref: partition.yaml#' > > > 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. OK > > > + > > +additionalProperties: false > > + > > +examples: > > + - | > > + partitions { > > + compatible = "binman", "fixed-partitions"; > > + #address-cells = <1>; > > + #size-cells = <1>; > > + > > + partition@100000 { > > + label = "u-boot"; > > + reg = <0x100000 0xf00000>; > > + }; > > + }; Regards, Simon