0001 =============
0002 btmrvl driver
0003 =============
0004
0005 All commands are used via debugfs interface.
0006
0007 Set/get driver configurations
0008 =============================
0009
0010 Path: /debug/btmrvl/config/
0011
0012 gpiogap=[n], hscfgcmd
0013 These commands are used to configure the host sleep parameters::
0014 bit 8:0 -- Gap
0015 bit 16:8 -- GPIO
0016
0017 where GPIO is the pin number of GPIO used to wake up the host.
0018 It could be any valid GPIO pin# (e.g. 0-7) or 0xff (SDIO interface
0019 wakeup will be used instead).
0020
0021 where Gap is the gap in milli seconds between wakeup signal and
0022 wakeup event, or 0xff for special host sleep setting.
0023
0024 Usage::
0025
0026 # Use SDIO interface to wake up the host and set GAP to 0x80:
0027 echo 0xff80 > /debug/btmrvl/config/gpiogap
0028 echo 1 > /debug/btmrvl/config/hscfgcmd
0029
0030 # Use GPIO pin #3 to wake up the host and set GAP to 0xff:
0031 echo 0x03ff > /debug/btmrvl/config/gpiogap
0032 echo 1 > /debug/btmrvl/config/hscfgcmd
0033
0034 psmode=[n], pscmd
0035 These commands are used to enable/disable auto sleep mode
0036
0037 where the option is::
0038
0039 1 -- Enable auto sleep mode
0040 0 -- Disable auto sleep mode
0041
0042 Usage::
0043
0044 # Enable auto sleep mode
0045 echo 1 > /debug/btmrvl/config/psmode
0046 echo 1 > /debug/btmrvl/config/pscmd
0047
0048 # Disable auto sleep mode
0049 echo 0 > /debug/btmrvl/config/psmode
0050 echo 1 > /debug/btmrvl/config/pscmd
0051
0052
0053 hsmode=[n], hscmd
0054 These commands are used to enable host sleep or wake up firmware
0055
0056 where the option is::
0057
0058 1 -- Enable host sleep
0059 0 -- Wake up firmware
0060
0061 Usage::
0062
0063 # Enable host sleep
0064 echo 1 > /debug/btmrvl/config/hsmode
0065 echo 1 > /debug/btmrvl/config/hscmd
0066
0067 # Wake up firmware
0068 echo 0 > /debug/btmrvl/config/hsmode
0069 echo 1 > /debug/btmrvl/config/hscmd
0070
0071
0072 Get driver status
0073 =================
0074
0075 Path: /debug/btmrvl/status/
0076
0077 Usage::
0078
0079 cat /debug/btmrvl/status/<args>
0080
0081 where the args are:
0082
0083 curpsmode
0084 This command displays current auto sleep status.
0085
0086 psstate
0087 This command display the power save state.
0088
0089 hsstate
0090 This command display the host sleep state.
0091
0092 txdnldrdy
0093 This command displays the value of Tx download ready flag.
0094
0095 Issuing a raw hci command
0096 =========================
0097
0098 Use hcitool to issue raw hci command, refer to hcitool manual
0099
0100 Usage::
0101
0102 Hcitool cmd <ogf> <ocf> [Parameters]
0103
0104 Interface Control Command::
0105
0106 hcitool cmd 0x3f 0x5b 0xf5 0x01 0x00 --Enable All interface
0107 hcitool cmd 0x3f 0x5b 0xf5 0x01 0x01 --Enable Wlan interface
0108 hcitool cmd 0x3f 0x5b 0xf5 0x01 0x02 --Enable BT interface
0109 hcitool cmd 0x3f 0x5b 0xf5 0x00 0x00 --Disable All interface
0110 hcitool cmd 0x3f 0x5b 0xf5 0x00 0x01 --Disable Wlan interface
0111 hcitool cmd 0x3f 0x5b 0xf5 0x00 0x02 --Disable BT interface
0112
0113 SD8688 firmware
0114 ===============
0115
0116 Images:
0117
0118 - /lib/firmware/sd8688_helper.bin
0119 - /lib/firmware/sd8688.bin
0120
0121
0122 The images can be downloaded from:
0123
0124 git.infradead.org/users/dwmw2/linux-firmware.git/libertas/