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.

TDA4VM: MCU_SPI0 under Linux

Part Number: TDA4VM


Tool/software:

Hi Processor Experts,

I'm trying to use MCU_SPI0 under Linux. I have Linux SDK 9.2 and custom board.

In k3-j721e-mcu-wakeup.dtsi file there is already present following node

mcu_spi0: spi@40300000 {
  compatible = "ti,am654-mcspi", "ti,omap4-mcspi";
  reg = <0x00 0x040300000 0x00 0x400>;
  interrupts = <GIC_SPI 848 IRQ_TYPE_LEVEL_HIGH>;
  #address-cells = <1>;
  #size-cells = <0>;
  power-domains = <&k3_pds 274 TI_SCI_PD_EXCLUSIVE>;
  clocks = <&k3_clks 274 0>;
  status = "disabled";
};

In k3-j721e-common-proc-board.dts  file I have added:

mcu_spi0_pins_default: mcu_spi0_pins_default {
  pinctrl-single,pins = <
    J721E_WKUP_IOPAD(0x90, PIN_INPUT, 0) /* (E27) MCU_SPI0_CLK */
    J721E_WKUP_IOPAD(0xe8, PIN_OUTPUT, 1) /* (H29) WKUP_GPIO0_14.MCU_SPI0_CS2 */
    J721E_WKUP_IOPAD(0x9c, PIN_OUTPUT, 0) /* (E25) WKUP_GPIO0_55.MCU_SPI0_CS0 */
    J721E_WKUP_IOPAD(0x94, PIN_OUTPUT, 0) /* (E24) MCU_SPI0_D0 */
    J721E_WKUP_IOPAD(0x98, PIN_INPUT, 0) /* (E28) MCU_SPI0_D1 */
  >;
};
&mcu_spi0 {
  status = "okay";
  pinctrl-names = "default";
  pinctrl-0 = <&mcu_spi0_pins_default>;

  spidev@0 {
    compatible="rohm,dh2228fv";
    spi-max-frequency = <100000>;
    reg = <0x0>;
  };
};

And right now I have:

Next I try to test it:

and unfortunately there is a silence on output. Only CS and clock is worked. TX pin is still in high state.

Can you tell me where there is a bug, or what I should check?