Received: by 2002:a89:2c3:0:b0:1ed:23cc:44d1 with SMTP id d3csp903156lqs; Tue, 5 Mar 2024 23:24:06 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWL9OqScms/W4midhvW9TaurZ8AUs5FWk0wv/OQrJm179FiLay5vMwDIRGt4wb+crcIo5+5V85OaasW86RmOGPVyJpVu+qlL+qy3LKlbQ== X-Google-Smtp-Source: AGHT+IHRqkHH1l9Tj1+XOtmNu1ddXg3I7+f/1Nn5+sruAnqkgTC6Igj+BAJzw0Bo0NIcvd80omfQ X-Received: by 2002:a17:906:d9d0:b0:a43:6cd2:7bb7 with SMTP id qk16-20020a170906d9d000b00a436cd27bb7mr9017057ejb.47.1709709846623; Tue, 05 Mar 2024 23:24:06 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709709846; cv=pass; d=google.com; s=arc-20160816; b=T1F6vO0vnus8BRUx5LQj1cMhk+SULsZzO/hovVcLyspHTSuM+1Fc+h1vmP6UaEvASu jZ4wrQC0BFwLxKQDG3WwoC0zh0xtT/N5hSg4QoaGDrF77MiuBYkDrOAMLj9qLyIvuUhu gB3eswt/8FKsthS3I/wyGQTOj26pUW3G39jPyw29nTlORp3J8/IlwJWMxFzQ31Jt8Jzs SIdrUakKRFo8kZdxENCGthgvTpBvfJUveJ8iAOp/xtLRHJI0bMTp/BW7XqY7feO1xYeG cCQ3TtC6tOD0jV2875a52wIabwJ00zfFCRFDsI27/JzfNxvR4VlR1Do8Q9CYHbZcE07F f+ZQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=dXph8x/olSleoTlyOQzW4+VAeNgjXG9RZC/GDYgbk2o=; fh=WkN52zhs5Lrb4/wIN7Dwm2wOt3KF3J8eGFRnr1+/LWc=; b=Wp0cPfInBQ2x7ZeJub801YjVjc5+kY1/TBkQDZ2G0+ppGjSfPDG3MWi41nEt9tv+66 3CLSrb9islWQoOclizMWhTDXBN8ca/WLyjLgXme6JaN6itFP9oGXORFh6ZQcxCtmTeHt D/JH0IxaAZ2pfv7P2UsA6FfNFfrsYpiK9VXDe2+8Vx5VkPbIa3S0iFLFSqbBIEr4ZFZD N+jE4xar4NfXufrDuuvA0rc0bniWdOkoeKjns9Ibl0QjZynkk88VFDkoUbzUutEzJ4tl PenYGJVvveyb2oMwjlNAvpX5XXg7rWbZ74HgOSb8XvkFAluJTKIolYXPMhfY041Dsggt DL2g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=pengutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-93424-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-93424-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id m11-20020a170906234b00b00a3fc622b1a8si5556561eja.595.2024.03.05.23.24.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Mar 2024 23:24:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-93424-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=pengutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-93424-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-93424-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 5C5271F224EB for ; Wed, 6 Mar 2024 07:24:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9A1CA5C8E3; Wed, 6 Mar 2024 07:24:01 +0000 (UTC) Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [185.203.201.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6B8B44E1CC for ; Wed, 6 Mar 2024 07:23:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.203.201.7 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709709841; cv=none; b=VpBfMPmak+kdx4baZkhjBrML1C5IFLK39p7XOwArTePoXT3ewEQXShnT0ILY9TMt5o6hCii8ix7Bhz1JyDlMwM/5JhhU3DXsH8ujkpzQVDbzB6LuNOpAjZz3ZM8AoLdLjplxD7ut/iV/ZyYviAom1VaS8sBrYetEchnp7ACGrXk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709709841; c=relaxed/simple; bh=+B0TJc/kRe/wrIincWxLSZ37rVccCTI1iUTwH/ns59w=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=YlZWG1zEaEX8Srq0TceGRM0iZYP2zTtBcBimgU9xWcC+Std1QyfQznCUA1Xsux22lgwhdxd5JtP7GanTN+NVBsfjT+eZicdflrEWjYwRUngYPKqNpKHVarS2RIAyMw53hXpgu9keea8cnT+r33i4jnoNzOro75ImOMW/9v9eIsc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de; spf=pass smtp.mailfrom=pengutronix.de; arc=none smtp.client-ip=185.203.201.7 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pengutronix.de Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rhlcM-0006zE-L4; Wed, 06 Mar 2024 08:23:10 +0100 Received: from [2a0a:edc0:2:b01:1d::c5] (helo=pty.whiteo.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rhlcC-004hXC-0n; Wed, 06 Mar 2024 08:23:00 +0100 Received: from sha by pty.whiteo.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1rhlcB-004oTB-2t; Wed, 06 Mar 2024 08:22:59 +0100 Date: Wed, 6 Mar 2024 08:22:59 +0100 From: Sascha Hauer To: Daniel Golle Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Ulf Hansson , Jens Axboe , Dave Chinner , Jan Kara , Thomas =?iso-8859-15?Q?Wei=DFschuh?= , Christian Brauner , Li Lingfeng , Damien Le Moal , Min Li , Adrian Hunter , Hannes Reinecke , Christian Loehle , Avri Altman , Bean Huo , Yeqi Fu , Victor Shih , Christophe JAILLET , "Ricardo B. Marliere" , Greg Kroah-Hartman , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mmc@vger.kernel.org, linux-block@vger.kernel.org, Diping Zhang , Jianhui Zhao , Jieying Zeng , Chad Monroe , Adam Fox , John Crispin Subject: Re: [RFC PATCH v2 1/8] dt-bindings: block: add basic bindings for block devices Message-ID: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-Accept-Language: de,en X-Accept-Content-Type: text/plain X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: sha@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Hi Daniel, On Tue, Mar 05, 2024 at 08:23:20PM +0000, Daniel Golle wrote: > diff --git a/Documentation/devicetree/bindings/block/partition.yaml b/Documentation/devicetree/bindings/block/partition.yaml > new file mode 100644 > index 0000000000000..df561dd33cbc9 > --- /dev/null > +++ b/Documentation/devicetree/bindings/block/partition.yaml > @@ -0,0 +1,51 @@ > +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/block/partition.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Partition on a block device > + > +description: | > + This binding describes a partition on a block storage device. > + Partitions may be matched by a combination of partition number, name, > + and UUID. > + > +maintainers: > + - Daniel Golle > + > +properties: > + $nodename: > + pattern: '^block-partition-.+$' > + > + partnum: > + $ref: /schemas/types.yaml#/definitions/uint32 > + description: > + Matches partition by number if present. > + > + partname: > + $ref: /schemas/types.yaml#/definitions/string > + description: > + Matches partition by PARTNAME if present. In the mtd world we originally had the partition nodes directly under the hardware device node as well. That was changed to put a partitions subnode between the hardware device node and the partitions. From fe2585e9c29a ("doc: dt: mtd: support partitions in a special 'partitions' subnode"): To avoid conflict with other drivers using subnodes of the mtd device create only one ofpart-specific node rather than any number of arbitrary partition subnodes. Does it make sense to do the same for block devices? Sascha -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |