SPI bus chipselect management in linux v6.1

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

SPI bus chipselect management in linux v6.1

76 Views
jeff06
Contributor II

Hello,
For a hardware target using an imx6ULL processor, I am switching from linux v4.14 to linux v6.1.

although described in the DTS les CS file, it no longer works under linux 6.1

&ecspi1 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_ecspi1>;
num-cs = <1>;
cs-gpios = <&gpio5 8 GPIO_ACTIVE_HIGH>;
status = "okay";
 
spidev0: spi@0 {
compatible = "spidev";
reg = <0>;
spi-max-frequency = <2300000>;
spi-cs-high;
spi-cpha;
spi-cpol;
};


when I look in the sources of the "spi.c" and "spi-imx.c" files, I see that "cs-gpios" management is no longer functional.
device_property_read_u32(&pdev->dev, "cs-gpios", NULL))

How do I ensure that CS is properly taken into account?
Thank you for your help
0 Kudos
0 Replies