I want to use Hikey970’s SPI2 for data transmission debugging.
The DTS and /dev/spidev32766.0 have been configured,
but during the data transmission test,
CS has been high, so that the transmitted data is 0xFF.
the dts of SPI2 like this:
&spi2 {
label = "LS-SPI2";
status = "okay";
cs-gpios = <&gpio27 0 0>;
spidev@0{
compatible = "dcb,spidev";
spi-max-frequency = <10000000>;
reg = <0>;
status = "okay";
};
};
What can I do to make CS work, thanks