Other Parts Discussed in Thread: AM4372
Hi,
I am going to connect my FPGA from the SPI4 of AM437x, to enable the SPI4 I have made the following changes in the device tree.
spi4_pins: pinmux_spi4_pins {
pinctrl-single,pins = <
0x250 (PIN_OUTPUT | MUX_MODE0) /* spi4_sclk.spi4_sclk */
0x254 (PIN_INPUT | MUX_MODE0) /* spi4_d0.spi4_d0 */
0x258 (PIN_OUTPUT | MUX_MODE0) /* spi4_d1.spi4_d1 */
0x25C (PIN_OUTPUT | MUX_MODE0) /* spi4_cs0.spi4_cs0 */
and
&spi4 {
pinctrl-0 = <&spi4_pins>;
status = "okay";
pinctrl-names = "default";
spidev@4 {
compatible = "rohm,dh2228fv";
/*compatible = "linux, spidev";*/
spi-max-frequency = <24000000>;
reg = <0>;
};
};
also, I enabled the McSPI driver for OMAP in the kernel configuration,
and enabled User mode SPI device driver support
after this I compiled the kernel and device tree and updated the sd card image and now I can see the spidev2.0 in the /dev.
Now I shorted the pin 65 and pin 63 which is data in and data out of the SPI4 to test the driver.
Now I am sendend the data to the driver but still not able to get any data back.
Please suggest what is the problem here.
Thank you.
Regards,
Zafar