This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux/PROCESSOR-SDK-AM437X: DTS entry for SPI2 on Starter Kit

Part Number: PROCESSOR-SDK-AM437X


Tool/software: Linux

The am437x-sk-evm.dts file doesn't configure the SPI2 port on the starter kit. Only the MCSPI2 is accessible on that evaluation board. I was wondering if anyone has the modified dts file which configures both SPI2 and its DMA functionality on that starter kit.

  • Hi,

    For example, you can use something like:
    spi2_pins: spi2_pins {
    pinctrl-single,pins = <
    /*SPI pinmux settings go here*/
    >;
    };
    &spi2 {
    #address-cells = <1>;
    #size-cells = <0>;
    status = "okay";
    pinctrl-names = "default";
    pinctrl-0 = <&spi2_pins>;
    spidev@0 {
    #address-cells = <1>;
    #size-cells = <0>;
    spi-max-frequency = <24000000>;
    reg = <0>;
    compatible = "rohm,dh2228fv";
    };
    };

    You should also enable the CONFIG_SPI_SPIDEV=y in your tisdk defconfig file.

    Best Regards,
    Yordan
  • Thank you for your answer. I have run TI PinMux Cloud Tool to assign pinmux settings. For example, for the am437x starter kit (437x ZDN package) they are:

    spi2_pins:spi2_pins {
            pinctrl-single,pins = <
            0x260 ( PIN_OUTPUT | MUX_MODE0 ) /* (N20) spi2_sclk.spi2_sclk */
            0x264 ( PIN_OUTPUT | MUX_MODE0 ) /* (P22) spi2_d0.spi2_d0 */
            0x268 ( PIN_INPUT | MUX_MODE0 ) /* (P20) spi2_d1.spi2_d1 */
            0x26c ( PIN_OUTPUT | MUX_MODE0 ) /* (T23) spi2_cs0.spi2_cs0 */
            >;
        };

    AM437x is SPI Master in this case.