Hi All,
The slave device supports only write mode, does not support read mode. After 10 write data, the slave device displays some values. Now I donot have Scope or Bus Analyzers.
Need to confirm that SPI transfer is happening properly or not. How to confirm that SPI transfer is proper using SPI controller registers or some other way.
The device tree values for SPI Master as:
spi@3240000 {
status = “okay”;
spi@0{
compatible = "driver_name";
reg = <0>; /* chip select */
// spi-max-frequency = <16000000>;
spi-max-frequency = <500000>;
/* spi-cpol;
spi-cpha;
*/
status = "okay";
controller-data{
nvidia,enable-hw-based-cs;
//nvidia,cs-setup-clk-count = <0x1e>;
};
};
};
In spi-tegra114.c file, device tree values:
nvidia,cs-setup-clk-count
nvidia,cs-hold-clk-coun
nvidia,tx-clk-tap-delay
nvidia,cs-inactive-cycles
nvidia,clk-delay-between-packets
For the above parameters, whether we need to assign values or the default values are enough.
Please confirm.
-Thanks.