Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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@gmail.com>
Cc: Paulius Zaleckas <paulius.zaleckas@gmail.com>
Cc: Hans Ulli Kroll <ulli.kroll@googlemail.com>
Cc: Florian Fainelli <f.fainelli@gmail.com>
Cc: devicetree@vger.kernel.org
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Marek Vasut <marek.vasut@gmail.com>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>

authored by

Linus Walleij and committed by
Brian Norris
22f090a4 be5e5099

+24
+24
Documentation/devicetree/bindings/mtd/cortina,gemini-flash.txt
··· 1 + Flash device on Cortina Systems Gemini SoC 2 + 3 + This flash is regular CFI compatible (Intel or AMD extended) flash chips with 4 + some special bits that can be controlled by the machine's system controller. 5 + 6 + Required properties: 7 + - compatible : must be "cortina,gemini-flash", "cfi-flash"; 8 + - reg : memory address for the flash chip 9 + - syscon : must be a phandle to the system controller 10 + - bank-width : width in bytes of flash interface, should be <2> 11 + 12 + For the rest of the properties, see mtd-physmap.txt. 13 + 14 + The device tree may optionally contain sub-nodes describing partitions of the 15 + address space. See partition.txt for more detail. 16 + 17 + Example: 18 + 19 + flash@30000000 { 20 + compatible = "cortina,gemini-flash", "cfi-flash"; 21 + reg = <0x30000000 0x01000000>; 22 + syscon = <&syscon>; 23 + bank-width = <2>; 24 + };