125 lines · plain
1=============2btmrvl driver3=============4 5All commands are used via debugfs interface.6 7Set/get driver configurations8=============================9 10Path: /debug/btmrvl/config/11 12gpiogap=[n], hscfgcmd13 These commands are used to configure the host sleep parameters::14 bit 8:0 -- Gap15 bit 16:8 -- GPIO16 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 interface19 wakeup will be used instead).20 21 where Gap is the gap in milli seconds between wakeup signal and22 wakeup event, or 0xff for special host sleep setting.23 24 Usage::25 26 # Use SDIO interface to wake up the host and set GAP to 0x80:27 echo 0xff80 > /debug/btmrvl/config/gpiogap28 echo 1 > /debug/btmrvl/config/hscfgcmd29 30 # Use GPIO pin #3 to wake up the host and set GAP to 0xff:31 echo 0x03ff > /debug/btmrvl/config/gpiogap32 echo 1 > /debug/btmrvl/config/hscfgcmd33 34psmode=[n], pscmd35 These commands are used to enable/disable auto sleep mode36 37 where the option is::38 39 1 -- Enable auto sleep mode40 0 -- Disable auto sleep mode41 42 Usage::43 44 # Enable auto sleep mode45 echo 1 > /debug/btmrvl/config/psmode46 echo 1 > /debug/btmrvl/config/pscmd47 48 # Disable auto sleep mode49 echo 0 > /debug/btmrvl/config/psmode50 echo 1 > /debug/btmrvl/config/pscmd51 52 53hsmode=[n], hscmd54 These commands are used to enable host sleep or wake up firmware55 56 where the option is::57 58 1 -- Enable host sleep59 0 -- Wake up firmware60 61 Usage::62 63 # Enable host sleep64 echo 1 > /debug/btmrvl/config/hsmode65 echo 1 > /debug/btmrvl/config/hscmd66 67 # Wake up firmware68 echo 0 > /debug/btmrvl/config/hsmode69 echo 1 > /debug/btmrvl/config/hscmd70 71 72Get driver status73=================74 75Path: /debug/btmrvl/status/76 77Usage::78 79 cat /debug/btmrvl/status/<args>80 81where the args are:82 83curpsmode84 This command displays current auto sleep status.85 86psstate87 This command display the power save state.88 89hsstate90 This command display the host sleep state.91 92txdnldrdy93 This command displays the value of Tx download ready flag.94 95Issuing a raw hci command96=========================97 98Use hcitool to issue raw hci command, refer to hcitool manual99 100Usage::101 102 Hcitool cmd <ogf> <ocf> [Parameters]103 104Interface Control Command::105 106 hcitool cmd 0x3f 0x5b 0xf5 0x01 0x00 --Enable All interface107 hcitool cmd 0x3f 0x5b 0xf5 0x01 0x01 --Enable Wlan interface108 hcitool cmd 0x3f 0x5b 0xf5 0x01 0x02 --Enable BT interface109 hcitool cmd 0x3f 0x5b 0xf5 0x00 0x00 --Disable All interface110 hcitool cmd 0x3f 0x5b 0xf5 0x00 0x01 --Disable Wlan interface111 hcitool cmd 0x3f 0x5b 0xf5 0x00 0x02 --Disable BT interface112 113SD8688 firmware114===============115 116Images:117 118- /lib/firmware/sd8688_helper.bin119- /lib/firmware/sd8688.bin120 121 122The images can be downloaded from:123 124git.infradead.org/users/dwmw2/linux-firmware.git/libertas/125