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.

66AK2H14: Led GPIO use in U-boot

Part Number: 66AK2H14

Hi,

We have a custom board using 66AK2H14 processor.

I am currently trying to boot our new custom board. The first step for this is to run U-boot.

To know that my U-boot is working on custom board, I want to make some leds working on it, allowing me to see that u-boot is living. 

For this, I tried first to add the gpio led support in my EVM u-boot, before using it in my custom board U-boot.

However, until now, it is not working, I miss something.

For now,, I add the gpio support and the led support to my config using menuconfig (device drivers->led support). I also tried to add the command line interface for gpio ( command line interface -> Device access commands -> gpio).

I tried to use the gpio function in  ddr3_k2hk.c file, during init. Howver, I can't see any results on my LED.

I tried the following functions :

status = gpio_request(12, "led1");

gpio_direction_output(12, 1);

mdelay(2000);

gpio_direction_output(12, 0);

mdelay(2000);


led1 is the name I defined in the device tree source. 12 is the number of the gpio, knowing that I tested it in a DSP application with emulator and it is perfectly working, as using gpio 13, 14 and 15 for the 3 other leds.

Do you see any mistake I do or anything I am missing?

Thank you for your help.

Best Regards.

K.Luong