S32G BSP using leds drivers in linux, has problem about node and label

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

S32G BSP using leds drivers in linux, has problem about node and label

ソリューションへジャンプ
794件の閲覧回数
Ada_Lovelace
Contributor IV

HI,All

I use leds driver in linux kernel, I make the menuconfig and enable the led support,

Then I  wirte code in dtsi to change the device tree,  then I  make linnux-s32 and fsl-image-auto then boot the s32g274ardb2 board, 

Ada_Lovelace_0-1683711290756.pngAda_Lovelace_1-1683711306162.pngAda_Lovelace_2-1683711322768.pngAda_Lovelace_3-1683711351094.png

 

 

Ada_Lovelace_0-1683710711101.png

 

ls /sys/devices/platform/leds

Ada_Lovelace_1-1683710724577.png

 

but I do not find led_red , what it's wrong with the label?

I upload the file about dtsi, could someome tell me the problem?

 

0 件の賞賛
返信
1 解決策
770件の閲覧回数
Ada_Lovelace
Contributor IV

HI,

I have solved the prolem, the gpio about leds is conflicted with dspi0, it is used by dspi0 when it boot ,

so the node about leds can not be used .

I comment the pinctrl config about dspi0 then I use the same code,it has node under leds:Blue Red Green.

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
773件の閲覧回数
MayanksPatel
NXP Employee
NXP Employee

Hi @Ada_Lovelace,

I have performed the steps mentioned by you and found that led_red is creating. Can you please follow the Linux BSP User Guide and Yocto external forums to understand the Yocto build procedure in detail? Please compile the firmware forcefully to see the changes what you are doing in the .dts and .config file.

 

Please find the attached screenshot for the same.

led_red.png

 

Thanks,

Mayank s Patel

0 件の賞賛
返信
771件の閲覧回数
Ada_Lovelace
Contributor IV

HI,

I have solved the prolem, the gpio about leds is conflicted with dspi0, it is used by dspi0 when it boot ,

so the node about leds can not be used .

I comment the pinctrl config about dspi0 then I use the same code,it has node under leds:Blue Red Green.

0 件の賞賛
返信