[PATCH linux dev-4.13 v2 1/2] dt-binding: mtd: document NPCM7xx SPI DT bindings

Tomer Maimon tmaimon77 at gmail.com
Sun Jan 7 20:24:51 AEDT 2018


Added device tree binding documentation for Nuvoton
NPCM7xx Serial Peripheral Interface (SPI) NOR

Signed-off-by: Tomer Maimon <tmaimon77 at gmail.com>
---
 Documentation/devicetree/bindings/mtd/npcm-spi.txt | 31 ++++++++++++++++++++++
 1 file changed, 31 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/mtd/npcm-spi.txt

diff --git a/Documentation/devicetree/bindings/mtd/npcm-spi.txt b/Documentation/devicetree/bindings/mtd/npcm-spi.txt
new file mode 100644
index 000000000000..3c30271c3712
--- /dev/null
+++ b/Documentation/devicetree/bindings/mtd/npcm-spi.txt
@@ -0,0 +1,31 @@
+* Nuvoton Serial Peripheral Interface(SPI)
+
+Required properties:
+  - compatible : "nuvoton,npcm750-spi" for NPCM750 BMC
+  - #address-cells : should be 1.
+  - #size-cells : should be 0.
+  - reg : the first contains the register location and length,
+          the second contains the memory mapping address and length
+  - reg-names: Should contain the reg names "control" and "memory"
+  - clocks : phandle of SPI reference clock.
+
+Optional properties:
+  - chip-max-address-map: Chip maximum address mapping for direct use.
+  			  the maximum address map size:
+			  NPCM7xx - 0x8000000 (128Mb)
+
+Example:
+
+spi0: spi at fb000000 {
+	compatible = "nuvoton,npcm750-spi";
+	#address-cells = <1>;
+	#size-cells = <0>;
+	reg = <0xfb000000 0x1000>, <0x80000000 0x10000000>;
+	reg-names = "control", "memory";
+	chip-max-address-map = <0x8000000>;
+	clocks = <&clk NPCM7XX_CLK_AHB>;
+	spi-nor at 0 {
+			...
+	};
+};
+
-- 
2.14.1



More information about the openbmc mailing list