Bluetooth: btmrvl: add DT-bindings for gpio-gap
authorAmitkumar Karwar <akarwar@marvell.com>
Wed, 19 Nov 2014 09:28:33 +0000 (01:28 -0800)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 19 Nov 2014 15:22:42 +0000 (16:22 +0100)
This can be used to have GPIO host wakeup method suitable for the
platform and configurable GAP for host sleep handshake.

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
drivers/bluetooth/btmrvl_main.c

index cdd5768..58f964b 100644 (file)
@@ -10,8 +10,14 @@ Optional properties:
   - btmrvl,cal-data : Calibration data downloaded to the device during
                      initialization. This is an array of 28 values(u8).
 
+  - btmrvl,gpio-gap : gpio and gap (in msecs) combination to be
+                     configured.
+
 Example:
 
+GPIO pin 13 is configured as a wakeup source and GAP is set to 100 msecs
+in below example.
+
 btmrvl {
        compatible = "btmrvl,cfgdata";
 
@@ -19,4 +25,5 @@ btmrvl {
                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>;
+       btmrvl,gpio-gap = <0x0d64>;
 };
Simple merge