Hi Ben.
Thanks for your response.
I managed to enable 2 chip selects on one SPI bus.
But when I add another SPI bus, then it won't show up in my /dev.
&ecspi1 {
fsl,spi-num-chipselects = <2>;
cs-gpios = <&gpio4 9 0>, <&gpio5 9 0>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_ecspi1_2>;
status = "okay";
chip1: spidev@0 {
compatible = "spidev";
spi-max-frequency = <20000000>;
reg = <0>;
};
chip2: spidev@1 {
compatible = "spidev";
spi-max-frequency = <20000000>;
reg = <1>;
};
};
&ecspi3 {
fsl,spi-num-chipselects = <1>;
cs-gpios = <&gpio4 24 0>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_ecspi3_1>;
status = "okay";
chip3: spidev@0 {
compatible = "spidev";
spi-max-frequency = <20000000>;
reg = <0>;
};
};
All I see in my /dev are from ecspi1.
/Niklas