Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp247796pxb; Fri, 16 Apr 2021 04:50:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz0kG05AGCHpY6/Y6Dm6cRfaIGUalWuNb7JsaGbNarWJY3xC3tND0wyqJwKvg4g6rNMnNpt X-Received: by 2002:a63:5c0e:: with SMTP id q14mr7246542pgb.441.1618573833462; Fri, 16 Apr 2021 04:50:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618573833; cv=none; d=google.com; s=arc-20160816; b=A8fl7ofnDOfDDHKg1505mpu5cZlvZwmpQNzLlE6mYmcw1GEHev9i9iQOACQaZcderX HL0D1ukBcz6vSpCtC1waia9Z7LTm1HiszZZuXU6uVnXAmry+CkMjENN0Jk9CDUsgTeXl uEjSQ0/iNWh4ri5+7YFhPGAoI3gXEjLw+bx7OOzLncfTYhC/ieNe/V7ld9jk2UiISwxu L/bZ9eXeqSpf8SZxcuomDYCugdGw7pipiw87bgon7+kCSmjtZHCd4xS8qjeW3V+Tm5qA +JW7cBiQ4gveBGEjZjF8AurK/fLlsz6ABrwmdZbQd36b4/E+D/vyu6KM3KfNyC9BpfiX aSNA== 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=q5mlW+sn5FZ7Xj6idRbO0XplNjAvnEg7p0BfoTeHt+k=; b=RmqvxaiG69wSqc1C/esLjqpApIKZt0MR44dEsE5rP7VC5mKgiS+ycHe/praC9+GW5W N27Bs1sYbChCwh/4cZiMBlR4mhpJraM5+PpEgs8wzMCEmBgtVHl9TGeOkmoCWfw+Lokg FM+TciEfUCCu7qyc72P+LHeIGbeZbhCeM5Sql1PcfwQ5aosru3zsNUCbFpe+PhYhuIvM t+Z3jtokxX1LfKy21R6Am+/xG7u1cwfhYyOHTkDO4fiGe8tIXVg+kP2MslciaKYLw6cb RCR2Rr5LY2GaAKmj4fFpn8e0YxO5CpiBDq3+uaMwvwxwKBaMy5fh6y4wiG3bEkeFzsm6 9d0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=ek3NUy1s; 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 u76si6800381pgc.268.2021.04.16.04.50.21; Fri, 16 Apr 2021 04:50:33 -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=ek3NUy1s; 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 S241812AbhDPLuF (ORCPT + 99 others); Fri, 16 Apr 2021 07:50:05 -0400 Received: from ssl.serverraum.org ([176.9.125.105]:40143 "EHLO ssl.serverraum.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239551AbhDPLuC (ORCPT ); Fri, 16 Apr 2021 07:50:02 -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 2C0C022255; Fri, 16 Apr 2021 13:49:35 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1618573775; 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=q5mlW+sn5FZ7Xj6idRbO0XplNjAvnEg7p0BfoTeHt+k=; b=ek3NUy1sL9NBd33wOCAtZVgnMywkWLXFHPDBBdjkWZGBMwSGCTGAcP6VN0GG4ymmPezY+F pZ9CuQ3KaZfM1h5rYsEXZhrHpvRamgy66ZRMpJpLEl84VMpzBosVgUnSQW8pmij9VnshiO wXQR4RElNFyebJb+xD2Z9cG34POGTj0= 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 , Michael Walle , Rob Herring Subject: [PATCH 2/5] dt-bindings: mtd: add YAML schema for the generic MTD bindings Date: Fri, 16 Apr 2021 13:49:25 +0200 Message-Id: <20210416114928.27758-3-michael@walle.cc> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210416114928.27758-1-michael@walle.cc> References: <20210416114928.27758-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 Reviewed-by: Rob Herring --- Changes since RFC: - use real device compatibles .../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..086b0ecd1604 --- /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 = "jedec,spi-nor"; + label = "System-firmware"; + }; + }; + +... -- 2.20.1