dt-bindings: mtd-physmap: Add endianness supports
authorPrabhakar Kushwaha <prabhakar.kushwaha@nxp.com>
Wed, 28 Mar 2018 05:44:43 +0000 (11:14 +0530)
committerBoris Brezillon <boris.brezillon@bootlin.com>
Thu, 29 Mar 2018 07:30:08 +0000 (09:30 +0200)
Provide a way to specify the endianness to use when accessing a
memory-mapped flash.

Signed-off-by: Prabhakar Kushwaha <prabhakar.kushwaha@nxp.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Documentation/devicetree/bindings/mtd/mtd-physmap.txt

index 4a0a48bf4ecb831d0fc1e2b0263208d0b42cbb36..232fa12e90efa59082ad5cb3c66640fc148d9976 100644 (file)
@@ -41,6 +41,13 @@ additional (optional) property is defined:
 
  - erase-size : The chip's physical erase block size in bytes.
 
+ The device tree may optionally contain endianness property.
+ little-endian or big-endian : It Represents the endianness that should be used
+                               by the controller to  properly read/write data
+                              from/to the flash. If this property is missing,
+                              the endianness is chosen by the system
+                              (potentially based on extra configuration options).
+
 The device tree may optionally contain sub-nodes describing partitions of the
 address space. See partition.txt for more detail.