Repository navigation
SDIO for wireless on alternative pins? #718
Replies: 3 comments 2 replies
|
I don't think so. Unfortunately I cannot see an obvious reason, why this
is not working.
|
|
After some experimentation, I now have it working. There are three things that need to be done to make it work.
I was originally missing the first step, since I naively assumed no hardware present meant the function selection wouldn't be done.... Unfortunately there didn't seem to be an existing function available at the addon/wlan scope to achieve the third item, so I also made a minor change to the p9arch code to add a gpioset function when RASPI <=4. In this context, the code would only be wanted when RASPI <= 2, since 3A,3B and later models already have wireless built-in. I am cleaning up the code so that it correctly builds when REDBEAR_IOT is defined, otherwise leaving everything untouched, and this would modify only three files in the wlan component. Would you consider a PR to add this functionality, since it adds hardware compatibility for the Redbear IOT pHAT? |
|
The PR has been merged to develop. Redbear IOT pHAT support will be in the next release. |
Uh oh!
There was an error while loading. Please reload this page.
I have some Redbear IOT PHAT boards, see here for details.
It has an EEPROM on board with a compiled DTS file, the source for which is here.
From that, I believe it has a BCM4330 compatible wifi component (at this stage I don't care about the bluetooth side, since I rarely use it anyway).
Accordingly, I thought that by changing the sdioinit function in ether4330.c I would be able to use it in conjunction with a Pi Zero (obviously not needed for Pi ZeroW!).
I modified it to configure gpio 22-27 instead of 34-39, and to set gpio 6 to output and turn on the pull-up.
This doesn't seem to work (I get 'no response to sdio access: ocr = 0')
Is there something elsewhere in the wlan driver that assumes which pins are being used?
All reactions