<?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: GPIO definition in SPI-device in device tree in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/GPIO-definition-in-SPI-device-in-device-tree/m-p/732836#M114061</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi mc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this may be kernel issue as not all kernels have full support for&lt;/P&gt;&lt;P&gt;all i.mx capabilities, just for short description one can refer to&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://lists.yoctoproject.org/pipermail/meta-freescale/2017-October/021513.html" title="https://lists.yoctoproject.org/pipermail/meta-freescale/2017-October/021513.html"&gt;[meta-freescale] Issue with freescale git server at git.freescale.com&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;May be recommended try nxp bsps described on&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.nxp.com/support/developer-resources/run-time-software/i.mx-developer-resources/i.mx-6-i.mx-7-i.mx-8-series-software-and-development-tool-resources:IMX_SW" title="https://www.nxp.com/support/developer-resources/run-time-software/i.mx-developer-resources/i.mx-6-i.mx-7-i.mx-8-series-software-and-development-tool-resources:IMX_SW"&gt;i.MX Software|NXP&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As for linux 4.14, it is not supported by nxp and may be posted on kernel mail list.&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>Thu, 18 Jan 2018 07:55:54 GMT</pubDate>
    <dc:creator>igorpadykov</dc:creator>
    <dc:date>2018-01-18T07:55:54Z</dc:date>
    <item>
      <title>GPIO definition in SPI-device in device tree</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/GPIO-definition-in-SPI-device-in-device-tree/m-p/732835#M114060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have i.MX6 based HW that has been running Yocto 2.2 and kernel 4.1.x up until now. Now I'm starting to test Yocto 2.4 with kernel 4.14 and ran to some problems that hopefully someone here could help with.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have second supervisor MCU connected to i.MX6 via SPI. There is extra GPIO that MCU uses to tell for i.MX6 if it's ready to transmit data or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Yocto 2.2 that is defined like this in device tree:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;ecspi1 {&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;fsl,spi-num-chipselects = &amp;lt;1&amp;gt;;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;cs-gpios = &amp;lt;&amp;amp;gpio5 25 0&amp;gt;;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;pinctrl-names = "default";&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;pinctrl-0 = &amp;lt;&amp;amp;pinctrl_ecspi1&amp;gt;;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;status = "okay";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;supervisor: ss@0 {&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;#address-cells = &amp;lt;1&amp;gt;;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;#size-cells = &amp;lt;1&amp;gt;;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;compatible = "ss";&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;spi-max-frequency = &amp;lt;1000000&amp;gt;;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;reg = &amp;lt;0&amp;gt;;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;rdy-gpios = &amp;lt;&amp;amp;gpio4 5 0&amp;gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;};&lt;/P&gt;&lt;P&gt;};&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;That worked just fine and in driver I could use following line to read if the rdy-gpios is available:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;nb = of_gpio_named_count(np, "rdy-gpios");&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;When I try that same driver with Yocto 2.4 and Linux 4.14 the of_gpio_named_count returns -ENOENT - error which in turn means "No such file or directory". Also this is confirmed if I look from sysfs:&amp;nbsp;&lt;/P&gt;&lt;P&gt;/sys/devices/soc0/soc/2000000.aips-bus/2000000.spba-bus/2008000.ecspi/of_node/ss@0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In older system there is rdy-gpios - listed, but it's missing from newer system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know how should it be defined in Linux 4.14? Seems that it's more of device tree issue and not so much driver.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jan 2018 07:22:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/GPIO-definition-in-SPI-device-in-device-tree/m-p/732835#M114060</guid>
      <dc:creator>Maddis</dc:creator>
      <dc:date>2018-01-18T07:22:35Z</dc:date>
    </item>
    <item>
      <title>Re: GPIO definition in SPI-device in device tree</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/GPIO-definition-in-SPI-device-in-device-tree/m-p/732836#M114061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi mc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this may be kernel issue as not all kernels have full support for&lt;/P&gt;&lt;P&gt;all i.mx capabilities, just for short description one can refer to&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://lists.yoctoproject.org/pipermail/meta-freescale/2017-October/021513.html" title="https://lists.yoctoproject.org/pipermail/meta-freescale/2017-October/021513.html"&gt;[meta-freescale] Issue with freescale git server at git.freescale.com&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;May be recommended try nxp bsps described on&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.nxp.com/support/developer-resources/run-time-software/i.mx-developer-resources/i.mx-6-i.mx-7-i.mx-8-series-software-and-development-tool-resources:IMX_SW" title="https://www.nxp.com/support/developer-resources/run-time-software/i.mx-developer-resources/i.mx-6-i.mx-7-i.mx-8-series-software-and-development-tool-resources:IMX_SW"&gt;i.MX Software|NXP&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As for linux 4.14, it is not supported by nxp and may be posted on kernel mail list.&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>Thu, 18 Jan 2018 07:55:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/GPIO-definition-in-SPI-device-in-device-tree/m-p/732836#M114061</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2018-01-18T07:55:54Z</dc:date>
    </item>
    <item>
      <title>Re: GPIO definition in SPI-device in device tree</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/GPIO-definition-in-SPI-device-in-device-tree/m-p/732837#M114062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, this is somewhat embarrassing. It turns out that I was editing wrong device tree file since old kernel was linux-fslc-imx and new linux-fslc so also device trees are stored in different directories. Didn't noticed that until now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would have deleted this discussion, but seems that there is no such an option. So forget that you ever saw this. :smileyhappy:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jan 2018 08:20:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/GPIO-definition-in-SPI-device-in-device-tree/m-p/732837#M114062</guid>
      <dc:creator>Maddis</dc:creator>
      <dc:date>2018-01-18T08:20:17Z</dc:date>
    </item>
  </channel>
</rss>

