From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 5A61BECAAA1 for ; Mon, 31 Oct 2022 19:33:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=VIrzzA1E7zwWEi2hrH25u4EHN5AwbxSBhls6c7YIDWQ=; b=TFKsOfye/Y7NPk BLNY31MYu9tokxWs4XSiYP3VryZWt2pw81dtB7v053cuI8+1yaSjy1LYDUOujZVRNKQihHoUljBbT pnfrun/QJVoqVGy7642v4FEFpD41IRV6ACdyUz4Qauz6b/fzcedkFZ6HWz4wfe/HfjTic1B7xZP28 f8ML/kDXO0onZFC/atTIHyHUMM1z/S477LJ95UwNUqAlmyOkoKslgrxFDyxW9qP80QqLr0p/pNiC1 WMsBYV0bBSJLhM4p6Bp3b0eG321tVBe5FOc4tu6o5YUehXxYK5Vqk3nnbzj2h+sJ2VSj/IsU2LiGb 0wYkztAyLNmUrAYh5DrQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1opaWM-00EEVH-5I; Mon, 31 Oct 2022 19:32:30 +0000 Received: from mail-oa1-f47.google.com ([209.85.160.47]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1opaWH-00EEUd-Rk; Mon, 31 Oct 2022 19:32:27 +0000 Received: by mail-oa1-f47.google.com with SMTP id 586e51a60fabf-13b23e29e36so14556580fac.8; Mon, 31 Oct 2022 12:32:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=FVVqsExfMH5y/nVKQLe7SB8sVIcEpxDpkI7AXNSICDk=; b=i8m0fKWiS2i7mxZtjN5xNsHND9tLFqUMeQVu2JKZxgroQmOrN+StczawWqTZe/XtF9 kBlXfGyju1C0VFYQF++UwNfjBhHaFp/XCVCIo2miEKQjV9FwY8LijwSGDGEIHNdnv8KN WJBVvCU0U0d6TVV8juQprHgSoil23gkxCsdHVgUhiITAKoh5LW2khM5d68XnJsqwYuKR FxfXUZTeLyUZDaMAz0ekyqwvEkLEW65N2Cm+E0Z/UJoJwKqinWkpiCQT0zwcuiIq8oUY VAiWGIPVui6H46nhY0Gz+W13EziKiwk5OltgI655Aqs9iSo4w9Fltka11Q+q4F8ZfSt6 CldQ== X-Gm-Message-State: ACrzQf1gf09zP1GsWdU2WGtPX3cLTd8R1A7Avu7AKyrgUTShCVv0N4S1 lqmjw/RDDWQ5XefF++KSGg== X-Google-Smtp-Source: AMsMyM51Ay/CK4pAwfGf+l/L2CO2NolCQmH5Ou1KvFFhPO09DUo2mDuk+qqH803TerpG8A6bPcDstw== X-Received: by 2002:a05:6870:d78c:b0:136:ddfe:bf16 with SMTP id bd12-20020a056870d78c00b00136ddfebf16mr8358187oab.86.1667244744371; Mon, 31 Oct 2022 12:32:24 -0700 (PDT) Received: from robh_at_kernel.org (66-90-144-107.dyn.grandenetworks.net. [66.90.144.107]) by smtp.gmail.com with ESMTPSA id m33-20020a056870562100b0012779ba00fesm3512244oao.2.2022.10.31.12.32.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 31 Oct 2022 12:32:23 -0700 (PDT) Received: (nullmailer pid 3293099 invoked by uid 1000); Mon, 31 Oct 2022 19:32:25 -0000 Date: Mon, 31 Oct 2022 14:32:25 -0500 From: Rob Herring To: Miquel Raynal Cc: Richard Weinberger , Vignesh Raghavendra , Tudor Ambarus , Pratyush Yadav , Michael Walle , linux-mtd@lists.infradead.org, Krzysztof Kozlowski , devicetree@vger.kernel.org, Chen-Yu Tsai , Naga Sureshkumar Relli , Linus Walleij , Manivannan Sadhasivam , Maxime Ripard , Sureshkumar Relli , linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-arm-msm@vger.kernel.org, Thomas Petazzoni Subject: Re: [PATCH 01/12] dt-bindings: mtd: Clarify all partition subnodes Message-ID: <20221031193225.GA3291000-robh@kernel.org> References: <20221028235933.934850-1-miquel.raynal@bootlin.com> <20221028235933.934850-2-miquel.raynal@bootlin.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20221028235933.934850-2-miquel.raynal@bootlin.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221031_123225_916826_53719339 X-CRM114-Status: GOOD ( 18.08 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Sat, Oct 29, 2022 at 01:59:22AM +0200, Miquel Raynal wrote: > Over time the various ways to define MTD partitions has evolved. Most of > the controllers support several different bindings. Let's define all > possible choices in one file and mark the legacy ones deprecated. This > way, we can just reference this file and avoid dupplicating these > definitions. > > Signed-off-by: Miquel Raynal > --- > Documentation/devicetree/bindings/mtd/mtd.yaml | 18 ++++++++++++++++++ > 1 file changed, 18 insertions(+) > > diff --git a/Documentation/devicetree/bindings/mtd/mtd.yaml b/Documentation/devicetree/bindings/mtd/mtd.yaml > index 25b91f25fcf4..9fcaa61b046c 100644 > --- a/Documentation/devicetree/bindings/mtd/mtd.yaml > +++ b/Documentation/devicetree/bindings/mtd/mtd.yaml > @@ -21,7 +21,25 @@ properties: > based name) in order to ease flash device identification and/or > describe what they are used for. > > + partitions: > + type: object > + properties: > + '#address-cells': true > + '#size-cells': true These should only be 1 or 2 which I don't think is defined anywhere else. > + > + patternProperties: > + "partition@[0-9a-f]+": > + $ref: partitions/partition.yaml > + > patternProperties: > + "@[0-9a-f]+$": > + $ref: partitions/partition.yaml > + deprecated: true > + > + "^partition@[0-9a-f]+": > + $ref: partitions/partition.yaml > + deprecated: true > + > "^otp(-[0-9]+)?$": > type: object > $ref: ../nvmem/nvmem.yaml# > -- > 2.34.1 > > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel