I am working on LS1088ardb_pb platform
I am trying to use SPI_PCS3 (pin V1 - gpiochip3 offset 20) as a chip selection line for dspi, and here is my device tree node assigned
&dspi {
status = "okay";
bus-num = <0>;
spidev@0 {
compatible = "linux,spidev";
spi-max-frequency = <12000000>;
reg = <x>; //For chip selection pin SPI_PCS3
};
};
In reg = <x>; what would be the number for "x" for corresponding pin SPI_PCS3 to choose a spi chip select?
in rcw_1600_qspi.rcw file I have added below mentioned code
SPI_EXT=0
SPI_BASE_BASE=0
SPI_PCS_BASE=0
I am booting from qspi flash (not SD Card boot) and SPI_PCS3 pin is multiplexed with other functionality, do I need to set any switch configuration?
switch setup as mentioned below:
SW1[1:8] | SW2[1:8] | SW3[1:8] | SW4[1:8] | SW5[1:8] |
0011 0001 | 0100 0000 | 1110 0010 | 1001 0011 | 0111 0000 |
Regards
Suresh