I couldn't find anything related to this issue on the devzone, so I hope this can help someone who has the same issue:
We're using the NRF54L15 QFN52 variant with a custom board definition and when trying to assign P0.06 we would get the error:
ASSERTION FAIL [(cfg->port_pin_mask & (gpio_port_pins_t)(1UL << (pin))) != 0U] @ WEST_TOPDIR/zephyr/include/zephyr/drivers/gpio.h:1041 Unsupported pin
We fixed the error by increasing the ngpios in the board dts file:
&gpio0 {
status = "okay";
ngpios = <7>;
gpio-reserved-ranges = <8 25>;
};
&gpio1 {
status = "okay";
ngpios = <17>;
gpio-reserved-ranges = <18 15>;
};
&gpio2 {
status = "okay";
ngpios = <11>;
gpio-reserved-ranges = <12 21>;
};