Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3648081pxf; Mon, 22 Mar 2021 11:21:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzWOk+iDVNCUD8FajlsjJokgjv/QDK7ZDHzHHj6bbPz/DZx+AByJAEed6SLDPOBdQ/TdIAi X-Received: by 2002:a17:906:13c4:: with SMTP id g4mr1118738ejc.390.1616437318768; Mon, 22 Mar 2021 11:21:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616437318; cv=none; d=google.com; s=arc-20160816; b=XCBhfJKYH5JV5X02rg/fL/9y0YSc2pHFbCHJPAuycqx8EecyLW4m7kW9l5Qatj1aIO 540D18oYf2HM+17fXWdtcu2XeTuAV3ws/9pTQ1puRDrMjZlKWlzVQwvwki9KW4mSeHTd ESan7yMX6G2Hwi+aVVWcmdzH0of1FCKARcUrourf0igrbbYQ/rfgSbYtcc0UNR08TDZ8 voISxopX+KwqCB4GyIkTXI1dii3FRULWjU2nlNebt6re0dtAw3OBCn5s5VowzT2QGe/i Mt6C0C+yaIFOWO6gPPK/HkoAEcI1WtIqWFQ2Nx6WV5gdC6UbSFhbkCtBw8gdwoi+FGrA Pzxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=qw8umJ2JoyZ8T0bgCSEERZKN81p4KztCiLS9kzIRYso=; b=feEjJLzvsWO3EpIOfEOWfRsep0B5lK7gM8QXDL4B5Ucbr4DNFFb9yiWLzMoSIpI+13 io7P7dIci5eN6F/TAnNr91BGE3gsdkjtVCf/h4saSF2I6RuBLduBdHh4mkLSIMq6fDRs vHRCTGLXebjqkNNTbu8g5aoyMc8pt/4fWOghl1hD5I6ExrYJCDydZ41+3nV4fFv4tQdE h6lQX0rdTy7l383Qem+2iI3CYllouT6aylsX2mCY2Hn2EkY7rtuBOml8pUOSfycohyq0 7frHUNbYIKapquN3tKR8u/+gKeGGHEYQ2/k4oz07YmOEc5e86VJktws9CWGrdRXlKZyE EyOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=RNQEXo0C; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dx21si12199470ejb.567.2021.03.22.11.21.36; Mon, 22 Mar 2021 11:21:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=RNQEXo0C; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231716AbhCVSUY (ORCPT + 99 others); Mon, 22 Mar 2021 14:20:24 -0400 Received: from ssl.serverraum.org ([176.9.125.105]:47545 "EHLO ssl.serverraum.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231442AbhCVSUJ (ORCPT ); Mon, 22 Mar 2021 14:20:09 -0400 Received: from mwalle01.fritz.box (unknown [IPv6:2a02:810c:c200:2e91:fa59:71ff:fe9b:b851]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ssl.serverraum.org (Postfix) with ESMTPSA id A561A2224F; Mon, 22 Mar 2021 19:20:06 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1616437207; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=qw8umJ2JoyZ8T0bgCSEERZKN81p4KztCiLS9kzIRYso=; b=RNQEXo0C8OUA6uRVl2yUsqB98r2YYrxfTL8VbFlkXWdFPwAXR6ZF1bGN5vzGgSLbOmJe8X HpwP6e1aog5RaiKkb969xPhWkBrHRw7i5NeoW9cgtGWv0pEzd+hFGnYBQpN2DlqWoHfknt 9IjyQLCMtvszXWHvvus1YzptrnAbtIc= From: Michael Walle To: linux-mtd@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Rob Herring , Srinivas Kandagatla , =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= , Michael Walle Subject: [RFC PATCH 2/4] dt-bindings: mtd: add YAML schema for the generic MTD bindings Date: Mon, 22 Mar 2021 19:19:47 +0100 Message-Id: <20210322181949.2805-3-michael@walle.cc> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210322181949.2805-1-michael@walle.cc> References: <20210322181949.2805-1-michael@walle.cc> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Convert MTD's common.txt to mtd.yaml. Signed-off-by: Michael Walle --- Btw, I've asked Miquel if I can add it as the maintainer. .../devicetree/bindings/mtd/common.txt | 16 +------- .../devicetree/bindings/mtd/mtd.yaml | 39 +++++++++++++++++++ 2 files changed, 40 insertions(+), 15 deletions(-) create mode 100644 Documentation/devicetree/bindings/mtd/mtd.yaml diff --git a/Documentation/devicetree/bindings/mtd/common.txt b/Documentation/devicetree/bindings/mtd/common.txt index fc068b923d7a..ae16f9ea8606 100644 --- a/Documentation/devicetree/bindings/mtd/common.txt +++ b/Documentation/devicetree/bindings/mtd/common.txt @@ -1,15 +1 @@ -* Common properties of all MTD devices - -Optional properties: -- label: user-defined MTD device name. Can be used to assign user - friendly names to MTD devices (instead of the flash model or flash - controller based name) in order to ease flash device identification - and/or describe what they are used for. - -Example: - - flash@0 { - label = "System-firmware"; - - /* flash type specific properties */ - }; +This file has been moved to mtd.yaml. diff --git a/Documentation/devicetree/bindings/mtd/mtd.yaml b/Documentation/devicetree/bindings/mtd/mtd.yaml new file mode 100644 index 000000000000..321259aab0f6 --- /dev/null +++ b/Documentation/devicetree/bindings/mtd/mtd.yaml @@ -0,0 +1,39 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mtd/mtd.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MTD (Memory Technology Device) Device Tree Bindings + +maintainers: + - Miquel Raynal + - Richard Weinberger + +properties: + $nodename: + pattern: "^flash(@.*)?$" + + label: + description: + User-defined MTD device name. Can be used to assign user friendly + names to MTD devices (instead of the flash model or flash controller + based name) in order to ease flash device identification and/or + describe what they are used for. + +additionalProperties: true + +examples: + - | + spi { + #address-cells = <1>; + #size-cells = <0>; + + flash@0 { + reg = <0>; + compatible = "some,flash"; + label = "System-firmware"; + }; + }; + +... -- 2.20.1