<?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>Processor Expert SoftwareのトピックHow to configure the LED in dts file using gpio for imx8mp</title>
    <link>https://community.nxp.com/t5/Processor-Expert-Software/How-to-configure-the-LED-in-dts-file-using-gpio-for-imx8mp/m-p/1669116#M5622</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am using imx8mp processor&lt;/P&gt;&lt;P&gt;Two leds connected to uart4 (Rx and Tx) respectively on gpio5. They are configure in dts file.&lt;/P&gt;&lt;P&gt;After building and uploaded image the led-1 and led-2 are not found in&amp;nbsp;/sys/class/leds folder&lt;/P&gt;&lt;P&gt;It is necessary Leds&amp;nbsp; should visible in&amp;nbsp;sys/class/leds directory&lt;/P&gt;&lt;P&gt;Led is not working if i put the gpio pin value 0.&lt;/P&gt;&lt;P&gt;Following are the source code for your reference.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;leds {&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;compatible = "gpio-leds";&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; pinctrl-names = "default";&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; pinctrl-0 = &amp;lt;&amp;amp;pinctrl_led_gpio&amp;gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;led-0 {&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;gpios = &amp;lt;&amp;amp;gpio5 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;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You are requested to provide some solution on above problem&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Manoj Makhe&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 14 Jun 2023 08:51:05 GMT</pubDate>
    <dc:creator>mbm</dc:creator>
    <dc:date>2023-06-14T08:51:05Z</dc:date>
    <item>
      <title>How to configure the LED in dts file using gpio for imx8mp</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/How-to-configure-the-LED-in-dts-file-using-gpio-for-imx8mp/m-p/1669116#M5622</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am using imx8mp processor&lt;/P&gt;&lt;P&gt;Two leds connected to uart4 (Rx and Tx) respectively on gpio5. They are configure in dts file.&lt;/P&gt;&lt;P&gt;After building and uploaded image the led-1 and led-2 are not found in&amp;nbsp;/sys/class/leds folder&lt;/P&gt;&lt;P&gt;It is necessary Leds&amp;nbsp; should visible in&amp;nbsp;sys/class/leds directory&lt;/P&gt;&lt;P&gt;Led is not working if i put the gpio pin value 0.&lt;/P&gt;&lt;P&gt;Following are the source code for your reference.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;leds {&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;compatible = "gpio-leds";&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; pinctrl-names = "default";&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; pinctrl-0 = &amp;lt;&amp;amp;pinctrl_led_gpio&amp;gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;led-0 {&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;gpios = &amp;lt;&amp;amp;gpio5 28 GPIO_ACTIVE_LOW&amp;gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;label = "Uart4 Rx-pin28";&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;default-state = "off";&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;};&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;led-1 {&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;gpios = &amp;lt;&amp;amp;gpio5 29 GPIO_ACTIVE_LOW&amp;gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;label = "Uart4 Tx-pin29";&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;default-state = "off";&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;};&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;pinctrl_led_gpio: ledkey {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;fsl,pins = &amp;lt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;MX8MP_IOMUXC_UART4_TXD__GPIO5_IO29 0x146&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;MX8MP_IOMUXC_UART4_RXD__GPIO5_IO28 0x146&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;};&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You are requested to provide some solution on above problem&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Manoj Makhe&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2023 08:51:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/How-to-configure-the-LED-in-dts-file-using-gpio-for-imx8mp/m-p/1669116#M5622</guid>
      <dc:creator>mbm</dc:creator>
      <dc:date>2023-06-14T08:51:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure the LED in dts file using gpio for imx8mp</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/How-to-configure-the-LED-in-dts-file-using-gpio-for-imx8mp/m-p/1670416#M5629</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I hope you are doing well.&lt;/P&gt;
&lt;P&gt;I suggest you use the EVK Device Tree as reference, please check it on the next &lt;A href="https://github.com/nxp-imx/linux-imx/blob/lf-6.1.y/arch/arm64/boot/dts/freescale/imx8mp-evk.dts" target="_self"&gt;link&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;Having your GPIOs/LEDs set in pinctrl_gpio_led and no other module using pinctrl_gpio_led, it should be accessed from UserSpace.&lt;/P&gt;
&lt;P&gt;Best regards.&lt;/P&gt;
&lt;P&gt;Jorge.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jun 2023 14:52:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/How-to-configure-the-LED-in-dts-file-using-gpio-for-imx8mp/m-p/1670416#M5629</guid>
      <dc:creator>JorgeCas</dc:creator>
      <dc:date>2023-06-15T14:52:52Z</dc:date>
    </item>
  </channel>
</rss>

