Part Number: AM5728
Hello,
I'm having some issues enabling SPI1 with the following configurations:
1.)
In U-boot-2017.1/board/ti/am57xx/mux_data.h:
const struct pad_conf_entry core_padconf_array_essential_am572x_idk[] = {
{SPI1_SCLK, (M14 | PIN_OUTPUT)},
{SPI1_D1, (M14 | PIN_OUTPUT)},
{SPI1_D0, (M14 | PIN_OUTPUT)},
{SPI1_CS0, (M14 | PIN_OUTPUT)}
};
2.) I have enabled CONFIG_SPI_SPIDEV in linux-kernel/arch/arm/configs/tisdk_am57xx-evm_defconfig
3.) I have modifed the device tree file as follows:
&dra7_pmx_core {
spi1_pins_s0: spi1_pins_s0 {
pinctrl-single,pins = <
0x3A4 (PIN_INPUT_PULLUP | MUX_MODE0) /* GW SPI CLIK | Ballpin A25 */
0x3A8 (PIN_INPUT_PULLUP | MUX_MODE0) /* GW SPI MISO | Ballpin F16 */
0x3AC (PIN_OUTPUT_PULLUP | MUX_MODE0) /* GW SPI MOSI | Ballpin B25 */
0x3B0 (PIN_OUTPUT_PULLUP | MUX_MODE0) /* GW SPI CS | Ballpin A24 */
>;
};
&mcspi1 {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&spi1_pins_s0>;
ti,pindir-d0-out-d1-in;
spidev@1 {
spi-max-frequency = <48000000>;
reg = <0>;
compatible = "rohm,dh2228fv";
};
};
4.) When the device boots up, I am able to see /dev/spidev1.0. However, when I perform the command echo "deadbeat" >> /dev/spidev1.0, I'm not seeing any activity on the clk line, cs line, or MOSI line!
What steps am I missing?