<?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>P-SeriesのトピックRe: How to use GPIO-LEDS in another driver without sys interface?</title>
    <link>https://community.nxp.com/t5/P-Series/How-to-use-GPIO-LEDS-in-another-driver-without-sys-interface/m-p/694142#M4235</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;H2 style="margin: 0cm; margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;Look at the following pages about GPIO &lt;SPAN style="color: black;"&gt;Linux Kernel Driver:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/H2&gt;&lt;H2 style="margin: 0cm; margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.wiki.xilinx.com%2FLinux%2BGPIO%2BDriver" rel="nofollow" target="_blank"&gt;http://www.wiki.xilinx.com/Linux+GPIO+Driver&lt;/A&gt;&lt;/SPAN&gt;&lt;/H2&gt;&lt;H2 style="margin: 0cm; margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/H2&gt;&lt;H2 style="margin: 0cm; margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fprocessors.wiki.ti.com%2Findex.php%2FProcessor_SDK_Linux_GPIO_Driver_Overview" rel="nofollow" target="_blank"&gt;http://processors.wiki.ti.com/index.php/Processor_SDK_Linux_GPIO_Driver_Overview&lt;/A&gt;&lt;/SPAN&gt;&lt;/H2&gt;&lt;H2 style="margin: 0cm; margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/H2&gt;&lt;H2 style="margin: 0cm; margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fdeveloper.toradex.com%2Fdevice-tree-customization" rel="nofollow" target="_blank"&gt;http://developer.toradex.com/device-tree-customization&lt;/A&gt;&lt;/SPAN&gt;&lt;/H2&gt;&lt;H2 style="margin: 0cm; margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/H2&gt;&lt;H2 style="margin: 0cm; margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;&lt;A class="jive-link-thread-small" data-containerid="2004" data-containertype="14" data-objectid="310091" data-objecttype="1" href="https://community.nxp.com/thread/310091"&gt;https://community.nxp.com/thread/310091&lt;/A&gt;&lt;/SPAN&gt;&lt;/H2&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;Note:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black; background: white;"&gt;The SysFs driver has been tested and is working. It has been accepted into the mainline kernel and the old char mode GPIO driver that didn't work with&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;arch/powerpc&lt;/EM&gt;&amp;nbsp;has been removed from the tree.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black; background: white;"&gt;The SysFs interface is a very simple way to access the GPIO from user space and has the advantage of requiring very little setup.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Pavel Chubakov&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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>Mon, 02 Oct 2017 03:33:07 GMT</pubDate>
    <dc:creator>Pavel</dc:creator>
    <dc:date>2017-10-02T03:33:07Z</dc:date>
    <item>
      <title>How to use GPIO-LEDS in another driver without sys interface?</title>
      <link>https://community.nxp.com/t5/P-Series/How-to-use-GPIO-LEDS-in-another-driver-without-sys-interface/m-p/694141#M4234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;We have developed one custom driver module and its working fine. Now we have blink,ON,OFF led on different conditions in the drivers. We know the conditions. But unable to understand how to drive the LEDS in the driver?&lt;/P&gt;&lt;P&gt;We are able to ON/OFF LED using the /sys/class/ interface.&lt;/P&gt;&lt;P&gt;But how we can do in the drivers with LED API, which directly control the LED.&lt;/P&gt;&lt;P&gt;Also we define the leds in the device tree. How use this in the driver.?&lt;/P&gt;&lt;P&gt;leds {&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;compatible = "gpio-leds"&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;led1 {&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;lable="led_red";&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;gpios = &amp;lt;&amp;amp;gpio2 4 0&amp;gt;;&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; }&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Not looking to use triggers also.&lt;/P&gt;&lt;P&gt;Can anyone give pointers how to do that ? any referance code .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Surendra&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;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Sep 2017 14:02:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/How-to-use-GPIO-LEDS-in-another-driver-without-sys-interface/m-p/694141#M4234</guid>
      <dc:creator>surendradhobale</dc:creator>
      <dc:date>2017-09-28T14:02:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to use GPIO-LEDS in another driver without sys interface?</title>
      <link>https://community.nxp.com/t5/P-Series/How-to-use-GPIO-LEDS-in-another-driver-without-sys-interface/m-p/694142#M4235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;H2 style="margin: 0cm; margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;Look at the following pages about GPIO &lt;SPAN style="color: black;"&gt;Linux Kernel Driver:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/H2&gt;&lt;H2 style="margin: 0cm; margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.wiki.xilinx.com%2FLinux%2BGPIO%2BDriver" rel="nofollow" target="_blank"&gt;http://www.wiki.xilinx.com/Linux+GPIO+Driver&lt;/A&gt;&lt;/SPAN&gt;&lt;/H2&gt;&lt;H2 style="margin: 0cm; margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/H2&gt;&lt;H2 style="margin: 0cm; margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fprocessors.wiki.ti.com%2Findex.php%2FProcessor_SDK_Linux_GPIO_Driver_Overview" rel="nofollow" target="_blank"&gt;http://processors.wiki.ti.com/index.php/Processor_SDK_Linux_GPIO_Driver_Overview&lt;/A&gt;&lt;/SPAN&gt;&lt;/H2&gt;&lt;H2 style="margin: 0cm; margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/H2&gt;&lt;H2 style="margin: 0cm; margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fdeveloper.toradex.com%2Fdevice-tree-customization" rel="nofollow" target="_blank"&gt;http://developer.toradex.com/device-tree-customization&lt;/A&gt;&lt;/SPAN&gt;&lt;/H2&gt;&lt;H2 style="margin: 0cm; margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/H2&gt;&lt;H2 style="margin: 0cm; margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;&lt;A class="jive-link-thread-small" data-containerid="2004" data-containertype="14" data-objectid="310091" data-objecttype="1" href="https://community.nxp.com/thread/310091"&gt;https://community.nxp.com/thread/310091&lt;/A&gt;&lt;/SPAN&gt;&lt;/H2&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt;"&gt;Note:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black; background: white;"&gt;The SysFs driver has been tested and is working. It has been accepted into the mainline kernel and the old char mode GPIO driver that didn't work with&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;arch/powerpc&lt;/EM&gt;&amp;nbsp;has been removed from the tree.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black; background: white;"&gt;The SysFs interface is a very simple way to access the GPIO from user space and has the advantage of requiring very little setup.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Pavel Chubakov&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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>Mon, 02 Oct 2017 03:33:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/How-to-use-GPIO-LEDS-in-another-driver-without-sys-interface/m-p/694142#M4235</guid>
      <dc:creator>Pavel</dc:creator>
      <dc:date>2017-10-02T03:33:07Z</dc:date>
    </item>
  </channel>
</rss>

