Re: GPIO support on nRF52840 DK
"leonardomt via Lists.Zephyrproject.Org"
This worked, although this pin in particular did not trigger the interrupt function but required calling gpio_pin_read(...) inside a loop to detect changes in its state.Sure thing!
Port 1 is the GPIO controller; the .0 is a pin number it
controls. You want the device label for the controller -- as
you've seen, the pin number is a separate piece of data.
You can look at the DTS files to know what nodes are available:
This dtsi (Device Tree Source Include) is included from the .dts
file for the board, which you can find by searching for its name
The nodes have the addresses of the hardware peripherals they
correspond to, so you can find the one you want by comparing your
chip memory map with the DT reg property. (But usually, they're
numbered according to the same peripheral numbering in the chip
reference manual, so P1 means you're looking for GPIO_1. And
similarly for other types of peripheral, like SPI_1, I2C_3, etc.)