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/AM5728: Device Tree Enable GPIO Buttons

Part Number: AM5728


Tool/software: Linux

Hello again, I've been working on a device tree edit for our custom board, to add some buttons.  I have two questions:

1. Since these buttons are going to be used in-application to send messages over ethernet (press button A to send message 1 and button B to send message 2, etc) would the gpio-keys driver be the proper driver?  Do the Linux Code values for each pin have to correspond to a value that is available on a keyboard, or are there custom options?

2. If I were to use the gpio-keys or even the sysfs driver, would I be able to see the GPIO change in the u-boot command line interface using gpio status?

Any help would be greatly appreciated :)