<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Designate ADC pins through devicetree (Zephyr OS)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/64957/designate-adc-pins-through-devicetree-zephyr-os</link><description>Is there a way to specify which AIN should be used through the devicetree API? For example, here is a code snippet: 
 
 How would I use the devicetree API to replace the NRF_SAADC_INPUT_AIN6 in that assignment with something from the devicetree? I know</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 21 Aug 2020 12:12:25 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/64957/designate-adc-pins-through-devicetree-zephyr-os" /><item><title>RE: Designate ADC pins through devicetree (Zephyr OS)</title><link>https://devzone.nordicsemi.com/thread/265765?ContentTypeID=1</link><pubDate>Fri, 21 Aug 2020 12:12:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6a327cdd-e422-405f-8c3c-3e8e7dc41234</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;I&amp;#39;m not sure if it is possible, so I have informed the R&amp;amp;D department about your request. It is possible that this is a feature that could be implemented in the future.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Designate ADC pins through devicetree (Zephyr OS)</title><link>https://devzone.nordicsemi.com/thread/265616?ContentTypeID=1</link><pubDate>Thu, 20 Aug 2020 17:19:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5beecdf5-142a-4c8d-a1cf-d913f683ff97</guid><dc:creator>Chris Burns</dc:creator><description>&lt;p&gt;Is there a way through the DTS file to assign an analog pin to a name? This would be useful for projects which use similar measurement circuitry but are based on different parts (e.g. one project uses 9160 and another uses 5340 but both have a battery voltage measurement circuit). Then the C code which takes the measurement would be more portable.&lt;/p&gt;
&lt;p&gt;Is there a way to use custom fields which could be assigned in the DTS file for this purpose?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Designate ADC pins through devicetree (Zephyr OS)</title><link>https://devzone.nordicsemi.com/thread/265595?ContentTypeID=1</link><pubDate>Thu, 20 Aug 2020 14:34:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:02a362e7-5038-4486-8229-ec76143619d8</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;the routing of analogue pins can&amp;#39;t be changed, unlike GPIO pins. So you will need to use the AIN6 pin for the ADC input it seems.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>