linux-mtd.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: Miquel Raynal <miquel.raynal@bootlin.com>
To: Rob Herring <robh+dt@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	devicetree@vger.kernel.org
Cc: Richard Weinberger <richard@nod.at>,
	Vignesh Raghavendra <vigneshr@ti.com>,
	Tudor Ambarus <Tudor.Ambarus@microchip.com>,
	Pratyush Yadav <pratyush@kernel.org>,
	Michael Walle <michael@walle.cc>, <linux-mtd@lists.infradead.org>,
	Thomas Petazzoni <thomas.petazzoni@bootlin.com>,
	<linux-kernel@vger.kernel.org>,
	Miquel Raynal <miquel.raynal@bootlin.com>,
	Rob Herring <robh@kernel.org>
Subject: [PATCH v3 02/17] dt-bindings: mtd: Remove useless file about partitions
Date: Mon, 14 Nov 2022 10:03:00 +0100	[thread overview]
Message-ID: <20221114090315.848208-3-miquel.raynal@bootlin.com> (raw)
In-Reply-To: <20221114090315.848208-1-miquel.raynal@bootlin.com>

There is already a real partitions.yaml file, so assuming everybody
knows hot to read yaml schema now, this text file is no longer needed,
so drop it.

Depending on the situation, the lines referring to this file are either
dropped or edited to point to mtd.yaml which includes partition{,s}.yaml.

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Reviewed-by: Rob Herring <robh@kernel.org>
---
 .../devicetree/bindings/mtd/atmel-nand.txt    |  6 ++--
 .../devicetree/bindings/mtd/ingenic,nand.yaml |  1 -
 .../devicetree/bindings/mtd/lpc32xx-mlc.txt   |  2 +-
 .../devicetree/bindings/mtd/lpc32xx-slc.txt   |  2 +-
 .../devicetree/bindings/mtd/mtk-nand.txt      |  2 +-
 .../devicetree/bindings/mtd/partition.txt     | 33 -------------------
 drivers/mtd/parsers/Kconfig                   |  2 +-
 7 files changed, 6 insertions(+), 42 deletions(-)
 delete mode 100644 Documentation/devicetree/bindings/mtd/partition.txt

diff --git a/Documentation/devicetree/bindings/mtd/atmel-nand.txt b/Documentation/devicetree/bindings/mtd/atmel-nand.txt
index 3aa297c97ab6..50645828ac20 100644
--- a/Documentation/devicetree/bindings/mtd/atmel-nand.txt
+++ b/Documentation/devicetree/bindings/mtd/atmel-nand.txt
@@ -45,10 +45,8 @@ Optional properties:
 - atmel,rb: an integer identifying the native Ready/Busy pin. Only meaningful
 	    on sama5 SoCs.
 
-All generic properties described in
-Documentation/devicetree/bindings/mtd/{common,nand}.txt also apply to the NAND
-device node, and NAND partitions should be defined under the NAND node as
-described in Documentation/devicetree/bindings/mtd/partition.txt.
+All generic properties are described in the generic yaml files under
+Documentation/devicetree/bindings/mtd/.
 
 * ECC engine (PMECC) bindings:
 
diff --git a/Documentation/devicetree/bindings/mtd/ingenic,nand.yaml b/Documentation/devicetree/bindings/mtd/ingenic,nand.yaml
index 8c272c842bfd..87b2944d0d1b 100644
--- a/Documentation/devicetree/bindings/mtd/ingenic,nand.yaml
+++ b/Documentation/devicetree/bindings/mtd/ingenic,nand.yaml
@@ -34,7 +34,6 @@ properties:
     type: object
     description:
       Node containing description of fixed partitions.
-      See Documentation/devicetree/bindings/mtd/partition.txt
 
 patternProperties:
   "^nand@[a-f0-9]$":
diff --git a/Documentation/devicetree/bindings/mtd/lpc32xx-mlc.txt b/Documentation/devicetree/bindings/mtd/lpc32xx-mlc.txt
index 6d60bc3063f5..64c06aa05ac7 100644
--- a/Documentation/devicetree/bindings/mtd/lpc32xx-mlc.txt
+++ b/Documentation/devicetree/bindings/mtd/lpc32xx-mlc.txt
@@ -19,7 +19,7 @@ accuracy:)
 - nxp,wr_low: WR_LOW
 
 Optional subnodes:
