Hello,
We are trying to configure SPI on a custom board on AM5728 core. We have similar design as that of BeagleBone-X15. We have made the below changes in the device tree to adapt SPI4.
************************************************************************
FILE NAME: am57xx-beagle-x15.dts
aliases {
rtc0 = &mcp_rtc;
rtc1 = &tps659038_rtc;
rtc2 = &rtc;
sound1 = &hdmi;
i2c5 = &i2c5;
spi4 = &mcspi4;
};
mcspi4_pins: pinmux_mcspi4_pins {
pinctrl-single,pins = <
0x3A4 (PIN_INPUT | MUX_MODE0) /* mcspi4_clk */
0x3AC (PIN_INPUT | MUX_MODE0) /* mcspi4_simo */
0x3A8 (PIN_INPUT | MUX_MODE0) /* mcspi4_somi */
0x3B0 (PIN_INPUT | MUX_MODE0) /* mcspi4_cs0 */
>;
};
&mcspi4 {
pinctrl-names = "default";
pinctrl-0 = <&mcspi4_pins>;
status = "okay";
};
************************************************************************
We have enabled the required SPI device driver in the kernel by
Device Drivers ---> [*] SPI support [*] Mcspi Driver for Omap.
Is there anything to be done further? Please suggest.
Best Regards,
Srinidhi S.