Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp2062083pxy; Sat, 24 Apr 2021 04:07:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyrLOsScKbD7yf1Fx2pV/i0WxqTN/yIGgU27yNzXpBTI4v0yVj/tMIqN0Z523Xly8vD72s1 X-Received: by 2002:a17:902:8d84:b029:eb:37bd:a3f7 with SMTP id v4-20020a1709028d84b02900eb37bda3f7mr8309519plo.26.1619262474646; Sat, 24 Apr 2021 04:07:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619262474; cv=none; d=google.com; s=arc-20160816; b=M54H9HRi5kzUgKveeUlxfkC4I2QsidBqaVcRx95glj7FknlZuphrDWgLMLnYBlm0AI //GIRG846e6KRFIfbJyl/MIMzMmhHL/C/OlCIHmqeStezfzf5tIXCIUW6zZpDqwnf1sK O/qnoNaxvjvz2xTgkY9FCf1SivMiJBufU9T9HPx/C1RBtt61jAW4MVAlakXl/YIMVstZ w+8BqrRQ1UWDFbLjrOQYSOJ0nV3ksDqlpu2B0icvzijeoULd6m+zSS6/MO5QUJnaxnLz KvkvB89CL0/R1fuV6dUJ2svSK3mF0QQQuuzCZOuhcOY9v3kKrD2FBXoUEnPP6V0Wu5Oy FlXw== 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=yUmNwVT3YrVa+lmmEf/AbsFSZKOFCNzLcc4BFA/aGI0=; b=GfAq6nmcdj87Hs6E1EkfDrWGZKHjX1QnoHHSVuTJK5AG4aSFQFy2TzDs/+A1lGHann Nzb6wNCPF6CuY5ucXXsmhqvbc9zAT2Z2NmeREV5yvdDETa/UNF9yobhGAfHwb7Cf0eLC gdmKVwayXbPoMvoOvWkedWxpH73V0gYHQK7Jb9dQ4d3g1GAM9vU5cLILb9qpZSxtGtyV iYECzBNQ3nwyaVrL2W7a+m+MSoEq/u3s6pR+r2ySw/d6D+qsuPL/jFSHqoLFHthqGuA4 WJFnHm/DxN/kCA4xEKSaWkzJ2n5Gk5ZQHTRybFVJ5OatPVyYklsivP5GlLKGFpkxcb0o I6lA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=OsSrd5Sn; 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 a10si10794692pls.150.2021.04.24.04.07.29; Sat, 24 Apr 2021 04:07:54 -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=OsSrd5Sn; 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 S231665AbhDXLHY (ORCPT + 99 others); Sat, 24 Apr 2021 07:07:24 -0400 Received: from ssl.serverraum.org ([176.9.125.105]:36151 "EHLO ssl.serverraum.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229848AbhDXLHA (ORCPT ); Sat, 24 Apr 2021 07:07:00 -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 D1E7A2224E; Sat, 24 Apr 2021 13:06:17 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1619262378; 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=yUmNwVT3YrVa+lmmEf/AbsFSZKOFCNzLcc4BFA/aGI0=; b=OsSrd5SnMAmhm9l6z/0HtHC0y4OXjb7ktzLxxYrduwWtjlmxE+ko9l4h/DR74ToA/Z0SJA BjeS1dF4PRe9jjh4qSFuX2SBTqnpdsPvt0PazL4OXvwf0E7upULzyLJTEfqB1xGFiba/Ti odvXeR6c4hNKptpjYfUGoNtFY3rlHbM= 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 v2 2/5] dt-bindings: mtd: add YAML schema for the generic MTD bindings Date: Sat, 24 Apr 2021 13:06:05 +0200 Message-Id: <20210424110608.15748-3-michael@walle.cc> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210424110608.15748-1-michael@walle.cc> References: <20210424110608.15748-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 v1: - none 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