staging: lustre: add SPDX identifiers to all lustre files
[linux-2.6/btrfs-unstable.git] / Documentation / btmrvl.txt
blobec57740ead0c7566475b2b3111e9b78195ae7c30
1 =============
2 btmrvl driver
3 =============
5 All commands are used via debugfs interface.
7 Set/get driver configurations
8 =============================
10 Path:   /debug/btmrvl/config/
12 gpiogap=[n], hscfgcmd
13         These commands are used to configure the host sleep parameters::
14         bit 8:0  -- Gap
15         bit 16:8 -- GPIO
17         where GPIO is the pin number of GPIO used to wake up the host.
18         It could be any valid GPIO pin# (e.g. 0-7) or 0xff (SDIO interface
19         wakeup will be used instead).
21         where Gap is the gap in milli seconds between wakeup signal and
22         wakeup event, or 0xff for special host sleep setting.
24         Usage::
26                 # Use SDIO interface to wake up the host and set GAP to 0x80:
27                 echo 0xff80 > /debug/btmrvl/config/gpiogap
28                 echo 1 > /debug/btmrvl/config/hscfgcmd
30                 # Use GPIO pin #3 to wake up the host and set GAP to 0xff:
31                 echo 0x03ff >  /debug/btmrvl/config/gpiogap
32                 echo 1 > /debug/btmrvl/config/hscfgcmd
34 psmode=[n], pscmd
35         These commands are used to enable/disable auto sleep mode
37         where the option is::
39                         1       -- Enable auto sleep mode
40                         0       -- Disable auto sleep mode
42         Usage::
44                 # Enable auto sleep mode
45                 echo 1 > /debug/btmrvl/config/psmode
46                 echo 1 > /debug/btmrvl/config/pscmd
48                 # Disable auto sleep mode
49                 echo 0 > /debug/btmrvl/config/psmode
50                 echo 1 > /debug/btmrvl/config/pscmd
53 hsmode=[n], hscmd
54         These commands are used to enable host sleep or wake up firmware
56         where the option is::
58                         1       -- Enable host sleep
59                         0       -- Wake up firmware
61         Usage::
63                 # Enable host sleep
64                 echo 1 > /debug/btmrvl/config/hsmode
65                 echo 1 > /debug/btmrvl/config/hscmd
67                 # Wake up firmware
68                 echo 0 > /debug/btmrvl/config/hsmode
69                 echo 1 > /debug/btmrvl/config/hscmd
72 Get driver status
73 =================
75 Path:   /debug/btmrvl/status/
77 Usage::
79         cat /debug/btmrvl/status/<args>
81 where the args are:
83 curpsmode
84         This command displays current auto sleep status.
86 psstate
87         This command display the power save state.
89 hsstate
90         This command display the host sleep state.
92 txdnldrdy
93         This command displays the value of Tx download ready flag.
95 Issuing a raw hci command
96 =========================
98 Use hcitool to issue raw hci command, refer to hcitool manual
100 Usage::
102         Hcitool cmd <ogf> <ocf> [Parameters]
104 Interface Control Command::
106         hcitool cmd 0x3f 0x5b 0xf5 0x01 0x00    --Enable All interface
107         hcitool cmd 0x3f 0x5b 0xf5 0x01 0x01    --Enable Wlan interface
108         hcitool cmd 0x3f 0x5b 0xf5 0x01 0x02    --Enable BT interface
109         hcitool cmd 0x3f 0x5b 0xf5 0x00 0x00    --Disable All interface
110         hcitool cmd 0x3f 0x5b 0xf5 0x00 0x01    --Disable Wlan interface
111         hcitool cmd 0x3f 0x5b 0xf5 0x00 0x02    --Disable BT interface
113 SD8688 firmware
114 ===============
116 Images:
118 - /lib/firmware/sd8688_helper.bin
119 - /lib/firmware/sd8688.bin
122 The images can be downloaded from:
124 git.infradead.org/users/dwmw2/linux-firmware.git/libertas/