I'm working on NCS 1.6.1.
i plan to use a SPIS with an IRQ pin .
i refered to a sample "hci_spi" in SDK , dts is as follows.
&spi1 {
compatible = "nordic,nrf-spis";
status = "okay";
sck-pin = <0xa>;
mosi-pin = <0xb>;
miso-pin = <0xc>;
csn-pin = <0xd>;
def-char = <0x00>;
spis1: bt-hci@0 {
compatible = "zephyr,bt-hci-spi-slave";
reg = <0>;
irq-gpios = <&gpio0 0xe (GPIO_ACTIVE_HIGH | GPIO_PULL_DOWN)>;
};
};
and i simply use following gpio_dt_spec to get the pin.
static const struct gpio_dt_spec irq = GPIO_DT_SPEC_GET(DT_NODELABEL(spis1), irq_gpios);
It basically works,
but if i deleted the "compatible" item or modified the content of the "compatible"("zephyr,bt-hci-spi-slave"), the compiling errors at the GPIO_DT_SPEC_GET.
so i wonder how to get rid of the "zephyr,bt-hci-spi-slave" since i don't use this spis for HCI.
actually i'm not sure if this is the standard way to config IRQ pin for spis, if there's any standard way, please give me a sample.