<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Enabling SPI Slave Device under /dev on i.MX93QSB in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Enabling-SPI-Slave-Device-under-dev-on-i-MX93QSB/m-p/2031087#M233164</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/206761"&gt;@Chavira&lt;/a&gt;&amp;nbsp;，&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have some questions regarding the wire connections in the example you provided. In the example, the sout of the master connects to the sout of the slave while the sin of the master connects to the sin of the slave.&amp;nbsp; Why is it like this?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lluo_0-1737435037259.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/320482i6C3463D3F72A7DBF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lluo_0-1737435037259.png" alt="lluo_0-1737435037259.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From my understanding , the sout of the spi master should connect to the sin of the spi slave, and the sin of the spi master should connect to the sout of the spi slave.&amp;nbsp; Do you probably explain a bit more about the spi wire connection provided in your example? I am looking forward to your early reply. Thank you in advance.&lt;/P&gt;</description>
    <pubDate>Tue, 21 Jan 2025 04:49:46 GMT</pubDate>
    <dc:creator>lluo</dc:creator>
    <dc:date>2025-01-21T04:49:46Z</dc:date>
    <item>
      <title>Enabling SPI Slave Device under /dev on i.MX93QSB</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Enabling-SPI-Slave-Device-under-dev-on-i-MX93QSB/m-p/1987010#M230439</link>
      <description>&lt;P&gt;Hello NXP Community,&lt;/P&gt;&lt;P&gt;I am working on an SPI communication project using the i.MX93QSB and Linux kernel 6.1.&lt;/P&gt;&lt;P&gt;My goal is to set up both SPI master and SPI slave on the same board to test data exchange. I’ve followed the NXP examples for configuring SPI in both master and slave modes in the device tree, and I’ve encountered some challenges with accessing the SPI slave in user space.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;What I've Done So Far&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;SPI Master Configuration&lt;/STRONG&gt;: I used the example in&amp;nbsp;&lt;STRONG&gt;imx93-9x9-qsb-lpspi.dts&lt;/STRONG&gt; (&lt;EM&gt;&lt;A href="https://github.com/nxp-imx/linux-imx/blob/lf-6.1.y/arch/arm64/boot/dts/freescale/imx93-9x9-qsb-lpspi.dts" target="_blank" rel="noopener"&gt;linux-imx/arch/arm64/boot/dts/freescale/imx93-9x9-qsb-lpspi.dts at lf-6.1.y · nxp-imx/linux-imx · GitHub&lt;/A&gt;&lt;/EM&gt;) to configure lpspi3 in master mode. With this setup, I can see "/dev/spidevX.Y" and &lt;FONT color="#339966"&gt;successfully test loopback by connecting MISO and MOSI.&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;SPI Slave Configuration&lt;/STRONG&gt;: For slave mode, I followed the example in&amp;nbsp;&lt;STRONG&gt;imx93-9x9-qsb-lpspi-slave.dts &lt;/STRONG&gt;&lt;EM&gt;(&lt;A href="https://github.com/nxp-imx/linux-imx/blob/lf-6.1.y/arch/arm64/boot/dts/freescale/imx93-9x9-qsb-lpspi-slave.dts" target="_blank" rel="noopener"&gt;l&lt;/A&gt;&lt;/EM&gt;&lt;A href="https://github.com/nxp-imx/linux-imx/blob/lf-6.1.y/arch/arm64/boot/dts/freescale/imx93-9x9-qsb-lpspi-slave.dts" target="_blank" rel="noopener"&gt;&lt;EM&gt;inux-imx/arch/arm64/boot/dts/freescale/imx93-9x9-qsb-lpspi-slave.dts at lf-6.1.y · nxp-imx/linux-imx · GitHub&lt;/EM&gt;&lt;/A&gt;&lt;EM&gt;)&amp;nbsp;&lt;/EM&gt;in which it is used the "&lt;STRONG&gt;spi-slave&lt;/STRONG&gt;" keyword.&amp;nbsp;However, in this configuration, there’s no device under "/dev" for the SPI slave. Instead, I only see the slave node under "/sys/class/spi_slave/spiX".&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sergiomauro_1-1730719772628.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/308395iE92AA6CBAF23657F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sergiomauro_1-1730719772628.png" alt="sergiomauro_1-1730719772628.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;Objective&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I would like to set up both SPI master and SPI slave on the i.MX93QSB and interact with both in user space. Ideally, I want an interface for the SPI slave under "/dev" (similar to spidev) so I can open both devices in a single C program for master-slave communication testing on the same board.&lt;BR /&gt;&lt;BR /&gt;I tried to remove the "/delete-node/ spi@0;" line from the slave device tree but received the following error:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sergiomauro_0-1730719721991.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/308393i09F84A4661B60188/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sergiomauro_0-1730719721991.png" alt="sergiomauro_0-1730719721991.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;After all this, what I ask is if&amp;nbsp;it possible to enable a "/dev" interface for an SPI slave on the i.MX93QSB?&amp;nbsp;If so, what modifications would be needed in the device tree?&lt;BR /&gt;&lt;BR /&gt;Any guidance on creating a "/dev" interface for the SPI slave on i.MX93QSB, or tips from others who’ve encountered similar challenges, would be greatly appreciated!&lt;BR /&gt;&lt;BR /&gt;Thank you for your help!&lt;BR /&gt;Sergio&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2024 11:34:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Enabling-SPI-Slave-Device-under-dev-on-i-MX93QSB/m-p/1987010#M230439</guid>
      <dc:creator>sergiomauro</dc:creator>
      <dc:date>2024-11-04T11:34:43Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling SPI Slave Device under /dev on i.MX93QSB</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Enabling-SPI-Slave-Device-under-dev-on-i-MX93QSB/m-p/1987968#M230514</link>
      <description>&lt;P&gt;HI &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/242475"&gt;@sergiomauro&lt;/a&gt;!&lt;/P&gt;
