Adding USR led to LED class infrastructure on i.MX53 Quick Start Board

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

Adding USR led to LED class infrastructure on i.MX53 Quick Start Board

1,080 次查看
SergioPrado
Contributor II

Hello All,

 

I have just added USR led to LED class infrastructure on the i.MX53 Quick Start Board.

 

That way, you can turn on/off the USR led from userspace:

 

# echo 1 > /sys/class/leds/mx53::user/brightness
# echo 0 > /sys/class/leds/mx53::user/brightness

 

If anyone is interested, the patch is attached.

 

Best regards,

 

Sergio Prado

Embedded Labworks

Original Attachment has been moved to: 136-add_leds_gpio.patch

标记 (2)
0 项奖励
回复
1 回复

585 次查看
omegaouter
Contributor I

It worked perfectly, instead of applying the defconfig patch I changed the Kernel Configuration.

./ltib -c

[ X ] Configure Kernel

Device Drivers > GPIO Support

[*] /sys/class/gpio

Device Drivers > LED Support

<*>  LED Support for GPIO connected LEDs

[*]       Platform device bindings for GPIO LEDs

0 项奖励
回复