Linux spidev driver making custom spi driver not being called

0

I have three spi devices. Two uses custom spi drivers , whereas the one uses the spidev drivers.

When I have spifpga driver and spidev driver included in defconfig file , I get only spidev device node working(/dev/spidev0.1).The spi_fpga init is called but the probe being not called

Whereas when I remove spidev driver, the /dev/spi_fpga2.0 device node is created and working.Any suggestions on making both work at same time ?

spi@3210000{ /* SPI1 in 40 pin conn /
status = “okay”;
nvidia,clock-always-on;
cs-gpios = <&tegra_main_gpio TEGRA194_MAIN_GPIO(Z, 6) 0>, <&tegra_main_gpio TEGRA194_MAIN_GPIO(Z, 7) 0>;
num-cs = < 2 >;
prod-settings {
#prod-cells = <3>;
prod {
prod = <0x04 0x0000003f 0x0f>;
};
};
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>;
};
};
spi@3230000 {
status = "okay";
spi-max-frequency = <12000000>;
        spifpga@0 {
        compatible = "lfpga-spi";
        reg = <0x0>;
        spi-max-frequency=<25000000>;
        };
};
linux
asked on Stack Overflow Mar 26, 2021 by vik

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0