dt-bindings: mtd: add DT binding for s3c2410 flash controller

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Fri Dec 16 11:59:03 PST 2016


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=7baf9a04e58ab6a79172dac7612c3c4d18dadcca
Commit:     7baf9a04e58ab6a79172dac7612c3c4d18dadcca
Parent:     e9f66ae23c209eec617130126a23bf547bf7a6d8
Author:     Sergio Prado <sergio.prado at e-labworks.com>
AuthorDate: Wed Oct 26 21:59:54 2016 -0200
Committer:  Boris Brezillon <boris.brezillon at free-electrons.com>
CommitDate: Mon Nov 7 14:48:36 2016 +0100

    dt-bindings: mtd: add DT binding for s3c2410 flash controller
    
    Adds the device tree bindings description for Samsung S3C2410 and
    compatible NAND flash controller.
    
    Acked-by: Rob Herring <robh at kernel.org>
    Acked-by: Krzysztof Kozlowski <krzk at kernel.org>
    Signed-off-by: Sergio Prado <sergio.prado at e-labworks.com>
    Signed-off-by: Boris Brezillon <boris.brezillon at free-electrons.com>
---
 .../devicetree/bindings/mtd/samsung-s3c2410.txt    | 56 ++++++++++++++++++++++
 1 file changed, 56 insertions(+)

diff --git a/Documentation/devicetree/bindings/mtd/samsung-s3c2410.txt b/Documentation/devicetree/bindings/mtd/samsung-s3c2410.txt
new file mode 100644
index 0000000..0040eb8
--- /dev/null
+++ b/Documentation/devicetree/bindings/mtd/samsung-s3c2410.txt
@@ -0,0 +1,56 @@
+* Samsung S3C2410 and compatible NAND flash controller
+
+Required properties:
+- compatible : The possible values are:
+	"samsung,s3c2410-nand"
+	"samsung,s3c2412-nand"
+	"samsung,s3c2440-nand"
+- reg : register's location and length.
+- #address-cells, #size-cells : see nand.txt
+- clocks : phandle to the nand controller clock
+- clock-names : must contain "nand"
+
+Optional child nodes:
+Child nodes representing the available nand chips.
+
+Optional child properties:
+- nand-ecc-mode : see nand.txt
+- nand-on-flash-bbt : see nand.txt
+
+Each child device node may optionally contain a 'partitions' sub-node,
+which further contains sub-nodes describing the flash partition mapping.
+See partition.txt for more detail.
+
+Example:
+
+nand-controller at 4e000000 {
+	compatible = "samsung,s3c2440-nand";
+	reg = <0x4e000000 0x40>;
+
+	#address-cells = <1>;
+        #size-cells = <0>;
+
+	clocks = <&clocks HCLK_NAND>;
+	clock-names = "nand";
+
+	nand {
+		nand-ecc-mode = "soft";
+		nand-on-flash-bbt;
+
+		partitions {
+			compatible = "fixed-partitions";
+			#address-cells = <1>;
+			#size-cells = <1>;
+
+			partition at 0 {
+				label = "u-boot";
+				reg = <0 0x040000>;
+			};
+
+			partition at 40000 {
+				label = "kernel";
+				reg = <0x040000 0x500000>;
+			};
+		};
+	};
+};



More information about the linux-mtd-cvs mailing list