1/*
2 * Copyright (c) 2020 Linaro Limited.
3 * Copyright (c) 2023 Nordic Semiconductor ASA
4 *
5 * SPDX-License-Identifier: Apache-2.0
6 */
7
8/dts-v1/;
9
10#include <mem.h>
11#include <arm/nordic/nrf52833.dtsi>
12/* We resuse the pinctrl definitions directly from the real board : */
13#include <../boards/nordic/nrf52833dk/nrf52833dk_nrf52833-pinctrl.dtsi>
14
15/ {
16	model = "nrf52 bsim";
17	compatible = "bsim,nrf52833";
18
19	/* We need to remove aliases to nodes we delete */
20	aliases {
21		/delete-property/ i2c-0;
22		/delete-property/ i2c-1;
23		/delete-property/ spi-0;
24		/delete-property/ spi-1;
25		/delete-property/ spi-2;
26		/delete-property/ spi-3;
27		/delete-property/ adc-0;
28		/delete-property/ wdt-0;
29		/delete-property/ pwm-0;
30		/delete-property/ pwm-1;
31		/delete-property/ pwm-2;
32		/delete-property/ pwm-3;
33		/delete-property/ qdec-0;
34	};
35
36	chosen {
37		zephyr,ieee802154 = &ieee802154;
38		zephyr,flash = &flash0;
39		/* UART used by the BT controller UART HCI driver by default: */
40		zephyr,bt-c2h-uart = &uart1;
41	};
42
43	soc {
44		/delete-node/ memory@20000000;
45		/delete-node/ adc@40007000;
46		/delete-node/ i2c@40003000;
47		/delete-node/ i2c@40004000;
48		/delete-node/ pwm@4001c000;
49		/delete-node/ pwm@40021000;
50		/delete-node/ pwm@40022000;
51		/delete-node/ pwm@4002d000;
52		/delete-node/ qdec@40012000;
53		/delete-node/ spi@40003000;
54		/delete-node/ spi@40004000;
55		/delete-node/ spi@40023000;
56		/delete-node/ spi@4002f000;
57		/delete-node/ nfct@40005000;
58		/delete-node/ watchdog@40010000;
59		/delete-node/ acl@4001e000;
60		/delete-node/ usbd@40027000;
61	};
62
63	/delete-node/ sw-pwm;
64};
65
66&radio {
67	/* These features are not yet supported by the RADIO model */
68	/delete-property/ dfe-supported;
69};
70
71&gpiote {
72	status = "okay";
73};
74
75&gpio0 {
76	status = "okay";
77};
78
79&gpio1 {
80	status = "okay";
81};
82
83&ieee802154 {
84	status = "okay";
85};
86
87&flash0 {
88	reg = <0x00000000 DT_SIZE_K(512)>;
89	partitions {
90		compatible = "fixed-partitions";
91		#address-cells = <1>;
92		#size-cells = <1>;
93
94		storage_partition: partition@0 {
95			label = "storage";
96			reg = <0x00000000 DT_SIZE_K(512)>;
97		};
98	};
99};
100
101&uart0 {
102	compatible = "nordic,nrf-uarte";
103	status = "okay";
104	current-speed = <115200>;
105	pinctrl-0 = <&uart0_default>;
106	pinctrl-1 = <&uart0_sleep>;
107	pinctrl-names = "default", "sleep";
108};
109
110&uart1 {
111	compatible = "nordic,nrf-uarte";
112	status = "okay";
113	current-speed = <115200>;
114	pinctrl-0 = <&uart1_default>;
115	pinctrl-1 = <&uart1_sleep>;
116	pinctrl-names = "default", "sleep";
117	hw-flow-control;
118
119	bt_hci_uart: bt_hci_uart {
120		compatible = "zephyr,bt-hci-uart";
121		status = "okay";
122	};
123};
124