Configure two spi devices on same spi interface

Hi ,
I have two spi devices using same mosi and miso lines. One use a custom driver and another use the default spidev driver.The one with custom spidriver is connected to chip select 0 , which works dine.but the one with spidev works fine with loopback , tested with a userspace application based on spidev devicenode.
but when a slave imu device is connected to cs 1 , I am not getting proper data.Where should I specify both the chip-selects.?

spi@3210000{ /* SPI1 in 40 pin conn /
status = “okay”;
nvidia,clock-always-on;
cs-gpios = <&tegra_main_gpio TEGRA194_MAIN_GPIO(Z, 6) 0>;
prod-settings {
#prod-cells = <3>;
prod {
prod = <0x04 0x0000003f 0x0f>;
};
};
// TPM
slb9670: slb9670@0
{
compatible = “infineon,slb9670”;
reg = <0>;/
CE0 */
#address-cells = <1>;
#size-cells = <0>;
spi-max-frequency = <5000000>;
status = “okay”;
controller-data {
nvidia,variable-length-transfer;
nvidia,enable-hw-based-cs;
};
};
spidev@1 {
compatible = “spidev”;
reg = <1>;
spi-max-frequency=<25000000>;
};
};

You need to tell the controller about the 2 chip select GPIOs

cs-gpios = <&tegra_main_gpio TEGRA194_MAIN_GPIO(Z, 6) 0>, <&tegra_main_gpio TEGRA194_MAIN_GPIO(Z, 7) 0>;
num-cs = < 2 >;

You probably also want to double check the pinmux node to make sure that the SPI1_CS1 pin has the proper settings.

Did you probe the CS1 to confirm if it working as expect?