<?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のトピックIMX6 dual GPIO Configuration</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/IMX6-dual-GPIO-Configuration/m-p/640642#M97709</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;BR /&gt;I am using imx6 dual wandboard. I wanted to configure some pins as GPIO. I tested by using LEDS. By default in dts file 8 pins are configured as GPIO of which 2 pins&amp;nbsp;&lt;SPAN&gt;MX6QDL_PAD_EIM_DA12__GPIO3_IO12 and&amp;nbsp;&lt;SPAN&gt;MX6QDL_PAD_GPIO_18__GPIO7_IO13 are not getting configured properly. For the other 6 pins the leds blinks as I toggle using /sys/class/gpio, but on reading the value am getting some garbage values.&lt;/SPAN&gt;&lt;/SPAN&gt;&amp;nbsp;With reference to this post: &lt;A href="http://forums.wandboard.org/viewtopic.php?f=8&amp;amp;t=893"&gt;http://forums.wandboard.org/viewtopic.php?f=8&amp;amp;t=893&lt;/A&gt;&amp;nbsp;made some changes in imx6qdl.dtsi to the end.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;iomuxc {&lt;BR /&gt; pinctrl-names = "default";&lt;BR /&gt; pinctrl-0 = &amp;lt;&lt;BR /&gt; &amp;amp;pinctrl_hog_1&lt;BR /&gt; &amp;amp;wes_gpios&lt;BR /&gt; &amp;gt;;&lt;/P&gt;&lt;P&gt;imx6qdl-wandboard {&lt;BR /&gt; wes_gpios: hoggrp-2 {&lt;BR /&gt; fsl,pins = &amp;lt;&lt;BR /&gt; MX6QDL_PAD_EIM_DA12__GPIO3_IO12 0x4001b0b0 /* GPIO3_12 EDM pin 255 */&lt;BR /&gt; MX6QDL_PAD_EIM_D27__GPIO3_IO27 0x4001b0b0 /* GPIO3_27 EDM pin 258 */&lt;BR /&gt; MX6QDL_PAD_EIM_BCLK__GPIO6_IO31 0x4001b0b0 /* GPIO6_31 EDM pin 260 */&lt;BR /&gt; MX6QDL_PAD_ENET_RX_ER__GPIO1_IO24 0x4001b0b0 /* GPIO1_24 EDM pin 262 */&lt;BR /&gt; MX6QDL_PAD_SD3_RST__GPIO7_IO08 0x4001b0b0 /* GPIO7_8 EDM pin 264 */&lt;BR /&gt; MX6QDL_PAD_EIM_D26__GPIO3_IO26 0x4001b0b0 /* GPIO3_26 EDM pin 259 */&lt;BR /&gt; MX6QDL_PAD_GPIO_18__GPIO7_IO13 0x4001b0b0 /* GPIO7_13 */&lt;BR /&gt; MX6QDL_PAD_GPIO_19__GPIO4_IO05 0x4001b0b0 /* GPIO4_5 EDM pin 263 */&lt;BR /&gt; &amp;gt;;&lt;BR /&gt; };&lt;BR /&gt; };&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;but still the 2 pins&amp;nbsp;&lt;SPAN&gt;MX6QDL_PAD_EIM_DA12__GPIO3_IO12 and&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;MX6QDL_PAD_GPIO_18__GPIO7_IO13&lt;/SPAN&gt;&amp;nbsp;are not working as intended, I tried to access pin MX6QDL_PAD_EIM_DA12__GPIO3_IO12 &lt;BR /&gt;via user space here is the log:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~# echo 76 &amp;gt; /sys/class/gpio/export &lt;BR /&gt;~# echo "out" &amp;gt; /sys/class/gpio/gpio76/direction &lt;BR /&gt;~# echo 1 &amp;gt; /sys/class/gpio/gpio76/value &lt;BR /&gt;~# cat /sys/class/gpio/gpio76/value &lt;BR /&gt;4096&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm having similar issue with MX6QDL_PAD_GPIO_18__GPIO7_IO13 also. Can anyone tell me why this value is coming?&lt;BR /&gt;Is there anything more I need to do to get it configured as GPIO?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Dec 2016 07:07:47 GMT</pubDate>
    <dc:creator>mariyapradeep</dc:creator>
    <dc:date>2016-12-01T07:07:47Z</dc:date>
    <item>
      <title>IMX6 dual GPIO Configuration</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX6-dual-GPIO-Configuration/m-p/640642#M97709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;BR /&gt;I am using imx6 dual wandboard. I wanted to configure some pins as GPIO. I tested by using LEDS. By default in dts file 8 pins are configured as GPIO of which 2 pins&amp;nbsp;&lt;SPAN&gt;MX6QDL_PAD_EIM_DA12__GPIO3_IO12 and&amp;nbsp;&lt;SPAN&gt;MX6QDL_PAD_GPIO_18__GPIO7_IO13 are not getting configured properly. For the other 6 pins the leds blinks as I toggle using /sys/class/gpio, but on reading the value am getting some garbage values.&lt;/SPAN&gt;&lt;/SPAN&gt;&amp;nbsp;With reference to this post: &lt;A href="http://forums.wandboard.org/viewtopic.php?f=8&amp;amp;t=893"&gt;http://forums.wandboard.org/viewtopic.php?f=8&amp;amp;t=893&lt;/A&gt;&amp;nbsp;made some changes in imx6qdl.dtsi to the end.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;iomuxc {&lt;BR /&gt; pinctrl-names = "default";&lt;BR /&gt; pinctrl-0 = &amp;lt;&lt;BR /&gt; &amp;amp;pinctrl_hog_1&lt;BR /&gt; &amp;amp;wes_gpios&lt;BR /&gt; &amp;gt;;&lt;/P&gt;&lt;P&gt;imx6qdl-wandboard {&lt;BR /&gt; wes_gpios: hoggrp-2 {&lt;BR /&gt; fsl,pins = &amp;lt;&lt;BR /&gt; MX6QDL_PAD_EIM_DA12__GPIO3_IO12 0x4001b0b0 /* GPIO3_12 EDM pin 255 */&lt;BR /&gt; MX6QDL_PAD_EIM_D27__GPIO3_IO27 0x4001b0b0 /* GPIO3_27 EDM pin 258 */&lt;BR /&gt; MX6QDL_PAD_EIM_BCLK__GPIO6_IO31 0x4001b0b0 /* GPIO6_31 EDM pin 260 */&lt;BR /&gt; MX6QDL_PAD_ENET_RX_ER__GPIO1_IO24 0x4001b0b0 /* GPIO1_24 EDM pin 262 */&lt;BR /&gt; MX6QDL_PAD_SD3_RST__GPIO7_IO08 0x4001b0b0 /* GPIO7_8 EDM pin 264 */&lt;BR /&gt; MX6QDL_PAD_EIM_D26__GPIO3_IO26 0x4001b0b0 /* GPIO3_26 EDM pin 259 */&lt;BR /&gt; MX6QDL_PAD_GPIO_18__GPIO7_IO13 0x4001b0b0 /* GPIO7_13 */&lt;BR /&gt; MX6QDL_PAD_GPIO_19__GPIO4_IO05 0x4001b0b0 /* GPIO4_5 EDM pin 263 */&lt;BR /&gt; &amp;gt;;&lt;BR /&gt; };&lt;BR /&gt; };&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;but still the 2 pins&amp;nbsp;&lt;SPAN&gt;MX6QDL_PAD_EIM_DA12__GPIO3_IO12 and&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;MX6QDL_PAD_GPIO_18__GPIO7_IO13&lt;/SPAN&gt;&amp;nbsp;are not working as intended, I tried to access pin MX6QDL_PAD_EIM_DA12__GPIO3_IO12 &lt;BR /&gt;via user space here is the log:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~# echo 76 &amp;gt; /sys/class/gpio/export &lt;BR /&gt;~# echo "out" &amp;gt; /sys/class/gpio/gpio76/direction &lt;BR /&gt;~# echo 1 &amp;gt; /sys/class/gpio/gpio76/value &lt;BR /&gt;~# cat /sys/class/gpio/gpio76/value &lt;BR /&gt;4096&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm having similar issue with MX6QDL_PAD_GPIO_18__GPIO7_IO13 also. Can anyone tell me why this value is coming?&lt;BR /&gt;Is there anything more I need to do to get it configured as GPIO?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Dec 2016 07:07:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX6-dual-GPIO-Configuration/m-p/640642#M97709</guid>
      <dc:creator>mariyapradeep</dc:creator>
      <dc:date>2016-12-01T07:07:47Z</dc:date>
    </item>
    <item>
      <title>Re: IMX6 dual GPIO Configuration</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX6-dual-GPIO-Configuration/m-p/640643#M97710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mariya&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;probably these lines are used somewhere by other modules&lt;/P&gt;&lt;P&gt;or configured in uboot, one can try to attached jtag (or printf)&lt;/P&gt;&lt;P&gt;iomux settings of these pads.&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, 01 Dec 2016 07:13:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX6-dual-GPIO-Configuration/m-p/640643#M97710</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2016-12-01T07:13:37Z</dc:date>
    </item>
    <item>
      <title>Re: IMX6 dual GPIO Configuration</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX6-dual-GPIO-Configuration/m-p/640644#M97711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks like this bug has already been fixed in recent kernels. Please try 4.1.15.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Dec 2016 15:55:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX6-dual-GPIO-Configuration/m-p/640644#M97711</guid>
      <dc:creator>fabio_estevam</dc:creator>
      <dc:date>2016-12-01T15:55:17Z</dc:date>
    </item>
    <item>
      <title>Re: IMX6 dual GPIO Configuration</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX6-dual-GPIO-Configuration/m-p/640645#M97712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is the commit that fixes this bug:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;commit 25b35da7f4cce82271859f1b6eabd9f3bd41a2bb&lt;BR /&gt;&lt;SPAN&gt;Author: Linus Walleij &amp;lt;&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:linus.walleij@linaro.org"&gt;linus.walleij@linaro.org&lt;/A&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;Date: Wed Feb 5 14:08:02 2014 +0100&lt;/P&gt;&lt;P&gt;gpio: generic: clamp retured value to [0,1]&lt;BR /&gt; &lt;BR /&gt; The generic GPIO would return 0 for low generic GPIO, and&lt;BR /&gt; something != 0 for high GPIO. Let's make this sane by clamping&lt;BR /&gt; the returned value to [0,1].&lt;BR /&gt; &lt;BR /&gt;&lt;SPAN&gt; Reported-by: Evgeny Boger &amp;lt;&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:boger@contactless.ru"&gt;boger@contactless.ru&lt;/A&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; Reviewed-by: Alexandre Courbot &amp;lt;&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:acourbot@nvidia.com"&gt;acourbot@nvidia.com&lt;/A&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; Signed-off-by: Linus Walleij &amp;lt;&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:linus.walleij@linaro.org"&gt;linus.walleij@linaro.org&lt;/A&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;diff --git a/drivers/gpio/gpio-generic.c b/drivers/gpio/gpio-generic.c&lt;BR /&gt;index 8c778af..d815dd2 100644&lt;BR /&gt;--- a/drivers/gpio/gpio-generic.c&lt;BR /&gt;+++ b/drivers/gpio/gpio-generic.c&lt;BR /&gt;@@ -139,7 +139,7 @@ static int bgpio_get(struct gpio_chip *gc, unsigned int gpio)&lt;BR /&gt; {&lt;BR /&gt; struct bgpio_chip *bgc = to_bgpio_chip(gc);&lt;BR /&gt; &lt;BR /&gt;- return bgc-&amp;gt;read_reg(bgc-&amp;gt;reg_dat) &amp;amp; bgc-&amp;gt;pin2mask(bgc, gpio);&lt;BR /&gt;+ return !!(bgc-&amp;gt;read_reg(bgc-&amp;gt;reg_dat) &amp;amp; bgc-&amp;gt;pin2mask(bgc, gpio));&lt;BR /&gt; }&lt;BR /&gt; &lt;/P&gt;&lt;P&gt;This commit hit mainline kernel in 3.15 version.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Dec 2016 16:47:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX6-dual-GPIO-Configuration/m-p/640645#M97712</guid>
      <dc:creator>fabio_estevam</dc:creator>
      <dc:date>2016-12-01T16:47:15Z</dc:date>
    </item>
    <item>
      <title>Re: IMX6 dual GPIO Configuration</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX6-dual-GPIO-Configuration/m-p/640646#M97713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; I am using kernel 3.14. I applied the above said changes and got the values 0 and 1 on toggling the GPIO. But am not able to get GPIO functionality from 2 pins&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;&amp;nbsp;&lt;SPAN style="border: 0px;"&gt;MX6QDL_PAD_EIM_DA12__GPIO3_IO12 and&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="border: 0px;"&gt;MX6QDL_PAD_GPIO_18__GPIO7_IO13.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="border: 0px; background-color: #ffffff; color: #51626f;"&gt;Is there any configurations am missing?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Dec 2016 10:25:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX6-dual-GPIO-Configuration/m-p/640646#M97713</guid>
      <dc:creator>mariyapradeep</dc:creator>
      <dc:date>2016-12-02T10:25:58Z</dc:date>
    </item>
    <item>
      <title>Re: IMX6 dual GPIO Configuration</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX6-dual-GPIO-Configuration/m-p/640647#M97714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Simple GPIO Example - quandry &lt;BR /&gt;&lt;A href="https://community.freescale.com/message/598834#598834"&gt;https://community.freescale.com/message/598834#598834&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Dec 2016 07:13:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX6-dual-GPIO-Configuration/m-p/640647#M97714</guid>
      <dc:creator>BiyongSUN</dc:creator>
      <dc:date>2016-12-05T07:13:07Z</dc:date>
    </item>
  </channel>
</rss>