-- Partitions, see Documentation/devicetree/bindings/mtd/partition.txt
+- Partitions, see Documentation/devicetree/bindings/mtd/mtd.yaml
 
 Example:
 
diff --git a/Documentation/devicetree/bindings/mtd/lpc32xx-slc.txt b/Documentation/devicetree/bindings/mtd/lpc32xx-slc.txt
index d94edc0fc554..39f17630a301 100644
--- a/Documentation/devicetree/bindings/mtd/lpc32xx-slc.txt
+++ b/Documentation/devicetree/bindings/mtd/lpc32xx-slc.txt
@@ -20,7 +20,7 @@ clock speed:)
 - nxp,rsetup: Read setup time (R_SETUP)
 
 Optional subnodes:
-- Partitions, see Documentation/devicetree/bindings/mtd/partition.txt
+- Partitions, see Documentation/devicetree/bindings/mtd/mtd.yaml
 
 Example:
 
diff --git a/Documentation/devicetree/bindings/mtd/mtk-nand.txt b/Documentation/devicetree/bindings/mtd/mtk-nand.txt
index 4d3ec5e4ff8a..839ea2f93d04 100644
--- a/Documentation/devicetree/bindings/mtd/mtk-nand.txt
+++ b/Documentation/devicetree/bindings/mtd/mtk-nand.txt
@@ -131,7 +131,7 @@ Example:
 	};
 
 NAND chip optional subnodes:
