<?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: SJA1110 configuration and SPI command in Other NXP Products</title>
    <link>https://community.nxp.com/t5/Other-NXP-Products/SJA1110-configuration-and-SPI-command/m-p/1997892#M26482</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/210110"&gt;@yangjinzhuang&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I apologize for the late response.&lt;/P&gt;
&lt;P&gt;Here is linux driver for the switch SJA1110:&amp;nbsp;&lt;A href="https://docs.kernel.org/networking/dsa/sja1105.html" target="_blank" rel="noopener"&gt;https://docs.kernel.org/networking/dsa/sja1105.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;An API of reading/writing reg over SPI is provided in the Linux driver - you can refer to it as well:&lt;BR /&gt;&lt;A href="https://github.com/nxp-archive/autoivnsw_sja1110_linux/blob/master/sja1110_init.c#L85" target="_blank"&gt;https://github.com/nxp-archive/autoivnsw_sja1110_linux/blob/master/sja1110_init.c#L85&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Pavel&lt;/P&gt;</description>
    <pubDate>Wed, 20 Nov 2024 09:21:38 GMT</pubDate>
    <dc:creator>PavelL</dc:creator>
    <dc:date>2024-11-20T09:21:38Z</dc:date>
    <item>
      <title>SJA1110 configuration and SPI command</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/SJA1110-configuration-and-SPI-command/m-p/1987648#M26230</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;I have a hardware GLDBOX, it's switch chip is SJA1110A, the S32G274A communicate with SJA1110A through SPI, the SJA1110A's SPI works at SPI_HOST mode in default.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; How to change SJA1110A's SPI mode to SPI_AP mode?&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;On S32G274A, if I enable DSA driver to config SJA1110A, how to config port mode? What is the command of SPI to config port mode?&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Thank you very much.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2024 05:47:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/SJA1110-configuration-and-SPI-command/m-p/1987648#M26230</guid>
      <dc:creator>yangjinzhuang</dc:creator>
      <dc:date>2024-11-05T05:47:57Z</dc:date>
    </item>
    <item>
      <title>Re: SJA1110 configuration and SPI command</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/SJA1110-configuration-and-SPI-command/m-p/1997892#M26482</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/210110"&gt;@yangjinzhuang&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I apologize for the late response.&lt;/P&gt;
&lt;P&gt;Here is linux driver for the switch SJA1110:&amp;nbsp;&lt;A href="https://docs.kernel.org/networking/dsa/sja1105.html" target="_blank" rel="noopener"&gt;https://docs.kernel.org/networking/dsa/sja1105.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;An API of reading/writing reg over SPI is provided in the Linux driver - you can refer to it as well:&lt;BR /&gt;&lt;A href="https://github.com/nxp-archive/autoivnsw_sja1110_linux/blob/master/sja1110_init.c#L85" target="_blank"&gt;https://github.com/nxp-archive/autoivnsw_sja1110_linux/blob/master/sja1110_init.c#L85&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Pavel&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2024 09:21:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/SJA1110-configuration-and-SPI-command/m-p/1997892#M26482</guid>
      <dc:creator>PavelL</dc:creator>
      <dc:date>2024-11-20T09:21:38Z</dc:date>
    </item>
    <item>
      <title>Re: SJA1110 configuration and SPI command</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/SJA1110-configuration-and-SPI-command/m-p/1998356#M26488</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;I see the SJA1110 register's write and read API, both noticed that " * sja1110-&amp;gt;devtype needs to be SJA1110_SWITCH" ,&amp;nbsp; I don't know where is the devtype setted?&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; I only find that in the device-tree has uc and switch spi_node.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;I understand that SJA1110 should set to SPI_AP to support S32G274A to read/write sja1110a's register, is it right? By default, SJA1110 worked at SPI_HOST mode.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 21 Nov 2024 01:56:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/SJA1110-configuration-and-SPI-command/m-p/1998356#M26488</guid>
      <dc:creator>yangjinzhuang</dc:creator>
      <dc:date>2024-11-21T01:56:50Z</dc:date>
    </item>
    <item>
      <title>Re: SJA1110 configuration and SPI command</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/SJA1110-configuration-and-SPI-command/m-p/2003862#M26600</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/210110"&gt;@yangjinzhuang&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I apologize for the late response.&lt;/P&gt;
&lt;P&gt;SJA1110_SWITCH is defined in&amp;nbsp;&lt;A href="https://github.com/nxp-archive/autoivnsw_sja1110_linux/blob/master/sja1110_init.h" target="_blank"&gt;autoivnsw_sja1110_linux/sja1110_init.h at master · nxp-archive/autoivnsw_sja1110_linux · GitHub&lt;/A&gt; as a simple enum:&lt;/P&gt;
&lt;P&gt;enum spi_devtype {SJA1110_SWITCH, SJA1110_UC};&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Pavel&lt;/P&gt;</description>
      <pubDate>Thu, 28 Nov 2024 15:45:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/SJA1110-configuration-and-SPI-command/m-p/2003862#M26600</guid>
      <dc:creator>PavelL</dc:creator>
      <dc:date>2024-11-28T15:45:33Z</dc:date>
    </item>
  </channel>
</rss>

