<?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>Deleting properties for nodes in overlay dts file doesn&amp;#39;t work.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/93524/deleting-properties-for-nodes-in-overlay-dts-file-doesn-t-work</link><description>Hi All, 
 
 I have nrf9160dk Board and wanted to use p0.14 &amp;amp; 15 pins but they are occupied by uart1 as rts and cts pins. So I created an overlay file to not edit directly board dts files and defined a uart1 node with /delete-property/ property. But it</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 18 Jan 2023 10:14:51 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/93524/deleting-properties-for-nodes-in-overlay-dts-file-doesn-t-work" /><item><title>RE: Deleting properties for nodes in overlay dts file doesn't work.</title><link>https://devzone.nordicsemi.com/thread/405426?ContentTypeID=1</link><pubDate>Wed, 18 Jan 2023 10:14:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:794e9c22-bc80-41b7-954d-7ed3e0baa553</guid><dc:creator>Elfving</dc:creator><description>[quote user="zsn"]overlay files do not have an effect or are not over the board dts files. This is the issue that I&amp;#39;m trying to figure out why and how I can fix.[/quote]
&lt;p&gt;I see. I figured there might be several other things that might be confusing and add to this problem, but if the overlays aren&amp;#39;t even working for you&amp;nbsp;it might be easiest start off by focusing on that &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Are you seeing this using the build/zephyr/&lt;span&gt;zephyr.dts&lt;/span&gt;&amp;nbsp;file, or with the compiled device tree output shortcut in VSC?&amp;nbsp;And are the two showing you the same information?&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1674035793949v3.png" alt=" " /&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Are you even seeing this overlay that you posted earlier make a difference on your&amp;nbsp;zephyr.dts?&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;/ {
    chosen {
        zephyr,console = &amp;amp;uart0;
        zephyr,shell-uart = &amp;amp;uart0;
        zephyr,uart-mcumgr = &amp;amp;uart0;
    };
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;If none of that worked, try opening a new default peripheral_uart sample. It should come with a overlay file allready included. Could you see if that change has made any effect on the dts?&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Deleting properties for nodes in overlay dts file doesn't work.</title><link>https://devzone.nordicsemi.com/thread/405319?ContentTypeID=1</link><pubDate>Tue, 17 Jan 2023 15:53:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:20141e5d-ed34-4058-8af4-4a4f33487773</guid><dc:creator>zsn</dc:creator><description>[quote userid="103347" url="~/f/nordic-q-a/93524/deleting-properties-for-nodes-in-overlay-dts-file-doesn-t-work/405291"]&lt;p&gt;Hehe likewise, sorry about the delay.&lt;/p&gt;
&lt;div class="quote-header"&gt;&lt;/div&gt;&lt;blockquote class="quote"&gt;&lt;div class="quote-user"&gt;&lt;/div&gt;&lt;/blockquote&gt;[/quote]
&lt;p&gt;&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="103347" url="~/f/nordic-q-a/93524/deleting-properties-for-nodes-in-overlay-dts-file-doesn-t-work/405291"]TF-M is using uart1 by default, so my guess is that that is the problem. Changing the configurations in the overlay file wont make a difference in the TF-M image there. You can check this theory by either disabling the TF-M image (by building the project for the board file without ns), or by turning off logging by enabling&amp;nbsp;&lt;span&gt;TFM_LOG_LEVEL_SILENCE in your config file.&lt;/span&gt;[/quote]
&lt;p&gt;this uart instance was only a sample to show something is wrong with dts files configuration. instead of a uart, when I use any other interface the result is the same. I can see the deleted property or even overlay file does not effect on dts file configuration(the resulting dts file).&amp;nbsp;&lt;/p&gt;
[quote userid="103347" url="~/f/nordic-q-a/93524/deleting-properties-for-nodes-in-overlay-dts-file-doesn-t-work/395785"]The resulting dts file can be seen in build/zephyr/zephyr.dts. Are you seeing the properties you are trying to delete there after building?[/quote]
&lt;p&gt;here is your note in your previous message. &lt;strong&gt;overlay files do not have an effect or are not over the board dts files. This is the issue that I&amp;#39;m trying to figure out why and how I can fix.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="103347" url="~/f/nordic-q-a/93524/deleting-properties-for-nodes-in-overlay-dts-file-doesn-t-work/405291"]&lt;p&gt;I am a bit surprised by this. Does this still work for you?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;[/quote]
&lt;p&gt;I fixed that issue it was specific for uart1. Now it works.&amp;nbsp; Forget about Uart, this issue is the same for I2C or any other instance definition in the dts files sometimes but I do not in what case.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Deleting properties for nodes in overlay dts file doesn't work.</title><link>https://devzone.nordicsemi.com/thread/405291?ContentTypeID=1</link><pubDate>Tue, 17 Jan 2023 14:37:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe1135ff-416b-4b02-a218-184611e2e756</guid><dc:creator>Elfving</dc:creator><description>[quote user="zsn"]sorry for late reply.[/quote]
&lt;p&gt;Hehe likewise, sorry about the delay.&lt;/p&gt;
[quote user="zsn"]yes I can see the properties Im trying to delete there. here is a sample.[/quote]
&lt;p&gt;TF-M is using uart1 by default, so my guess is that that is the problem. Changing the configurations in the overlay file wont make a difference in the TF-M image there. You can check this theory by either disabling the TF-M image (by building the project for the board file without ns), or by turning off logging by enabling&amp;nbsp;&lt;span&gt;TFM_LOG_LEVEL_SILENCE in your config file.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If you want t&lt;/span&gt;o change the UART instance the TF-M image uses you can use&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/kconfig/index.html#CONFIG_TFM_SECURE_UART_INSTANCE"&gt;CONFIG_TFM_SECURE_UART_INSTANCE&lt;/a&gt;. To change the RTS and CTS pins of uart0 though, I believe the only option is to modify&amp;nbsp;&lt;em&gt;modules/tee/tf-m/trusted-firmware-m/platform/ext/target/nordic_nrf/nrf9160dk_nrf9160/RTE_Device.h&lt;/em&gt; directly.&lt;/p&gt;
[quote user=""] However, if I delete these pins from the main node in pin-control.dtsi, it works. [/quote]
&lt;p&gt;I am a bit surprised by this. Does this still work for you?&lt;/p&gt;
&lt;p&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/kconfig/index.html#CONFIG_TFM_UART0_CTS_PIN"&gt;&lt;/a&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Deleting properties for nodes in overlay dts file doesn't work.</title><link>https://devzone.nordicsemi.com/thread/404197?ContentTypeID=1</link><pubDate>Tue, 10 Jan 2023 20:57:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:162d88dd-4f23-4deb-ab37-1eb4c787cb0c</guid><dc:creator>zsn</dc:creator><description>&lt;p&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/elfving"&gt;Elfving&lt;/a&gt;&amp;nbsp; sorry for late reply.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="103347" url="~/f/nordic-q-a/93524/deleting-properties-for-nodes-in-overlay-dts-file-doesn-t-work/395785"]Are you seeing the properties you are trying to delete there after building?[/quote]
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;yes I can see the properties Im trying to delete there. here is a sample.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;nrf9160dk_nrf9160_ns.overlay file:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="batchfile"&gt;// To get started, press Ctrl+Space to bring up the completion menu and view the available nodes.

