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,
ls /sys/devices/platform/leds
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?
Solved! Go to Solution.
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.
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.
Thanks,
Mayank s Patel
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.