This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nRF9160 spi cs

Dear Sir.

Moving to version 2.4.99 from version 1.2.0 .

In previous version SPI worked well , cs was configured in overlay as

&spi3 {
status = "okay";
compatible = "nordic,nrf-spim";
sck-pin = <31>;
mosi-pin = <9>;
miso-pin = <30>;
cs-gpios = <&gpio0 26 0>,<&gpio0 15 1>;
};

This configuration doesn't work with v 2.4.99

so 

cs configured as IO.

&spi3 {
status = "okay";
compatible = "nordic,nrf-spim";
sck-pin = <31>;
mosi-pin = <9>;
miso-pin = <30>;
};

I manually change the CS as follows .

gpio_pin_set(dev_io,26,0);
err = spi_transceive(spi_dev3, &spi_cfg_afe4900, &tx, &rx);
gpio_pin_set(dev_io, 26, 1);

Now the CS works , However I get the warning such as 

[00:00:00.212,371] <inf> spi_nrfx_spim: CS control inhibited (no GPIO device)
[00:00:00.212,585] <inf> spi_nrfx_spim: CS control inhibited (no GPIO device)

How do I get rid of it.

Thanks

Related