Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt: bindings: add MARVELL's bt-sd8xxx wireless device

Add device tree binding documentation for MARVELL's bluetooth sdio
(sd8897 and sd8997) chip.

Signed-off-by: Xinming Hu <huxm@marvell.com>
Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>

authored by

Xinming Hu and committed by
Marcel Holtmann
0065d1c5 582a1db9

+56 -29
-29
Documentation/devicetree/bindings/btmrvl.txt
··· 1 - btmrvl 2 - ------ 3 - 4 - Required properties: 5 - 6 - - compatible : must be "btmrvl,cfgdata" 7 - 8 - Optional properties: 9 - 10 - - btmrvl,cal-data : Calibration data downloaded to the device during 11 - initialization. This is an array of 28 values(u8). 12 - 13 - - btmrvl,gpio-gap : gpio and gap (in msecs) combination to be 14 - configured. 15 - 16 - Example: 17 - 18 - GPIO pin 13 is configured as a wakeup source and GAP is set to 100 msecs 19 - in below example. 20 - 21 - btmrvl { 22 - compatible = "btmrvl,cfgdata"; 23 - 24 - btmrvl,cal-data = /bits/ 8 < 25 - 0x37 0x01 0x1c 0x00 0xff 0xff 0xff 0xff 0x01 0x7f 0x04 0x02 26 - 0x00 0x00 0xba 0xce 0xc0 0xc6 0x2d 0x00 0x00 0x00 0x00 0x00 27 - 0x00 0x00 0xf0 0x00>; 28 - btmrvl,gpio-gap = <0x0d64>; 29 - };
+56
Documentation/devicetree/bindings/net/marvell-bt-sd8xxx.txt
··· 1 + Marvell 8897/8997 (sd8897/sd8997) bluetooth SDIO devices 2 + ------ 3 + 4 + Required properties: 5 + 6 + - compatible : should be one of the following: 7 + * "marvell,sd8897-bt" 8 + * "marvell,sd8997-bt" 9 + 10 + Optional properties: 11 + 12 + - marvell,cal-data: Calibration data downloaded to the device during 13 + initialization. This is an array of 28 values(u8). 14 + 15 + - marvell,wakeup-pin: It represents wakeup pin number of the bluetooth chip. 16 + firmware will use the pin to wakeup host system. 17 + - marvell,wakeup-gap-ms: wakeup gap represents wakeup latency of the host 18 + platform. The value will be configured to firmware. This 19 + is needed to work chip's sleep feature as expected. 20 + - interrupt-parent: phandle of the parent interrupt controller 21 + - interrupts : interrupt pin number to the cpu. Driver will request an irq based 22 + on this interrupt number. During system suspend, the irq will be 23 + enabled so that the bluetooth chip can wakeup host platform under 24 + certain condition. During system resume, the irq will be disabled 25 + to make sure unnecessary interrupt is not received. 26 + 27 + Example: 28 + 29 + IRQ pin 119 is used as system wakeup source interrupt. 30 + wakeup pin 13 and gap 100ms are configured so that firmware can wakeup host 31 + using this device side pin and wakeup latency. 32 + calibration data is also available in below example. 33 + 34 + &mmc3 { 35 + status = "okay"; 36 + vmmc-supply = <&wlan_en_reg>; 37 + bus-width = <4>; 38 + cap-power-off-card; 39 + keep-power-in-suspend; 40 + 41 + #address-cells = <1>; 42 + #size-cells = <0>; 43 + btmrvl: bluetooth@2 { 44 + compatible = "marvell,sd8897-bt"; 45 + reg = <2>; 46 + interrupt-parent = <&pio>; 47 + interrupts = <119 IRQ_TYPE_LEVEL_LOW>; 48 + 49 + marvell,cal-data = /bits/ 8 < 50 + 0x37 0x01 0x1c 0x00 0xff 0xff 0xff 0xff 0x01 0x7f 0x04 0x02 51 + 0x00 0x00 0xba 0xce 0xc0 0xc6 0x2d 0x00 0x00 0x00 0x00 0x00 52 + 0x00 0x00 0xf0 0x00>; 53 + marvell,wakeup-pin = <0x0d>; 54 + marvell,wakeup-gap-ms = <0x64>; 55 + }; 56 + };