devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 3/3] mtd: spi-nand: add devicetree binding
@ 2015-01-08  0:52 Peter Pan 潘栋 (peterpandong)
  2015-01-08  3:15 ` Ezequiel Garcia
       [not found] ` <87F60714EC601C4C83DFF1D2E3D390A04AB425-xjs9rfTec9KBtk7LW/CC8tTcztV8WXajQQ4Iyu8u01E@public.gmane.org>
  0 siblings, 2 replies; 7+ messages in thread
From: Peter Pan 潘栋 (peterpandong) @ 2015-01-08  0:52 UTC (permalink / raw)
  To: robh+dt@kernel.org, pawel.moll@arm.com, mark.rutland@arm.com,
	ijc+devicetree@hellion.org.uk, galak@codeaurora.org,
	dwmw2@infradead.org, Brian Norris, Ezequiel Garcia
  Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org,
	Qi Wang 王起 (qiwang),
	Frank Liu 刘群 (frankliu),
	Melanie Zhang 张燕 (melaniezhang),
	Peter Pan 潘栋 (peterpandong)

This commit adds the devicetree binding document that specifies the
spi nand devices support.

Signed-off-by: Peter Pan <peterpandong@micron.com>
---
 Documentation/devicetree/bindings/mtd/spi-nand.txt | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/mtd/spi-nand.txt

diff --git a/Documentation/devicetree/bindings/mtd/spi-nand.txt b/Documentation/devicetree/bindings/mtd/spi-nand.txt
new file mode 100644
index 0000000..9dd3efd
--- /dev/null
+++ b/Documentation/devicetree/bindings/mtd/spi-nand.txt
@@ -0,0 +1,22 @@
+* NAND driver for MT29F, GD5F and similar SPI NAND 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
+               the DT binding is not Linux-only, but in case of Linux, see the
+               "spi_nand_id_table" array in drivers/mtd/spi-nand/spi-nand-device.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
+
+Example:
+
+	flash: flash@0 {
+		#address-cells = <1>;
+		#size-cells = <1>;
+		compatible = "micron,mt29f";
+		reg = <0>;
+		spi-max-frequency = <50000000>;
+	};
+
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-01-20 10:59 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-08  0:52 [PATCH 3/3] mtd: spi-nand: add devicetree binding Peter Pan 潘栋 (peterpandong)
2015-01-08  3:15 ` Ezequiel Garcia
2015-01-08  5:04   ` Peter Pan 潘栋 (peterpandong)
2015-01-08 15:12     ` Ezequiel Garcia
     [not found]       ` <54AE9E54.2010506-1AXoQHu6uovQT0dZR+AlfA@public.gmane.org>
2015-01-12  1:57         ` Peter Pan 潘栋 (peterpandong)
2015-01-20 10:59           ` Ezequiel Garcia
     [not found] ` <87F60714EC601C4C83DFF1D2E3D390A04AB425-xjs9rfTec9KBtk7LW/CC8tTcztV8WXajQQ4Iyu8u01E@public.gmane.org>
2015-01-08 14:35   ` Mark Rutland

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).