[PATCH v2] mt76: mt7915: add debugfs knob for RF registers read/write
Ben Greear
greearb at candelatech.com
Fri Apr 15 06:01:16 PDT 2022
On 4/15/22 4:15 AM, Shayne Chen wrote:
> On Fri, 2022-04-15 at 10:26 +0200, Felix Fietkau wrote:
>> On 15.04.22 08:14, Shayne Chen wrote:
>>> Add RF registers read/write support for debugging RF issues, which
>>> should be processed by mcu commands.
>>>
>>> Reviewed-by: Ryder Lee <ryder.lee at mediatek.com>
>>> Signed-off-by: Peter Chiu <chui-hao.chiu at mediatek.com>
>>> Signed-off-by: Shayne Chen <shayne.chen at mediatek.com>
>>
>> What's the required width of rf_sel and rf_ofs? Would both fit
>> together
>> in a single u32? If so, you could just use the generic regidx
>> debugfs
>> file for both and simply add a rf_regval debugfs file.
>>
>> - Felix
>
> Hi Felix,
>
> FW use the WF sel (antenna 0-3) and offset to locate rf registers.
> I'll send an update patch to merge them in the generic regidx with
> wf sel [31:28] and offset [27:0].
>
> Thanks,
> Shayne
Hello,
Can you document the registers, or is this only for internal mediatek use?
Thanks,
Ben
--
Ben Greear <greearb at candelatech.com>
Candela Technologies Inc http://www.candelatech.com
More information about the Linux-mediatek
mailing list