<?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 Does imx.6 device tree gpio config just need to set bit 31 as high? in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Does-imx-6-device-tree-gpio-config-just-need-to-set-bit-31-as/m-p/640961#M97784</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, guys:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; Recently I'm trying kernel 4.1(I was working in kernel 3.0.35 for a long time), now one question is made me crazy:&lt;/P&gt;&lt;P&gt;Does gpio's config in device tree always just set bit 31 as high(and leave all ohter bits 0)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In arch/arm/boot/dts/imx6qdl-sabresd.dtsi:&lt;/P&gt;&lt;P&gt;pinctrl_hog: hoggrp {&lt;BR /&gt; fsl,pins = &amp;lt;&lt;BR /&gt; MX6QDL_PAD_NANDF_D0__GPIO2_IO00 0x80000000&lt;BR /&gt; MX6QDL_PAD_NANDF_D1__GPIO2_IO01 0x80000000&lt;BR /&gt; MX6QDL_PAD_NANDF_D2__GPIO2_IO02 0x80000000&lt;BR /&gt; MX6QDL_PAD_NANDF_D3__GPIO2_IO03 0x80000000&lt;/P&gt;&lt;P&gt;...}&lt;/P&gt;&lt;P&gt;seems use PAD as GPIO all I need to do is set its config as 0x8000000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; But I got an except here, in the same file:&lt;/P&gt;&lt;P&gt;pinctrl_gpio_keys: gpio_keysgrp {&lt;BR /&gt; fsl,pins = &amp;lt;&lt;BR /&gt; MX6QDL_PAD_EIM_D29__GPIO3_IO29 0x1b0b0&lt;BR /&gt; MX6QDL_PAD_GPIO_4__GPIO1_IO04 0x1b0b0&lt;BR /&gt; MX6QDL_PAD_GPIO_5__GPIO1_IO05 0x1b0b0&lt;BR /&gt; &amp;gt;;&lt;BR /&gt; };&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; From Documentation/devicetree/bindings/pinctrl/fsl,imx-pinctrl.txt, I got a brief described:&lt;/P&gt;&lt;P&gt;Bits used for CONFIG:&lt;BR /&gt;NO_PAD_CTL(1 &amp;lt;&amp;lt; 31): indicate this pin does not need config.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; Geez, why pinctrl_gpio_keys need to set these gpio configs as 0x1b0b0?&lt;/P&gt;&lt;P&gt;I also check the IMX6QDRM, and found 0x1b0b0 is the default value of IOMUXC_SW_PAD_CTL_PAD_XXX_XXX.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestion will be appreciated, thanks.&lt;/P&gt;&lt;P&gt;Wally&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Oct 2016 08:10:32 GMT</pubDate>
    <dc:creator>wallyyeh</dc:creator>
    <dc:date>2016-10-17T08:10:32Z</dc:date>
    <item>
      <title>Does imx.6 device tree gpio config just need to set bit 31 as high?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Does-imx-6-device-tree-gpio-config-just-need-to-set-bit-31-as/m-p/640961#M97784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, guys:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; Recently I'm trying kernel 4.1(I was working in kernel 3.0.35 for a long time), now one question is made me crazy:&lt;/P&gt;&lt;P&gt;Does gpio's config in device tree always just set bit 31 as high(and leave all ohter bits 0)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In arch/arm/boot/dts/imx6qdl-sabresd.dtsi:&lt;/P&gt;&lt;P&gt;pinctrl_hog: hoggrp {&lt;BR /&gt; fsl,pins = &amp;lt;&lt;BR /&gt; MX6QDL_PAD_NANDF_D0__GPIO2_IO00 0x80000000&lt;BR /&gt; MX6QDL_PAD_NANDF_D1__GPIO2_IO01 0x80000000&lt;BR /&gt; MX6QDL_PAD_NANDF_D2__GPIO2_IO02 0x80000000&lt;BR /&gt; MX6QDL_PAD_NANDF_D3__GPIO2_IO03 0x80000000&lt;/P&gt;&lt;P&gt;...}&lt;/P&gt;&lt;P&gt;seems use PAD as GPIO all I need to do is set its config as 0x8000000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; But I got an except here, in the same file:&lt;/P&gt;&lt;P&gt;pinctrl_gpio_keys: gpio_keysgrp {&lt;BR /&gt; fsl,pins = &amp;lt;&lt;BR /&gt; MX6QDL_PAD_EIM_D29__GPIO3_IO29 0x1b0b0&lt;BR /&gt; MX6QDL_PAD_GPIO_4__GPIO1_IO04 0x1b0b0&lt;BR /&gt; MX6QDL_PAD_GPIO_5__GPIO1_IO05 0x1b0b0&lt;BR /&gt; &amp;gt;;&lt;BR /&gt; };&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; From Documentation/devicetree/bindings/pinctrl/fsl,imx-pinctrl.txt, I got a brief described:&lt;/P&gt;&lt;P&gt;Bits used for CONFIG:&lt;BR /&gt;NO_PAD_CTL(1 &amp;lt;&amp;lt; 31): indicate this pin does not need config.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; Geez, why pinctrl_gpio_keys need to set these gpio configs as 0x1b0b0?&lt;/P&gt;&lt;P&gt;I also check the IMX6QDRM, and found 0x1b0b0 is the default value of IOMUXC_SW_PAD_CTL_PAD_XXX_XXX.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestion will be appreciated, thanks.&lt;/P&gt;&lt;P&gt;Wally&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Oct 2016 08:10:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Does-imx-6-device-tree-gpio-config-just-need-to-set-bit-31-as/m-p/640961#M97784</guid>
      <dc:creator>wallyyeh</dc:creator>
      <dc:date>2016-10-17T08:10:32Z</dc:date>
    </item>
    <item>
      <title>Re: Does imx.6 device tree gpio config just need to set bit 31 as high?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Does-imx-6-device-tree-gpio-config-just-need-to-set-bit-31-as/m-p/640962#M97785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Wally&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;why pinctrl_gpio_keys need to set these gpio configs as 0x1b0b0?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it could be changed before in bootloader, so linux sets them in some predefined&lt;/P&gt;&lt;P&gt;state.&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>Mon, 17 Oct 2016 10:55:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Does-imx-6-device-tree-gpio-config-just-need-to-set-bit-31-as/m-p/640962#M97785</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2016-10-17T10:55:39Z</dc:date>
    </item>
    <item>
      <title>Re: Does imx.6 device tree gpio config just need to set bit 31 as high?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Does-imx-6-device-tree-gpio-config-just-need-to-set-bit-31-as/m-p/640963#M97786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Igorpadykov:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; Thankyou, I appreciated your answer. &amp;nbsp; &amp;nbsp;:smileygrin:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; You mean pinctrl_gpio_keys will be changed during U-Boot, so I suppose gpios in pinctrl_hog are not changed during U-Boot, is it correct?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wally&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Oct 2016 12:00:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Does-imx-6-device-tree-gpio-config-just-need-to-set-bit-31-as/m-p/640963#M97786</guid>
      <dc:creator>wallyyeh</dc:creator>
      <dc:date>2016-10-17T12:00:18Z</dc:date>
    </item>
    <item>
      <title>Re: Does imx.6 device tree gpio config just need to set bit 31 as high?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Does-imx-6-device-tree-gpio-config-just-need-to-set-bit-31-as/m-p/640964#M97787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I meant they can be changed in uboot, so linux sets them in predefined&lt;/P&gt;&lt;P&gt;state for usage with linux drivers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~igor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2016 00:05:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Does-imx-6-device-tree-gpio-config-just-need-to-set-bit-31-as/m-p/640964#M97787</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2016-10-18T00:05:26Z</dc:date>
    </item>
    <item>
      <title>Re: Does imx.6 device tree gpio config just need to set bit 31 as high?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Does-imx-6-device-tree-gpio-config-just-need-to-set-bit-31-as/m-p/640965#M97788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Igor:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;igorpadykov 留言:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I meant they can be changed in uboot, so linux sets them in predefined&lt;/P&gt;&lt;P&gt;state for usage with linux drivers&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;~igor&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;It sounds reasonable that we should set all gpio in predefined state if we wanna use them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;your answer let me&amp;nbsp;understand that why setting &lt;STRONG&gt;pinctrl_gpio_keys&lt;/STRONG&gt; group as 0x1b0b0, but I still can not understand why don't&amp;nbsp;do the same setting to the &lt;STRONG&gt;pinctrl_hog&lt;/STRONG&gt; gruop? I think they are under the&amp;nbsp;same purpose - for gpio.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I think they(&lt;STRONG&gt;pinctrl_gpio_keys &lt;/STRONG&gt;and&lt;STRONG&gt;&amp;nbsp;&lt;STRONG&gt;pinctrl_hog&lt;/STRONG&gt;&lt;/STRONG&gt;) should be different, maybe the input/output is different?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wally&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2016 01:20:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Does-imx-6-device-tree-gpio-config-just-need-to-set-bit-31-as/m-p/640965#M97788</guid>
      <dc:creator>wallyyeh</dc:creator>
      <dc:date>2016-10-18T01:20:07Z</dc:date>
    </item>
  </channel>
</rss>

