wifi device tree

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

wifi device tree

2,189 次查看
sumosumo
Contributor I


Hi all

I am using wandboard quad and made a minimal filesystem and kernel under yocto framework.

Wifi wasn't working with the minimal image , so I manually added the wifi driver (bcm4329-fmac) and the suitable firmware.

my question is: How come wifi is working (there is an interface and i get results on "iw wlan0 scan") without updating the device tree files (I did not encountered any compatible name "bcm4329-fmac") ?

Thanks

标签 (3)
标记 (1)
0 项奖励
回复
4 回复数

1,506 次查看
weidong_sun
NXP TechSupport
NXP TechSupport

Hello sumo,

      It is very necessary to add wifi to device tree, for example:

(1) Multiplexing SDIO PINs connected to WIFI card

(2) Initializing corresponding data structure of SDIO

(3) Initializing GPIOs for controlling WIFI's power and reset.

...

Above work must be done in BSP.

   Hope above advice can help you !

Regards,

Weidong

0 项奖励
回复

1,506 次查看
sumosumo
Contributor I

Hi Weidong Sun

First, thanks for your quick reply.

I understand that with the device tree you can config GPIOs, IRQ etc.. (and basically  and more generally, initialize the pdev pointer which is sent to the probe function with the relevant values)

What I still did not get is how (in this case) the kernel registered the wifi driver if there is no compatible field associated to that driver?

Best Regards

0 项奖励
回复

1,506 次查看
weidong_sun
NXP TechSupport
NXP TechSupport

Hello sumo,

    compatible field should be in your wifi driver, you can check if there exists a file name of.c, and search the filed.

Regards,

Weidong

0 项奖励
回复

1,506 次查看
sumosumo
Contributor I

Hi

shouldn't compatible field be in the driver (of.c in this case) and in the dts file as well ?

Isn't compatible field who makes the binding between device-tree and the driver ?

Thanks !

0 项奖励
回复