This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to define an interrupt pin for SPIM in devicetree

I'd like to add an interrupt pin for a SPIM device. (eg. in the following spi_dev:)

&spi3 {

compatible = "nordic,nrf-spim";
cs-gpios = <&gpio0 0xf GPIO_ACTIVE_LOW>;


spi_dev: spi-master@0 {
reg = <0>;


};
};

and how to get the pin in c code by devicetree API?

are there any example codes?

Parents Reply Children
Related