<?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: Read ADC values in imx6ul in Kernel space in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Read-ADC-values-in-imx6ul-in-Kernel-space/m-p/836160#M128366</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Igor,&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to resolve the above issue&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;CHandrasekhar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Aug 2018 05:03:29 GMT</pubDate>
    <dc:creator>chandraevolute</dc:creator>
    <dc:date>2018-08-09T05:03:29Z</dc:date>
    <item>
      <title>Read ADC values in imx6ul in Kernel space</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Read-ADC-values-in-imx6ul-in-Kernel-space/m-p/836153#M128359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a printer attached to imx6ul using SPI. It is a thermal printer so on printing the printer gets heated up so I have change the printing time according to the Head temperature. Now the problem is If I read from the sysfs interface from Application space it is taking too much time for printing and my printer head is getting damaged.&lt;/P&gt;&lt;P&gt;Is there any way to do in the kernel space itself. I have to read the ADC for each dotted line printing and take decision for heating time or else I should terminate the printing.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;CHandrasekhar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Jul 2018 09:12:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Read-ADC-values-in-imx6ul-in-Kernel-space/m-p/836153#M128359</guid>
      <dc:creator>chandraevolute</dc:creator>
      <dc:date>2018-07-21T09:12:29Z</dc:date>
    </item>
    <item>
      <title>Re: Read ADC values in imx6ul in Kernel space</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Read-ADC-values-in-imx6ul-in-Kernel-space/m-p/836154#M128360</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chandra&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one can look for answer on that linux generic question on&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://stackoverflow.com/questions/9662193/how-to-access-kernel-space-from-user-space" title="https://stackoverflow.com/questions/9662193/how-to-access-kernel-space-from-user-space"&gt;linux - How to access kernel space from user space? - Stack Overflow&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;or probably write own application using driver sources described in Chapter 53 ADC Driver&lt;/P&gt;&lt;P&gt;attached Linux Manual.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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>Sun, 22 Jul 2018 23:00:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Read-ADC-values-in-imx6ul-in-Kernel-space/m-p/836154#M128360</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2018-07-22T23:00:24Z</dc:date>
    </item>
    <item>
      <title>Re: Read ADC values in imx6ul in Kernel space</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Read-ADC-values-in-imx6ul-in-Kernel-space/m-p/836155#M128361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have just gone through the IIO subsystem in drivers, there I have found a source file inkern.c I understood that we can call the functions present in inkern.c file to read a ADC value. Is that correct ?? Below is the link for the same from stackoverflow&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://stackoverflow.com/questions/32948256/communication-between-different-subsystem-driversfor-ex-iio-and-charging-drive" title="https://stackoverflow.com/questions/32948256/communication-between-different-subsystem-driversfor-ex-iio-and-charging-drive"&gt;linux - Communication between different subsystem drivers(For ex: IIO and Charging driver) - Stack Overflow&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jul 2018 09:25:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Read-ADC-values-in-imx6ul-in-Kernel-space/m-p/836155#M128361</guid>
      <dc:creator>chandraevolute</dc:creator>
      <dc:date>2018-07-24T09:25:09Z</dc:date>
    </item>
    <item>
      <title>Re: Read ADC values in imx6ul in Kernel space</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Read-ADC-values-in-imx6ul-in-Kernel-space/m-p/836156#M128362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Igor,&lt;/P&gt;&lt;P&gt;Any example for dt-bindings for consumer adc for imx6ul??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2018 11:28:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Read-ADC-values-in-imx6ul-in-Kernel-space/m-p/836156#M128362</guid>
      <dc:creator>chandraevolute</dc:creator>
      <dc:date>2018-07-30T11:28:39Z</dc:date>
    </item>
    <item>
      <title>Re: Read ADC values in imx6ul in Kernel space</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Read-ADC-values-in-imx6ul-in-Kernel-space/m-p/836157#M128363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="link-titled" href="https://source.codeaurora.org/external/imx/linux-imx/tree/arch/arm/boot/dts/imx6ul-14x14-ddr3-arm2.dts?h=imx_4.1.15_2.0.0_ga" title="https://source.codeaurora.org/external/imx/linux-imx/tree/arch/arm/boot/dts/imx6ul-14x14-ddr3-arm2.dts?h=imx_4.1.15_2.0.0_ga"&gt;imx6ul-14x14-ddr3-arm2.dts\dts\boot\arm\arch - linux-imx - i.MX Linux kernel&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>Tue, 31 Jul 2018 00:43:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Read-ADC-values-in-imx6ul-in-Kernel-space/m-p/836157#M128363</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2018-07-31T00:43:20Z</dc:date>
    </item>
    <item>
      <title>Re: Read ADC values in imx6ul in Kernel space</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Read-ADC-values-in-imx6ul-in-Kernel-space/m-p/836158#M128364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Igor,&lt;/P&gt;&lt;P&gt;I am able to read ADC values from sysfs interface.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am going through the&amp;nbsp;imx-test-5.7 for /dev/mem interface accessing ADC. I found a strange issue . I enable vf610 adc driver and running memtool on ADC, what ever data I write to ADC registers when reading back I am able to read the updated values.&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I disable the vf610 adc driver from make menuconfig and build the kernel and update it and after running memtool on adc values are not updating. Below is the log.&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;root@imx6ulevk:/# ./a.out ADC1.CFG.MODE=1&lt;/P&gt;&lt;P&gt;write 0x00000001 to Bit 2..3 of 0x02198014&lt;/P&gt;&lt;P&gt;root@imx6ulevk:/# ./a.out ADC1.CFG.MODE 1&lt;/P&gt;&lt;P&gt;ADC1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Addr:0x2198000&lt;/P&gt;&lt;P&gt;&amp;nbsp; ADC1.CFG Addr:0x02198014 Value:0x00000200 - Selects the mode of operation, clock source, clock divide, configure for low power, long sample time, high speed configuration and selects the sample time duration.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ADC1.CFG.MODE(2..3)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; :0x0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Used to set the ADC resolution mode.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Can you tell me what is the wrong I am doing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Chandrasekhar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Aug 2018 14:10:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Read-ADC-values-in-imx6ul-in-Kernel-space/m-p/836158#M128364</guid>
      <dc:creator>chandraevolute</dc:creator>
      <dc:date>2018-08-08T14:10:27Z</dc:date>
    </item>
    <item>
      <title>Re: Read ADC values in imx6ul in Kernel space</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Read-ADC-values-in-imx6ul-in-Kernel-space/m-p/836159#M128365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chandrasekhar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reason may be that when vf610 adc driver is disabled, adc clocks are gated.&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>Wed, 08 Aug 2018 23:32:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Read-ADC-values-in-imx6ul-in-Kernel-space/m-p/836159#M128365</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2018-08-08T23:32:42Z</dc:date>
    </item>
    <item>
      <title>Re: Read ADC values in imx6ul in Kernel space</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Read-ADC-values-in-imx6ul-in-Kernel-space/m-p/836160#M128366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Igor,&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to resolve the above issue&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;CHandrasekhar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2018 05:03:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Read-ADC-values-in-imx6ul-in-Kernel-space/m-p/836160#M128366</guid>
      <dc:creator>chandraevolute</dc:creator>
      <dc:date>2018-08-09T05:03:29Z</dc:date>
    </item>
    <item>
      <title>Re: Read ADC values in imx6ul in Kernel space</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Read-ADC-values-in-imx6ul-in-Kernel-space/m-p/836161#M128367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV class=""&gt;&lt;P&gt;Hi Chandrasekhar&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;seems vf610 adc driver should be enabled.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2018 05:09:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Read-ADC-values-in-imx6ul-in-Kernel-space/m-p/836161#M128367</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2018-08-09T05:09:07Z</dc:date>
    </item>
    <item>
      <title>Re: Read ADC values in imx6ul in Kernel space</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Read-ADC-values-in-imx6ul-in-Kernel-space/m-p/836162#M128368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you igor for pointing about ADC clock gating. I have enabled&lt;STRONG&gt;&amp;nbsp;adc1 clock (adc1_clk_enable)&amp;nbsp;&lt;/STRONG&gt;in CCM register(CCM.CCGR1.CG8=1&lt;BR /&gt;)and able to get the ADC working using memtool.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2018 06:14:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Read-ADC-values-in-imx6ul-in-Kernel-space/m-p/836162#M128368</guid>
      <dc:creator>chandraevolute</dc:creator>
      <dc:date>2018-08-09T06:14:45Z</dc:date>
    </item>
    <item>
      <title>Re: Read ADC values in imx6ul in Kernel space</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Read-ADC-values-in-imx6ul-in-Kernel-space/m-p/836163#M128369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Chandra sekhar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;i am trying to interface thermal printer using spi .. getting full of confusions regarding driver code . can you please suggest me the procedure of how to interface thermal printer . here i am going with imx6solo sabresd board. your info more valuable for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;srikrishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Nov 2019 10:51:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Read-ADC-values-in-imx6ul-in-Kernel-space/m-p/836163#M128369</guid>
      <dc:creator>srikittu34</dc:creator>
      <dc:date>2019-11-14T10:51:52Z</dc:date>
    </item>
    <item>
      <title>Re: Read ADC values in imx6ul in Kernel space</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Read-ADC-values-in-imx6ul-in-Kernel-space/m-p/836164#M128370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It depends on Thermal printer you use. There will be a sequence to use, that you have to push the data to SPI and Enable Strobes and VH and rotate paper. I don't know what is your exact requirement.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Nov 2019 11:45:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Read-ADC-values-in-imx6ul-in-Kernel-space/m-p/836164#M128370</guid>
      <dc:creator>chandraevolute</dc:creator>
      <dc:date>2019-11-14T11:45:03Z</dc:date>
    </item>
  </channel>
</rss>