// You can also use the buttons in the sidebar to perform actions on nodes.
// Actions currently available include:

// * Enabling / disabling the node
// * Adding the bus to a bus
// * Removing the node
// * Connecting ADC channels

// For more help, browse the DeviceTree documentation at https://docs.zephyrproject.org/latest/guides/dts/index.html
// You can also visit the nRF DeviceTree extension documentation at https://nrfconnect.github.io/vscode-nrf-connect/devicetree/nrfdevicetree.html
/ {
    chosen {
        zephyr,console = &amp;amp;uart0;
        zephyr,shell-uart = &amp;amp;uart0;
        zephyr,uart-mcumgr = &amp;amp;uart0;
    };
};
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;nrf9160dk_nrf9160_common.dts file:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="batchfile"&gt; #include &amp;quot;nrf9160dk_nrf9160_common-pinctrl.dtsi&amp;quot;

 / {
	model = &amp;quot;Nordic nRF9160 DK NRF9160&amp;quot;;
	compatible = &amp;quot;nordic,nrf9160-dk-nrf9160&amp;quot;;

	 chosen {
		 zephyr,console = &amp;amp;uart1;
		 zephyr,shell-uart = &amp;amp;uart1;
		 zephyr,uart-mcumgr = &amp;amp;uart1;
	 };
	 
	 leds {
		 compatible = &amp;quot;gpio-leds&amp;quot;;
		 led0: led_0 {
			 gpios = &amp;lt;&amp;amp;pcal9539a 15 0&amp;gt;;
			 label = &amp;quot;Green LED 1&amp;quot;;
		 };
	 };
 };&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;zephyr.dts file:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="batchfile"&gt;/ {
	#address-cells = &amp;lt; 0x1 &amp;gt;;
	#size-cells = &amp;lt; 0x1 &amp;gt;;
	model = &amp;quot;Nordic nRF9160 DK NRF9160&amp;quot;;
	compatible = &amp;quot;nordic,nrf9160-dk-nrf9160&amp;quot;;
	chosen {
		zephyr,flash-controller = &amp;amp;flash_controller;
		zephyr,entropy = &amp;amp;cryptocell_sw;
		zephyr,console = &amp;amp;uart1;
		zephyr,shell-uart = &amp;amp;uart1;
		zephyr,uart-mcumgr = &amp;amp;uart1;
		zephyr,flash = &amp;amp;flash0;
		zephyr,sram = &amp;amp;sram0_ns;
		zephyr,code-partition = &amp;amp;slot0_ns_partition;
	};
	.
	.
	.
	.&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="103347" url="~/f/nordic-q-a/93524/deleting-properties-for-nodes-in-overlay-dts-file-doesn-t-work/395785"]&lt;p&gt;And just to check, do you have a literal dts file named &amp;quot;&lt;span&gt;pincontrol.dts&amp;quot;?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;[/quote]
