<?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 Re: imx6ull-&amp;gt;ADC in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/imx6ull-gt-ADC/m-p/2417657#M246919</link>
    <description>&lt;P&gt;Thank you for the reply.&lt;BR /&gt;if i want to configure&amp;nbsp;&lt;STRONG&gt;GPIO01_IO01 ,&amp;nbsp;GPIO01_IO02&lt;/STRONG&gt; as &lt;STRONG&gt;GPI. &lt;/STRONG&gt;How does the configuration will be could you please help me with that also.&lt;/P&gt;</description>
    <pubDate>Thu, 01 Oct 2026 05:35:59 GMT</pubDate>
    <dc:creator>Et_MM</dc:creator>
    <dc:date>2026-10-01T05:35:59Z</dc:date>
    <item>
      <title>imx6ull-&gt;ADC</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6ull-gt-ADC/m-p/2417104#M246893</link>
      <description>&lt;P class=""&gt;Hi,&lt;/P&gt;&lt;P&gt;I am working with an &lt;STRONG&gt;i.MX6ULL-based custom SOM module&lt;/STRONG&gt;. For our requirements, we are configuring the pins using &lt;STRONG&gt;Config Tools for i.MX Processors&lt;/STRONG&gt;. In Config Tools, I selected &lt;STRONG&gt;Create a Standalone Project&lt;/STRONG&gt;, then selected &lt;STRONG&gt;i.MX 6ULL → (6Y2...05)&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;Our requirement is to configure the pins using Config Tools, take the generated &lt;STRONG&gt;.dtsi file&lt;/STRONG&gt;, and use the same file to build the image. However, this did not work initially.&lt;/P&gt;&lt;P&gt;For &lt;STRONG&gt;UART&lt;/STRONG&gt;, I understood that we need to add the corresponding device node and set its status to okay. Similarly, a small modification was also required in the generated .dtsi file.&lt;/P&gt;&lt;P&gt;I have attached the .dtsi file generated by Config Tools. Please have a look at it. In that file, when I commented out the imx6ull-board line, the configurations started working properly.&lt;/P&gt;&lt;P&gt;After UART, I moved on to &lt;STRONG&gt;ADC&lt;/STRONG&gt; configuration. When I checked the ADC configuration in Config Tools, I noticed that the &lt;STRONG&gt;ADC&lt;/STRONG&gt; appears to use the same &lt;STRONG&gt;GPIO&lt;/STRONG&gt; pin. However, I observed that when I configure one GPIO pin as GPIO and another GPIO pin as ADC, the generated IOMUX configuration looks the same. Why is this the case? Is this the expected behavior?&lt;/P&gt;&lt;P&gt;Could you please help me understand the correct way to configure and test the ADC on our &lt;STRONG&gt;i.MX6ULL custom SOM&lt;/STRONG&gt;?&lt;/P&gt;&lt;P&gt;Also, our original requirement was to configure the pins using Config Tools, take the generated configuration file, and directly use it to build and flash the image. I would like to confirm whether this approach should work for our custom board or whether additional changes are required in the generated .dtsi file.&lt;/P&gt;&lt;P&gt;I have attached the dts and .dtsi file generated from Config Tools for your reference.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Et_MM_0-1790678732208.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/397010i59B0DEA6703656B1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Et_MM_0-1790678732208.png" alt="Et_MM_0-1790678732208.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;what actually does this meant by?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2026 10:45:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6ull-gt-ADC/m-p/2417104#M246893</guid>
      <dc:creator>Et_MM</dc:creator>
      <dc:date>2026-09-29T10:45:53Z</dc:date>
    </item>
    <item>
      <title>Re: imx6ull-&gt;ADC</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6ull-gt-ADC/m-p/2417205#M246895</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/242536"&gt;@Et_MM&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It seems to be a bug from Config Tools for i.MX6ULL.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please clarify what GPIO you want as ADC and what other for GPIO function.&lt;/P&gt;
&lt;P&gt;I can help you to generate the correct &amp;amp;adc1 node and the correct pinmux.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Salas.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2026 17:03:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6ull-gt-ADC/m-p/2417205#M246895</guid>
      <dc:creator>Manuel_Salas</dc:creator>
      <dc:date>2026-09-29T17:03:54Z</dc:date>
    </item>
    <item>
      <title>Re: imx6ull-&gt;ADC</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6ull-gt-ADC/m-p/2417400#M246907</link>
      <description>&lt;P&gt;I want &lt;STRONG&gt;GPIO01_IO01 ,&amp;nbsp;GPIO01_IO02&lt;/STRONG&gt; as &lt;STRONG&gt;GPIO&lt;/STRONG&gt; itself and&amp;nbsp;&lt;STRONG&gt;GPIO01_IO03,GPIO01_IO04&lt;/STRONG&gt; as &lt;STRONG&gt;ADC&lt;/STRONG&gt;.&lt;BR /&gt;when i searched the dtsi file it looked like we have only one adc that is adc1. adc2 is not available. please correct me if i am wrong.&lt;/P&gt;&lt;P&gt;Also guide me how can i test and verify that adc and gpio pins that we configured is working. How can i test that?&lt;/P&gt;&lt;P&gt;Already i have shared the dts and dtsi file that we are using. Hoping that you have already seen that. Is the configuration in mentioned for adc is wrong in that?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2026 09:21:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6ull-gt-ADC/m-p/2417400#M246907</guid>
      <dc:creator>Et_MM</dc:creator>
      <dc:date>2026-09-30T09:21:12Z</dc:date>
    </item>
    <item>
      <title>Re: imx6ull-&gt;ADC</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6ull-gt-ADC/m-p/2417603#M246914</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/242536"&gt;@Et_MM&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope you are doing very well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, ADC1 is the just one available.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For your use case, please use the below to your device tree:&lt;/P&gt;
