Received: by 2002:a89:2c3:0:b0:1ed:23cc:44d1 with SMTP id d3csp659623lqs; Tue, 5 Mar 2024 12:24:22 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXqOKArzsaC25MKDMoGla3/ugeSHd7FTFqBo1LybLlKiQ4TJQY7Oh49aLrQU6NUGFNoQ7UW11P4o4HrNjfquEocAouou3SSnrCPjIqsQg== X-Google-Smtp-Source: AGHT+IEHcQCwkM0gmSVmxpZAVe3pym8JHqcQ2BTugCY6BGsoNZ/782MudOVy1wfS4X0tSRX/J09V X-Received: by 2002:a17:907:986e:b0:a45:871e:7dc9 with SMTP id ko14-20020a170907986e00b00a45871e7dc9mr2895447ejc.1.1709670262327; Tue, 05 Mar 2024 12:24:22 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709670262; cv=pass; d=google.com; s=arc-20160816; b=fxKby08Z+Td/4E3MdiEeB6i8g42LxgjnTJUp3dPpy43UuNnMvyAlg3gSRUioyCtuxu yzLkR/JjCqZVh59AG8zxrZijSQoWBw7KGwWgAXyZptWH8aLfu7+GWbC016JFE+x6FcUC M3VrdrxUT9LNfjIBdQ/rT4w+ogNLnwgrtsXP5Cft0EPTPcHjMAEppmOrfm7/ZcQZU98C kGtUuZXtmC8m76pTXaIXlYqNJDiKeLBb3lcAyeYineK9/gOtt0JMxqC/cmRRjyeO9h1m 7UdYnWl5lE998lZ+zjPh+W5wWWcRopC1znsXv9AFvE6opkja8gGAGPMp/iJ84OueMtOE wqoQ== 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=7b0U4UolonphsJSsY71GkaPhH9JLmwcK9heEt9KG/KE=; fh=j7lw218M085b9rPtj+QACqlnmqhhsdWy5wQ1oNVKNQg=; b=tAeAaKSotWzsTxRuiaSMT5wtRDrEYqowuaKPR2dlFNwh45+NBpLi9NCxDJTnWs/FRa EXjq6xjPsBu2A7z9FnWB9rvSlizvhm2U0ObFq3QDPq8WmAlDzJk5pEFSOrqpt9j3t/ov oFi94Uxa/wJMBgGG7KkkPhg3FJC9IXnGLWP5ZPfRJibyUvEAUNth2gXto7Ti7j/EaRGC duqctVyGQwBAhVrBHFAuaV3DMUEX3oGRYhmsGZenqGfdopHaoADfTV/zyZgfZ6SLjGOv qdxRzABSDgbEbJhnpSb72aCvCVwErsloo/8RBVYYLUdtNG/SJ+x2xPx5Ft3JXfbUXb9k 8ljQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=makrotopia.org); spf=pass (google.com: domain of linux-kernel+bounces-92954-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-92954-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id cw13-20020a170906c78d00b00a43fd9e16a4si5083882ejb.17.2024.03.05.12.24.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Mar 2024 12:24:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-92954-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=makrotopia.org); spf=pass (google.com: domain of linux-kernel+bounces-92954-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-92954-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 148C81F2C477 for ; Tue, 5 Mar 2024 20:24:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B469F12A165; Tue, 5 Mar 2024 20:24:05 +0000 (UTC) Received: from pidgin.makrotopia.org (pidgin.makrotopia.org [185.142.180.65]) (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 7136D128374; Tue, 5 Mar 2024 20:24:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.142.180.65 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709670245; cv=none; b=nNLFUoC7r73QL8uUDzw1Ykc9xlOyWZ7oUuBfL9rX86czAIUX+ub/IfVkUrDvPYhpD9BcAnHszowrQCWLu0j7Xu2d2Ks28x2Er7z5Ac7xFaaNaVX8hb+1b8uefl9atTx9GVNPyRoKxQfUg7P2HCkwgM8cGEGnKfHfXs4mno3IV98= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709670245; c=relaxed/simple; bh=Ca48xLzAr4W59Rv2KeDaSbg/Ud1Fwzb1jEB+9rC9fZw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ibjNZhB/BGzo42Kc2ZDQIQYB+wHmAO7pg3u4XTTEl+/82+w0WpRgGddJRbXiTdadSMt39humTL1tIgP1lekI3nrX0nIVUiYdf5oM2UrhZoB8jPKCAgsS700TCnuO0nuI9Z/yQZbjUmlTXrLk6ZpVPzttUe8DqJcpUld2VjIYVoM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=makrotopia.org; spf=pass smtp.mailfrom=makrotopia.org; arc=none smtp.client-ip=185.142.180.65 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=makrotopia.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=makrotopia.org Received: from local by pidgin.makrotopia.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) (Exim 4.96.2) (envelope-from ) id 1rhbJt-0001ME-0P; Tue, 05 Mar 2024 20:23:25 +0000 Date: Tue, 5 Mar 2024 20:23:20 +0000 From: Daniel Golle To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Ulf Hansson , Jens Axboe , Daniel Golle , Dave Chinner , Jan Kara , Thomas =?iso-8859-1?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 Cc: Diping Zhang , Jianhui Zhao , Jieying Zeng , Chad Monroe , Adam Fox , John Crispin Subject: [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: Add bindings for block devices which are used to allow referencing nvmem bits on them. Signed-off-by: Daniel Golle --- .../bindings/block/block-device.yaml | 22 ++++++++ .../devicetree/bindings/block/partition.yaml | 51 +++++++++++++++++++ .../devicetree/bindings/block/partitions.yaml | 20 ++++++++ 3 files changed, 93 insertions(+) create mode 100644 Documentation/devicetree/bindings/block/block-device.yaml create mode 100644 Documentation/devicetree/bindings/block/partition.yaml create mode 100644 Documentation/devicetree/bindings/block/partitions.yaml diff --git a/Documentation/devicetree/bindings/block/block-device.yaml b/Documentation/devicetree/bindings/block/block-device.yaml new file mode 100644 index 0000000000000..c83ea525650ba --- /dev/null +++ b/Documentation/devicetree/bindings/block/block-device.yaml @@ -0,0 +1,22 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/block/block-device.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: block storage device + +description: | + This binding is generic and describes a block-oriented storage device. + +maintainers: + - Daniel Golle + +properties: + partitions: + $ref: /schemas/block/partitions.yaml + + nvmem-layout: + $ref: /schemas/nvmem/layouts/nvmem-layout.yaml# + +unevaluatedProperties: false 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. + + uuid: + $ref: /schemas/types.yaml#/definitions/string + description: + Matches partition by PARTUUID if present. + + nvmem-layout: + $ref: /schemas/nvmem/layouts/nvmem-layout.yaml# + description: + This container may reference an NVMEM layout parser. + +anyOf: + - required: + - partnum + + - required: + - partname + + - required: + - uuid + +unevaluatedProperties: false diff --git a/Documentation/devicetree/bindings/block/partitions.yaml b/Documentation/devicetree/bindings/block/partitions.yaml new file mode 100644 index 0000000000000..fd84c3ba8493b --- /dev/null +++ b/Documentation/devicetree/bindings/block/partitions.yaml @@ -0,0 +1,20 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/block/partitions.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Partitions on block devices + +description: | + This binding is generic and describes the content of the partitions container + node. + +maintainers: + - Daniel Golle + +patternProperties: + "^block-partition-.+$": + $ref: partition.yaml + +unevaluatedProperties: false -- 2.44.0