ulli-kroll/rtw88-usb

rtw88bu:rfe support needed

Opened this issue · 5 comments

We have several antenna modes, for delta swing.
In upstream PCI driver is only one supported

rip out delta swing tables from rtl8822bu

karlp commented

Related, I have a new out of box rtl8821cu module that reports "rfe = 0xff" so this driver aborts. I've tried the https://github.com/morrownr/8821cu driver as well, and it allows overrriding with a manual figure, but no guidance on what to set it to. I've set it to "1" on this device and... well, it functions at least, not sure what's out of range now though :)

I assume RFE with RF endpoint aka power amplifier (PNA), low noise applifier (LNA) and antenna
you may void your regulations.

RFE with 0xff is mostly because unpopulated EEPROM values.

karlp commented

who's meant to be populating them, and how can I write to them? These are using pcb modules, so the antenna path is under our control, is there tooling to write eeprom values over usb?I still don't know what numbers should be used

Weird thing.
I have a working 8821cu device and also some "not working" 8821cu device.
Both have "filled" eeproms, but I need to check the offsets.
Also I have a working 8821ce device.
I'm preparing some branches for updates from master (vanilla linux) up to v5.13
and dumping the eeprom contents.

please checkout
rfe_eeprom_dump
branch

This will dump physical and logical layout of the eeprom
I need only the logical layout.
here some "example"

[  474.662370] rtw_8821cu 1-1.4:1.2: dump locial map
[  474.667086] 00000000: 29 81 00 bc 09 00 21 00 6e 04 a4 34 10 00 30 0b  ).....!.n..4..0.
[  474.675106] 00000010: 1f 20 21 21 21 21 27 28 29 29 29 ff ff ff ff ff  . !!!!'())).....
[  474.683120] 00000020: ff ff 27 26 26 26 26 26 25 25 24 24 22 24 24 24  ..'&&&&&%%$$"$$$
.. /* Here is the miracle */
[  474.795321] 00000100:

I need this from 0x000 until 0x0100
Also I left missing part intentional blank ;-)