&lt;LI-CODE lang="c"&gt;&amp;amp;adc1 {
        num-channels = &amp;lt;10&amp;gt;;
        pinctrl-names = "default";
        pinctrl-0 = &amp;lt;&amp;amp;pinctrl_adc1&amp;gt;;
        status = "okay";
};

&amp;amp;iomuxc {
        pinctrl_adc1: adc1grp {
                fsl,pins = &amp;lt;
                        MX6UL_PAD_GPIO1_IO03__GPIO1_IO03        0x3000
                        MX6UL_PAD_GPIO1_IO04__GPIO1_IO04        0x3000
                &amp;gt;;
        };
};
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That will use just the GPIO1_IO03 and GPIO1_IO04 as ADC channels.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;root@imx6ul7d:/sys/bus/iio/devices/iio:device1# cat in_voltage3_raw  
75
root@imx6ul7d:/sys/bus/iio/devices/iio:device1# cat in_voltage4_raw  
0
root@imx6ul7d:/sys/bus/iio/devices/iio:device1# cat name  
2198000.adc&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Salas.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2026 20:49:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6ull-gt-ADC/m-p/2417603#M246914</guid>
      <dc:creator>Manuel_Salas</dc:creator>
      <dc:date>2026-09-30T20:49:47Z</dc:date>
    </item>
    <item>
      <title>Re: imx6ull-&gt;ADC</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6ull-gt-ADC/m-p/2417657#M246919</link>
      <description>&lt;P&gt;Thank you for the reply.&lt;BR /&gt;if i want to configure&amp;nbsp;&lt;STRONG&gt;GPIO01_IO01 ,&amp;nbsp;GPIO01_IO02&lt;/STRONG&gt; as &lt;STRONG&gt;GPI. &lt;/STRONG&gt;How does the configuration will be could you please help me with that also.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Oct 2026 05:35:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6ull-gt-ADC/m-p/2417657#M246919</guid>
      <dc:creator>Et_MM</dc:creator>
      <dc:date>2026-10-01T05:35:59Z</dc:date>
    </item>
    <item>
      <title>Re: imx6ull-&gt;ADC</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6ull-gt-ADC/m-p/2417871#M246926</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can simply add the below inside the &amp;amp;iomux:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;pinctrl_hog: hoggrp {
        fsl,pins = &amp;lt;
            MX6UL_PAD_GPIO1_IO01__GPIO1_IO01        0x10b0
            MX6UL_PAD_GPIO1_IO02__GPIO1_IO02        0x10b0
        &amp;gt;;
    };&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just be sure that is not claimed by another perupheral.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Salas.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Oct 2026 16:40:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6ull-gt-ADC/m-p/2417871#M246926</guid>
      <dc:creator>Manuel_Salas</dc:creator>
      <dc:date>2026-10-01T16:40:02Z</dc:date>
    </item>
    <item>
      <title>Re: imx6ull-&gt;ADC</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6ull-gt-ADC/m-p/2418230#M246935</link>
      <description>&lt;P&gt;Hi, Thank you for the reply i will try this.&lt;/P&gt;&lt;P&gt;I have tried the &lt;STRONG&gt;ADC&lt;/STRONG&gt; with the configuration you gave and when i run those commands this is my output:&lt;BR /&gt;root@imx6ul7d:/sys/bus/iio/devices/iio:device0# &lt;STRONG&gt;cat in_voltage1_raw&lt;/STRONG&gt;&lt;BR /&gt;78&lt;BR /&gt;root@imx6ul7d:/sys/bus/iio/devices/iio:device0# &lt;STRONG&gt;cat in_voltage4_raw&lt;/STRONG&gt;&lt;BR /&gt;74&lt;BR /&gt;&lt;BR /&gt;But any other way to test this pins so i can confirm this is working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 03 Oct 2026 05:45:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6ull-gt-ADC/m-p/2418230#M246935</guid>
      <dc:creator>Et_MM</dc:creator>
      <dc:date>2026-10-03T05:45:56Z</dc:date>
    </item>
  </channel>
</rss>

