Tool/software:
Hi,
Yocto SDK: 09_01_00
EVM: AM62A SK EVM
We are using above mention sdk and evm. We wanted to use the spi interface. we have configured the spi interface from dts as below.
&main_pmx0 { max22516_spi_pins_default: max22516-spi-pins-default { pinctrl-single,pins = < AM62AX_IOPAD(0x01bc, PIN_INPUT, 0) /* (A17) SPI0_CLK */ AM62AX_IOPAD(0x01b4, PIN_INPUT, 0) /* (D16) SPI0_CS0 */ AM62AX_IOPAD(0x01c0, PIN_INPUT, 0) /* (B15) SPI0_D0 */ AM62AX_IOPAD(0x01c4, PIN_INPUT, 0) /* (E15) SPI0_D1 */ >; }; }; &main_spi0 { pinctrl-names = "default"; pinctrl-0 = <&max22516_spi_pins_default>; status = "okay"; spidev@0 { compatible = "rohm,dh2228fv"; spi-max-frequency = <15000000>; reg = <0>; }; };
with this "/dev/spidev1.0" is getting created. Now when we want to send/receive the data over spi interface, cs(chip-select) is made low to high at start of data transfer and then chip-select pin goes low once data transfer is completed.
Now, we want to reverse the chip-select pin. we want to make the pin-low once data transfer starts and want to make it high once data transfer is completed. How can we toggle the behavior of chip select pin? We are using linux application to read/ write from "/dev/spidev1.0".
Regards,
Jay