Hi,
I would like to add multiple CS (Chip Select) support in the device tree to handle multiple SPI devices with help of /dev/spidev1.x (x is a number of CS) nodes. Please find below snippet of my device tree.
spi1_pins: pinmux_spi1_pins { pinctrl-single,pins = < 0x190 (PIN_INPUT_PULLUP | MUX_MODE3) /* mcasp0_aclkx.spi1_sclk */ 0x194 (PIN_INPUT_PULLUP | MUX_MODE3) /* mcasp0_fsx.spi1_d0 */ 0x198 (PIN_INPUT_PULLUP | MUX_MODE3) /* mcasp0_axr0.spi1_d1 */ 0x19C (PIN_INPUT_PULLUP | MUX_MODE3) /* mcasp0_ahclkr.spi1_cs0 */ 0x108 (MUX_MODE7) /* mii1_col.gpio3_0 */ >; };
&spi1 { status = "okay"; pinctrl-names = "default"; pinctrl-0 = <&spi1_pins>; ti,pindir-d0-out-d1-in = <1>; spidev@0 { compatible = "linux,spidev"; spi-max-frequency = <20000000>; reg = <0>; }; spidev@1 { compatible = "linux,spidev"; spi-max-frequency = <20000000>; reg = <1>; }; };
With the mentioned device tree information, I am only able to handle spidev1.0 with the CS0 pin. I am not able to handle spidev1.1 with the CS1 pin. Kindly help me to resolve this issue.
Best Regards,
Neel