<?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 How to turn on Debug LED from &amp;quot;terminal&amp;quot; or Java (Android). in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/How-to-turn-on-Debug-LED-from-quot-terminal-quot-or-Java-Android/m-p/385596#M55819</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For a quick demo, I need to turn on/off one of the spare LEDs on the 6SLEVM (i.MX6 SoloLite EVK).&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I'm demoing an Android app running on that board.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I see how to do it from a C program but not from Java in an Android app.&lt;/P&gt;&lt;P&gt;Sample java blog suggests finding it in&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; the "Device Tree" the write to it like writing a file.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; e.g. URI = /sys/devices/virtual/gpio/gpio115/value, or similar location in /sys/classes... or something like that.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Then, to check from the command line, I'd type "echo 1 &amp;gt; &lt;SPAN style="font-size: 13.3333330154419px;"&gt;/sys/devices/virtual/gpio/gpio115/value"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; font-size: 13.3333330154419px;"&gt;But I can't find a "device" in the tree that looks like it's for that LED.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;On the schematic, it's &lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;HSIC_STROBE (and &lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;HSIC_STROBE_GPIO).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;In reference guide, it mentions GPIO3_20 for ALT5 (a/k/a gpio3.GPIO[20]).&amp;nbsp; I have no idea how that implies a node in the Device Tree.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;In the schematic, it's D23, driven by Q5 (page 14).&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;Any ideas?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Mar 2015 23:01:21 GMT</pubDate>
    <dc:creator>billbigelow</dc:creator>
    <dc:date>2015-03-13T23:01:21Z</dc:date>
    <item>
      <title>How to turn on Debug LED from "terminal" or Java (Android).</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-turn-on-Debug-LED-from-quot-terminal-quot-or-Java-Android/m-p/385596#M55819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For a quick demo, I need to turn on/off one of the spare LEDs on the 6SLEVM (i.MX6 SoloLite EVK).&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I'm demoing an Android app running on that board.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I see how to do it from a C program but not from Java in an Android app.&lt;/P&gt;&lt;P&gt;Sample java blog suggests finding it in&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; the "Device Tree" the write to it like writing a file.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; e.g. URI = /sys/devices/virtual/gpio/gpio115/value, or similar location in /sys/classes... or something like that.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Then, to check from the command line, I'd type "echo 1 &amp;gt; &lt;SPAN style="font-size: 13.3333330154419px;"&gt;/sys/devices/virtual/gpio/gpio115/value"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; font-size: 13.3333330154419px;"&gt;But I can't find a "device" in the tree that looks like it's for that LED.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;On the schematic, it's &lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;HSIC_STROBE (and &lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;HSIC_STROBE_GPIO).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;In reference guide, it mentions GPIO3_20 for ALT5 (a/k/a gpio3.GPIO[20]).&amp;nbsp; I have no idea how that implies a node in the Device Tree.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;In the schematic, it's D23, driven by Q5 (page 14).&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;Any ideas?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Mar 2015 23:01:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-turn-on-Debug-LED-from-quot-terminal-quot-or-Java-Android/m-p/385596#M55819</guid>
      <dc:creator>billbigelow</dc:creator>
      <dc:date>2015-03-13T23:01:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to turn on Debug LED from "terminal" or Java (Android).</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-turn-on-Debug-LED-from-quot-terminal-quot-or-Java-Android/m-p/385597#M55820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bill&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please check below link how to control debug led on the i.MX6SL EVK&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/319064"&gt;Problems modifying device tree to blink an LED&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;igor&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2015 14:08:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-turn-on-Debug-LED-from-quot-terminal-quot-or-Java-Android/m-p/385597#M55820</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2015-03-16T14:08:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to turn on Debug LED from "terminal" or Java (Android).</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-turn-on-Debug-LED-from-quot-terminal-quot-or-Java-Android/m-p/385598#M55821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks that's a good link.&lt;/P&gt;&lt;P&gt;In brief (for other readers), the LEDs are not located under a GPIO folder of the device tree (as I posed in the question).&lt;/P&gt;&lt;P&gt;They are located in:&lt;/P&gt;&lt;P&gt;/sys/class/leds/Heartbeat/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My board doesn't have a "Heartbeat" directory under "/sys/class/leds". In fact the "/sys/class/leds" folder is empty.&amp;nbsp; As a sanity check, here's my terminal output:&lt;/P&gt;&lt;P&gt;root@android:/ # cd /sys/class/leds&lt;/P&gt;&lt;P&gt;root@android:/sys/class/leds # ls&lt;/P&gt;&lt;P&gt;root@android:/sys/class/leds #&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So it appears that in the SD card that is shipped with the SoloLite EVK, the Heartbeat part of the device tree is missing.&amp;nbsp; This board was purchased in Dec 2014 and is running KitKat 4.4.2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The SD card is labeled by Freescale as follows:&lt;/P&gt;&lt;P&gt;MX6SLEVK LCD&lt;/P&gt;&lt;P&gt;Android r12.10.02&lt;/P&gt;&lt;P&gt;110-77558 A&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's possible I should open another thread namely: "LED folder missing in SoloLite EVK using factory SD card".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2015 15:05:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-turn-on-Debug-LED-from-quot-terminal-quot-or-Java-Android/m-p/385598#M55821</guid>
      <dc:creator>billbigelow</dc:creator>
      <dc:date>2015-03-16T15:05:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to turn on Debug LED from "terminal" or Java (Android).</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-turn-on-Debug-LED-from-quot-terminal-quot-or-Java-Android/m-p/385599#M55822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you sure that is the correct device tree path for the SoloLite?&amp;nbsp; I don't see anything in the BSP that would create/map anything under the LED path mentioned.&amp;nbsp; I checked init.rc, init.freescale.rc and others.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead, it has some of the other GPIO directories that one would expect.&amp;nbsp; Here's my terminal output:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;root@android:/sys/class/gpio # cat gpiochip0/label&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;gpio-0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;root@android:/sys/class/gpio # cat gpiochip32/label&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;gpio-1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;root@android:/sys/class/gpio # cat gpiochip64/label&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;gpio-2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;root@android:/sys/class/gpio # cat gpiochip96/label&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;gpio-3&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;root@android:/sys/class/gpio # cat gpiochip128/label&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;gpio-4&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;root@android:/sys/class/gpio # cat gpiochip160/label&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;gpio-5&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;root@android:/sys/class/gpio # cat gpiochip192/label&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;gpio-6&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;root@android:/sys/class/gpio # cat gpiochip250/label&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;wm8962&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;None of these have a "value" folder in them.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;I believe I need gpio-3 bit 21 (index 20) per the schematic.&amp;nbsp; That's HSIC_STROBE using the ALT5 column (gpio3.GPIO[20].&amp;nbsp; I don't see gpio3 in the schematic.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;Most the directories are gpiochipxxx, not gpioxxx.&amp;nbsp; Note: there is a gpio115 directory, but I don't know what that is.&amp;nbsp; There is also an export and unexport directory.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;The same folder structure exists in: /sys/devices/virtual/gpio, but I don't know the difference between these two directories.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2015 21:58:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-turn-on-Debug-LED-from-quot-terminal-quot-or-Java-Android/m-p/385599#M55822</guid>
      <dc:creator>billbigelow</dc:creator>
      <dc:date>2015-03-16T21:58:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to turn on Debug LED from "terminal" or Java (Android).</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-turn-on-Debug-LED-from-quot-terminal-quot-or-Java-Android/m-p/385600#M55823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;probably Demo image had not requirements to have these folders.&lt;/P&gt;&lt;P&gt;In any way one needs to implement patch to make led to work as suggests link.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-thread-small" data-containerid="2004" data-containertype="14" data-objectid="319064" data-objecttype="1" href="https://community.freescale.com/thread/319064"&gt;https://community.freescale.com/thread/319064&lt;/A&gt;&lt;/P&gt;&lt;P&gt;patch: GPIO connected to an LED could not work when the PMIC driver was enabled&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" data-content-finding="Community" href="http://marc.info/?l=linux-arm-kernel&amp;amp;m=139275247630464&amp;amp;w=2" target="_blank"&gt;'[PATCH] ARM: dts: imx6sl-evk: Keep VGEN1 regulator always enabled' - MARC&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2015 01:38:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-turn-on-Debug-LED-from-quot-terminal-quot-or-Java-Android/m-p/385600#M55823</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2015-03-17T01:38:25Z</dc:date>
    </item>
  </channel>
</rss>

