<?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: Work with GPIO i.MX 8M Mini in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Work-with-GPIO-i-MX-8M-Mini/m-p/1371005#M183012</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/192428"&gt;@SYakubson&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Download the reference manual on the web link, please!&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.nxp.com/products/processors-and-microcontrollers/arm-processors/i-mx-applications-processors/i-mx-8-processors/i-mx-8m-mini-arm-cortex-a53-cortex-m4-audio-voice-video:i.MX8MMINI?tab=Documentation_Tab" target="_blank"&gt;https://www.nxp.com/products/processors-and-microcontrollers/arm-processors/i-mx-applications-processors/i-mx-8-processors/i-mx-8m-mini-arm-cortex-a53-cortex-m4-audio-voice-video:i.MX8MMINI?tab=Documentation_Tab&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;An example for you:&lt;/P&gt;
&lt;P&gt;if you are using GPIO5_IO08, it's number in linux : (5-1)x32 + 8 = 136&lt;/P&gt;
&lt;P&gt;you can get all GPIO list from reference manual.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope above is helpful to you.&lt;/P&gt;
&lt;P&gt;Have a good day!&lt;/P&gt;
&lt;P&gt;regards,&lt;/P&gt;
&lt;P&gt;weidong&lt;/P&gt;</description>
    <pubDate>Mon, 15 Nov 2021 02:57:32 GMT</pubDate>
    <dc:creator>weidong_sun</dc:creator>
    <dc:date>2021-11-15T02:57:32Z</dc:date>
    <item>
      <title>Work with GPIO i.MX 8M Mini</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Work-with-GPIO-i-MX-8M-Mini/m-p/1369605#M182887</link>
      <description>&lt;P&gt;Hello! W&lt;SPAN&gt;here can i find schematics to work with GPIO. I found this site (&lt;A href="https://variwiki.com/index.php?title=MX8M_GPIO" target="_blank"&gt;https://variwiki.com/index.php?title=MX8M_GPIO&lt;/A&gt;), but I could not find a diagram that describes which pin on gpio and its number.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Nov 2021 03:16:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Work-with-GPIO-i-MX-8M-Mini/m-p/1369605#M182887</guid>
      <dc:creator>SYakubson</dc:creator>
      <dc:date>2021-11-11T03:16:38Z</dc:date>
    </item>
    <item>
      <title>Re: Work with GPIO i.MX 8M Mini</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Work-with-GPIO-i-MX-8M-Mini/m-p/1369675#M182896</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;All Pins multiplexing are listed in&amp;nbsp; 8.1.1.1 Muxing Options of reference manual&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="weidong_sun_0-1636610933314.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/161899i93E7BC980868CB89/image-size/medium?v=v2&amp;amp;px=400" role="button" title="weidong_sun_0-1636610933314.png" alt="weidong_sun_0-1636610933314.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;check it , please!&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;weidong&lt;/P&gt;</description>
      <pubDate>Thu, 11 Nov 2021 06:09:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Work-with-GPIO-i-MX-8M-Mini/m-p/1369675#M182896</guid>
      <dc:creator>weidong_sun</dc:creator>
      <dc:date>2021-11-11T06:09:47Z</dc:date>
    </item>
    <item>
      <title>Re: Work with GPIO i.MX 8M Mini</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Work-with-GPIO-i-MX-8M-Mini/m-p/1369712#M182899</link>
      <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/26366"&gt;@weidong_sun&lt;/a&gt;&amp;nbsp;Y&lt;SPAN&gt;ou can give a link to the manul? I could not find it anywhere.&lt;BR /&gt;&lt;SPAN class=""&gt;And I have one more question, how can I control the pins from the GPIO comb (EXP CN, ​​J1003)? I tried to do as described here:&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;&lt;A href="https://community.nxp.com/t5/i-MX-Processors/Configuration-of-GPIO-of-expansion-connector-of-IMX8mm/m-p/924219" target="_blank" rel="noopener"&gt;https://community.nxp.com/t5/i-MX-Processors/Configuration-of-GPIO-of-expansion-connector-of-IMX8mm/m-p/924219&lt;/A&gt;&lt;BR /&gt;But I get this:&lt;BR /&gt;root @ imx8mmevk: / # echo 505&amp;gt; / sys / class / gpio / export&lt;BR /&gt;[13964.387316] export_store: invalid GPIO 505&lt;BR /&gt;-sh: echo: write error: Invalid argument&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Nov 2021 07:04:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Work-with-GPIO-i-MX-8M-Mini/m-p/1369712#M182899</guid>
      <dc:creator>SYakubson</dc:creator>
      <dc:date>2021-11-11T07:04:33Z</dc:date>
    </item>
    <item>
      <title>Re: Work with GPIO i.MX 8M Mini</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Work-with-GPIO-i-MX-8M-Mini/m-p/1371005#M183012</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/192428"&gt;@SYakubson&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Download the reference manual on the web link, please!&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.nxp.com/products/processors-and-microcontrollers/arm-processors/i-mx-applications-processors/i-mx-8-processors/i-mx-8m-mini-arm-cortex-a53-cortex-m4-audio-voice-video:i.MX8MMINI?tab=Documentation_Tab" target="_blank"&gt;https://www.nxp.com/products/processors-and-microcontrollers/arm-processors/i-mx-applications-processors/i-mx-8-processors/i-mx-8m-mini-arm-cortex-a53-cortex-m4-audio-voice-video:i.MX8MMINI?tab=Documentation_Tab&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;An example for you:&lt;/P&gt;
&lt;P&gt;if you are using GPIO5_IO08, it's number in linux : (5-1)x32 + 8 = 136&lt;/P&gt;
&lt;P&gt;you can get all GPIO list from reference manual.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope above is helpful to you.&lt;/P&gt;
&lt;P&gt;Have a good day!&lt;/P&gt;
&lt;P&gt;regards,&lt;/P&gt;
&lt;P&gt;weidong&lt;/P&gt;</description>
      <pubDate>Mon, 15 Nov 2021 02:57:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Work-with-GPIO-i-MX-8M-Mini/m-p/1371005#M183012</guid>
      <dc:creator>weidong_sun</dc:creator>
      <dc:date>2021-11-15T02:57:32Z</dc:date>
    </item>
    <item>
      <title>Re: Work with GPIO i.MX 8M Mini</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Work-with-GPIO-i-MX-8M-Mini/m-p/1371027#M183013</link>
      <description>&lt;P&gt;&lt;SPAN class=""&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/26366"&gt;@weidong_sun&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Ok, but what GPIO number will EXP_IO13 (and other EXP_IOs) have?&lt;/SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Screenshot from 2021-11-15 10-25-46.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/162113i28B519A9BBC0F9E4/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot from 2021-11-15 10-25-46.png" alt="Screenshot from 2021-11-15 10-25-46.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Nov 2021 03:32:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Work-with-GPIO-i-MX-8M-Mini/m-p/1371027#M183013</guid>
      <dc:creator>SYakubson</dc:creator>
      <dc:date>2021-11-15T03:32:05Z</dc:date>
    </item>
    <item>
      <title>Re: Work with GPIO i.MX 8M Mini</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Work-with-GPIO-i-MX-8M-Mini/m-p/1371670#M183064</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/192428"&gt;@SYakubson&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the driver of I2C IO expander is gpio-pca953x.c&lt;/P&gt;
&lt;P&gt;open the file, you can find 'chip-&amp;gt;gpio_start' in probe function, add prink() to print it's value, you will know the first GPIO number.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;weidong&lt;/P&gt;</description>
      <pubDate>Tue, 16 Nov 2021 05:45:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Work-with-GPIO-i-MX-8M-Mini/m-p/1371670#M183064</guid>
      <dc:creator>weidong_sun</dc:creator>
      <dc:date>2021-11-16T05:45:24Z</dc:date>
    </item>
    <item>
      <title>Re: Work with GPIO i.MX 8M Mini</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Work-with-GPIO-i-MX-8M-Mini/m-p/1372408#M183121</link>
      <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/26366"&gt;@weidong_sun&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Where i can find this file in Yocto build dir?&lt;BR /&gt;Or in builded Linux Files system?&lt;/P&gt;</description>
      <pubDate>Wed, 17 Nov 2021 05:19:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Work-with-GPIO-i-MX-8M-Mini/m-p/1372408#M183121</guid>
      <dc:creator>SYakubson</dc:creator>
      <dc:date>2021-11-17T05:19:26Z</dc:date>
    </item>
    <item>
      <title>Re: Work with GPIO i.MX 8M Mini</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Work-with-GPIO-i-MX-8M-Mini/m-p/1373131#M183188</link>
      <description>&lt;P&gt;It is linux knowledge, technically, not a question for i.mx processors community strictly.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You should read the linux document. and document tells you everything.&lt;/P&gt;
&lt;P&gt;linux/Documentation/driver-api/gpio/legacy.rst&lt;/P&gt;
&lt;P&gt;GPIO controllers have paths like /sys/class/gpio/gpiochip42/ (for the&lt;BR /&gt;controller implementing GPIOs starting at #42) and have the following&lt;BR /&gt;read-only attributes:&lt;/P&gt;
&lt;P&gt;/sys/class/gpio/gpiochipN/&lt;/P&gt;
&lt;P&gt;"base" ... same as N, the first GPIO managed by this chip&lt;/P&gt;
&lt;P&gt;"label" ... provided for diagnostics (not always unique)&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;"ngpio" ... how many GPIOs this manges (N to N + ngpio - 1)&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;for i in /sys/class/gpio/gpiochip* ; do echo $i ;echo label:$(cat $i/label);echo base: $(cat $i/base); echo ngpio $(cat $i/ngpio);done&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Untitledx.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/162495iC93A570E36404C30/image-size/large?v=v2&amp;amp;px=999" role="button" title="Untitledx.png" alt="Untitledx.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;confirmed by debugfs&lt;/P&gt;
&lt;P&gt;cat /sys/kernel/debug/gpio&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Untitledyyy.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/162493i80AB702A457BDFEF/image-size/large?v=v2&amp;amp;px=999" role="button" title="Untitledyyy.png" alt="Untitledyyy.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Nov 2021 03:59:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Work-with-GPIO-i-MX-8M-Mini/m-p/1373131#M183188</guid>
      <dc:creator>BiyongSUN</dc:creator>
      <dc:date>2021-11-18T03:59:20Z</dc:date>
    </item>
    <item>
      <title>Re: Work with GPIO i.MX 8M Mini</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Work-with-GPIO-i-MX-8M-Mini/m-p/1373144#M183189</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot from 2021-11-18 11-07-51.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/162496iBFF0A079C8B481E9/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot from 2021-11-18 11-07-51.png" alt="Screenshot from 2021-11-18 11-07-51.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I am assuming that the dts file you are showing needs to be added to the yocto build, right? Because I don't have gpiochip5.&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is it, right?&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="https://source.codeaurora.org/external/imx/linux-imx/tree/arch/arm64/boot/dts/freescale/imx8mm-evk.dtsi?h=lf-5.10.y" target="_blank" rel="noopener"&gt;https://source.codeaurora.org/external/imx/linux-imx/tree/arch/arm64/boot/dts/freescale/imx8mm-evk.dtsi?h=lf-5.10.y&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Nov 2021 04:26:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Work-with-GPIO-i-MX-8M-Mini/m-p/1373144#M183189</guid>
      <dc:creator>SYakubson</dc:creator>
      <dc:date>2021-11-18T04:26:06Z</dc:date>
    </item>
    <item>
      <title>Re: Work with GPIO i.MX 8M Mini</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Work-with-GPIO-i-MX-8M-Mini/m-p/1373188#M183192</link>
      <description>&lt;P&gt;You don't have because the i.MX8MM EVK hardware is rohm bd71847 pmic.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;but the BSP software is pca pmic. you change it to rohm pmic as previous.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;will see the gpio, I have shown you.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can see the current dts is using pca pmic not rohm pmic.&lt;/P&gt;
&lt;P&gt;hardware is rohm pimc, bsp is pca pmic, so it has an error.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and the&amp;nbsp;PCA6416APW is supplied by rohm,&amp;nbsp; bd71847 buck 6 and buck7.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;change is to rohm, you will see the&amp;nbsp;PCA6416APW.&lt;/P&gt;
&lt;P&gt;you can do backports the rohm pmic from&amp;nbsp;L5.4.24.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is very easy, just copy &amp;amp; paste.&lt;/P&gt;
&lt;P&gt;root@imx8mmevk:~# dmesg|grep pca&lt;BR /&gt;[ 2.112946] nxp-pca9450 0-0025: Read device id error&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&amp;amp;i2c1 {
	clock-frequency = &amp;lt;400000&amp;gt;;
	pinctrl-names = "default";
	pinctrl-0 = &amp;lt;&amp;amp;pinctrl_i2c1&amp;gt;;
	status = "okay";

	pmic_nxp: pca9450@25 {
		compatible = "nxp,pca9450a";
		reg = &amp;lt;0x25&amp;gt;;
		pinctrl-0 = &amp;lt;&amp;amp;pinctrl_pmic&amp;gt;;&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Nov 2021 06:28:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Work-with-GPIO-i-MX-8M-Mini/m-p/1373188#M183192</guid>
      <dc:creator>BiyongSUN</dc:creator>
      <dc:date>2021-11-18T06:28:08Z</dc:date>
    </item>
    <item>
      <title>Re: Work with GPIO i.MX 8M Mini</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Work-with-GPIO-i-MX-8M-Mini/m-p/1373319#M183206</link>
      <description>&lt;P&gt;Okay so I have to change the&amp;nbsp;&lt;SPAN&gt;PCA6416APW to&amp;nbsp;bd71847 in&amp;nbsp;&lt;/SPAN&gt;dts file in the yocto build directory?&lt;BR /&gt;&lt;BR /&gt;Or i can do this under build Linux image?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot from 2021-11-18 15-40-45.png" style="width: 943px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/162528iF2417AF29B097ED4/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot from 2021-11-18 15-40-45.png" alt="Screenshot from 2021-11-18 15-40-45.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Nov 2021 08:45:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Work-with-GPIO-i-MX-8M-Mini/m-p/1373319#M183206</guid>
      <dc:creator>SYakubson</dc:creator>
      <dc:date>2021-11-18T08:45:27Z</dc:date>
    </item>
    <item>
      <title>Re: Work with GPIO i.MX 8M Mini</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Work-with-GPIO-i-MX-8M-Mini/m-p/1373963#M183258</link>
      <description>&lt;P&gt;I already told you everything. If you cannot modify the device tree as backposts from&amp;nbsp;&lt;SPAN&gt;L5.4.24.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You can download L5.4.24 binary demo image to try.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Nov 2021 02:29:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Work-with-GPIO-i-MX-8M-Mini/m-p/1373963#M183258</guid>
      <dc:creator>BiyongSUN</dc:creator>
      <dc:date>2021-11-19T02:29:37Z</dc:date>
    </item>
  </channel>
</rss>

