<?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: Any examples on how to modify the .dts (device tree) source for custom hardware?</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Any-examples-on-how-to-modify-the-dts-device-tree-source-for/m-p/229507#M16962</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Fabio,&lt;/P&gt;&lt;P&gt;That's the part that I don't get&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;How do I configure the GPIO in the dts?&lt;/P&gt;&lt;P&gt;I see the use of "gpio" all over the place, but I just wanna allocate a couple&lt;/P&gt;&lt;P&gt;of pins as basic GPIO pins (some input, some output) so that I can then use&lt;/P&gt;&lt;P&gt;/sys/class/gpio to monitor and/or modify them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have not seen any examples of this that make any sense to me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;Say I want to configure pad GPIO_0 as GPIO1_IO00 (ALT5), and use it as an input; and I &lt;/P&gt;&lt;P&gt;want to configure pad GPIO_1 as GPIO1_IO01 (ALT5), and use it as an output.&lt;/P&gt;&lt;P&gt;How would I do that with the DTS file so that I could then access these pins with&lt;/P&gt;&lt;P&gt;/sys/class/gpio/gpio0 and /sys/class/gpio/gpio1?&lt;/P&gt;&lt;P&gt;Ed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Feb 2014 17:08:59 GMT</pubDate>
    <dc:creator>EdSutter</dc:creator>
    <dc:date>2014-02-24T17:08:59Z</dc:date>
    <item>
      <title>Any examples on how to modify the .dts (device tree) source for custom hardware?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Any-examples-on-how-to-modify-the-dts-device-tree-source-for/m-p/229495#M16950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've been working with hardware that is similar to the SABRESDB iMX6 board. &lt;/P&gt;&lt;P&gt;My next step is to redefine a few interfaces that are custom to my board.&lt;/P&gt;&lt;P&gt;For starters, I'd like to just tweek my GPIO configuration, by undoing some of&lt;/P&gt;&lt;P&gt;the GPIO setup &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;that was used by SABRESDB and establish my own GPIO&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;configuration based on my schematic.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Maybe I'm just tired, or maybe this is just hard...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I'm not having much luck figuring out how to modify the .dts files that are used with&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;the sabresd board. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;I'm currently reading the Documentation/devicetree stuff and &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;A href="http://xillybus.com/tutorials/device-tree-zynq-1" title="http://xillybus.com/tutorials/device-tree-zynq-1"&gt;A Tutorial on the Device Tree (Zynq) -- Part I .&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; Is there any other examples or good documentation that discusses this?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Ed&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jan 2014 20:45:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Any-examples-on-how-to-modify-the-dts-device-tree-source-for/m-p/229495#M16950</guid>
      <dc:creator>EdSutter</dc:creator>
      <dc:date>2014-01-10T20:45:51Z</dc:date>
    </item>
    <item>
      <title>Re: Any examples on how to modify the .dts (device tree) source for custom hardware?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Any-examples-on-how-to-modify-the-dts-device-tree-source-for/m-p/229496#M16951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Ed&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; We have may GPIO use case in our dts, please refer to arch/arm/boot/dts/imx6qdl-sabresd.dtsi, grep charger-led or other GPIO settings. Also, there is device tree binding DOC you can refer to, Documentation/devicetree/bindings/gpio/gpio.txt, all other GPIO related feature are in same folder.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jan 2014 05:50:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Any-examples-on-how-to-modify-the-dts-device-tree-source-for/m-p/229496#M16951</guid>
      <dc:creator>AnsonHuang</dc:creator>
      <dc:date>2014-01-16T05:50:13Z</dc:date>
    </item>
    <item>
      <title>Re: Any examples on how to modify the .dts (device tree) source for custom hardware?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Any-examples-on-how-to-modify-the-dts-device-tree-source-for/m-p/229497#M16952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Thanks for responding.&lt;/P&gt;&lt;P&gt;What kernel tree are you referring to?&amp;nbsp; I'm working with mainline 3.12 (patched for some eMMC fixes) at the moment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My real problem (at the moment) is I'm trying to figure out how to "release" some of the GPIO pins that are apparently still configured for use (in ALT mode) with some other peripheral (from SABRESD configuration I started with) that I'm not using on my custom board.&amp;nbsp; Know what I mean?&amp;nbsp; There seems to be no clean way to do this, so for example I need to use GPIO_4 as GPIO, but when I try to access this through /sys/class/gpio/gpio4/value, I can't change the state; hence, I'm assuming it is configured in some ALT mode.&amp;nbsp; To work backwards then, the only thing I can see to do is to look at all the possible ALT modes for GPIO_4 and look in the .dts/dtsi files to see if one of those peripherals is active.&amp;nbsp; Does this make sense?&amp;nbsp; Is there a better way?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also regarding the Documentation directory on the bindings, I guess I don't quite follow the whole point of this directory yet.&amp;nbsp; There are .txt files here for several different systems (non of which appear to be related to imx6).&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jan 2014 13:59:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Any-examples-on-how-to-modify-the-dts-device-tree-source-for/m-p/229497#M16952</guid>
      <dc:creator>EdSutter</dc:creator>
      <dc:date>2014-01-17T13:59:07Z</dc:date>
    </item>
    <item>
      <title>Re: Any examples on how to modify the .dts (device tree) source for custom hardware?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Any-examples-on-how-to-modify-the-dts-device-tree-source-for/m-p/229498#M16953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just to get a little bit more specific to my problem...&lt;/P&gt;&lt;P&gt;I am trying to use GPIO_4 simply as a gpio output.&lt;/P&gt;&lt;P&gt;On the SABRESD board is a volume control button.&amp;nbsp; &lt;/P&gt;&lt;P&gt;Is there anything else I need to change in the imx6qdl-sabresd.dtsi file besides comment out the gpio-keys node?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jan 2014 14:33:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Any-examples-on-how-to-modify-the-dts-device-tree-source-for/m-p/229498#M16953</guid>
      <dc:creator>EdSutter</dc:creator>
      <dc:date>2014-01-17T14:33:27Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Any examples on how to modify the .dts (device tree) source for custom hardware?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Any-examples-on-how-to-modify-the-dts-device-tree-source-for/m-p/229499#M16954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Replying to my own question here, but I'd love to hear from someone else on this...&lt;/P&gt;&lt;P&gt;I managed to get the GPIO_4 issue resolved.&amp;nbsp; Turns out that uboot was configuring&lt;/P&gt;&lt;P&gt;this pin to be an input (because that's how it was used on sabresd).&amp;nbsp; As soon as I&lt;/P&gt;&lt;P&gt;changed uboot, then these commands (at the unix prompt) worked..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;echo 4 &amp;gt;/sys/class/gpio/export&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;echo out &amp;gt;/sys/class/gpio/gpio4/direction&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;echo 1 &amp;gt;/sys/class/gpio/gpio4/value&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;echo 0 &amp;gt;/sys/class/gpio/gpio4/value&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This makes me wonder what (if anything) is done by the first&lt;/P&gt;&lt;P&gt;two lines (which supposedly configured the direction to be output)...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone explain this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jan 2014 20:38:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Any-examples-on-how-to-modify-the-dts-device-tree-source-for/m-p/229499#M16954</guid>
      <dc:creator>EdSutter</dc:creator>
      <dc:date>2014-01-17T20:38:25Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Any examples on how to modify the .dts (device tree) source for custom hardware?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Any-examples-on-how-to-modify-the-dts-device-tree-source-for/m-p/229500#M16955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;P&gt;Hi Ed,&lt;/P&gt;&lt;P&gt;Line 1, exports the pin. i.e initialises the hardware register, checks for conflicts such as if it's been configured for another function e.g a serial port. It also exposes the sysfs functionality. If you look at the gpio directory before and after you export you'll see a new folder containing the sysfs functions gets created (gpio4 or similar). These functions then update the appropriate registers but with a common Linux interface.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; All gpios are set as inputs to begin with for safety so you don't accidentally drive into another output on your hardware, if one was driving high waggle the other low, damage could occur. So you must explicitly set it to output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Also after use you should unexport the pin to tidy everything up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; With regards to the .dts (device tree specification) file you'll probably see it inherits from one or two other files. One thing to look out for is the pin ctrl. This is not to be confused with the pin, it is a hardware block in its own right and therefore has its own entry in the dts (which is a description of each hardware block in the system). So you'll need to define this to allow your pin to be a gpio as well as adding the pin itself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; I think I'm about 3 days ahead of you in my own development for an imx28 board, so if any experts would like to add anything, or rubbish the above explanation, be my guest.&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jan 2014 19:51:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Any-examples-on-how-to-modify-the-dts-device-tree-source-for/m-p/229500#M16955</guid>
      <dc:creator>peteewg</dc:creator>
      <dc:date>2014-01-23T19:51:23Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Any examples on how to modify the .dts (device tree) source for custom hardware?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Any-examples-on-how-to-modify-the-dts-device-tree-source-for/m-p/229501#M16956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Peter,&lt;/P&gt;&lt;P&gt;Thanks for the clarification; however, my fundamental problem is that this line&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier;"&gt;echo out &amp;gt;/sys/class/gpio/gpio4/direction&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;had no effect.&amp;nbsp; I would have thought that anything uboot did to the pin would&lt;/P&gt;&lt;P&gt;have been overridden; but that was not the case.&amp;nbsp; When I changed uboot so&lt;/P&gt;&lt;P&gt;that it configured the pin as ouput, then I was able to use&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; padding-left: 30px;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;echo 1 &amp;gt;/sys/class/gpio/gpio4/value&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; padding-left: 30px;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: 'courier new', courier;"&gt;echo 0 &amp;gt;/sys/class/gpio/gpio4/value&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;to toggle the GPIO level.&amp;nbsp; That is still a mystery to me.&amp;nbsp; Note that this is&lt;/P&gt;&lt;P&gt;with a MUCH newer kernel (3.12) than what is in YOCTO/LTIB, so I am starting to&lt;/P&gt;&lt;P&gt;conclude that I may need to step back to something that is a bit more&lt;/P&gt;&lt;P&gt;supported in the iMX community.&amp;nbsp; Unfortunately, I think that means a kernel&lt;/P&gt;&lt;P&gt;that is pre-dts.&amp;nbsp; I spent the time getting to know this (a bit); so I hate to have&lt;/P&gt;&lt;P&gt;to do that.&lt;/P&gt;&lt;P&gt;Ed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jan 2014 20:17:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Any-examples-on-how-to-modify-the-dts-device-tree-source-for/m-p/229501#M16956</guid>
      <dc:creator>EdSutter</dc:creator>
      <dc:date>2014-01-23T20:17:17Z</dc:date>
    </item>
    <item>
      <title>Re: Any examples on how to modify the .dts (device tree) source for custom hardware?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Any-examples-on-how-to-modify-the-dts-device-tree-source-for/m-p/229502#M16957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ed&lt;/P&gt;&lt;P&gt;Had your issue got resolved? If yes, we are going to close the discussion in 3 days. If you still need help please feel &lt;/P&gt;&lt;P&gt;free to contact Freescale.&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Yixing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Feb 2014 06:34:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Any-examples-on-how-to-modify-the-dts-device-tree-source-for/m-p/229502#M16957</guid>
      <dc:creator>YixingKong</dc:creator>
      <dc:date>2014-02-20T06:34:40Z</dc:date>
    </item>
    <item>
      <title>Re: Any examples on how to modify the .dts (device tree) source for custom hardware?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Any-examples-on-how-to-modify-the-dts-device-tree-source-for/m-p/229503#M16958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yixing,&lt;/P&gt;&lt;P&gt;No this has not been resolved.&amp;nbsp; The device tree in general I understand; however, its direct connection to&lt;/P&gt;&lt;P&gt;iMX6 device interfaces is still a mystery to me.&amp;nbsp; &lt;/P&gt;&lt;P&gt;Ed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Feb 2014 14:45:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Any-examples-on-how-to-modify-the-dts-device-tree-source-for/m-p/229503#M16958</guid>
      <dc:creator>EdSutter</dc:creator>
      <dc:date>2014-02-20T14:45:25Z</dc:date>
    </item>
    <item>
      <title>Re: Any examples on how to modify the .dts (device tree) source for custom hardware?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Any-examples-on-how-to-modify-the-dts-device-tree-source-for/m-p/229504#M16959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ed&lt;/P&gt;&lt;P&gt;I will branch your questions into an internal group and assigin engineer to answer your question.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Yixing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Feb 2014 02:59:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Any-examples-on-how-to-modify-the-dts-device-tree-source-for/m-p/229504#M16959</guid>
      <dc:creator>YixingKong</dc:creator>
      <dc:date>2014-02-21T02:59:01Z</dc:date>
    </item>
    <item>
      <title>Re: Any examples on how to modify the .dts (device tree) source for custom hardware?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Any-examples-on-how-to-modify-the-dts-device-tree-source-for/m-p/229505#M16960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Conceptually I get the device tree; however, applying it is a different beast (IMHO).&lt;/P&gt;&lt;P&gt;My question should be simple for anyone that really understands this device tree stuff as it applies to iMX6.&lt;/P&gt;&lt;P&gt;I want to be able to use certain GPIO pins as input, some as output.&lt;/P&gt;&lt;P&gt;I want to be able to access them through /sys/class/gpio.&lt;/P&gt;&lt;P&gt;What do I need to do in the device tree to configure, for example, GPIO_0 as an input and GPIO_1 as an output?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Feb 2014 22:07:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Any-examples-on-how-to-modify-the-dts-device-tree-source-for/m-p/229505#M16960</guid>
      <dc:creator>EdSutter</dc:creator>
      <dc:date>2014-02-21T22:07:34Z</dc:date>
    </item>
    <item>
      <title>Re: Any examples on how to modify the .dts (device tree) source for custom hardware?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Any-examples-on-how-to-modify-the-dts-device-tree-source-for/m-p/229506#M16961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How did you configure the GPIO in the dts?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fabio Estevam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Feb 2014 16:51:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Any-examples-on-how-to-modify-the-dts-device-tree-source-for/m-p/229506#M16961</guid>
      <dc:creator>fabio_estevam</dc:creator>
      <dc:date>2014-02-24T16:51:47Z</dc:date>
    </item>
    <item>
      <title>Re: Any examples on how to modify the .dts (device tree) source for custom hardware?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Any-examples-on-how-to-modify-the-dts-device-tree-source-for/m-p/229507#M16962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Fabio,&lt;/P&gt;&lt;P&gt;That's the part that I don't get&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;How do I configure the GPIO in the dts?&lt;/P&gt;&lt;P&gt;I see the use of "gpio" all over the place, but I just wanna allocate a couple&lt;/P&gt;&lt;P&gt;of pins as basic GPIO pins (some input, some output) so that I can then use&lt;/P&gt;&lt;P&gt;/sys/class/gpio to monitor and/or modify them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have not seen any examples of this that make any sense to me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;Say I want to configure pad GPIO_0 as GPIO1_IO00 (ALT5), and use it as an input; and I &lt;/P&gt;&lt;P&gt;want to configure pad GPIO_1 as GPIO1_IO01 (ALT5), and use it as an output.&lt;/P&gt;&lt;P&gt;How would I do that with the DTS file so that I could then access these pins with&lt;/P&gt;&lt;P&gt;/sys/class/gpio/gpio0 and /sys/class/gpio/gpio1?&lt;/P&gt;&lt;P&gt;Ed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Feb 2014 17:08:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Any-examples-on-how-to-modify-the-dts-device-tree-source-for/m-p/229507#M16962</guid>
      <dc:creator>EdSutter</dc:creator>
      <dc:date>2014-02-24T17:08:59Z</dc:date>
    </item>
    <item>
      <title>Re: Any examples on how to modify the .dts (device tree) source for custom hardware?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Any-examples-on-how-to-modify-the-dts-device-tree-source-for/m-p/229508#M16963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Every pin needs to have its PAD configured in the dts file. For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MX6QDL_PAD_GPIO_0__CCM_CLKO1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x130b0&lt;/P&gt;&lt;P&gt;MX6QDL_PAD_GPIO_2__GPIO1_IO02&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x80000000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The explanation of what these values mean is available at:&lt;/P&gt;&lt;P&gt;Documentation/devicetree/bindings/pinctrl/fsl,imx6q-pinctrl.txt&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;Documentation/devicetree/bindings/pinctrl/fsl,imx-pinctrl.txt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The 0x80000000 means that the kernel will not touch the PAD settings and it will use whatever comes from default (or from U-boot in case it was previously configured in U-boot).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fabio Estevam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Feb 2014 18:01:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Any-examples-on-how-to-modify-the-dts-device-tree-source-for/m-p/229508#M16963</guid>
      <dc:creator>fabio_estevam</dc:creator>
      <dc:date>2014-02-24T18:01:01Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Any examples on how to modify the .dts (device tree) source for custom hardware?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Any-examples-on-how-to-modify-the-dts-device-tree-source-for/m-p/229509#M16964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've been reading through that stuff, but something just isn't sinking in.&lt;/P&gt;&lt;P&gt;Bear with me here (thanks for your patience)...&lt;/P&gt;&lt;P&gt;If I have this in my .dts file...&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;amp;iomuxc {&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; pinctrl-names = "default";&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; pinctrl-0 = &amp;lt;&amp;amp;pinctrl_hog_1&amp;gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; hog {&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pinctrl_hog_1: hoggrp-1 {&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fsl,pins = &amp;lt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&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; MX6QDL_PAD_GPIO_0__GPIO1_IO00&amp;nbsp; 0x80000000&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&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; MX6QDL_PAD_GPIO_1__GPIO1_IO01&amp;nbsp; 0x80000000&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&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; ...&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;and I've got these two pins configured in uboot, the way I want them (GPIO_0=out, GPIO_1=in)&lt;/P&gt;&lt;P&gt;shouldn't I be able to access them as regular GPIO using /sys/class/gpio?&lt;/P&gt;&lt;P&gt;I know they are configured correctly in uboot because I can access them there and they do what&lt;/P&gt;&lt;P&gt;I expect; however when I try to read the input line (/sys/class/gpio/gpio1/value) its not reading&lt;/P&gt;&lt;P&gt;back the value on the bit. &lt;/P&gt;&lt;P&gt;Note, I realize that GPIO_1 *could* be allocated to usbotg, but I don't have USB on&lt;/P&gt;&lt;P&gt;this board; so that node is removed from my dts file.&lt;/P&gt;&lt;P&gt;Ed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Feb 2014 20:12:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Any-examples-on-how-to-modify-the-dts-device-tree-source-for/m-p/229509#M16964</guid>
      <dc:creator>EdSutter</dc:creator>
      <dc:date>2014-02-24T20:12:49Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Any examples on how to modify the .dts (device tree) source for custom hardware?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Any-examples-on-how-to-modify-the-dts-device-tree-source-for/m-p/229510#M16965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you would need to register your input GPIO as 'gpio-keys' in the dts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see sabresd for reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fabio Estevam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Feb 2014 22:20:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Any-examples-on-how-to-modify-the-dts-device-tree-source-for/m-p/229510#M16965</guid>
      <dc:creator>fabio_estevam</dc:creator>
      <dc:date>2014-02-24T22:20:52Z</dc:date>
    </item>
    <item>
      <title>Re: Any examples on how to modify the .dts (device tree) source for custom hardware?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Any-examples-on-how-to-modify-the-dts-device-tree-source-for/m-p/229511#M16966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ed&lt;/P&gt;&lt;P&gt;Has your issue got resolved? If not, please reply with an update here, otherwise we would like to close the DI in 3 days..&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Yixing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2014 06:31:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Any-examples-on-how-to-modify-the-dts-device-tree-source-for/m-p/229511#M16966</guid>
      <dc:creator>YixingKong</dc:creator>
      <dc:date>2014-03-05T06:31:48Z</dc:date>
    </item>
    <item>
      <title>Re: Any examples on how to modify the .dts (device tree) source for custom hardware?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Any-examples-on-how-to-modify-the-dts-device-tree-source-for/m-p/229512#M16967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yixing,&lt;/P&gt;&lt;P&gt;No it hasn't been resolved.&amp;nbsp; The connection between device tree and the underlying kernel drivers; specifically those unique to iMX6, is still somewhat of a mystery to me.&amp;nbsp; I understand the device tree concept (I'm using it); but I still have not had time to dig into the code to really see the connection between the iMX6-specific hooks and the entries in the device tree .dts file(s). I can hack my way through it, but would like to have a better understanding of it.&amp;nbsp; Sooner or later I'll just dig into the code and figure it out.&amp;nbsp; Meanwhile, if for some reason you need to close this discussion, go for it.&lt;/P&gt;&lt;P&gt;What's the point here?&amp;nbsp; Why does this need to be closed?&lt;/P&gt;&lt;P&gt;Ed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2014 12:47:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Any-examples-on-how-to-modify-the-dts-device-tree-source-for/m-p/229512#M16967</guid>
      <dc:creator>EdSutter</dc:creator>
      <dc:date>2014-03-05T12:47:18Z</dc:date>
    </item>
    <item>
      <title>Re: Any examples on how to modify the .dts (device tree) source for custom hardware?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Any-examples-on-how-to-modify-the-dts-device-tree-source-for/m-p/229513#M16968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ed, if your issue/question is still there, I will leave the discussion open. Please do not leave the discussion here withno action and keep exchanging emails with our engineers so that you could get response quicker.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Yixing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Mar 2014 05:18:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Any-examples-on-how-to-modify-the-dts-device-tree-source-for/m-p/229513#M16968</guid>
      <dc:creator>YixingKong</dc:creator>
      <dc:date>2014-03-06T05:18:31Z</dc:date>
    </item>
    <item>
      <title>Re: Any examples on how to modify the .dts (device tree) source for custom hardware?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Any-examples-on-how-to-modify-the-dts-device-tree-source-for/m-p/229514#M16969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ed&lt;/P&gt;&lt;P&gt;This discussion is closed since no activity. If you still need help, please feel free to reply with an update to this discussion, or create another discussion.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Yixing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Mar 2014 06:39:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Any-examples-on-how-to-modify-the-dts-device-tree-source-for/m-p/229514#M16969</guid>
      <dc:creator>YixingKong</dc:creator>
      <dc:date>2014-03-20T06:39:01Z</dc:date>
    </item>
  </channel>
</rss>