&lt;P&gt;Thank you for contacting NXP Support!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I used the LPSPI8 as a slave in iMX93 QSB and that are the steps that I followed :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Tested on BSP 6.1.55&lt;/P&gt;
&lt;P&gt;1) I modify the &lt;A href="https://github.com/nxp-imx/linux-imx/blob/lf-6.1.55-2.2.2/arch/arm64/boot/dts/freescale/imx93-9x9-qsb-lpspi.dts" target="_self"&gt;original Device tree&lt;/A&gt; and the final result is the next:&lt;/P&gt;
&lt;P&gt;The LPSPI3 is Master and LPSPI8 is Slave&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
/*
 * Copyright 2022 NXP
 */

#include "imx93-9x9-qsb.dts"

&amp;amp;sai3 {
	status = "disabled";
};

/*
LPSPI3 Master Mode

PAD_NAME    FUNCTION        QSB J1401

GPIO_IO08   CS              24   
GPIO_IO09   LPSPI3_SIN      21
GPIO_IO10   LPSPI3_SOUT     19
GPIO_IO11   LPSPI3_SCK      23

*/

&amp;amp;lpspi3 {
	fsl,spi-num-chipselects = &amp;lt;1&amp;gt;;
	pinctrl-names = "default", "sleep";
	pinctrl-0 = &amp;lt;&amp;amp;pinctrl_lpspi3&amp;gt;;
	pinctrl-1 = &amp;lt;&amp;amp;pinctrl_lpspi3&amp;gt;;
	cs-gpios = &amp;lt;&amp;amp;gpio2 8 GPIO_ACTIVE_LOW&amp;gt;;
	/*
	 * Switch the SPI pins to RPi connector for testing.
	 * It will also control the pins of SAI3, so SAI3 is disabled above.
	 */
	pinctrl-assert-gpios = &amp;lt;&amp;amp;pcal6524 22 GPIO_ACTIVE_HIGH&amp;gt;;
	status = "okay";

	spidev0: spi@0 {
		reg = &amp;lt;0&amp;gt;;
		compatible = "lwn,bk4";
		spi-max-frequency = &amp;lt;1000000&amp;gt;;
	};
};


/*
LPSPI8 Slave Mode

PAD_NAME    FUNCTION        QSB J1401

GPIO_IO12   CS              32   
GPIO_IO13   LPSPI8_SIN      35
GPIO_IO14   LPSPI8_SOUT     8
GPIO_IO15   LPSPI8_SCK      10

*/

&amp;amp;lpspi8{
	#address-cells = &amp;lt;0&amp;gt;;
	fsl,spi-num-chipselects = &amp;lt;1&amp;gt;;
	pinctrl-names = "default", "sleep";
	pinctrl-0 = &amp;lt;&amp;amp;pinctrl_lpspi8&amp;gt;;
	pinctrl-1 = &amp;lt;&amp;amp;pinctrl_lpspi8&amp;gt;;
	
	spi-slave;
	status = "okay";
};

