<?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: Imx6s cannot find spi device in linux</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Imx6s-cannot-find-spi-device-in-linux/m-p/701093#M108902</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is no driver for '&lt;SPAN style="color: #51626f; background-color: #f6f6f6;"&gt;adc108' in kernel 4.1.15.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #f6f6f6;"&gt;In mainline kernel there is&amp;nbsp;drivers/iio/adc/ti-adc108s102.c and the binding is described at:&amp;nbsp;Documentation/devicetree/bindings/iio/adc/ti-adc108s102.txt&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #f6f6f6;"&gt;So you should use a newer kernel or backport the mainline driver to 4.1.15.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Sep 2017 13:45:04 GMT</pubDate>
    <dc:creator>fabio_estevam</dc:creator>
    <dc:date>2017-09-12T13:45:04Z</dc:date>
    <item>
      <title>Imx6s cannot find spi device in linux</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Imx6s-cannot-find-spi-device-in-linux/m-p/701091#M108900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, My board have 2 gpio device on spi bus 1, but I failed to find them in linux via the command:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;dmesg |grep spi &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;no return&amp;gt;&lt;/P&gt;&lt;P&gt;ls /dev/spi* &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;ls: cannot access '/dev/spi*': No such file or directory&amp;gt;&lt;/P&gt;&lt;P&gt;ls /dev/mtd* &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;ls: cannot access '/dev/mtd*': No such file or directory&amp;gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;kernel is linux-imx-4.1.15.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The dts config is as below:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&amp;amp;ecspi1 {&lt;BR /&gt;&amp;nbsp; fsl,spi-num-chipselects = &amp;lt;2&amp;gt;;&lt;BR /&gt;&amp;nbsp; cs-gpios = &amp;lt;&amp;amp;gpio3 19 0&amp;gt;,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;&amp;amp;gpio2 30 0&amp;gt;;&lt;BR /&gt;&amp;nbsp; pinctrl-names = "default";&lt;BR /&gt;&amp;nbsp; pinctrl-0 = &amp;lt;&amp;amp;pinctrl_ecspi1&amp;gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;adc: adc108@0 {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; #address-cells = &amp;lt;1&amp;gt;;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; #size-cells = &amp;lt;1&amp;gt;;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; compatible = "adc108";&lt;BR /&gt;&amp;nbsp; &amp;nbsp; spi-max-frequency = &amp;lt;1000000&amp;gt;;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; reg = &amp;lt;0&amp;gt;;&lt;BR /&gt;&amp;nbsp; };&lt;BR /&gt; &lt;BR /&gt;&amp;nbsp; flash: sst25l@1 {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; #address-cells = &amp;lt;1&amp;gt;;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; #size-cells = &amp;lt;1&amp;gt;;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; compatible = "st,sst25vf016b";&lt;BR /&gt;&amp;nbsp; &amp;nbsp; spi-max-frequency = &amp;lt;20000000&amp;gt;;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; reg = &amp;lt;1&amp;gt;;&lt;BR /&gt;&amp;nbsp; };&lt;BR /&gt; };&lt;/P&gt;&lt;P&gt;pinctrl_ecspi1: ecspi1grp {&lt;BR /&gt;&amp;nbsp; fsl,pins = &amp;lt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; MX6QDL_PAD_EIM_D16__ECSPI1_SCLK 0x0001B0B0 //in old ok&lt;BR /&gt;&amp;nbsp; &amp;nbsp; MX6QDL_PAD_EIM_D17__ECSPI1_MISO 0x0001B0B0 //in old ok&lt;BR /&gt;&amp;nbsp; &amp;nbsp; MX6QDL_PAD_EIM_D18__ECSPI1_MOSI 0x0001B0B0 //in old ok&lt;BR /&gt;&amp;nbsp; &amp;nbsp; MX6QDL_PAD_GPIO_19__ECSPI1_RDY 0x0001B0B0 //in old not defined&lt;BR /&gt;&amp;nbsp; &amp;nbsp; MX6QDL_PAD_EIM_EB2__GPIO2_IO30 0x80000000&lt;BR /&gt;&amp;nbsp; &amp;nbsp; MX6QDL_PAD_EIM_D19__GPIO3_IO19 0x80000000&lt;BR /&gt; &lt;BR /&gt;&amp;nbsp; &amp;nbsp; //MX6QDL_PAD_EIM_D19__ECSPI1_SS1 0x0001B0B0 //&lt;BR /&gt;&amp;nbsp; &amp;nbsp; //MX6QDL_PAD_EIM_EB2__ECSPI1_SS0 0x0001B0B0 //&lt;BR /&gt;&amp;nbsp; &amp;gt;;&lt;BR /&gt; };&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The &amp;nbsp;config is:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;CONFIG_UNINLINE_SPIN_UNLOCK=y&lt;BR /&gt;CONFIG_MUTEX_SPIN_ON_OWNER=y&lt;BR /&gt;CONFIG_RWSEM_SPIN_ON_OWNER=y&lt;BR /&gt;CONFIG_LOCK_SPIN_ON_OWNER=y&lt;BR /&gt;CONFIG_REGMAP_SPI=y&lt;BR /&gt;CONFIG_MTD_SPI_NOR=y&lt;BR /&gt;CONFIG_MTD_SPI_NOR_USE_4K_SECTORS=y&lt;BR /&gt;CONFIG_SPI_FSL_QUADSPI=y&lt;BR /&gt;CONFIG_SPI=y&lt;BR /&gt;CONFIG_SPI_MASTER=y&lt;BR /&gt;CONFIG_SPI_BITBANG=y&lt;BR /&gt;CONFIG_SPI_GPIO=y&lt;BR /&gt;CONFIG_SPI_IMX=y&lt;BR /&gt;CONFIG_SPI_SPIDEV=y&lt;BR /&gt;CONFIG_MFD_MC13XXX_SPI=y&lt;BR /&gt;CONFIG_SND_SPI=y&lt;BR /&gt;CONFIG_SND_SOC_I2C_AND_SPI=y&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can somebody help me? Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Sep 2017 09:41:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Imx6s-cannot-find-spi-device-in-linux/m-p/701091#M108900</guid>
      <dc:creator>才俊欧</dc:creator>
      <dc:date>2017-09-12T09:41:01Z</dc:date>
    </item>
    <item>
      <title>Re: Imx6s cannot find spi device in linux</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Imx6s-cannot-find-spi-device-in-linux/m-p/701092#M108901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;seems it is necessary to add "spidev" to dts, as in example&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/319336"&gt;spi loaded at /dev/spidev32765.0?&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/457552"&gt;Can't add spi to /dev&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Sep 2017 10:55:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Imx6s-cannot-find-spi-device-in-linux/m-p/701092#M108901</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2017-09-12T10:55:33Z</dc:date>
    </item>
    <item>
      <title>Re: Imx6s cannot find spi device in linux</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Imx6s-cannot-find-spi-device-in-linux/m-p/701093#M108902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is no driver for '&lt;SPAN style="color: #51626f; background-color: #f6f6f6;"&gt;adc108' in kernel 4.1.15.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #f6f6f6;"&gt;In mainline kernel there is&amp;nbsp;drivers/iio/adc/ti-adc108s102.c and the binding is described at:&amp;nbsp;Documentation/devicetree/bindings/iio/adc/ti-adc108s102.txt&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #f6f6f6;"&gt;So you should use a newer kernel or backport the mainline driver to 4.1.15.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Sep 2017 13:45:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Imx6s-cannot-find-spi-device-in-linux/m-p/701093#M108902</guid>
      <dc:creator>fabio_estevam</dc:creator>
      <dc:date>2017-09-12T13:45:04Z</dc:date>
    </item>
    <item>
      <title>Re: Imx6s cannot find spi device in linux</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Imx6s-cannot-find-spi-device-in-linux/m-p/701094#M108903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Setting the compatible to be "spidev" is helpful.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;But, the main reason is&amp;nbsp;absence of status = "okay";&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Anyway, thank you for your quick response!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Sep 2017 10:02:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Imx6s-cannot-find-spi-device-in-linux/m-p/701094#M108903</guid>
      <dc:creator>才俊欧</dc:creator>
      <dc:date>2017-09-13T10:02:47Z</dc:date>
    </item>
    <item>
      <title>Re: Imx6s cannot find spi device in linux</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Imx6s-cannot-find-spi-device-in-linux/m-p/701095#M108904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Thank you&lt;SPAN&gt;! I have already ported it. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;SPAN&gt;The main problem is my carelessness, I did not open the ecspi1 in dts.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Sep 2017 10:05:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Imx6s-cannot-find-spi-device-in-linux/m-p/701095#M108904</guid>
      <dc:creator>才俊欧</dc:creator>
      <dc:date>2017-09-13T10:05:14Z</dc:date>
    </item>
  </channel>
</rss>

