Part Number: SK-AM62
Other Parts Discussed in Thread: SYSCONFIG
Hello,
Much like Emanuele in the related post, I am struggling with spidev on the SK-AM62. I have repeated their steps, enabling "User mode SPI device driver support" in the kernel and loading that, modifying the device tree as they did where the SPI0 pins that are routed to the expansion header have been added to both the pinmux and spi0 sections of the device tree, and have cross-compiled spidev_test and loaded that. The clock signal (pin 23 of the header) and chip select (CS0, pin 24 of the header) work properly.
In the device tree, I have set D0 as the output and D1 as the input
main_spi0_pins_default: main-spi0-pins-default {
pinctrl-single,pins = <
AM62X_IOPAD(0x01C0, PIN_OUTPUT, 0) /* (B13) SPI0_D0 */
AM62X_IOPAD(0x01C4, PIN_INPUT, 0) /* (B14) SPI0_D1 */
AM62X_IOPAD(0x01B4, PIN_OUTPUT, 0) /* (A13) SPI0_CS0 */
AM62X_IOPAD(0x01BC, PIN_OUTPUT, 0) /* (A14) SPI0_CLK */
>;
};
However, D0 seems to float at 0.5V and is noisy during the byte transmissions, while D1 appears to be the output pin and has shows the data that is supposed to be sent.
Did I misconfigure something in the device tree as the D0 and D1 lines are not behaving as I would expect.
Thank you for your time.
Regards,
Andy
