Hello,
I'm working on a custom board with a nrf54l15 chip.
I would like to add an interruption on the GPIO P2.10. But I get an error -ENOTSUP with gpio_pin_interrupt_configure_dt().
The gpio is defined like this in the devicetree overlay;
/* Battery charging signal P2.10 */
batt_sig{
compatible = "gpio-keys";
battchrg: battchrg_sig{
gpios = <&gpio2 10 GPIO_ACTIVE_LOW>;
label = "Battery charging signal";
};
};
And I try to configure the interruption like this
#define BATTCHRG_NODE DT_NODELABEL(battchrg)
const struct gpio_dt_spec battcharg_sig = GPIO_DT_SPEC_GET(BATTCHRG_NODE, gpios);
gpio_init() {
if (!device_is_ready(battcharg_sig.port)) { LOG_ERR("Battery Charging signal port not ready"); return 1; }
ret = gpio_pin_interrupt_configure_dt(&battcharg_sig,GPIO_INT_EDGE_TO_ACTIVE);
}
ret value is now -ENOTSUP.
I have other interruption configuration like the one above on other GPIO port and that works perfectly fine.
Is the GPIO port 2 able to configure interruption ? In https://docs.nordicsemi.com/bundle/ps_nrf54L15/page/gpio.html, it is said that every GPIO can "Trigger interrupt on state changes on any pin"
SDK: 2.8.0
Antoine