Bluetooth: btmrvl: add DT bindings documentation
authorAmitkumar Karwar <akarwar@marvell.com>
Wed, 19 Nov 2014 09:28:32 +0000 (01:28 -0800)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 19 Nov 2014 15:22:41 +0000 (16:22 +0100)
Calibration data can be downloaded through device tree method. This
patch adds the documentation. Also, instead of searching device tree
node by name using of_find_node_by_name() API, let's use
for_each_compatible_node().

Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Cathy Luo <cluo@marvell.com>
Signed-off-by: Avinash Patil <patila@marvell.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Documentation/devicetree/bindings/btmrvl.txt [new file with mode: 0644]
drivers/bluetooth/btmrvl_main.c

diff --git a/Documentation/devicetree/bindings/btmrvl.txt b/Documentation/devicetree/bindings/btmrvl.txt
new file mode 100644 (file)
index 0000000..cdd5768
--- /dev/null
@@ -0,0 +1,22 @@
+btmrvl
+------
+
+Required properties:
+
+  - compatible : must be "btmrvl,cfgdata"
+
+Optional properties:
+
+  - btmrvl,cal-data : Calibration data downloaded to the device during
+                     initialization. This is an array of 28 values(u8).
+
+Example:
+
+btmrvl {
+       compatible = "btmrvl,cfgdata";
+
+       btmrvl,cal-data = /bits/ 8 <
+               0x37 0x01 0x1c 0x00 0xff 0xff 0xff 0xff 0x01 0x7f 0x04 0x02
+               0x00 0x00 0xba 0xce 0xc0 0xc6 0x2d 0x00 0x00 0x00 0x00 0x00
+               0x00 0x00 0xf0 0x00>;
+};
Simple merge