<?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のトピックHow to export arbitrary GPIOs in i.MX8</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/How-to-export-arbitrary-GPIOs-in-i-MX8/m-p/1864965#M223681</link>
    <description>&lt;P&gt;Dear Support,&lt;/P&gt;&lt;P&gt;I'm using i.MX8QXP-CPU (MEK + BB).&lt;BR /&gt;I want to use the PIN below as pps input.&lt;BR /&gt;============================================&lt;BR /&gt;./work-shared/imx8qxpc0mek/kernel-source/include/dt-bindings/pinctrl/pads-imx8qxp.h&lt;BR /&gt;#define SC_P_CSI_RESET 149 /* CI_PI.RESET, CI_PI.I2C.SDA, ADMA.I2C3.SDA, ADMA.SPI1.CS0, LSIO.GPIO3.IO03 */&lt;BR /&gt;============================================&lt;/P&gt;&lt;P&gt;I disabled the SC_P_CSI_RESET because it is assigned to some other PIN.&lt;BR /&gt;The modified file is as attached.&lt;/P&gt;&lt;P&gt;Also, In order to export GPIO, I executed the following command with GPIO=67, but an error occurs.&lt;BR /&gt;&lt;BR /&gt;Is the GPIO corresponding to the above PIN correct at 67?&lt;BR /&gt;If GPIO=67 is fine, could you tell me why the error occurs (and how to deal with it)?&lt;BR /&gt;============================================&lt;BR /&gt;root@imx8qxpc0mek:/proc/device-tree/pps# echo 67 &amp;gt; /sys/class/gpio/export&lt;BR /&gt;[ 448.259672] export_store: invalid GPIO 67&lt;BR /&gt;-sh: echo: write error: Invalid argument&lt;BR /&gt;============================================&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Hayato Numata&lt;/P&gt;</description>
    <pubDate>Tue, 14 May 2024 05:47:15 GMT</pubDate>
    <dc:creator>Hayato</dc:creator>
    <dc:date>2024-05-14T05:47:15Z</dc:date>
    <item>
      <title>How to export arbitrary GPIOs in i.MX8</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-export-arbitrary-GPIOs-in-i-MX8/m-p/1864965#M223681</link>
      <description>&lt;P&gt;Dear Support,&lt;/P&gt;&lt;P&gt;I'm using i.MX8QXP-CPU (MEK + BB).&lt;BR /&gt;I want to use the PIN below as pps input.&lt;BR /&gt;============================================&lt;BR /&gt;./work-shared/imx8qxpc0mek/kernel-source/include/dt-bindings/pinctrl/pads-imx8qxp.h&lt;BR /&gt;#define SC_P_CSI_RESET 149 /* CI_PI.RESET, CI_PI.I2C.SDA, ADMA.I2C3.SDA, ADMA.SPI1.CS0, LSIO.GPIO3.IO03 */&lt;BR /&gt;============================================&lt;/P&gt;&lt;P&gt;I disabled the SC_P_CSI_RESET because it is assigned to some other PIN.&lt;BR /&gt;The modified file is as attached.&lt;/P&gt;&lt;P&gt;Also, In order to export GPIO, I executed the following command with GPIO=67, but an error occurs.&lt;BR /&gt;&lt;BR /&gt;Is the GPIO corresponding to the above PIN correct at 67?&lt;BR /&gt;If GPIO=67 is fine, could you tell me why the error occurs (and how to deal with it)?&lt;BR /&gt;============================================&lt;BR /&gt;root@imx8qxpc0mek:/proc/device-tree/pps# echo 67 &amp;gt; /sys/class/gpio/export&lt;BR /&gt;[ 448.259672] export_store: invalid GPIO 67&lt;BR /&gt;-sh: echo: write error: Invalid argument&lt;BR /&gt;============================================&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;Hayato Numata&lt;/P&gt;</description>
      <pubDate>Tue, 14 May 2024 05:47:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-export-arbitrary-GPIOs-in-i-MX8/m-p/1864965#M223681</guid>
      <dc:creator>Hayato</dc:creator>
      <dc:date>2024-05-14T05:47:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to export arbitrary GPIOs in i.MX8</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-export-arbitrary-GPIOs-in-i-MX8/m-p/1865861#M223730</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please type the following command first. Check the pin mapping in the system.&lt;/P&gt;