&lt;p&gt;yes i have, it is &amp;quot;nrf9160dk_nrf9160_common-pinctrl.dtsi&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I&amp;nbsp;&lt;/p&gt;
[quote userid="103347" url="~/f/nordic-q-a/93524/deleting-properties-for-nodes-in-overlay-dts-file-doesn-t-work/395785"]&lt;p&gt;&lt;span&gt;What NCS version are you using?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;[/quote]
&lt;p&gt;I&amp;nbsp;used to use NRF SDK 2.0.0 then, moved SDK 2.2.0 . I&amp;#39;m still getting the same error. I mean I have the same error in both versions.&lt;/p&gt;
&lt;p&gt;Regards.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Deleting properties for nodes in overlay dts file doesn't work.</title><link>https://devzone.nordicsemi.com/thread/395785?ContentTypeID=1</link><pubDate>Tue, 15 Nov 2022 13:04:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2185c58d-9719-4a9d-bb89-5f4f175d6188</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;The resulting dts file can be seen in build/zephyr/zephyr.dts. Are you seeing the properties you are trying to delete there after building?&lt;/p&gt;
&lt;p&gt;And just to check, do you have a literal dts file named &amp;quot;&lt;span&gt;pincontrol.dts&amp;quot;?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;What NCS version are you using?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Elfving&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Deleting properties for nodes in overlay dts file doesn't work.</title><link>https://devzone.nordicsemi.com/thread/395360?ContentTypeID=1</link><pubDate>Fri, 11 Nov 2022 14:56:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cb34cf11-621e-425f-bfb4-a042be26b4b5</guid><dc:creator>zsn</dc:creator><description>&lt;p&gt;Hi Elfving, Yes, it is. I am not getting any errors during compiling. As I explained in the question, I wanted to use p0.14 &amp;amp; 15 pins for general purposes,&lt;span&gt;&amp;nbsp;but it didn&amp;#39;t work. then I saw these pins behaving weirdly by checking these pins with a logic analyzer. after further research, I realised these pins were occupied by the uart as rts and cts pins in the nrf9160-pincontrol.dts file. so it tried something more in the overlay file I pasted above in the question but none of them worked till I deleted rts and cts properties of uart in the nrf9160-pincontrol.dts file.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Deleting properties for nodes in overlay dts file doesn't work.</title><link>https://devzone.nordicsemi.com/thread/395322?ContentTypeID=1</link><pubDate>Fri, 11 Nov 2022 12:53:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e5184323-8b28-4621-9c26-0e9f39c00fa4</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Hello again, sorry about the wait.&lt;/p&gt;
&lt;p&gt;This is odd, because it looks correct to me. What sort of error are you getting?&lt;/p&gt;
[quote user=""]However, if I delete these pins from the main node in pin-control.dtsi, it works.[/quote]
&lt;p&gt;So it is only the property deleting part you&amp;#39;re replacing here, and getting it to work? The rest of the overlay can remain without making any issues? &lt;/p&gt;
&lt;p&gt;You can find some more info on deleting a property (but mainly overlays in general) &lt;a href="https://docs.zephyrproject.org/latest/build/dts/howtos.html#use-devicetree-overlays"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Deleting properties for nodes in overlay dts file doesn't work.</title><link>https://devzone.nordicsemi.com/thread/394191?ContentTypeID=1</link><pubDate>Fri, 04 Nov 2022 14:14:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:44474296-1d82-4ff5-a5ed-a2d1a1f10cac</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I will have to get back to you on this next week.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>