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.

AM5718 cofig interrupt

I need gpio5_1 to be interrupt for my keypad

i want to config it in dts and to use "gpio-keys" as the driver for this interrupt .

i added in am571x-idk.dts that path of code:

&gpio5 {
keypad_interrupt: gpio_keys {
compatible = "gpio-keys";
gpio-controller;
#gpio-cells = <2>;
interrupt-controller;
#interrupt-cells = <2>;
interrupt-parent = <&gpio5>;

keypad_button@1 {
label = "Keypad Button";
gpios = <&gpio5 1 GPIO_ACTIVE_LOW>;
linux,code = "KEY_ENTER";

gpio-key,wakeup;
};
};
};

but in kernel i dont see in file system that path:
 * There are 4 attributes under /sys/devices/platform/gpio-keys/  (from gpio_keys.c)

in the defconfig file  i have

CONFIG_KEYBOARD_GPIO=y

what is the problem?