<?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>nrf53 device tree uart</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/79316/nrf53-device-tree-uart</link><description>Hello, 
 For my board i would like to remap uart to pin on GPIO PORT 1. 
 
 Current: 
 &amp;amp;uart0 { status = &amp;quot;okay&amp;quot;; current-speed = &amp;lt;115200&amp;gt;; tx-pin = &amp;lt;20&amp;gt;; rx-pin = &amp;lt;22&amp;gt;; rts-pin = &amp;lt;19&amp;gt;; cts-pin = &amp;lt;21&amp;gt;; }; 
 
 Requirement: 
 &amp;amp;uart1 { status = &amp;quot;okay&amp;quot;; current</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 01 Oct 2021 10:27:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/79316/nrf53-device-tree-uart" /><item><title>RE: nrf53 device tree uart</title><link>https://devzone.nordicsemi.com/thread/332103?ContentTypeID=1</link><pubDate>Fri, 01 Oct 2021 10:27:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9c283487-2e7b-4dad-9b1f-71c2597a4f13</guid><dc:creator>&amp;#216;ivind</dc:creator><description>&lt;p&gt;Hi again,&lt;/p&gt;
&lt;p&gt;That&amp;#39;s a bug I was unaware of, thanks for letting me know! Can you give me some more details, so I can reproduce it and report it internally?&lt;/p&gt;
&lt;p&gt;Setting an unused pin to 0xFFFFFFFF is proper and should not cause such issues.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf53 device tree uart</title><link>https://devzone.nordicsemi.com/thread/332092?ContentTypeID=1</link><pubDate>Fri, 01 Oct 2021 09:26:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d06843ed-8efa-4d56-8253-b8812d4b8766</guid><dc:creator>Corentin</dc:creator><description>&lt;p&gt;Do not configure rts and cts as suggested (set unused pins to 0xFFFFFFFF, not 0.). If not used just delete rts-pin and cts-pin. If you keep for instance rts-pin=0x0xFFFFFFFF you have a hard fault when PM_DEVICE is enabled because drivers don&amp;#39;t find gpio to this address. Delete rts-pin if not used form device trees solved the problem.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf53 device tree uart</title><link>https://devzone.nordicsemi.com/thread/328185?ContentTypeID=1</link><pubDate>Mon, 06 Sep 2021 12:11:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c1df50a2-c5d1-4a90-a558-e34c52d7a8b7</guid><dc:creator>Corentin</dc:creator><description>&lt;p&gt;Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf53 device tree uart</title><link>https://devzone.nordicsemi.com/thread/328161?ContentTypeID=1</link><pubDate>Mon, 06 Sep 2021 11:20:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ffd53b55-5aa3-4cc9-b757-d18a858477a1</guid><dc:creator>&amp;#216;ivind</dc:creator><description>&lt;p&gt;Correct. Also, set unused pins to 0xFFFFFFFF, not 0.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf53 device tree uart</title><link>https://devzone.nordicsemi.com/thread/328146?ContentTypeID=1</link><pubDate>Mon, 06 Sep 2021 10:23:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5dfa8fe2-9e82-4a9a-ba75-fbaaad0c3af2</guid><dc:creator>Corentin</dc:creator><description>&lt;p&gt;Found answer: need to used offset&lt;/p&gt;
&lt;p&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/reference/devicetree/bindings/i2c/nordic,nrf-twi.html?highlight=sda%20pin"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/reference/devicetree/bindings/i2c/nordic,nrf-twi.html?highlight=sda%20pin&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;pre&gt;The &lt;span class="highlighted"&gt;SDA&lt;/span&gt; &lt;span class="highlighted"&gt;pin&lt;/span&gt; to use.

For pins P0.0 through P0.31, use the pin number. For example,
to use P0.16 for SDA, set:

    sda-pin = &amp;lt;16&amp;gt;;

For pins P1.0 through P1.31, add 32 to the pin number. For
example, to use P1.2 for SDA, set:

    sda-pin = &amp;lt;34&amp;gt;;  /* 32 + 2 */&lt;/pre&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>