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

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

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

900 Views
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

0 Kudos
1 Reply

405 Views
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 Kudos