[RFC linux 2/2] spi: aspeed: added device tree documentation

Brendan Higgins brendanhiggins at google.com
Wed Dec 7 10:36:03 AEDT 2016


Added device tree binding documentation for Aspeed AST25XX SoC SPI
driver.

Signed-off-by: Brendan Higgins <brendanhiggins at google.com>
---
 .../devicetree/bindings/spi/spi-aspeed.txt         | 33 ++++++++++++++++++++++
 1 file changed, 33 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/spi/spi-aspeed.txt

diff --git a/Documentation/devicetree/bindings/spi/spi-aspeed.txt b/Documentation/devicetree/bindings/spi/spi-aspeed.txt
new file mode 100644
index 0000000..8b774d4
--- /dev/null
+++ b/Documentation/devicetree/bindings/spi/spi-aspeed.txt
@@ -0,0 +1,33 @@
+Device tree configuration for the generic Aspeed AST25XX SoC SPI controllers.
+
+Required Properties:
+	- #address-cells	: should be 1
+	- #size-cells		: should be 0
+	- compatible		: should be "aspeed,ast2500-spi"
+	- reg			: address ranges for the control registers
+				    and IO ports. There is one IO port window
+				    for each chip select.
+	- interrupts		: interrupt number
+
+Example:
+
+	spi1: spi at 1e630000 {
+		compatible = "aspeed,ast2500-spi";
+		reg = <0x1e630000 0xc1 0x30000000 0x02000000 0x36000000 0x02000000>;
+		interrupts = <59>;
+		#address-cells = <1>;
+		#size-cells = <0>;
+		status = "disabled";
+		flash at 0 {
+			reg = <0>; /* chip select number */
+			compatible = "jedec,spi-nor";
+			spi-max-frequency = <100000000>;
+			status = "disabled";
+		};
+		flash at 1 {
+			reg = <1>; /* chip select number */
+			compatible = "jedec,spi-nor";
+			spi-max-frequency = <100000000>;
+			status = "disabled";
+		};
+	};
-- 
2.8.0.rc3.226.g39d4020



More information about the openbmc mailing list