<?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 iMX8mp gpio configuration in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/iMX8mp-gpio-configuration/m-p/1334916#M179556</link>
    <description>&lt;P&gt;hello&lt;/P&gt;&lt;P&gt;could you please help me out to configure GPIO1_IO6&amp;nbsp; with internal PULLUP . below are the DTB contents i found relevant to the GPIO configuration which i'll be using in my driver.&lt;/P&gt;&lt;P&gt;By default we are getting line in pulled LOW state now. we need to configure in pulled high state by default.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://source.codeaurora.org/external/imx/linux-imx/tree/arch/arm64/boot/dts/freescale/imx8mp-pinfunc.h?h=lf-5.10.y&amp;amp;id=ef3f2cfc6010c13feb40cfb7fd7490832cf86f45&amp;nbsp;" target="_self"&gt;https://source.codeaurora.org/external/imx/linux-imx/tree/arch/arm64/boot/dts/freescale/imx8mp-pinfunc.h?h=lf-5.10.y&amp;amp;id=ef3f2cfc6010c13feb40cfb7fd7490832cf86f45&amp;nbsp;&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;/*&lt;BR /&gt;* The pin function ID is a tuple of&lt;BR /&gt;* &amp;lt;mux_reg conf_reg input_reg mux_mode input_val&amp;gt;&lt;BR /&gt;*/&lt;/P&gt;&lt;P&gt;#define MX8MP_IOMUXC_GPIO1_IO06__GPIO1_IO06&amp;nbsp; &amp;nbsp;0x02C 0x28C 0x000 0x0 0x0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://source.codeaurora.org/external/imx/linux-imx/tree/arch/arm64/boot/dts/freescale/imx8mp-evk.dts?h=lf-5.10.y&amp;amp;id=ef3f2cfc6010c13feb40cfb7fd7490832cf86f45&amp;nbsp;" target="_self"&gt;https://source.codeaurora.org/external/imx/linux-imx/tree/arch/arm64/boot/dts/freescale/imx8mp-evk.dts?h=lf-5.10.y&amp;amp;id=ef3f2cfc6010c13feb40cfb7fd7490832cf86f45&amp;nbsp;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;iomuxc {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; pinctrl_csi0_rst: csi0_rst_grp {&lt;BR /&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; fsl,pins = &amp;lt;&lt;BR /&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;MX8MP_IOMUXC_GPIO1_IO06__GPIO1_IO06&amp;nbsp; 0x19&lt;BR /&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;gt;;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; };&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;to my understanding the value 0x19 is writing to the below control register which is setting the GPIO to use as PULLDOWN.&lt;BR /&gt;where bit no:8 =0 and bit no:6=0.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot from 2021-09-03 20-20-57.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/155111iD868D6384B793D62/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot from 2021-09-03 20-20-57.png" alt="Screenshot from 2021-09-03 20-20-57.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;is this the right approch, please help me understand it correctly.&lt;/P&gt;&lt;P&gt;Thanks in advance&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 03 Sep 2021 15:04:03 GMT</pubDate>
    <dc:creator>mukesh_kumar</dc:creator>
    <dc:date>2021-09-03T15:04:03Z</dc:date>
    <item>
      <title>iMX8mp gpio configuration</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX8mp-gpio-configuration/m-p/1334916#M179556</link>
      <description>&lt;P&gt;hello&lt;/P&gt;&lt;P&gt;could you please help me out to configure GPIO1_IO6&amp;nbsp; with internal PULLUP . below are the DTB contents i found relevant to the GPIO configuration which i'll be using in my driver.&lt;/P&gt;&lt;P&gt;By default we are getting line in pulled LOW state now. we need to configure in pulled high state by default.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://source.codeaurora.org/external/imx/linux-imx/tree/arch/arm64/boot/dts/freescale/imx8mp-pinfunc.h?h=lf-5.10.y&amp;amp;id=ef3f2cfc6010c13feb40cfb7fd7490832cf86f45&amp;nbsp;" target="_self"&gt;https://source.codeaurora.org/external/imx/linux-imx/tree/arch/arm64/boot/dts/freescale/imx8mp-pinfunc.h?h=lf-5.10.y&amp;amp;id=ef3f2cfc6010c13feb40cfb7fd7490832cf86f45&amp;nbsp;&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;/*&lt;BR /&gt;* The pin function ID is a tuple of&lt;BR /&gt;* &amp;lt;mux_reg conf_reg input_reg mux_mode input_val&amp;gt;&lt;BR /&gt;*/&lt;/P&gt;&lt;P&gt;#define MX8MP_IOMUXC_GPIO1_IO06__GPIO1_IO06&amp;nbsp; &amp;nbsp;0x02C 0x28C 0x000 0x0 0x0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://source.codeaurora.org/external/imx/linux-imx/tree/arch/arm64/boot/dts/freescale/imx8mp-evk.dts?h=lf-5.10.y&amp;amp;id=ef3f2cfc6010c13feb40cfb7fd7490832cf86f45&amp;nbsp;" target="_self"&gt;https://source.codeaurora.org/external/imx/linux-imx/tree/arch/arm64/boot/dts/freescale/imx8mp-evk.dts?h=lf-5.10.y&amp;amp;id=ef3f2cfc6010c13feb40cfb7fd7490832cf86f45&amp;nbsp;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;iomuxc {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; pinctrl_csi0_rst: csi0_rst_grp {&lt;BR /&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; fsl,pins = &amp;lt;&lt;BR /&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;MX8MP_IOMUXC_GPIO1_IO06__GPIO1_IO06&amp;nbsp; 0x19&lt;BR /&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;gt;;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; };&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;to my understanding the value 0x19 is writing to the below control register which is setting the GPIO to use as PULLDOWN.&lt;BR /&gt;where bit no:8 =0 and bit no:6=0.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot from 2021-09-03 20-20-57.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/155111iD868D6384B793D62/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot from 2021-09-03 20-20-57.png" alt="Screenshot from 2021-09-03 20-20-57.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;is this the right approch, please help me understand it correctly.&lt;/P&gt;&lt;P&gt;Thanks in advance&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Sep 2021 15:04:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX8mp-gpio-configuration/m-p/1334916#M179556</guid>
      <dc:creator>mukesh_kumar</dc:creator>
      <dc:date>2021-09-03T15:04:03Z</dc:date>
    </item>
    <item>
      <title>Re: iMX8mp gpio configuration</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX8mp-gpio-configuration/m-p/1334987#M179561</link>
      <description>&lt;P&gt;Hi Mukesh&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;gt; my understanding the value 0x19 is writing to the below control register which is&lt;/P&gt;
