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.

USER LED blink on Jacinto6 board

Other Parts Discussed in Thread: PCF8575

Hi,

I have to blink USER LED's of Jacinto6 board.
I see USER LED's are mapped onto I2C GPIO Expander. U58.
P4 USER_LED1 User LED 1
P5 USER_LED2 User LED 2
P6 USER_LED3 User LED 3
P7 USER_LED4 User LED 4

Also from Board schematic board, we see :
DS1 LED_GRN,
DS2 LED_GRN,
DS3 LED_GRN,
DS4 LED_GRN

The config details are enabled as expected.
CONFIG_LEDS_GPIO=y
CONFIG_ARCH_REQUIRE_GPIOLIB=y

But I don't see any details in :
/sys/class/leds
/sys/devices/platform/leds-gpio/leds

From:
From arch/arm/boot/dts/omap4-sdp.dts
we can see USER leds are present.

Is it missing of jacinto6 board ?
and any other factors which needs be to considered to make USER LED work ?

 

Regards,

Mounesh

  • Hello Mounesh,

    The user Leds are not defined in /arch/arm/boot/dts/ dra7-evm.dts or dra7.dtsi

    The user leds defined in omap4-sdp.dts is not actual for Jacinto 6 board.

    I assume that the i2c interface is not enabled/configured to IO expander PCF8575. The slave address to U58  is 0x20.

    Enable the i2c1 module as set the registers:

    CM_L4PER_I2C1_CLKCTRL[1:0] MODULEMODE - 0x2: Module is explicitly enabled. This register manages the I2C1 clocks.
    PM_L4PER_PWRSTCTRL[1:0] POWERSTATE - 0x3: ON State - Power state control

    Check the pad configurations:

    CTRL_CORE_PAD_I2C1_SDA
    CTRL_CORE_PAD_I2C1_SCL

    After applying these settings, check USER LEDs.

    Best regards,

    Yanko