<?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のトピックADC value read from user space</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/ADC-value-read-from-user-space/m-p/1045205#M153941</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to read the ADC value for the below pin ADC1_IN0 that we can read from the user space. my expetion is to get interface like sysfs gpio so i can export and use it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since this pin marked as Input so anyone suggest me how to read the value for this pin from userspace.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/109154i7F9391647BC271CB/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;running linux (yocto zeus) on the imx board. One can access the datasheet from below link&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.nxp.com/docs/en/data-sheet/IMX6SXAEC.pdf" title="https://www.nxp.com/docs/en/data-sheet/IMX6SXAEC.pdf"&gt;https://www.nxp.com/docs/en/data-sheet/IMX6SXAEC.pdf&lt;/A&gt;&amp;nbsp; (Page 137 Table 113).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Jul 2020 13:20:20 GMT</pubDate>
    <dc:creator>nikhil_sahu2</dc:creator>
    <dc:date>2020-07-30T13:20:20Z</dc:date>
    <item>
      <title>ADC value read from user space</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/ADC-value-read-from-user-space/m-p/1045205#M153941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to read the ADC value for the below pin ADC1_IN0 that we can read from the user space. my expetion is to get interface like sysfs gpio so i can export and use it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since this pin marked as Input so anyone suggest me how to read the value for this pin from userspace.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/109154i7F9391647BC271CB/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;running linux (yocto zeus) on the imx board. One can access the datasheet from below link&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.nxp.com/docs/en/data-sheet/IMX6SXAEC.pdf" title="https://www.nxp.com/docs/en/data-sheet/IMX6SXAEC.pdf"&gt;https://www.nxp.com/docs/en/data-sheet/IMX6SXAEC.pdf&lt;/A&gt;&amp;nbsp; (Page 137 Table 113).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jul 2020 13:20:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/ADC-value-read-from-user-space/m-p/1045205#M153941</guid>
      <dc:creator>nikhil_sahu2</dc:creator>
      <dc:date>2020-07-30T13:20:20Z</dc:date>
    </item>
    <item>
      <title>Re: ADC value read from user space</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/ADC-value-read-from-user-space/m-p/1045206#M153942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nikhil&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;unfortunately for i.MX6SX there is no linux adc support in nxp bsps and one can use FreeRTOS:&lt;/P&gt;&lt;UL style="box-sizing: border-box; margin-top: 0.5em; margin-bottom: 0px; padding: 0px; list-style-type: none; color: #64798a; font-family: Arial, sans-serif; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: #f6f7f8; text-decoration-style: initial; text-decoration-color: initial;"&gt;&lt;LI style="box-sizing: border-box; margin-bottom: 0.5em; position: relative; padding: 5px 5px 5px 25px;"&gt;&lt;A class="" href="https://www.nxp.com/webapp/Download?colCode=FreeRTOS_MX6SX_1.0.1_WIN&amp;amp;appType=license&amp;amp;location=null" style="box-sizing: border-box; background-color: transparent; color: #215bd6; text-decoration: underline; cursor: pointer; outline: 0px;"&gt;Windows Installer: i.MX 6SoloX FreeRTOS BSP 1.0.1 for Cortex-M4&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Alternatively one can try to reuse i.MX7D linux adc driver, it is described in&lt;/P&gt;&lt;P&gt;sect.4.1.3 ADC Driver Overview &lt;A href="https://www.nxp.com/docs/en/reference-manual/IMX_REFERENCE_MANUAL.pdf" style="box-sizing: border-box; background-color: transparent; color: #215bd6; text-decoration: none; cursor: pointer;"&gt;i.MX Linux Reference Manual&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Best regards&lt;BR /&gt;igor&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jul 2020 01:20:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/ADC-value-read-from-user-space/m-p/1045206#M153942</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2020-07-31T01:20:37Z</dc:date>
    </item>
    <item>
      <title>Re: ADC value read from user space</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/ADC-value-read-from-user-space/m-p/1045207#M153943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/Igor1z"&gt;Igor1z&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply. we are thinking to use three other gpio pins to meet our requirement. they are&lt;/P&gt;&lt;P&gt;NAND_DATA04 &lt;STRONG&gt;W7&lt;/STRONG&gt; NVCC_NAND GPIO ALT5 GPIO4_IO08 Input Keeper&lt;/P&gt;&lt;P&gt;QSPI1B_SS1_B &lt;STRONG&gt;F15&lt;/STRONG&gt; NVCC_QSPI GPIO ALT5 GPIO4_IO31 Input Keeper&lt;/P&gt;&lt;P&gt;SD2_DATA1 &lt;STRONG&gt;E14&lt;/STRONG&gt; NVCC_SD2 GPIO ALT5 GPIO6_IO09 Input Keeper&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please confirm in above three which one we can choose to read the gpio value for /sys/gpio/export functionality.&lt;/P&gt;&lt;P&gt;Also i would like to know how to calculate the GPIO no for above pins so i can control them using sysfs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Nikhil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Aug 2020 05:34:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/ADC-value-read-from-user-space/m-p/1045207#M153943</guid>
      <dc:creator>nikhil_sahu2</dc:creator>
      <dc:date>2020-08-06T05:34:49Z</dc:date>
    </item>
    <item>
      <title>Re: ADC value read from user space</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/ADC-value-read-from-user-space/m-p/1045208#M153944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Nikhil&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yes these pins can be used&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;to read the gpio value for /sys/gpio/export functionality,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;examples can be found on:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.kosagi.com/w/index.php?title=Definitive_GPIO_guide" title="https://www.kosagi.com/w/index.php?title=Definitive_GPIO_guide"&gt;Definitive GPIO guide - Studio Kousagi Wiki&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/381277"&gt;https://community.nxp.com/thread/381277&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Aug 2020 06:07:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/ADC-value-read-from-user-space/m-p/1045208#M153944</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2020-08-06T06:07:09Z</dc:date>
    </item>
  </channel>
</rss>