&amp;amp;iomuxc {

	pinctrl_lpspi8: lpspi8grp {
		fsl,pins = &amp;lt;
			MX93_PAD_GPIO_IO12__LPSPI8_PCS0		0x3fe
			MX93_PAD_GPIO_IO13__LPSPI8_SIN		0x3fe
			MX93_PAD_GPIO_IO14__LPSPI8_SOUT		0x3fe
			MX93_PAD_GPIO_IO15__LPSPI8_SCK		0x3fe
		&amp;gt;;
	};

	pinctrl_lpspi3: lpspi3grp {
		fsl,pins = &amp;lt;
			MX93_PAD_GPIO_IO08__GPIO2_IO08		0x3fe
			MX93_PAD_GPIO_IO09__LPSPI3_SIN		0x3fe
			MX93_PAD_GPIO_IO10__LPSPI3_SOUT		0x3fe
			MX93_PAD_GPIO_IO11__LPSPI3_SCK		0x3fe
		&amp;gt;;
	};
};&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2) Connect the LPSPI8 to LPSPI3 using wires, the connection is the next:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV style="color: #cccccc; background-color: #1f1f1f; font-family: Consolas, 'Courier New', monospace; font-weight: normal; font-size: 14px; line-height: 19px; white-space: pre;"&gt;
&lt;DIV&gt;&lt;SPAN&gt;LPSPI3 Master Mode&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;BR /&gt;
&lt;DIV&gt;&lt;SPAN&gt;PAD_NAME &amp;nbsp; &amp;nbsp;FUNCTION &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;QSB J1401&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;BR /&gt;
&lt;DIV&gt;&lt;SPAN&gt;GPIO_IO08 &amp;nbsp; CS &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;24 &amp;nbsp; &lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;GPIO_IO09 &amp;nbsp; LPSPI3_SIN &amp;nbsp; &amp;nbsp; &amp;nbsp;21&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;GPIO_IO10 &amp;nbsp; LPSPI3_SOUT &amp;nbsp; &amp;nbsp; 19&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;GPIO_IO11 &amp;nbsp; LPSPI3_SCK &amp;nbsp; &amp;nbsp; &amp;nbsp;23&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV style="color: #cccccc; background-color: #1f1f1f; font-family: Consolas, 'Courier New', monospace; font-weight: normal; font-size: 14px; line-height: 19px; white-space: pre;"&gt;
&lt;DIV&gt;&lt;SPAN&gt;LPSPI8 Slave Mode&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;BR /&gt;
&lt;DIV&gt;&lt;SPAN&gt;PAD_NAME &amp;nbsp; &amp;nbsp;FUNCTION &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;QSB J1401&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;BR /&gt;
&lt;DIV&gt;&lt;SPAN&gt;GPIO_IO12 &amp;nbsp; CS &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;32 &amp;nbsp; &lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;GPIO_IO13 &amp;nbsp; LPSPI8_SIN &amp;nbsp; &amp;nbsp; &amp;nbsp;33&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;GPIO_IO14 &amp;nbsp; LPSPI8_SOUT &amp;nbsp; &amp;nbsp; 8&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;GPIO_IO15 &amp;nbsp; LPSPI8_SCK &amp;nbsp; &amp;nbsp; &amp;nbsp;10&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;RPI HEADER&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;MASTER&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ---&amp;gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; SLAVE&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;FUNCTION&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PIN&lt;/STRONG&gt; &amp;nbsp;&amp;nbsp;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;---&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;FUNCTION&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PIN&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN&gt;CS &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 24&lt;/SPAN&gt; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; ---&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;CS &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 32&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; SIN&lt;SPAN&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 21&lt;/SPAN&gt; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; ---&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SIN&lt;SPAN&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 33&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SOUT&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; 19&lt;/SPAN&gt; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; ---&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SOUT &amp;nbsp;&lt;SPAN&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 08&lt;/SPAN&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; SCK&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 23&lt;/SPAN&gt; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; ---&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SCK&lt;SPAN&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 10&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2) Load the device tree to the board and use the next commands:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;$ echo bk4 &amp;gt; /sys/class/spi_slave/spi0/slave
$ spidev_test -D /dev/spidev0.0 -p slave-hello-to-master &amp;amp;
$ spidev_test -D /dev/spidev1.0 -v -p master-hello-to-slave&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After the first command the slave should appear in "/dev"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;EXPECTED RESULT IN LINUX TERMINAL&lt;/STRONG&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;root@imx93evk:~# echo bk4 &amp;gt; /sys/class/spi_slave/spi0/slave
root@imx93evk:~# spidev_test -D /dev/spidev0.0 -p slave-hello-to-master &amp;amp;
[1] 495
spi mode: 0x0
bits per word: 8
max speed: 500000 Hz (500 kHz)
root@imx93evk:~# spidev_test -D /dev/spidev1.0 -v -p master-hello-to-slave
spi mode: 0x0
bits per word: 8
max speed: 500000 Hz (500 kHz)
TX | 6D 61 73 74 65 72 2D 68 65 6C 6C 6F 2D 74 6F 2D 73 6C 61 76 65 __ __ __ __ __ __ __ __ __ __ __  |master-hello-to-slave|
RX | 73 6C 61 76 65 2D 68 65 6C 6C 6F 2D 74 6F 2D 6D 61 73 74 65 72 __ __ __ __ __ __ __ __ __ __ __  |slave-hello-to-master|
[1]+  Done                    spidev_test -D /dev/spidev0.0 -p slave-hello-to-master
root@imx93evk:~#
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Chavira_0-1730811387321.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/308695i9A4B32EBE9BE1FCB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Chavira_0-1730811387321.png" alt="Chavira_0-1730811387321.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I attached the patch that I made for this case.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards!&lt;/P&gt;
&lt;P&gt;Chavira&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2024 13:10:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Enabling-SPI-Slave-Device-under-dev-on-i-MX93QSB/m-p/1987968#M230514</guid>
      <dc:creator>Chavira</dc:creator>
      <dc:date>2024-11-05T13:10:05Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling SPI Slave Device under /dev on i.MX93QSB</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Enabling-SPI-Slave-Device-under-dev-on-i-MX93QSB/m-p/1990296#M230631</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Thank you for your response-definitely one of the best I've received! The patch was extremely helpful and succesfully fixed the spidev slave issue under the &lt;EM&gt;/dev&lt;/EM&gt; directory in Linux. After applying it, the next test run with the SPI communication &lt;FONT color="#339966"&gt;&lt;STRONG&gt;worked perfectly&lt;/STRONG&gt;&lt;/FONT&gt;.&lt;/P&gt;&lt;P&gt;One small note: I noticed in your screenshot, the root is labeled "iMX93&lt;STRONG&gt;EVK&lt;/STRONG&gt;". In my case, I cross-compiled the&amp;nbsp;Linux &lt;STRONG&gt;imx93-9x9-lpddr4-qsb 6.1.55&amp;nbsp;&lt;/STRONG&gt;sources for the "iMX93&lt;STRONG&gt;QSB&lt;/STRONG&gt;": everything worked smoothly.&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2024 15:16:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Enabling-SPI-Slave-Device-under-dev-on-i-MX93QSB/m-p/1990296#M230631</guid>
      <dc:creator>sergiomauro</dc:creator>
      <dc:date>2024-11-07T15:16:47Z</dc:date>
    </item>
    <item>
      <title>Re: Enabling SPI Slave Device under /dev on i.MX93QSB</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Enabling-SPI-Slave-Device-under-dev-on-i-MX93QSB/m-p/2031087#M233164</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/206761"&gt;@Chavira&lt;/a&gt;&amp;nbsp;，&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have some questions regarding the wire connections in the example you provided. In the example, the sout of the master connects to the sout of the slave while the sin of the master connects to the sin of the slave.&amp;nbsp; Why is it like this?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lluo_0-1737435037259.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/320482i6C3463D3F72A7DBF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="lluo_0-1737435037259.png" alt="lluo_0-1737435037259.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From my understanding , the sout of the spi master should connect to the sin of the spi slave, and the sin of the spi master should connect to the sout of the spi slave.&amp;nbsp; Do you probably explain a bit more about the spi wire connection provided in your example? I am looking forward to your early reply. Thank you in advance.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jan 2025 04:49:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Enabling-SPI-Slave-Device-under-dev-on-i-MX93QSB/m-p/2031087#M233164</guid>
      <dc:creator>lluo</dc:creator>
      <dc:date>2025-01-21T04:49:46Z</dc:date>
    </item>
  </channel>
</rss>

