Hi guys,
I want to use P1.08 on the nRF52840-DK as a GPIO in my overlay file:
/ {
gpios {
compatible = "gpio-keys";
col1: col1 {
gpios = <&gpio1 8 GPIO_ACTIVE_HIGH>;
label = "col1";
};
};
aliases {
col1 = &col1;
};
};
Which produces the following warning:
Pin 8 of &gpio1 already assigned to /soc/spi@40004000/pinctrl-1 nrf52840dk_nrf52840.dts(202, 2): Overlapping assignment
This leads me to the following code in nrf52840dk_nrf52840.dts:
&spi1 {
compatible = "nordic,nrf-spi";
status = "okay";
pinctrl-0 = <&spi1_default>;
pinctrl-1 = <&spi1_sleep>;
pinctrl-names = "default", "sleep";
};
I've tried to disable &spi in nrf52840dk_nrf52840.overlay as follows:
&spi1 {
status = "disabled";
};
Which throws the following error:
/home/laci/projects/ncs/toolchains/v2.1.2/opt/zephyr-sdk/arm-zephyr-eabi/bin/ ../lib/gcc/arm-zephyr-eabi/10.3.0/../../../../arm-zephyr-eabi/bin/ld.bfd: app/libapp.a(main.c.obj): /home/laci/projects/firmware/nordic-left/src/main.c:42: undefined reference to `__device_dts_ord_111'
How can I disable &spi1 in the overlay file?
Thanks in advance!
- Laci