<?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: Using GPIO's on IMX6 SLEVK</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Using-GPIO-s-on-IMX6-SLEVK/m-p/346622#M47891</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found one issue that prevented GPIO usage on mx6slevk board and I fixed it with this commit:&lt;/P&gt;&lt;P&gt;&lt;A href="https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/arch/arm/boot/dts/imx6sl-evk.dts?id=d2c3936ebe88ce3cc188d01be0c684884e396293" title="https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/arch/arm/boot/dts/imx6sl-evk.dts?id=d2c3936ebe88ce3cc188d01be0c684884e396293"&gt;https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/arch/arm/boot/dts/imx6sl-evk.dts?id=d2c3936ebe88c…&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 04 Oct 2014 11:24:25 GMT</pubDate>
    <dc:creator>fabio_estevam</dc:creator>
    <dc:date>2014-10-04T11:24:25Z</dc:date>
    <item>
      <title>Using GPIO's on IMX6 SLEVK</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Using-GPIO-s-on-IMX6-SLEVK/m-p/346620#M47889</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;&amp;nbsp;&amp;nbsp; I need two GPIO's on IMX6 SLEVK board. I have Identified one GPIO (LCD_DAT0) (GPIO_2_20). But When I am trying to toggle this GPIO&amp;nbsp; I didn't observe any change in the output on Analyser. I have written the following code for toggling GPIO. Could some help me in toggling GPIO. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;#define MX6_PAD_EIM_ADDR18_GPIO_2_20&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt; IOMUX_PAD(0x04B8, 0x01B0,5, 0x0000, 0, NO_PAD_CTRL)&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;&amp;nbsp; &lt;/STRONG&gt;&lt;STRONG&gt; &lt;BR /&gt;&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;#define MX6SL_PAD_I2C1_SCL_GPIO_3_12&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt; IOMUX_PAD(0x044C, 0x015C,5, 0x0000, 0, NO_PAD_CTRL)&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;STRONG&gt;#define GPIO2_20&amp;nbsp; (unsigned int)((1*32)+20)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;#define GPIO3_12&amp;nbsp; (unsigned int)((2*32)+12)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;int setup_imx_gpio(void);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;int setup_imx_gpio()&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;{&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;//&amp;nbsp; uint32 pad_gpio;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; iomux_v3_cfg_t pad_gpio;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; signed int res = 1;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;// gpio code&amp;nbsp; for&amp;nbsp; I2C1_SCL&amp;nbsp; U1 IC&amp;nbsp; AC13&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; gpio_free(GPIO3_12);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; res = gpio_request(GPIO3_12, "GPIO3_12");&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; if (res)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; {&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; printk("Failed in Setup the GPIO3_12, error=%d\n", res);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return res;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; }&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; pad_gpio = (iomux_v3_cfg_t) MX6SL_PAD_I2C1_SCL_GPIO_3_12;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; mxc_iomux_v3_setup_pad(pad_gpio);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;res = gpio_direction_output(GPIO3_12, 0);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; //&amp;nbsp;&amp;nbsp;&amp;nbsp; res = gpio_direction_input(GPIO3_12);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; if (res)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; {&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; printk("Failed in Setup Direction for the GPIO3_12, error=%d\n", res);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return res;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; }&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;// gpio code&amp;nbsp; for&amp;nbsp; LCD_DAT0&amp;nbsp; J13-62&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; gpio_free(GPIO2_20);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; res = gpio_request(GPIO2_20, "GPIO2_20");&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; if (res)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; {&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; printk("Failed in Setup the GPIO2_20, error=%d\n", res);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return res;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; }&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; pad_gpio = (iomux_v3_cfg_t) MX6_PAD_EIM_ADDR18_GPIO_2_20;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; mxc_iomux_v3_setup_pad(pad_gpio);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; //&amp;nbsp; res = gpio_direction_input(GPIO2_20);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; res = gpio_direction_output(GPIO2_20, 1); /* I need to Make this GPIO High by default*/&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; if (res)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; {&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; printk("Failed in Setup Direction for the GPIO2_20, error=%d\n", res);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return res;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; }&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; return 0;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;#endif&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2014 14:16:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Using-GPIO-s-on-IMX6-SLEVK/m-p/346620#M47889</guid>
      <dc:creator>praveendosapati</dc:creator>
      <dc:date>2014-09-25T14:16:18Z</dc:date>
    </item>
    <item>
      <title>Re: Using GPIO's on IMX6 SLEVK</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Using-GPIO-s-on-IMX6-SLEVK/m-p/346621#M47890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please specify which BSP are you using?&lt;/P&gt;&lt;P&gt;Have you checked/compared your configurations with the provided on the i.MX6 IOMUX_TOOL? It could be downloaded from &lt;A href="https://www.freescale.com/webapp/Download?colCode=IMX6_IOMUX_TOOL"&gt;here&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;Additionally, you could check the solutions provided on the following threads:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/message/339180"&gt;Re: I.MX6 Multiplexer GPIO&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/message/435372"&gt;Re: imx.6 GPIO&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Hope this will be useful for you.&lt;BR /&gt;Best regards!&lt;BR /&gt;/Carlos&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>Fri, 03 Oct 2014 22:36:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Using-GPIO-s-on-IMX6-SLEVK/m-p/346621#M47890</guid>
      <dc:creator>CarlosCasillas</dc:creator>
      <dc:date>2014-10-03T22:36:59Z</dc:date>
    </item>
    <item>
      <title>Re: Using GPIO's on IMX6 SLEVK</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Using-GPIO-s-on-IMX6-SLEVK/m-p/346622#M47891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found one issue that prevented GPIO usage on mx6slevk board and I fixed it with this commit:&lt;/P&gt;&lt;P&gt;&lt;A href="https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/arch/arm/boot/dts/imx6sl-evk.dts?id=d2c3936ebe88ce3cc188d01be0c684884e396293" title="https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/arch/arm/boot/dts/imx6sl-evk.dts?id=d2c3936ebe88ce3cc188d01be0c684884e396293"&gt;https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/arch/arm/boot/dts/imx6sl-evk.dts?id=d2c3936ebe88c…&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Oct 2014 11:24:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Using-GPIO-s-on-IMX6-SLEVK/m-p/346622#M47891</guid>
      <dc:creator>fabio_estevam</dc:creator>
      <dc:date>2014-10-04T11:24:25Z</dc:date>
    </item>
  </channel>
</rss>

