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

mtd: augment the "arm,versatile-flash" bindings

The bindings for the "arm,versatile-flash" device was merged in
commit 3ba7222ac992d24d09ccd0b55940b54849eef752
"arm/versatile: Add device tree support" but was never used
for anything.

Versatile flash chips are actually just standard CFI chips,
but they have one or two bits in a system controller to control
VPP and write protection. Let's use this compatible string in
conjunction with "cfi-flash" to indicate that we have a
normal CFI flash with some extra Versatile-specific protection.

Cc: devicetree@vger.kernel.org
Cc: Grant Likely <grant.likely@linaro.org>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Mark Rutland <mark.rutland@arm.com>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

+19 -1
+19 -1
Documentation/devicetree/bindings/mtd/arm-versatile.txt
··· 1 1 Flash device on ARM Versatile board 2 2 3 + These flash chips are found in the ARM reference designs like Integrator, 4 + Versatile, RealView, Versatile Express etc. 5 + 6 + They are regular CFI compatible (Intel or AMD extended) flash chips with 7 + some special write protect/VPP bits that can be controlled by the machine's 8 + system controller. 9 + 3 10 Required properties: 4 - - compatible : must be "arm,versatile-flash"; 11 + - compatible : must be "arm,versatile-flash", "cfi-flash"; 12 + - reg : memory address for the flash chip 5 13 - bank-width : width in bytes of flash interface. 14 + 15 + For the rest of the properties, see mtd-physmap.txt. 6 16 7 17 The device tree may optionally contain sub-nodes describing partitions of the 8 18 address space. See partition.txt for more detail. 19 + 20 + Example: 21 + 22 + flash@34000000 { 23 + compatible = "arm,versatile-flash", "cfi-flash"; 24 + reg = <0x34000000 0x4000000>; 25 + bank-width = <4>; 26 + };