Tool/software: Linux
Hi Ti:
We want to use SPI4 to read data from slave device.
But we can't read ay data from slave. (SPI write is ok)
We use spi4 as our master.
{GPMC_A8, (M8 | PIN_INPUT_PULLUP)}, /* spi4_sclk */
{GPMC_A9, (M8 | PIN_INPUT | SLEWCONTROL)}, /* spi4_d1 */
{GPMC_A10, (M8 | PIN_INPUT | SLEWCONTROL)}, /* spi4_d0*/
{GPMC_A13, (M8 | PIN_INPUT | SLEWCONTROL)}, /* spi4_cs2 */
And our device tree setting is below.
&mcspi4 {
status = "okay";
sony_oled: sony_oled@0 {
compatible = "oled,sony_ecx336";
reg = <0>;
spi-max-frequency = <1000000>;
spi-tx-bus-width = <1>;
spi-rx-bus-width = <1>;
};
};
Can you help us to check what's going on?
DarkHou