LED (SBC-i.MX51)

From BlueWiki

Jump to: navigation, search

The SBC contains a full color LED (OVSARGB3R8) that is connected to the MC13892 power management IC.

1 Linux kernel configuration

Device Drivers  --->
  [*] LED Support  --->
    <*>   LED Class Support
    <*>   LED Support for mc13892 pmic
  MXC support drivers  --->
    MXC PMIC support  --->
      <*> MC13892 PMIC
      [*]   Support PMIC I2C Interface
      <*> MC13892 Light and Backlight support

2 Test in Linux

  • Blue light:
"echo 255 > /sys/class/leds/pmic_ledsb/brightness"
  • Green light:
"echo 0 > /sys/class/leds/pmic_ledsb/brightness"
"echo 255 > /sys/class/leds/pmic_ledsg/brightness"
  • Red light:
"echo 0 > /sys/class/leds/pmic_ledsg/brightness"
"echo 255 > /sys/class/leds/pmic_ledsr/brightness"
  • White light:
"echo 255 > /sys/class/leds/pmic_ledsb/brightness"
"echo 255 > /sys/class/leds/pmic_ledsg/brightness"
Personal tools