Using P0.04, P0.05, P0.06, P0.07 for SPIM on NRF9160 DK

I've been using the following SPI1M pins and they've been working:

CLK  -> P0.16
MOSI -> P0.17
MISO -> P0.19
CS   -> P0.18

But I have migrate away from these pins due to production PCB layout problems. The pins I need to use are P0.04, P0.05, P0.06, and P0.07 but when I switch over to these pins, my SPI communication stops working. I know these pins are used for LEDs and push buttons on the dev kit. Could this be interfering with SPI functionality?

My device tree is as follows:

/ {
	/delete-node/ aliases;
	/delete-node/ buttons;
	/delete-node/ leds;
};
/* From Nordic Academy */
&i2c0 {	status = "disabled";};
&spi0 {	status = "disabled";};
&i2c1 {	status = "disabled";};
&uart1 { status = "disabled";};
	
spi_master: &spi1 {
    compatible = "nordic,nrf-spim";
	status = "okay";
	pinctrl-0 = <&spi1_default>;
	pinctrl-1 = <&spi1_sleep>;
	pinctrl-names = "default", "sleep";
	cs-gpios = <&gpio0 4 GPIO_ACTIVE_LOW>;
};

/* SPI pin configuration */
&pinctrl {
	spi1_default: spi1_default {
		group1 {
				psels = <NRF_PSEL(SPIM_SCK, 0, 7)>,
						<NRF_PSEL(SPIM_MOSI, 0, 5)>,
						<NRF_PSEL(SPIM_MISO, 0, 6)>;
				nordic,drive-mode = <NRF_DRIVE_H0H1>;
		};
	};

	spi1_sleep: spi1_sleep {
		group1 {
				psels = <NRF_PSEL(SPIM_SCK, 0, 7)>,
						<NRF_PSEL(SPIM_MOSI, 0, 5)>,
						<NRF_PSEL(SPIM_MISO, 0, 6)>;
				low-power-enable;
		};
	};
};

Parents Reply Children
Related