<?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 read zephyr.dts file?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/60120/how-to-read-zephyr-dts-file</link><description>Hi Everyone I am trying to get a hold of the nrf9160 SDK which is based on zephyr. Here is what i would like to know 1. There is a file named zephyr.dts which has all the hardware related configuration. But , in some of the peripherals defined inside</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 16 Apr 2020 12:52:12 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/60120/how-to-read-zephyr-dts-file" /><item><title>RE: How to read zephyr.dts file?</title><link>https://devzone.nordicsemi.com/thread/244999?ContentTypeID=1</link><pubDate>Thu, 16 Apr 2020 12:52:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:917cb559-5ebe-449c-af66-04c7d3ceabcd</guid><dc:creator>Heidi</dc:creator><description>&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;1. To change the pins from the default configuration, you can add an .overlay file in the application you are running.&amp;nbsp;Take a look at this&amp;nbsp;&lt;a href="https://github.com/Rallare/fw-nrfconnect-nrf/tree/nrf9160_samples/samples/nrf9160/spi"&gt;SPI sample&lt;/a&gt;, for instance, and more specifically the &lt;a href="https://github.com/Rallare/fw-nrfconnect-nrf/blob/nrf9160_samples/samples/nrf9160/spi/nrf9160_pca10090ns.overlay#L1"&gt;.overlay file&lt;/a&gt;. This is a way to&amp;nbsp;change the pins for SPI.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Or take a look at the _common.dts file for the Thingy:91 board &lt;a href="https://github.com/NordicPlayground/fw-nrfconnect-nrf/blob/master/boards/arm/nrf9160_pca20035/nrf9160_pca20035_common.dts#L108"&gt;here&lt;/a&gt;. Here the I2C pins are specified for the board. Now, if you wanted to change this for an application, the way to do it is to add an .overlay to change those pins, like what is done in the SPI sample.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;2. Yes, you can use the drivers found in &lt;a href="https://github.com/NordicPlayground/fw-nrfconnect-zephyr/tree/master/include/drivers"&gt;ncs/zephyr/include/drivers/&lt;/a&gt;&amp;nbsp;which is a part of our nRF Connect SDK.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Heidi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>