• Tomas Hlavacek's avatar
    Omnia: Add kernel LED driver · b3918df9
    Tomas Hlavacek authored and Michal Hrusecky's avatar Michal Hrusecky committed
    Add kernel LED driver for Omnia board/MCU.
    
    The driver implements standard LED interface.
    More to it, the driver adds new files to
    /sys/devices/platform/soc/soc:internal-regs/f1011000.i2c/i2c-0/i2c-1/ \
    1-002b/leds/<name of LED>
    
    The files are
    brightness - the LED interface
    color - R G B code
    autonomous - 1=MCU drives the LED autonomously (default), 0=kernel LED driver
    
    And there is global file
    /sys/devices/platform/soc/soc:internal-regs/f1011000.i2c/i2c-0/i2c-1/ \
    1-002b/global_brightness
    which sets the global brightness via common PWM.
    b3918df9