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.

AM69: Configuring dts file for GPIO interrupts

Part Number: AM69

Our customer is using PROCESSOR-SDK-LINUX-AM69 version 09.01.00.06.

They modified the dts file (k3-am69-sk.dts) to use GPIO (WKUP_GPIO0_49) for an interrupt from the external RTC device (RV3032), but saw the interrupt configuration failed.

The dts file (k3-am69-sk.dts) was modified as follows.

&mcu_i2c0 {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&mcu_i2c0_pins_default>;
clock-frequency = <400000>;
+
+ rtc@51 {
+ compatible = "microcrystal,rv3032";
+ reg = <0x51>;
+ interrupt-parent = <&wkup_gpio0>;
+ interrupts = <49 IRQ_TYPE_EDGE_FALLING>;
+ };
};

https://git.ti.com/cgit/ti-linux-kernel/ti-linux-kernel/tree/arch/arm64/boot/dts/ti/k3-am69-sk.dts?h=ti-linux-6.1.y

The GPIO interrupt failed in the boot log as follows.

[ 5.287742] genirq: Setting trigger mode 8 for irq 276 failed (gpio_irq_type+0x0/0x20)
[ 5.301090] rtc-rv3032 2-0051: unable to request IRQ, alarms disabled
[ 5.315137] rtc-rv3032 2-0051: registered as rtc0

I am concerned that the GPIO (WKUP_GPIO0_49) defined by default in the dts file (k3-am69-sk.dts) is being used.

&wkup_pmx3 {
mcu_rpi_hdr2_gpio0_pins_default: mcu-rpi-hdr2-gpio0-pins-default {
pinctrl-single,pins = <
J784S4_WKUP_IOPAD(0x0, PIN_INPUT, 7) /* (M33) WKUP_GPIO0_49 */
>;
};
};

Is GPIO (WKUP_GPIO0_49) available for the user?

GPIO interrupts do not seem to work in PROCESSOR-SDK-LINUX-J784S4 version 8.6.

[FAQ] J784S4XEVM: 8.6 SDK - GPIO Interrupts are not functional

Do GPIO interrupts work properly in PROCESSOR-SDK-LINUX-AM69 version 09.01.00.06?

Best regards,

Daisuke