&lt;P&gt;&amp;gt;setting the GPIO to use as PULLDOWN. where bit no:8 =0 and bit no:6=0.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;for enabling pull resistor set bit no:8 =1&lt;/P&gt;
&lt;P&gt;enable pull down(LOW)&amp;nbsp; bit no:6=0&lt;/P&gt;
&lt;P&gt;enable pull up(HIGH)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bit no:6=1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;/P&gt;</description>
      <pubDate>Fri, 03 Sep 2021 23:45:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX8mp-gpio-configuration/m-p/1334987#M179561</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2021-09-03T23:45:18Z</dc:date>
    </item>
    <item>
      <title>Re: iMX8mp gpio configuration</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX8mp-gpio-configuration/m-p/1335564#M179631</link>
      <description>&lt;P&gt;Hi igor,&lt;/P&gt;&lt;P&gt;Thank you for replying to the issue.&lt;/P&gt;&lt;P&gt;I changed the value as 1 at bit number 6 and bit number 8 , but it seems not taking any effect to change as internal pullup&lt;BR /&gt;&amp;amp;iomuxc {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; pinctrl_csi0_rst: csi0_rst_grp {&lt;BR /&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; fsl,pins = &amp;lt;&lt;BR /&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;MX8MP_IOMUXC_GPIO1_IO06__GPIO1_IO06&amp;nbsp; 0x159&lt;BR /&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;gt;;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; };&lt;BR /&gt;};&lt;BR /&gt;for confirmation I tried reading register address 0x3033028C using devmem2, but it thrown a error mentioning bad address.&lt;/P&gt;&lt;P&gt;can you please answer the following queries&lt;BR /&gt;1.Does the control register I'm referring to is correct?&lt;BR /&gt;2.what is the correct physical address of the register that refer the preprocessor directive MX8MP_IOMUXC_GPIO1_IO06__GPIO1_IO06 ?&lt;BR /&gt;3.At the defination of this preprocessor directive the tuple contains a member named input_val, is it input to mux_reg or conf_reg ?&lt;BR /&gt;/* &amp;lt;mux_reg conf_reg input_reg mux_mode input_val&amp;gt;&lt;BR /&gt;*/&lt;/P&gt;&lt;P&gt;#define MX8MP_IOMUXC_GPIO1_IO06__GPIO1_IO06 0x02C 0x28C 0x000 0x0 0x0&lt;/P&gt;&lt;P&gt;can you please answer these queries,&lt;/P&gt;&lt;P&gt;Thank you,&lt;BR /&gt;Mukesh kumar&lt;/P&gt;</description>
      <pubDate>Mon, 06 Sep 2021 14:14:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX8mp-gpio-configuration/m-p/1335564#M179631</guid>
      <dc:creator>mukesh_kumar</dc:creator>
      <dc:date>2021-09-06T14:14:32Z</dc:date>
    </item>
    <item>
      <title>Re: iMX8mp gpio configuration</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX8mp-gpio-configuration/m-p/1335649#M179638</link>
      <description>&lt;P&gt;devmem2 is not supported by nxp, please try memtool&lt;/P&gt;
&lt;P&gt;&lt;A href="https://source.codeaurora.org/external/imx/imx-test/tree/test/memtool?h=lf-5.10.y_2.0.0" target="_blank"&gt;https://source.codeaurora.org/external/imx/imx-test/tree/test/memtool?h=lf-5.10.y_2.0.0&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;/P&gt;</description>
      <pubDate>Mon, 06 Sep 2021 23:34:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX8mp-gpio-configuration/m-p/1335649#M179638</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2021-09-06T23:34:20Z</dc:date>
    </item>
    <item>
      <title>Re: iMX8mp gpio configuration</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX8mp-gpio-configuration/m-p/1335978#M179671</link>
      <description>&lt;P&gt;Hi igor,&lt;/P&gt;&lt;P&gt;I'm able to see that register contents are updating properly,&lt;BR /&gt;i also changed the drive strength field as well from X1 to X6 that helped to drive the pullup to 1.8V for me.&lt;/P&gt;&lt;P&gt;while the drive strength field is set X1 the pullup is able to drive 0.5V only.&lt;BR /&gt;&lt;BR /&gt;thanks for the help.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Sep 2021 08:46:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX8mp-gpio-configuration/m-p/1335978#M179671</guid>
      <dc:creator>mukesh_kumar</dc:creator>
      <dc:date>2021-09-07T08:46:47Z</dc:date>
    </item>
  </channel>
</rss>

