Dear Experts,
I am looking to configure MCU SPI0 and MCU SPI1 in Slave Mode for communication with other master control devices.
I have already added mcu_spi0 and mcu_spi1 with the "spi-slave" setting in the device tree source (DTS) file.
From the documentation, I understand that enabling DMA is required for using SPI Slave mode.
I have attempted to consult the PSI-L table but am unsure about which set to configure.
Could you please provide the comprehensive configuration method for MCU_SPI0 and MCU_SPI1 when set as slaves?
Thank you for your time and assistance. I am eagerly anticipating your expert advice.
This is our dtsi setting:
&mcu_spi1 { status = "okay"; pinctrl-names = "default"; pinctrl-0 = <&mcu_spi1_pins_default>; spi-slave; #address-cells = <0>; dmas = <&mcu_udmap 0xf200>, <&mcu_udmap 0x7200>; dma-names = "tx0", "rx0"; slave { spi-max-frequency = <24000000>; compatible = "rohm,dh2228fv"; }; };
Best regards,