&lt;PRE class="lia-code-sample  language-markup"&gt;&lt;CODE&gt;cat /sys/kernel/debug/gpio&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;FYI. Please read this. I have explain how to find out the gpio number.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/i-MX93EVK-Add-GPIO-control-in-gui-guider-example/ta-p/1761746" target="_blank"&gt;https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/i-MX93EVK-Add-GPIO-control-in-gui-guider-example/ta-p/1761746&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this can help you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Jimmy&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2024 03:20:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-export-arbitrary-GPIOs-in-i-MX8/m-p/1865861#M223730</guid>
      <dc:creator>jimmychan</dc:creator>
      <dc:date>2024-05-15T03:20:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to export arbitrary GPIOs in i.MX8</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-export-arbitrary-GPIOs-in-i-MX8/m-p/1875239#M224188</link>
      <description>&lt;P&gt;Dear Support,&lt;/P&gt;&lt;P&gt;Sorry for late reply.&lt;/P&gt;&lt;P&gt;Thank you for your support.&lt;BR /&gt;I executed the following command.&lt;BR /&gt;&amp;gt; cat /sys/kernel/debug/gpio&lt;/P&gt;&lt;P&gt;What do you know from the results?&lt;BR /&gt;I kindly ask for your confirmation.&lt;/P&gt;&lt;P&gt;----------&lt;BR /&gt;[Result]&lt;BR /&gt;root@imx8qxpc0mek:~# cat /sys/kernel/debug/gpio&lt;BR /&gt;gpiochip11: GPIOs 192-199, parent: i2c/15-001d, pca9557, can sleep:&lt;BR /&gt;gpio-194 ( |usb_otg1_vbus ) out lo&lt;BR /&gt;gpio-199 ( |reset ) out hi&lt;/P&gt;&lt;P&gt;gpiochip10: GPIOs 200-207, parent: i2c/15-001a, pca9557, can sleep:&lt;BR /&gt;gpio-200 ( |epdev_on ) out hi&lt;BR /&gt;gpio-201 ( |? ) out hi&lt;BR /&gt;gpio-206 ( |reset ) out hi&lt;BR /&gt;gpio-207 ( |reset ) out hi&lt;/P&gt;&lt;P&gt;gpiochip9: GPIOs 208-223, parent: i2c/5-0020, tca6416, can sleep:&lt;/P&gt;&lt;P&gt;gpiochip8: GPIOs 224-255, parent: platform/58222000.gpio, 58222000.gpio:&lt;/P&gt;&lt;P&gt;gpiochip7: GPIOs 256-287, parent: platform/5d0f0000.gpio, 5d0f0000.gpio:&lt;/P&gt;&lt;P&gt;gpiochip6: GPIOs 288-319, parent: platform/5d0e0000.gpio, 5d0e0000.gpio:&lt;/P&gt;&lt;P&gt;gpiochip5: GPIOs 320-351, parent: platform/5d0d0000.gpio, 5d0d0000.gpio:&lt;BR /&gt;gpio-329 ( |ss-sel ) out lo&lt;/P&gt;&lt;P&gt;gpiochip4: GPIOs 352-383, parent: platform/5d0c0000.gpio, 5d0c0000.gpio:&lt;BR /&gt;gpio-371 ( |SD1_SPWR ) out hi&lt;BR /&gt;gpio-373 ( |wp ) in lo&lt;BR /&gt;gpio-374 ( |cd ) in lo IRQ&lt;/P&gt;&lt;P&gt;gpiochip3: GPIOs 384-415, parent: platform/5d0b0000.gpio, 5d0b0000.gpio:&lt;/P&gt;&lt;P&gt;gpiochip2: GPIOs 416-447, parent: platform/5d0a0000.gpio, 5d0a0000.gpio:&lt;/P&gt;&lt;P&gt;gpiochip1: GPIOs 448-479, parent: platform/5d090000.gpio, 5d090000.gpio:&lt;BR /&gt;gpio-448 ( |headphone detect ) in lo IRQ&lt;/P&gt;&lt;P&gt;gpiochip0: GPIOs 480-511, parent: platform/5d080000.gpio, 5d080000.gpio:&lt;BR /&gt;root@imx8qxpc0mek:~#&lt;/P&gt;</description>
      <pubDate>Mon, 27 May 2024 06:28:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-export-arbitrary-GPIOs-in-i-MX8/m-p/1875239#M224188</guid>
      <dc:creator>Hayato</dc:creator>
      <dc:date>2024-05-27T06:28:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to export arbitrary GPIOs in i.MX8</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/How-to-export-arbitrary-GPIOs-in-i-MX8/m-p/1875644#M224211</link>
      <description>&lt;P&gt;As your pin is LSIO.GPIO3.IO03, the address of lsio_gpio3 is 0x5d0b0000. ( &lt;A href="https://github.com/nxp-imx/linux-imx/blob/imx_5.4.70_2.3.0/arch/arm64/boot/dts/freescale/imx8-ss-lsio.dtsi" target="_blank"&gt;https://github.com/nxp-imx/linux-imx/blob/imx_5.4.70_2.3.0/arch/arm64/boot/dts/freescale/imx8-ss-lsio.dtsi&lt;/A&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, base on your result, the gpio is in the range "gpiochip3: GPIOs 384-415". The number is 384+3 = 387.&lt;/P&gt;</description>
      <pubDate>Mon, 27 May 2024 14:20:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/How-to-export-arbitrary-GPIOs-in-i-MX8/m-p/1875644#M224211</guid>
      <dc:creator>jimmychan</dc:creator>
      <dc:date>2024-05-27T14:20:35Z</dc:date>
    </item>
  </channel>
</rss>

