<?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>Custom Board Creation with nrf53 and the pinectrl.dtsi, how do I rename the file? Do I edit the nrf5340_cpuapp_common-pinectrl.dtsi?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/119039/custom-board-creation-with-nrf53-and-the-pinectrl-dtsi-how-do-i-rename-the-file-do-i-edit-the-nrf5340_cpuapp_common-pinectrl-dtsi</link><description>I have been through the devacademy lesson on custom boards and am using the nRF53 so have used the custom board for multi-core approach. The example uses the 9151 which has a simpler file structure. Do I equate the changes to the nrf9151ds_nrf9151_pinectrl</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 04 Mar 2025 14:40:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/119039/custom-board-creation-with-nrf53-and-the-pinectrl-dtsi-how-do-i-rename-the-file-do-i-edit-the-nrf5340_cpuapp_common-pinectrl-dtsi" /><item><title>RE: Custom Board Creation with nrf53 and the pinectrl.dtsi, how do I rename the file? Do I edit the nrf5340_cpuapp_common-pinectrl.dtsi?</title><link>https://devzone.nordicsemi.com/thread/525761?ContentTypeID=1</link><pubDate>Tue, 04 Mar 2025 14:40:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1a88ab9b-de6b-42bd-ab38-6cb9d30b1a51</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;This might be easier if you are aware of the board terminology.&amp;nbsp;A board target consists of a board name, revision (if relevant), and board qualifiers. The board qualifiers are things such as SoC, CPU cluster (cores) and variant.&lt;/p&gt;
&lt;p&gt;I will use the diagram from &lt;a href="https://docs.nordicsemi.com/bundle/ncs-2.9.0/page/zephyr/hardware/porting/board_porting.html#board_terminology"&gt;Board Porting Guide&lt;/a&gt; as an example:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" title="" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1741097415716v3.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;The full board target here is&amp;nbsp;bl5340_dvk@1.2.0/nrf5340/cpuapp/ns and breaking it down into board name, revision and board qualifiers we have the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Board name: bl5340_dvk&lt;/li&gt;
&lt;li&gt;Board revision: 1.2.0&lt;/li&gt;
&lt;li&gt;Board qualifiers:
&lt;ul&gt;
&lt;li&gt;SoC: nrf5350&lt;/li&gt;
&lt;li&gt;CPU cluster: cpuapp&lt;/li&gt;
&lt;li&gt;Variant: ns&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;As mention in the porting guide, this can also be seen as &lt;code&gt;board name[@revision][/SoC[/CPU cluster][/variant]]&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;When you make a custom board, you should rename all instances of the &amp;quot;board name&amp;quot; part of the files to correspond with your board name. I know I said earlier that, for example, nrf5340dk_common.dtsi does not need to be renamed, and this is still true, since this file is only included locally in the board files. However, I would still recommend changing all places where the board name itself is used if you want to follow the standard convention.&lt;/p&gt;
&lt;p&gt;You do not need to rename the files that do not have the board name in the filename, e.g. nrf5340_cpuapp_common.dtsi.&lt;/p&gt;
[quote user="lcj"]&lt;ul&gt;&lt;li&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Following the nrf9151 directions it would look like:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;nrf5340_cpuapp_common-pinctrl.dtsi&lt;/li&gt;
&lt;li&gt;nrf5340_cpuapp_common.dtsi&lt;/li&gt;
&lt;li&gt;mycustomboard_common.dtsi&lt;/li&gt;
&lt;li&gt;mycustomboard_nrf5340_cpuapp.dts&lt;/li&gt;
&lt;li&gt;mycustomboard_nrf5340_cpuapp_ns.dts&lt;/li&gt;
&lt;li&gt;mycustomboard_nrf5340_cpunet-pinctrl.dtsi&lt;/li&gt;
&lt;li&gt;mycustomboard_nrf5340_cpunet.dts&lt;/li&gt;&lt;/ul&gt;[/quote]
&lt;p&gt;This is correct.&lt;/p&gt;
[quote user="lcj"]&lt;p&gt;Would you need these two files at all (I understand you would need to update references) and if you did would you change them:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;nrf5340_cpuapp_common-pinctrl.dtsi&lt;/li&gt;
&lt;li&gt;nrf5340_cpuapp_common.dtsi&lt;/li&gt;&lt;/ul&gt;[/quote]
&lt;p&gt;Technically, you do not need them. However, if you do not have these files, you would have to include the devicetree configurations, including what is in the pinctrl file, in the files that include these instead, so inside mycustomboard_nrf5340_cpuapp.dts and mycustomboard_nrf5340_cpuapp_ns.dts. The reason there are common files are because these devicetree settings are the same for both board variants, i.e. both nrf5340dk/nrf5340/cpuapp and nrf5340dk/nrf5340/cpuapp/ns. So it is just to simplify things by having everything that is common for the two variants in one file instead of having it in the devicetree files of both variants.&lt;/p&gt;
&lt;p&gt;So when it comes to this, it all comes down to preference. The same goes for the exampleboard board you mention. The important thing is that the relevant devicetree nodes are included in the relevant files (&amp;lt;board_name&amp;gt;_nrf5340_cpuapp.dts, &amp;lt;board_name&amp;gt;_nrf5340_cpuapp_ns.dts, and &amp;lt;board_name&amp;gt;_nrf5340_cpunet.dts), but whether you choose to set them directly in these files or use some sort of common files is up to you. I would recommend using common files and pinctrl for simplicity.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom Board Creation with nrf53 and the pinectrl.dtsi, how do I rename the file? Do I edit the nrf5340_cpuapp_common-pinectrl.dtsi?</title><link>https://devzone.nordicsemi.com/thread/525399?ContentTypeID=1</link><pubDate>Sun, 02 Mar 2025 16:25:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:510b37b9-6c02-4276-ad0a-fef117915e78</guid><dc:creator>lcj</dc:creator><description>&lt;p&gt;I think I need more prescriptive guidance. If you were to create a custom board based on the nrf5340 would you copy the nrf5340dk directory into a new directory (let&amp;#39;s use mycustomboard) and:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;What files would you need and need to rename?&lt;/li&gt;
&lt;li&gt;What files would you need and NOT rename?&lt;/li&gt;
&lt;li&gt;What edits would you make to the files?&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The files I see are:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;nrf5340_cpuapp_common-pinctrl.dtsi&lt;/li&gt;
&lt;li&gt;nrf5340_cpuapp_common.dtsi&lt;/li&gt;
&lt;li&gt;nrf5340dk_common.dtsi&lt;/li&gt;
&lt;li&gt;nrf5340dk_nrf5340_cpuapp.dts&lt;/li&gt;
&lt;li&gt;nrf5340dk_nrf5340_cpuapp_ns.dts&lt;/li&gt;
&lt;li&gt;nrf5340dk_nrf5340_cpunet-pinctrl.dtsi&lt;/li&gt;
&lt;li&gt;nrf5340dk_nrf5340_cpunet.dts&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Following the nrf9151 directions it would look like:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;nrf5340_cpuapp_common-pinctrl.dtsi&lt;/li&gt;
&lt;li&gt;nrf5340_cpuapp_common.dtsi&lt;/li&gt;
&lt;li&gt;mycustomboard_common.dtsi&lt;/li&gt;
&lt;li&gt;mycustomboard_nrf5340_cpuapp.dts&lt;/li&gt;
&lt;li&gt;mycustomboard_nrf5340_cpuapp_ns.dts&lt;/li&gt;
&lt;li&gt;mycustomboard_nrf5340_cpunet-pinctrl.dtsi&lt;/li&gt;
&lt;li&gt;mycustomboard_nrf5340_cpunet.dts&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Would you need these two files at all (I understand you would need to update references) and if you did would you change them:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;nrf5340_cpuapp_common-pinctrl.dtsi&lt;/li&gt;
&lt;li&gt;nrf5340_cpuapp_common.dtsi&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;If you didn&amp;#39;t you would need a pinctrl file, right? In a custom board you would have a different set of pins all connected to specific components, but you would not touch the net ones, correct? If that were the case you would need a different pinctrl file for this or would you only edit some of the entries in the common one?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I saw another example:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;exampleboard_nrf5340_common-pinctrl.dtsi&lt;/li&gt;
&lt;li&gt;&lt;span&gt;exampleboard&lt;/span&gt;_nrf5340_common.dts&lt;/li&gt;
&lt;li&gt;&lt;span&gt;exampleboard&lt;/span&gt;_nrf5340_cpuapp.dts&lt;/li&gt;
&lt;li&gt;&lt;span&gt;exampleboard&lt;/span&gt;_nrf5340_cpuapp_ns.dts&lt;/li&gt;
&lt;li&gt;&lt;span&gt;exampleboard&lt;/span&gt;_nrf5340_cpunet-pinctrl.dtsi&lt;/li&gt;
&lt;li&gt;&lt;span&gt;exampleboard&lt;/span&gt;_nrf5340_cpunet.dts&lt;/li&gt;
&lt;li&gt;&lt;span&gt;exampleboard&lt;/span&gt;_nrf5340_partition_conf.dts&lt;br /&gt;&lt;br /&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;And the&amp;nbsp;exampleboard_nrf5340_cpunet.dts includes changed to:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#include &amp;lt;nordic/nrf5340_cpunet_qkaa.dtsi&amp;gt;
#include &amp;quot;exampleboard_nrf5340_cpunet-pinctrl.dtsi&amp;quot;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The exampleboard&lt;/span&gt;_nrf5340_cpuapp.dts included:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#include &amp;lt;nordic/nrf5340_cpuapp_qkaa.dtsi&amp;gt;
#include &amp;quot;exampleboard_nrf5340_common.dts&amp;quot;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;And the&amp;nbsp;exampleboard_nrf5340_common.dts included:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#include &amp;quot;exampleboard_nrf5340_common-pinctrl.dtsi&amp;quot;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;So they essentially created a new pinctrl file for the cpuapp, combined all cpuapp configurations into 3 files,&amp;nbsp;and repointed the cpunet components&amp;nbsp;not to use a common file.&lt;/p&gt;
&lt;p&gt;It would really be helpful to know the approach from Nordic on this and more specific instructions/guidance as the nrf53 has significant differences from the nrf9151.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom Board Creation with nrf53 and the pinectrl.dtsi, how do I rename the file? Do I edit the nrf5340_cpuapp_common-pinectrl.dtsi?</title><link>https://devzone.nordicsemi.com/thread/524525?ContentTypeID=1</link><pubDate>Tue, 25 Feb 2025 09:29:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:134fbbf2-0d3d-4887-ba3f-989c85309a20</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="lcj"]but do not need to be renamed, correct?[/quote]
&lt;p&gt;Correct.&lt;/p&gt;
[quote user="lcj"]Which file do I edit for the pins on the new board and which files need to be included as is?[/quote]
&lt;p&gt;Which file you edit depends on which core will use the pins, e.g. nrf5340_cpuapp_common-pinctrl.dtsi or nrf5340dk_nrf5340_cpunet-pinctrl.dtsi.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom Board Creation with nrf53 and the pinectrl.dtsi, how do I rename the file? Do I edit the nrf5340_cpuapp_common-pinectrl.dtsi?</title><link>https://devzone.nordicsemi.com/thread/523888?ContentTypeID=1</link><pubDate>Thu, 20 Feb 2025 12:47:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:be6bebda-95cb-4a2a-a995-cfa5c6e79866</guid><dc:creator>lcj</dc:creator><description>&lt;p&gt;So a difference in the demos is that these files are needed:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span&gt;nrf5340&lt;/span&gt;&lt;span&gt;_cpuapp&lt;/span&gt;&lt;span&gt;_common&lt;/span&gt;&lt;span&gt;-pinctrl&lt;/span&gt;&lt;span&gt;.dtsi&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;nrf5340&lt;/span&gt;&lt;span&gt;_cpuapp&lt;/span&gt;&lt;span&gt;_common&lt;/span&gt;&lt;span&gt;.dtsi&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;nrf5340dk&lt;/span&gt;&lt;span&gt;_common&lt;/span&gt;&lt;span&gt;.dtsi&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;span&gt;but do not need to be renamed, correct? They are referenced in the renamed files, so they are used.&lt;br /&gt;&lt;br /&gt;The DevAcademy lesson only goes so far, which is understandable, but when moving from a development kit (in my case the nrf5340dk) it would be good to know what to do next. Which file do I edit for the pins on the new board and which files need to be included as is?&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Custom Board Creation with nrf53 and the pinectrl.dtsi, how do I rename the file? Do I edit the nrf5340_cpuapp_common-pinectrl.dtsi?</title><link>https://devzone.nordicsemi.com/thread/523652?ContentTypeID=1</link><pubDate>Wed, 19 Feb 2025 09:38:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:95fc912b-0337-4602-972e-303b53dba84d</guid><dc:creator>Marte Myrvold</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The nRF9151 has a simpler file structure than the nRF5340 because the nRF5340 has two cores: one application core and one network core. Because of this, there will be separate files for the two cores, and you might also have files for things common for both cores, such as the nrf5340dk_common.dtsi. You can see which core the files are for by looking at the filenames and whether they include &amp;quot;cpuapp&amp;quot; or &amp;quot;cpunet&amp;quot;.&lt;/p&gt;
&lt;p&gt;The file nrf5340dk_common.dtsi does not need to be renamed, as it is only included in the nrf5340_cpuapp_common.dtsi and nrf5340dk_nrf5340_cpunet.dts files, so as long as the filename corresponds with what is included there, then it is fine. The same is true for nrf5340_cpuapp_common.dtsi and nrf5340_cpuapp_common-pinctrl.dtsi. However, renaming them to not mix them with the DK files can still be a good idea. In that case, you can rename them whatever you want, for example, &amp;quot;nrf5340_devacademyl3e2-pinctrl.dtsi&amp;quot; if you have called your board &amp;quot;devacademyl3e2&amp;quot; Then you need to make sure to change this in the files that include the files you rename.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Marte&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>