<?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のトピックRe: GPIO_TESTING</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/GPIO-TESTING/m-p/1977488#M229882</link>
    <description>Can you please show me how to modify the device tree&lt;BR /&gt;in the image instead of PWM1_OUT change to GPIO8_IO08&lt;BR /&gt;what about 0x110b0 ? Can i directly make changes in the dts file?&lt;BR /&gt;Could you please help with this?</description>
    <pubDate>Sat, 19 Oct 2024 07:04:40 GMT</pubDate>
    <dc:creator>JesnaK</dc:creator>
    <dc:date>2024-10-19T07:04:40Z</dc:date>
    <item>
      <title>GPIO_TESTING</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/GPIO-TESTING/m-p/1977050#M229853</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am using i.mx6ull evk, in that i am trying to test the gpios. I just flashed the board with Linux v6.6.23_2.0.0_images_IMX6UL7D. And I boot the board with microSD after that t I tried testing GPIO1_IO08. As it is gpio1 I tried with following commands:&lt;/P&gt;&lt;P&gt;echo 8 &amp;gt; /sys/class/gpio/export&lt;/P&gt;&lt;P&gt;echo out &amp;gt; /sys/class/gpio/gpio8/direction&lt;/P&gt;&lt;P&gt;echo 1 &amp;gt; /sys/class/gpio/gpio8/value&amp;nbsp;&amp;nbsp; echo 0 &amp;gt; /sys/class/gpio/gpio8/value&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Then with multimeter I checked but it was showing value more than always. also, this pin was shown as output when I gave gpioinfo command.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;Could you please tell me if there is anything wrong with my procedure and correct me?&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 18 Oct 2024 11:14:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/GPIO-TESTING/m-p/1977050#M229853</guid>
      <dc:creator>JesnaK</dc:creator>
      <dc:date>2024-10-18T11:14:06Z</dc:date>
    </item>
    <item>
      <title>Re: GPIO_TESTING</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/GPIO-TESTING/m-p/1977278#M229867</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/240726"&gt;@JesnaK&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are using the &lt;A href="https://github.com/nxp-imx/linux-imx/blob/lf-6.6.y/arch/arm/boot/dts/nxp/imx/imx6ull-9x9-evk.dts#L510" target="_self"&gt;default device tree&lt;/A&gt;, you can see the GPIO1_IO08 is being used by PWM:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Alejandro_Salas_0-1729266529537.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/305585i9CD380EE1A7CD3BC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Alejandro_Salas_0-1729266529537.png" alt="Alejandro_Salas_0-1729266529537.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;You need to modify the device tree to use the &lt;A href="https://github.com/nxp-imx/linux-imx/blob/lf-6.6.y/arch/arm/boot/dts/nxp/imx/imx6ul-pinfunc.h#L151" target="_self"&gt;PAD as GPIO&lt;/A&gt;.&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>Fri, 18 Oct 2024 15:50:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/GPIO-TESTING/m-p/1977278#M229867</guid>
      <dc:creator>Manuel_Salas</dc:creator>
      <dc:date>2024-10-18T15:50:53Z</dc:date>
    </item>
    <item>
      <title>Re: GPIO_TESTING</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/GPIO-TESTING/m-p/1977487#M229881</link>
      <description>&lt;P&gt;Hello Salas,&lt;/P&gt;&lt;P&gt;Thank you for your guidance! But the dts file you shown is for&amp;nbsp;&lt;SPAN&gt;imx6ull-9x9-evk.dts but my board is&amp;nbsp;Freescale i.MX6 ULL 14x14 EVK Board.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So can you please help with this board, why I am not able to test gpio as mentioned before.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 19 Oct 2024 06:21:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/GPIO-TESTING/m-p/1977487#M229881</guid>
      <dc:creator>JesnaK</dc:creator>
      <dc:date>2024-10-19T06:21:39Z</dc:date>
    </item>
    <item>
      <title>Re: GPIO_TESTING</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/GPIO-TESTING/m-p/1977488#M229882</link>
      <description>Can you please show me how to modify the device tree&lt;BR /&gt;in the image instead of PWM1_OUT change to GPIO8_IO08&lt;BR /&gt;what about 0x110b0 ? Can i directly make changes in the dts file?&lt;BR /&gt;Could you please help with this?</description>
      <pubDate>Sat, 19 Oct 2024 07:04:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/GPIO-TESTING/m-p/1977488#M229882</guid>
      <dc:creator>JesnaK</dc:creator>
      <dc:date>2024-10-19T07:04:40Z</dc:date>
    </item>
    <item>
      <title>Re: GPIO_TESTING</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/GPIO-TESTING/m-p/1978436#M229933</link>
      <description>&lt;P&gt;The i.MX6ULL 9x9 and 14x14 share the same pinfunc.&lt;/P&gt;
&lt;P&gt;You can see the same node of PWM1 on the &lt;A href="https://github.com/nxp-imx/linux-imx/blob/lf-6.6.y/arch/arm/boot/dts/nxp/imx/imx6ul-14x14-evk.dtsi#L601" target="_self"&gt;imx6-14x14-evk.dts&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can delete or just disable the PWM node:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;amp;pwm1 {
	#pwm-cells = &amp;lt;2&amp;gt;;
	pinctrl-names = "default";
	pinctrl-0 = &amp;lt;&amp;amp;pinctrl_pwm1&amp;gt;;
	status = "disabled";
};&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can add the gpio1 node to your device tree:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;amp;gpio1 {
	pinctrl-names = "default";
	pinctrl-0 = &amp;lt;&amp;amp;pinctrl_gpio1&amp;gt;;
	status = "okay";
};&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and add the pinctrl_gpio1 to the iomux:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;pinctrl_gpio1: gpio1grp {
		fsl,pins = &amp;lt;
			MX6UL_PAD_GPIO1_IO08__GPIO1_IO08   0x17059
		&amp;gt;;
	};&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then you should be able get your GPIO working.&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>Mon, 21 Oct 2024 17:19:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/GPIO-TESTING/m-p/1978436#M229933</guid>
      <dc:creator>Manuel_Salas</dc:creator>
      <dc:date>2024-10-21T17:19:15Z</dc:date>
    </item>
  </channel>
</rss>

