Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp6168858rwi; Tue, 18 Oct 2022 08:56:34 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6o57p2ThiB3lHDK6U5djeZuluo8sWbVRxWWhOISbTFelEUJUWiLJ0OKkQSuyw06D2i3mix X-Received: by 2002:a05:6402:2816:b0:434:ed38:16f3 with SMTP id h22-20020a056402281600b00434ed3816f3mr3298791ede.116.1666108593839; Tue, 18 Oct 2022 08:56:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666108593; cv=none; d=google.com; s=arc-20160816; b=Jmo/QNi8JxL6zOT+4ExD+3n5dchpqLB3niZbWp5nkwVXqBHgB2PgTExej/fLx1G3oO sxTb374uR4mZmJJcb+ubM90F0KQKMb8FNHJb/QyeKSin8y+3w/hKQVALQ+32NHUVn6ib qvvsVStThTNnEO0ZkhyTDBicqi4sK43HvE8x9oXQ+3P/CJv42c5JaeKROFBa/0lFcb9p hsjWMjxa+UgeNMW6RNVGYaQlQSEHb5ntPY9uhz8qFIcbeyb8MTWBfAS5xnH9o5Lq2hlO KT0idVNnz9syl1YndC3AknI+eci6l9XjfBtzmjKWQgYuqPU0xEEc52fyrhgWC+z65JfK aZJg== 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=vJR4dWrGfIWIcDNaM1GsEjr5uQdj2rqCRBl7k1LsG7w=; b=DO7ZDjjc4iBfj9GhIFYOofKH5AtP2eZKneYXIQ+Iyv7eDLYgX73SDH5S6SIk6Sy/0L 80A30g1YIZ3yExzXBl22TSntoJlWLh9QOfhzPaG/hJO1IBCVOuYY+5SCfcz56uYSXeBs 8Tw8FY7jo2BCJWLRutJsYqLYamj439EyBwlvK1HdmXzCqgRgQw1/x0DtAJNj6TQVev1B WSIGuV4xgeL66nbmLQgWnIY0nvXrsqccs+KTbgZ0YsXA4p9gyTZmTGVQFwZUiRSjEZOI TuqtbjmNfWnIcDLDlXuoWVO6mNOJ9hyPiEtt98L2go3x9SoUu3uMnFktpFy/2oOTtFG5 zSFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=D4XHmj26; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id wu13-20020a170906eecd00b0078d93245e34si13328048ejb.793.2022.10.18.08.56.06; Tue, 18 Oct 2022 08:56:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=D4XHmj26; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229800AbiJRPwn (ORCPT + 99 others); Tue, 18 Oct 2022 11:52:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37102 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229841AbiJRPwk (ORCPT ); Tue, 18 Oct 2022 11:52:40 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DF4CBC14BA; Tue, 18 Oct 2022 08:52:19 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id B6484B81FF9; Tue, 18 Oct 2022 15:51:05 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E2483C433D6; Tue, 18 Oct 2022 15:51:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1666108264; bh=bLdmMle94QQwCBRxz3r6k1ilHoY6wGNxy1a0zdTcu18=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=D4XHmj26B2z94vShlmPetNZJEwXdsYIVvD/5QnLCZSSU8yk65hTV+YPCeiPJS7jY/ i8IAkhn8MrdJRhe9M3vIVk2Wo9RDALAMHOZsIoCI/WaNidG05zJIMBYhLrZPJfkvHF bJm6kP+tR7jdv9pBK1Efd6NEQJmYGEuBeBc3UmUQ/nYYnIsH4EpRtjFMdU3rwqydku Fo1YVHn/FGelFRHR9uAk0LzMqBluACgDRboDI3QaSUp54iJC+9WHZp3HoCNJhb+dWH pDSlvFQTlDMa1zUhPQxLAhMbJfhHn8cxlO3H9Z5zFUQ6WJ4sPlzBmuiDnnuXnOyPrq WRyDvLHxiGV3A== Date: Tue, 18 Oct 2022 16:50:58 +0100 From: Conor Dooley To: =?utf-8?B?UmFmYcWCIE1pxYJlY2tp?= Cc: Rob Herring , Krzysztof Kozlowski , Srinivas Kandagatla , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Tom Rini , Florian Fainelli , Joel Peshkin , William Zhang , Conor Dooley , devicetree@vger.kernel.org, linux-mtd@lists.infradead.org, linux-arm-kernel@lists.infradead.org, u-boot@lists.denx.de, bcm-kernel-feedback-list@broadcom.com, linux-kernel@vger.kernel.org, =?utf-8?B?UmFmYcWCIE1pxYJlY2tp?= Subject: Re: [PATCH V3 1/2] dt-bindings: mtd: partitions: u-boot: allow dynamic subpartitions Message-ID: References: <20221018154202.4634-1-zajec5@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20221018154202.4634-1-zajec5@gmail.com> X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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 On Tue, Oct 18, 2022 at 05:42:01PM +0200, Rafał Miłecki wrote: > From: Rafał Miłecki > > U-Boot partition may contain subpartitions. For example Broadcom > includes environment data block in the middle of its U-Boot partition. > > This allows describing Broadcom's U-Boot env data and will allow > referencing its NVMEM cell in the future. > > Reg: 118f3fbe517f4 ("dt-bindings: mtd: partitions: support label/name only partition") Pardon my ignorance here, but what is the significance of a "Reg" tag? Thanks, Conor. > Ref: dd638202dfb65 ("dt-bindings: mtd: partitions: add additional example for qcom,smem-part") > Signed-off-by: Rafał Miłecki > --- > V3: Add this patch as pre-requirement for u-boot,env.yaml & brcm,env > --- > .../devicetree/bindings/mtd/partitions/u-boot.yaml | 7 +++++++ > 1 file changed, 7 insertions(+) > > diff --git a/Documentation/devicetree/bindings/mtd/partitions/u-boot.yaml b/Documentation/devicetree/bindings/mtd/partitions/u-boot.yaml > index 8a88e7d16524..3c56efe48efd 100644 > --- a/Documentation/devicetree/bindings/mtd/partitions/u-boot.yaml > +++ b/Documentation/devicetree/bindings/mtd/partitions/u-boot.yaml > @@ -27,6 +27,10 @@ properties: > Broadcom stores environment variables inside a U-Boot partition. They > can be identified by a custom header with magic value. > > +patternProperties: > + "^partition-.*$": > + $ref: partition.yaml# > + > unevaluatedProperties: false > > examples: > @@ -40,6 +44,9 @@ examples: > compatible = "brcm,u-boot"; > reg = <0x0 0x100000>; > label = "u-boot"; > + > + partition-u-boot-env { > + }; > }; > > partition@100000 { > -- > 2.34.1 >