Skip to content

Commit 915419c

Browse files
ananglcarlescufi
authored andcommitted
boards: nrf5340dk_nrf5340: Clean up common cpuapp dts node definitions
In commit 619a498, the initialization of the spi2 node has been moved from the nrf5340_cpuapp_common.dts file to separate dts files for secure/non-secure targets. That was done to make the node unavailable in the nRF5340 PDK, that was also using the common file, because it was non-functional on that board. For the same reason, the initialization of the usbd node could not be done in the common file and instead it had to be added separately for the secure and non-secure targets. Now that the nRF5340 PDK is no longer supported, there is no point in keeping such complication. The usbd node initialization is moved to the common file but the spi2 node initialization is removed and instead the spi4 node is enabled, as it is labeled as arduino_spi and is assigned with the same pins. Signed-off-by: Andrzej Głąbek <[email protected]>
1 parent 92eb309 commit 915419c

File tree

4 files changed

+6
-43
lines changed

4 files changed

+6
-43
lines changed

boards/arm/nrf5340dk_nrf5340/nrf5340_cpuapp_common.dts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@ arduino_i2c: &i2c1 {};
219219

220220
arduino_spi: &spi4 {
221221
compatible = "nordic,nrf-spim";
222+
status = "okay";
222223
cs-gpios = <&arduino_header 16 GPIO_ACTIVE_LOW>; /* D10 */
223224
pinctrl-0 = <&spi4_default>;
224225
pinctrl-1 = <&spi4_sleep>;
@@ -259,6 +260,11 @@ arduino_spi: &spi4 {
259260
};
260261
};
261262

263+
zephyr_udc0: &usbd {
264+
compatible = "nordic,nrf-usbd";
265+
status = "okay";
266+
};
267+
262268
/ {
263269

264270
reserved-memory {

boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpuapp-pinctrl.dtsi

Lines changed: 0 additions & 24 deletions
This file was deleted.

boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpuapp.dts

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
/dts-v1/;
88
#include <nordic/nrf5340_cpuapp_qkaa.dtsi>
99
#include "nrf5340_cpuapp_common.dts"
10-
#include "nrf5340dk_nrf5340_cpuapp-pinctrl.dtsi"
1110

1211
/ {
1312
model = "Nordic NRF5340 DK NRF5340 Application";
@@ -21,16 +20,3 @@
2120
zephyr,sram-non-secure-partition = &sram0_ns;
2221
};
2322
};
24-
25-
&spi2 {
26-
compatible = "nordic,nrf-spim";
27-
status = "okay";
28-
pinctrl-0 = <&spi2_default>;
29-
pinctrl-1 = <&spi2_sleep>;
30-
pinctrl-names = "default", "sleep";
31-
};
32-
33-
zephyr_udc0: &usbd {
34-
compatible = "nordic,nrf-usbd";
35-
status = "okay";
36-
};

boards/arm/nrf5340dk_nrf5340/nrf5340dk_nrf5340_cpuapp_ns.dts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,3 @@
1818
zephyr,code-partition = &slot0_ns_partition;
1919
};
2020
};
21-
22-
zephyr_udc0: &usbd {
23-
compatible = "nordic,nrf-usbd";
24-
status = "okay";
25-
};

0 commit comments

Comments
 (0)