<?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>i.MX ProcessorsのトピックRe: CD1030 : Linux kernel driver</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/CD1030-Linux-kernel-driver/m-p/1373907#M183254</link>
    <description>&lt;P&gt;Hi Dhaval&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;unfortunately I am not aware of CD1030 driver, but may be useful to look at drivers for similar parts:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://fcastagnotto.wordpress.com/2020/05/25/gpio-expander-mcp23s17-on-linux-embedded/" target="_blank"&gt;https://fcastagnotto.wordpress.com/2020/05/25/gpio-expander-mcp23s17-on-linux-embedded/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/spotify/linux/blob/master/drivers/gpio/max7301.c" target="_blank"&gt;https://github.com/spotify/linux/blob/master/drivers/gpio/max7301.c&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;/P&gt;</description>
    <pubDate>Fri, 19 Nov 2021 00:28:13 GMT</pubDate>
    <dc:creator>igorpadykov</dc:creator>
    <dc:date>2021-11-19T00:28:13Z</dc:date>
    <item>
      <title>CD1030 : Linux kernel driver</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/CD1030-Linux-kernel-driver/m-p/1373788#M183244</link>
      <description>&lt;P&gt;We are using the i.mx8qm processor.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CD1030 is interfaced with i.mx8qm over lpspi1 interface.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I cann't see any linux kernel driver of the cd1030 nxp chipset in latest linux kernel.&lt;/P&gt;&lt;P&gt;I get one referance of RTOS based code but no linux kernel driver for this chipset.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please provide the linux kernel driver for this NXP CD1030 driver?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have used the generic spidev driver to check but that is not working&lt;/P&gt;&lt;P&gt;dts file changes&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&amp;amp;lpspi1 {&lt;/P&gt;&lt;P&gt;compatible = "fsl,imx8qm-lpspi", "fsl,imx7ulp-spi";&lt;BR /&gt;#address-cells = &amp;lt;1&amp;gt;;&lt;BR /&gt;#size-cells = &amp;lt;0&amp;gt;;&lt;BR /&gt;fsl,spi-num-chipselects = &amp;lt;1&amp;gt;;&lt;BR /&gt;pinctrl-names = "default";&lt;BR /&gt;pinctrl-0 = &amp;lt;&amp;amp;pinctrl_lpspi1 &amp;amp;pinctrl_lpspi1_cs&amp;gt;;&lt;BR /&gt;cs-gpios = &amp;lt;&amp;amp;lsio_gpio3 24 GPIO_ACTIVE_LOW&amp;gt;;&lt;BR /&gt;status = "okay";&lt;/P&gt;&lt;P&gt;spidev0: spi@0 { //Digital Input&lt;BR /&gt;reg = &amp;lt;0&amp;gt;;&lt;BR /&gt;&lt;STRONG&gt;compatible = "rohm,dh2228fv";&lt;/STRONG&gt;&lt;BR /&gt;spi-max-frequency = &amp;lt;30000000&amp;gt;;&lt;BR /&gt;};&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;pinctrl_lpspi1: lpspi1grp {&lt;BR /&gt;fsl,pins = &amp;lt;&lt;BR /&gt;IMX8QM_ADC_IN3_DMA_SPI1_SCK 0x0E000040&lt;BR /&gt;IMX8QM_ADC_IN4_DMA_SPI1_SDO 0x0E000040&lt;BR /&gt;IMX8QM_ADC_IN5_DMA_SPI1_SDI 0x0E000040&lt;BR /&gt;IMX8QM_LVDS1_I2C0_SDA_LSIO_GPIO1_IO13 0x06000020&lt;BR /&gt;&amp;gt;;&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;pinctrl_lpspi1_cs: lpspi1cs {&lt;BR /&gt;fsl,pins = &amp;lt;&lt;BR /&gt;IMX8QM_ADC_IN6_LSIO_GPIO3_IO24 0x21&lt;BR /&gt;&amp;gt;;&lt;BR /&gt;};&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;I can see that /dev/spidev0.0 node is created and when try to test using the loopback test don't see the response back (MOSI and MISO&amp;nbsp; are Shorted)&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;root@dictgu:~# spidev_test -v -D /dev/spidev0.0&lt;BR /&gt;spi mode: 0x0&lt;BR /&gt;bits per word: 8&lt;BR /&gt;max speed: 500000 Hz (500 kHz)&lt;BR /&gt;TX | FF FF FF FF FF FF 40 00 00 00 00 95 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF F0 0D |......@.........................|&lt;BR /&gt;RX | 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................................|&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this driver should work?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If no then please provide the linux kernel driver for CD1030&lt;/P&gt;</description>
      <pubDate>Thu, 18 Nov 2021 18:53:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/CD1030-Linux-kernel-driver/m-p/1373788#M183244</guid>
      <dc:creator>DhavalS</dc:creator>
      <dc:date>2021-11-18T18:53:08Z</dc:date>
    </item>
    <item>
      <title>Re: CD1030 : Linux kernel driver</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/CD1030-Linux-kernel-driver/m-p/1373907#M183254</link>
      <description>&lt;P&gt;Hi Dhaval&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;unfortunately I am not aware of CD1030 driver, but may be useful to look at drivers for similar parts:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://fcastagnotto.wordpress.com/2020/05/25/gpio-expander-mcp23s17-on-linux-embedded/" target="_blank"&gt;https://fcastagnotto.wordpress.com/2020/05/25/gpio-expander-mcp23s17-on-linux-embedded/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/spotify/linux/blob/master/drivers/gpio/max7301.c" target="_blank"&gt;https://github.com/spotify/linux/blob/master/drivers/gpio/max7301.c&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;/P&gt;</description>
      <pubDate>Fri, 19 Nov 2021 00:28:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/CD1030-Linux-kernel-driver/m-p/1373907#M183254</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2021-11-19T00:28:13Z</dc:date>
    </item>
  </channel>
</rss>

