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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

Jump to solution
795 Views
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 Kudos
Reply
1 Solution
771 Views
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.

View solution in original post

0 Kudos
Reply
2 Replies
774 Views
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 Kudos
Reply
772 Views
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 Kudos
Reply