-- Partitions, see Documentation/devicetree/bindings/mtd/partition.txt
+- Partitions, see Documentation/devicetree/bindings/mtd/mtd.yaml
 
 Example:
 	nand@0 {
diff --git a/Documentation/devicetree/bindings/mtd/partition.txt b/Documentation/devicetree/bindings/mtd/partition.txt
deleted file mode 100644
index ead90e8274d6..000000000000
--- a/Documentation/devicetree/bindings/mtd/partition.txt
+++ /dev/null
@@ -1,33 +0,0 @@
-Flash partitions in device tree
-===============================
-
-Flash devices can be partitioned into one or more functional ranges (e.g. "boot
-code", "nvram", "kernel").
-
-Different devices may be partitioned in a different ways. Some may use a fixed
-flash layout set at production time. Some may use on-flash table that describes
-the geometry and naming/purpose of each functional region. It is also possible
-to see these methods mixed.
-
-To assist system software in locating partitions, we allow describing which
-method is used for a given flash device. To describe the method there should be
-a subnode of the flash device that is named 'partitions'. It must have a
-'compatible' property, which is used to identify the method to use.
-
-When a single partition is represented with a DT node (it depends on a used
-format) it may also be described using above rules ('compatible' and optionally
-some extra properties / subnodes). It allows describing more complex,
-hierarchical (multi-level) layouts and should be used if there is some
-significant relation between partitions or some partition internally uses
-another partitioning method.
-
-Available bindings are listed in the "partitions" subdirectory.
-
-
-Deprecated: partitions defined in flash node
-============================================
-
-For backwards compatibility partitions as direct subnodes of the flash device are
-supported. This use is discouraged.
-NOTE: also for backwards compatibility, direct subnodes that have a compatible
-string are not considered partitions, as they may be used for other bindings.
diff --git a/drivers/mtd/parsers/Kconfig b/drivers/mtd/parsers/Kconfig
index aaa06050c9bc..b53b8bc7c9e6 100644
--- a/drivers/mtd/parsers/Kconfig
+++ b/drivers/mtd/parsers/Kconfig
@@ -75,7 +75,7 @@ config MTD_OF_PARTS
 	  This provides a open firmware device tree partition parser
 	  which derives the partition map from the children of the
 	  flash memory node, as described in
-	  Documentation/devicetree/bindings/mtd/partition.txt.
+	  Documentation/devicetree/bindings/mtd/mtd.yaml.
 
 config MTD_OF_PARTS_BCM4908
 	bool "BCM4908 partitioning support"
-- 
2.34.1


______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

  parent reply	other threads:[~2022-11-14  9:04 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-14  9:02 [PATCH v3 00/17] Improve MTD bindings Miquel Raynal
2022-11-14  9:02 ` [PATCH v3 01/17] dt-bindings: mtd: Clarify all partition subnodes Miquel Raynal
2022-11-17 21:16   ` Miquel Raynal
2022-11-14  9:03 ` Miquel Raynal [this message]
2022-11-17 21:16   ` [PATCH v3 02/17] dt-bindings: mtd: Remove useless file about partitions Miquel Raynal
2022-11-14  9:03 ` [PATCH v3 03/17] dt-bindings: mtd: nand-chip: Reference mtd.yaml Miquel Raynal
2022-11-17 21:16   ` Miquel Raynal
2022-11-14  9:03 ` [PATCH v3 04/17] dt-bindings: mtd: nand: Drop common properties already defined in generic files Miquel Raynal
2022-11-17 21:16   ` Miquel Raynal
2022-11-14  9:03 ` [PATCH v3 05/17] dt-bindings: mtd: nand: Standardize the child node name Miquel Raynal
2022-11-17 21:16   ` Miquel Raynal
2022-11-14  9:03 ` [PATCH v3 06/17] dt-bindings: mtd: ingenic: Mark partitions in the controller node as deprecated Miquel Raynal
2022-11-17 21:16   ` Miquel Raynal
2022-11-14  9:03 ` [PATCH v3 07/17] dt-bindings: mtd: onenand: Mention the expected node name Miquel Raynal
2022-11-17 21:15   ` Miquel Raynal
2022-11-14  9:03 ` [PATCH v3 08/17] dt-bindings: mtd: sunxi-nand: Add an example to validate the bindings Miquel Raynal
2022-11-17 21:15   ` Miquel Raynal
2022-11-14  9:03 ` [PATCH v3 09/17] dt-bindings: mtd: spi-nor: Drop common properties Miquel Raynal
2022-11-17 21:15   ` Miquel Raynal
2022-11-14  9:03 ` [PATCH v3 10/17] dt-bindings: mtd: physmap: Reuse the generic definitions Miquel Raynal
2022-11-17 21:15   ` Miquel Raynal
2022-11-14  9:03 ` [PATCH v3 11/17] dt-bindings: mtd: partitions: Constrain the list of parsers Miquel Raynal
2022-11-17 21:15   ` Miquel Raynal
2022-11-14  9:03 ` [PATCH v3 12/17] dt-bindings: mtd: partitions: Change qcom,smem-part partition type Miquel Raynal
2022-11-17 21:15   ` Miquel Raynal
2022-11-14  9:03 ` [PATCH v3 13/17] dt-bindings: mtd: nvmem-cells: Drop range property from example Miquel Raynal
2022-11-16 20:56   ` Rob Herring
2022-11-17 21:15   ` Miquel Raynal
2022-11-14  9:03 ` [PATCH v3 14/17] dt-bindings: mtd: nvmem-cells: Inherit from MTD partitions Miquel Raynal
2022-11-17 21:15   ` Miquel Raynal
2022-11-14  9:03 ` [PATCH v3 15/17] dt-bindings: mtd: Argue in favor of keeping additionalProperties set to true Miquel Raynal
2022-11-17 21:15   ` Miquel Raynal
2022-11-14  9:03 ` [PATCH v3 16/17] dt-bindings: mtd: Drop object types when referencing other files Miquel Raynal
2022-11-17 21:15   ` Miquel Raynal
2022-11-14  9:03 ` [PATCH v3 17/17] dt-bindings: mtd: Standardize the style in the examples Miquel Raynal
2022-11-17 21:15   ` Miquel Raynal

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20221114090315.848208-3-miquel.raynal@bootlin.com \
    --to=miquel.raynal@bootlin.com \
    --cc=Tudor.Ambarus@microchip.com \
    --cc=devicetree@vger.kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mtd@lists.infradead.org \
    --cc=michael@walle.cc \
    --cc=pratyush@kernel.org \
    --cc=richard@nod.at \
    --cc=robh+dt@kernel.org \
    --cc=robh@kernel.org \
    --cc=thomas.petazzoni@bootlin.com \
    --cc=vigneshr@ti.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).