<?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 simple LED blinking driver using FDT on kernel v3.4 in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/simple-LED-blinking-driver-using-FDT-on-kernel-v3-4/m-p/163341#M3899</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to use kernel v3.4 on my i.MX53 QSB. Since version 3.1 the flat device tree is supported by the kernel.&lt;/P&gt;&lt;P&gt;Can anyone explain how to write a simple driver that is toggling a GPIO? IMX_GPIO_NR() is not working anymore and I'm really frustrated that is obviouly difficult to toggle a pin.&lt;/P&gt;&lt;P&gt;If the GPIO is defined in my device tree specification how can the driver access this gpio?&lt;/P&gt;&lt;P&gt;In kernel v3.0 I just had to do the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#define USER_LED_EN&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IMX_GPIO_NR(4, 3)&lt;BR /&gt;#define USER_LED_EN_PAD&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MX53_PAD_GPIO_13__GPIO4_3&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;mxc_iomux_v3_setup_pad(USER_LED_EN_PAD);&lt;BR /&gt;gpio_request(USER_LED_EN, "user led");&lt;BR /&gt;gpio_direction_output(USER_LED_EN, 1);&lt;BR /&gt;gpio_set_value(USER_LED_EN, ledState);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 May 2012 11:51:46 GMT</pubDate>
    <dc:creator>Rooney</dc:creator>
    <dc:date>2012-05-22T11:51:46Z</dc:date>
    <item>
      <title>simple LED blinking driver using FDT on kernel v3.4</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/simple-LED-blinking-driver-using-FDT-on-kernel-v3-4/m-p/163341#M3899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to use kernel v3.4 on my i.MX53 QSB. Since version 3.1 the flat device tree is supported by the kernel.&lt;/P&gt;&lt;P&gt;Can anyone explain how to write a simple driver that is toggling a GPIO? IMX_GPIO_NR() is not working anymore and I'm really frustrated that is obviouly difficult to toggle a pin.&lt;/P&gt;&lt;P&gt;If the GPIO is defined in my device tree specification how can the driver access this gpio?&lt;/P&gt;&lt;P&gt;In kernel v3.0 I just had to do the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#define USER_LED_EN&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IMX_GPIO_NR(4, 3)&lt;BR /&gt;#define USER_LED_EN_PAD&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MX53_PAD_GPIO_13__GPIO4_3&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;mxc_iomux_v3_setup_pad(USER_LED_EN_PAD);&lt;BR /&gt;gpio_request(USER_LED_EN, "user led");&lt;BR /&gt;gpio_direction_output(USER_LED_EN, 1);&lt;BR /&gt;gpio_set_value(USER_LED_EN, ledState);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2012 11:51:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/simple-LED-blinking-driver-using-FDT-on-kernel-v3-4/m-p/163341#M3899</guid>
      <dc:creator>Rooney</dc:creator>
      <dc:date>2012-05-22T11:51:46Z</dc:date>
    </item>
  </channel>
</rss>

