spi: spi-fsl-dspi: Fix error handling
[sfrench/cifs-2.6.git] / 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 (u16).
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 (u16).
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 = /bits/ 16 <0x0d>;
54                 marvell,wakeup-gap-ms = /bits/ 16 <0x64>;
55         };
56 };