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.

Linux/AM5748: Interfacing 16x2 LCD with am5748

Part Number: AM5748

Tool/software: Linux

Hi all,

We are trying to interface 16x2 LCD display with am5748 processor, The GPIO pins are as below,

GPIO8_13
GPIO8_14
GPIO8_15
GPIO8_19
GPIO8_21
GPIO8_22
GPIO8_23
GPIO4_3

I am writing a code to drive the 16x2 LCD display and we have some functions in /include/linux/gpio.h for checking a valid GPIO, request and release for a gpio, setting direction and values of the gpio.

can I use this GPIO8_13 pin as a GPIO number for example

gpio_request(GPIO8_13)
gpio_direction_output(GPIO8_13, 1);
gpio_set_value(GPIO8_13, 1)
gpio_free(GPIO8_13)

If the above procedure is not correct kindly update me the correct way of accessing these gpio pins.

Thank You

Deepak.H.M