SPI bus chipselect management in linux v6.1

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

SPI bus chipselect management in linux v6.1

340 次查看
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 项奖励
回复
0 回复数