summaryrefslogtreecommitdiff
path: root/doc/device-tree-bindings/mtd
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2014-10-13 23:41:48 -0600
committerSimon Glass <sjg@chromium.org>2014-10-22 10:36:45 -0600
commit0b304a2494eed170562a9fdd64e31332ad5ae73a (patch)
treeebdd27bbe4ee295a662dcc80a7c94614998644bc /doc/device-tree-bindings/mtd
parent73e256c2ac7a67b00be69a397997d80d04ec994d (diff)
downloadu-boot-imx-0b304a2494eed170562a9fdd64e31332ad5ae73a.zip
u-boot-imx-0b304a2494eed170562a9fdd64e31332ad5ae73a.tar.gz
u-boot-imx-0b304a2494eed170562a9fdd64e31332ad5ae73a.tar.bz2
sandbox: dts: Add a SPI device and cros_ec device
Add a SPI device which can be used for testing SPI flash features in sandbox. Also add a cros_ec device since with driver model the Chrome OS EC emulation will not otherwise be available. Reviewed-by: Jagannadha Sutradharudu Teki <jagannadh.teki@gmail.com> Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'doc/device-tree-bindings/mtd')
-rw-r--r--doc/device-tree-bindings/mtd/spi/spi-flash.txt25
1 files changed, 25 insertions, 0 deletions
diff --git a/doc/device-tree-bindings/mtd/spi/spi-flash.txt b/doc/device-tree-bindings/mtd/spi/spi-flash.txt
new file mode 100644
index 0000000..85522d8
--- /dev/null
+++ b/doc/device-tree-bindings/mtd/spi/spi-flash.txt
@@ -0,0 +1,25 @@
+* MTD SPI driver for serial flash chips
+
+Required properties:
+- #address-cells, #size-cells : Must be present if the device has sub-nodes
+ representing partitions.
+- compatible : Should be the manufacturer and the name of the chip. Bear in
+ mind that the DT binding is not U-Boot-only, but in case of
+ U-Boot, see spi_flash_params_table table in
+ drivers/mtd/spi/sf_params.c for the list of supported chips.
+- reg : Chip-Select number
+- spi-max-frequency : Maximum frequency of the SPI bus the chip can operate at
+
+Optional properties:
+ - memory-map : Address and size of the flash, if memory mapped. This may
+ apply to Intel chipsets, which tend to memory-map flash.
+
+Example:
+
+ flash: m25p80@0 {
+ #address-cells = <1>;
+ #size-cells = <1>;
+ compatible = "spansion,m25p80";
+ reg = <0>;
+ spi-max-frequency = <40000000>;
+ };