mtd: add DT bindings for the Cortina Systems Gemini Flash

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Sun Feb 12 18:59:01 PST 2017


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=22f090a4b15bf08aab30d8bcdc93d6dc9d07c9a7
Commit:     22f090a4b15bf08aab30d8bcdc93d6dc9d07c9a7
Parent:     be5e5099183301fb7920f8f6b66bd3ac1f820a97
Author:     Linus Walleij <linus.walleij at linaro.org>
AuthorDate: Sun Jan 22 13:21:19 2017 +0100
Committer:  Brian Norris <computersforpeace at gmail.com>
CommitDate: Wed Feb 8 11:36:10 2017 -0800

    mtd: add DT bindings for the Cortina Systems Gemini Flash
    
    This adds device tree bindings for the Cortina systems Gemini
    flash controller, a simple physmap which however need a few
    syscon bits to be poked to operate properly.
    
    Cc: Janos Laube <janos.dev at gmail.com>
    Cc: Paulius Zaleckas <paulius.zaleckas at gmail.com>
    Cc: Hans Ulli Kroll <ulli.kroll at googlemail.com>
    Cc: Florian Fainelli <f.fainelli at gmail.com>
    Cc: devicetree at vger.kernel.org
    Signed-off-by: Linus Walleij <linus.walleij at linaro.org>
    Reviewed-by: Marek Vasut <marek.vasut at gmail.com>
    Acked-by: Rob Herring <robh at kernel.org>
    Signed-off-by: Brian Norris <computersforpeace at gmail.com>
---
 .../bindings/mtd/cortina,gemini-flash.txt          | 24 ++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/Documentation/devicetree/bindings/mtd/cortina,gemini-flash.txt b/Documentation/devicetree/bindings/mtd/cortina,gemini-flash.txt
new file mode 100644
index 0000000..3fa1b34
--- /dev/null
+++ b/Documentation/devicetree/bindings/mtd/cortina,gemini-flash.txt
@@ -0,0 +1,24 @@
+Flash device on Cortina Systems Gemini SoC
+
+This flash is regular CFI compatible (Intel or AMD extended) flash chips with
+some special bits that can be controlled by the machine's system controller.
+
+Required properties:
+- compatible : must be "cortina,gemini-flash", "cfi-flash";
+- reg : memory address for the flash chip
+- syscon : must be a phandle to the system controller
+- bank-width : width in bytes of flash interface, should be <2>
+
+For the rest of the properties, see mtd-physmap.txt.
+
+The device tree may optionally contain sub-nodes describing partitions of the
+address space. See partition.txt for more detail.
+
+Example:
+
+flash at 30000000 {
+	compatible = "cortina,gemini-flash", "cfi-flash";
+	reg = <0x30000000 0x01000000>;
+	syscon = <&syscon>;
+	bank-width = <2>;
+};



More information about the linux-mtd-cvs mailing list