Other Parts Discussed in Thread: AM4372,
Tool/software: Linux
we are using AM437x sdk 4.03.05 as our reference design. And we want to utilize the SPI1 as specified below on EMV.
aliases {
i2c0 = &i2c0;
i2c1 = &i2c1;
i2c2 = &i2c2;
serial0 = &uart0;
serial1 = &uart1;
serial2 = &uart2;
serial3 = &uart3;
serial4 = &uart4;
serial5 = &uart5;
ethernet0 = &cpsw_emac0;
ethernet1 = &cpsw_emac1;
spi0 = &qspi;
spi1 = &spi1;
};
spi1_pins: pinmux_spi1_pins {
pinctrl-single,pins = <
AM4372_IOPAD(0x990, MUX_MODE3) /* spi2_clk */
AM4372_IOPAD(0x994, MUX_MODE3) /* spi2_d0 */
AM4372_IOPAD(0x998, MUX_MODE3) /* spi2_d1 */
AM4372_IOPAD(0x99c, MUX_MODE3) /* spi2_cs0 */
>;
};
&spi1 {
pinctrl-0 = <&spi1_pins>;
status = "okay";
spidev@0 {
compatible = "ti,tianma";
spi-max-frequency = <24000000>;
reg = <0>;
};
and in our newly added .c file we have
static const struct of_device_id tianma_of_match[] = {
{ .compatible = "ti,tianma", },
{},
};
static struct spi_driver tianma_spi_driver = {
.driver = {
.name = DRIVER_NAME,
.of_match_table = of_match_ptr(tianma_of_match),
},
.probe = tianma_probe,
.remove = tianma_remove,
};
The device is mounted and probe works fine. However, we do not see the spi pins working as expected. no signals generated on any of the spi pin. What do I miss?
Thanks.
