Hi, I have my overlay file for using spi1 like this:
/* Add the SPI peripheral to spi1 */
&i2c0 { status = "disabled";};
&spi0 { status = "disabled";};
&i2c1 { status = "disabled";};
&spi1 {
compatible = "nordic,nrf-spi";
status = "okay";
pinctrl-0 = <&spi1_default>;
pinctrl-1 = <&spi1_sleep>;
pinctrl-names = "default", "sleep";
cs-gpios = <&gpio1 3 GPIO_ACTIVE_LOW>; // originalno su bili 0 30
max31865: max31865@0 {
compatible = "maxim,max6675";
reg = <0>;
spi-max-frequency = <125000>; // 125000
};
};
/* Change the pin configuration */
&pinctrl {
spi1_default: spi1_default {
group1 {
psels = <NRF_PSEL(SPIM_SCK, 0, 6)>, // originalno su bili 0 28
<NRF_PSEL(SPIM_MOSI, 1, 2)>, // originalno su bili 0 29
<NRF_PSEL(SPIM_MISO, 0, 8)>; // originalno su bili 0 31
};
};
spi1_sleep: spi1_sleep {
group1 {
psels = <NRF_PSEL(SPIM_SCK, 0, 6)>, // originalno su bili 0 28
<NRF_PSEL(SPIM_MOSI, 1, 2)>, // originalno su bili 0 29
<NRF_PSEL(SPIM_MISO, 0, 8)>; // originalno su bili 0 31
low-power-enable;
};
};
};
My question is, can I use this pins for MOSI and MISO even If they are on different ports?
Thanks in advance!