Hi,
I want to configure P2.06 of my custom board nrf54l15 as DI. I have added following configuration in .overlay file
/ { gpio_keys { compatible = "gpio-leds"; push_button: push_btn { gpios = <&gpio2 6 GPIO_PULL_UP>; label = "PUSH_BTN"; }; }; };
And configured the pin as input as follows
#define PUSH_BUTTON_NODE DT_NODELABEL(push_button) static struct gpio_dt_spec button = GPIO_DT_SPEC_GET(PUSH_BUTTON_NODE, gpios); static struct gpio_callback button_cb_data; gpio_pin_configure_dt(&button, GPIO_INPUT); gpio_pin_interrupt_configure_dt(&button, GPIO_INT_EDGE_BOTH); gpio_init_callback(&button_cb_data, on_demand_isr, BIT(button.pin)); gpio_add_callback(button.port, &button_cb_data);
But I am not getting any interrupts on the pin.
As I read in some posts on devzone, P2.06 is default configured as TRACECLK / SPI.SCK.
Are there any other configurations that need to be added to the .overlay or prj.conf file to work P2.06 as a normal GPIO??
Thanks,
Payal