<?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>How to access gpio-line-names specified in overlay.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/95156/how-to-access-gpio-line-names-specified-in-overlay</link><description>Hi all. 
 
 I&amp;#39;m trying to learn a bit more about the device overlays, 
 I&amp;#39;d like to know how I would access the &amp;quot;gpio-line-names&amp;quot; that I&amp;#39;ve specified in my overlay in my application. 
 ie when I set or read the I/O point it would be nice to retrieve the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 24 Dec 2022 10:04:21 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/95156/how-to-access-gpio-line-names-specified-in-overlay" /><item><title>RE: How to access gpio-line-names specified in overlay.</title><link>https://devzone.nordicsemi.com/thread/402127?ContentTypeID=1</link><pubDate>Sat, 24 Dec 2022 10:04:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:07a5e74b-e7dc-4818-8fe9-28b7212664b1</guid><dc:creator>Marshall</dc:creator><description>&lt;div&gt;
&lt;div&gt;&lt;span&gt;You do it like this.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;pre class="ui-code" data-mode="c_cpp"&gt;#define BASE_EXPANDER DT_NODELABEL(pca95xx_feather0)
#if DT_NODE_HAS_STATUS(BASE_EXPANDER,okay)
	const struct device *const gpio_expander = DEVICE_DT_GET(BASE_EXPANDER);
	const char *useful_gpio_names[] = DT_PROP(BASE_EXPANDER,gpio_line_names);

#else 
	#error &amp;quot;pca95xx_feather0 device is disabled.&amp;quot;	
#endif&lt;/pre&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>