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.

SK-AM64B: GPIO Interrupt in Linux UserTask

Part Number: SK-AM64B

Tool/software:

Hi,

I'm trying to get an gpio Interrupt running with the push button on the SK-AM64B.

I'm using SDK 09_02_01_10.

First step, I changed device tree file k3-am642-sk.dts for gpio1_59 input:

usr_exp_gpio_pins_default: usr-exp-gpio-pins-default {
    pinctrl-single,pins = <
    AM64X_IOPAD(0x024C, PIN_INPUT, 7) /* (E16) UART1_RTSn */
>;
};

I tested the button press after export with /sys/class/gpio/gpio388/value. Looks good. After pressing the button I'm getting value 0.

Now I want to configure and read the IRQ with the help of a UserSpace Task.

I tried to change the device tree, with the help of another forum post:

&main_gpio1 {
status = "okay";

gpioint: gpioint {
    status = "okay";
    pinctrl-names = "default";
    pinctrl-0 = <&usr_exp_gpio_pins_default>;
    interrupt-parent = <&main_gpio1>;
    interrupts = <59 IRQ_TYPE_EDGE_FALLING>;
    };
};

After booting, I checked /proc/interrupts. There is no new GPIO IRQ. Could you please support me to get the IRQ running?

thanks