<dgp>
Does anyone know how the bluetooth is integrated? The wifi is a little USB board.. is the bluetooth chip on the other side near to the piece of wire (bt ant?) or is it integrated into the wifi?
<projectgus>
it's roughly the right package and number of pins anyhow
<projectgus>
I haven't actually looked at my board to confirm
<dgp>
Thanks for the link. So its connected via a uart
<projectgus>
yes
<dgp>
Need to work out how to make that work in android.. hopefully not too hard :~
<projectgus>
AFAIK noone has it running in gnu/linux yet
<projectgus>
ah ok android should be easier
<projectgus>
look in an existing gk802 image for a preexisting 'hciattach' binary
<projectgus>
it'll be run from init.rc(?) or somewhere, something like 'hciattach -t rda /dev/ttymxc1'
<dgp>
yeah will do, trying to avoid copying in binaries from the original image
<dgp>
I think I have everything except bt working now from source
* dgp
is waiting for a wifi enabled build to finish
<projectgus>
yeah, good goal :)
<projectgus>
there's a rar file floating around with rda5876 hciattach source code for Telechips
<projectgus>
the code will need changing though, the TCC version uses a different trick to toggle a GPIO line to enable/disable bluetooth
<projectgus>
i'll be interested to hear how you go
<dgp>
At least I have a reference version with the existing android image :)
<projectgus>
true
<dgp>
I have to integrate an NFC module later too.. fun fun fun
rz2k has quit [Ping timeout: 264 seconds]
ajayr has quit [Quit: Lost terminal]
ajayr has joined #imx6-dongle
rz2k has joined #imx6-dongle
ajayr has quit [Ping timeout: 256 seconds]
ajayr has joined #imx6-dongle
Noskcaj has joined #imx6-dongle
Noskcaj has quit [Changing host]
Noskcaj has joined #imx6-dongle
linaro0 has quit [Remote host closed the connection]
Noskcaj has quit [Ping timeout: 256 seconds]
Noskcaj10 has joined #imx6-dongle
linaro has joined #imx6-dongle
linaro has quit [Remote host closed the connection]
linaro has joined #imx6-dongle
linaro has quit [Read error: Operation timed out]
fossxplorer has joined #imx6-dongle
fossxplorer has quit [Changing host]
fossxplorer has joined #imx6-dongle
linaro has joined #imx6-dongle
Noskcaj10 has quit [Read error: Connection reset by peer]
<dgp>
I think I have the gpio pins for the bt if anyone wants them :)
<abrasive>
oh, nice one. where'd it turn up?
<dgp>
gpio-7 (bt_wake ) in hi
<dgp>
gpio-55 (bt_enable ) out lo
<dgp>
Thats what debugfs is telling me when android is running
<dgp>
I can't seem to export the gpio via sysfs to toggle it and check it actually toggles the pin though
jas-hacks has joined #imx6-dongle
<jas-hacks>
You could dump gpio memory
<dgp>
jas-hacks: via /dev/mem?
<dgp>
I'm just looking up where the registers are in the datasheet..
<dgp>
when android is turning the bt on and off and tcc_bt_dev in the kernel is meant to be turning it on/off the gpios don't change.. so I wonder if it's just hardcoded to be on all the time in the Android image.
<jas-hacks>
Yes. I tried but i don't see any changes in gpio.
<dgp>
jas-hacks: did it change when you hit the button? it changes for me
<jas-hacks>
gpio is only used to reset/initialise the chip
<dgp>
so it enables it once and leaves it on?
<jas-hacks>
I think so
<jas-hacks>
For wifi i saw the gpio change.
<dgp>
I'll try pulling the bt_wake pin down and see if it changes. Need to find the datasheet for the bt chip
<jas-hacks>
I think it is all driven by 1 gpio pin
<dgp>
I have the basic datasheet with the pin out
<dgp>
just trying to work out if the wakeup pin is broken out to one of the test pads
<abrasive>
our wifi chip doesn't have a reset line.
<abrasive>
just an LDO enable
<dgp>
abrasive: does that just turn the usb power on and off for it?
<abrasive>
sorry, i meant BT
<abrasive>
there's also a wifi power enable gpio, but we know that one.