dt-bindings: Add DT bindings document for Broadcom SBA RAID driver
authorAnup Patel <anup.patel@broadcom.com>
Mon, 15 May 2017 05:04:55 +0000 (10:34 +0530)
committerVinod Koul <vinod.koul@intel.com>
Tue, 16 May 2017 04:31:57 +0000 (10:01 +0530)
This patch adds the DT bindings document for newly added Broadcom
SBA RAID driver.

Acked-by: Rob Herring <robh@kernel.org>
Reviewed-by: Ray Jui <ray.jui@broadcom.com>
Reviewed-by: Scott Branden <scott.branden@broadcom.com>
Signed-off-by: Anup Patel <anup.patel@broadcom.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Documentation/devicetree/bindings/dma/brcm,iproc-sba.txt [new file with mode: 0644]

diff --git a/Documentation/devicetree/bindings/dma/brcm,iproc-sba.txt b/Documentation/devicetree/bindings/dma/brcm,iproc-sba.txt
new file mode 100644 (file)
index 0000000..092913a
--- /dev/null
@@ -0,0 +1,29 @@
+* Broadcom SBA RAID engine
+
+Required properties:
+- compatible: Should be one of the following
+             "brcm,iproc-sba"
+             "brcm,iproc-sba-v2"
+  The "brcm,iproc-sba" has support for only 6 PQ coefficients
+  The "brcm,iproc-sba-v2" has support for only 30 PQ coefficients
+- mboxes: List of phandle and mailbox channel specifiers
+
+Example:
+
+raid_mbox: mbox@67400000 {
+       ...
+       #mbox-cells = <3>;
+       ...
+};
+
+raid0 {
+       compatible = "brcm,iproc-sba-v2";
+       mboxes = <&raid_mbox 0 0x1 0xffff>,
+                <&raid_mbox 1 0x1 0xffff>,
+                <&raid_mbox 2 0x1 0xffff>,
+                <&raid_mbox 3 0x1 0xffff>,
+                <&raid_mbox 4 0x1 0xffff>,
+                <&raid_mbox 5 0x1 0xffff>,
+                <&raid_mbox 6 0x1 0xffff>,
+                <&raid_mbox 7 0x1 0xffff>;
+};