Hi,
I'm developing a library (in the "src" folder of the project) for a I2C sensor. The device is a temperature sensor that has a specific pin for alert (interrupt). I'm trying to understand how to write properly a DTS overlay file to implement such functionalities. I already read the last devicetree specifications (0.4rc) and looked in nrf connect sdk documentation, but specific info on syntax and requirements are missing (or i have not been able to find them!).
I would like to connect the interrupt pin on P1.10, but i don't understand what are the required fields and their parameters. This is my overlay at the moment
&i2c1 { compatible = "nordic,nrf-twim"; status="okay"; pinctrl-0=<&i2c1_default>; pinctrl-1=<&i2c1_sleep>; temp-sensor-test: temp_sens@18{ compatible = "i2c-device"; reg = <0x18>; label = "temp_sens"; interrupt-parent = < &nvic >; interrupts = <1 NRF_DEFAULT_IRQ_PRIORITY>; }; };
Even if i know that there are different ways i can make an interrupt work, i'm trying to understand better how to use devicetree more efficiently. Any guide or suggestion you can provide me is really appreciated!
Thanks,
Frax