This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

LP5562: [Cisco]: LED lp5562 is very unstable, some times working & sometimes not working.

Part Number: LP5562


Hi,

We are from Cisco Systems Inc, San Jose, USA. We are using lp5562 LED in one of our platform (Broadcomm based SOC, Router) to show router status with LED indication. When applications try to control (ON, OFF, BLINK etc) the LED from userspace linux, its working some times but most of the times not working.

environment:

HW Platform: BCM47622 based SOC platform with 2 lp5562 LED's

OS: OpenWRT based Linux system. Kernel 4.1

Drivers: 

drivers/leds/leds-lp5562.c

drivers/leds/leds-lp55xx-common.c

User space sysfs entries: (Example: We are making LED to Solid RED from blinking state)

    echo 0 > /sys/bus/i2c/devices/0-0032/run_engine

    echo "RGB" > /sys/bus/i2c/devices/0-0032/engine_mux

    echo 1 > /sys/bus/i2c/devices/0-0032/select_engine

    sleep 1

    echo 1 > /sys/class/firmware/lp5562/loading

    echo "40FF" > /sys/class/firmware/lp5562/data

    echo 0 > /sys/class/firmware/lp5562/loading

    sleep 1

    echo 1 > /sys/bus/i2c/devices/0-0032/run_engine

Issue Example: Trying to blink Green LED, but 1st time its not working, 2nd time its working (1st time , 2nd time means programming & writing LED data). Some times , 4th time its working. Especially this /sys/class/firmware/lp5562/loading is not creating after select_engine.

Requesting you to please provide the correct sequence.

Regards,

Srinivas.