I am using nRF9160Dk and I am facing some issues in configuring the SPI and uart.
I am able to get my UART working properly with the following pins
&uart1 {
compatible = "nordic,nrf-uarte";
current-speed = <115200>;
status = "okay";
tx-pin = <10>;
rx-pin = <11>;
rts-pin = <0xFFFFFFFF>;
cts-pin = <0xFFFFFFFF>;
};
Even the SPI works fine with the following pins
&spi3 {
//compatible = "nordic,nrf-spim";
status = "okay";
sck-pin = <10>;
mosi-pin = <11>;
miso-pin = <12>;
cs-gpios = <&gpio0 13 0>;
//int1-gpios = <&gpio0 2 0>;
sdhc0: sdhc@0 {
compatible = "zephyr,mmc-spi-slot";
reg = <0>;
status = "okay";
label = "SDHC0";
//spi-max-frequency = <24000000>;
spi-max-frequency = <12000000>;
//int1-gpios = <&gpio0 2 0>;
};
};
Since my 10 and 11 pins are overlapped I need different pin number to make both of them work at the same time, but unfortunately, with any other pin assignments, my example doesnot work. I did not find any documentation on which pins should I use for SPI/Uart.
If anyone can help me with this, it would be great