wifi device tree

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

wifi device tree

2,152件の閲覧回数
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,469件の閲覧回数
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,469件の閲覧回数
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,469件の閲覧回数
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,469件の閲覧回数
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 件の賞賛
返信