1/*
2 * Copyright (c) 2022 Renesas Electronics Corporation and/or its affiliates
3 * SPDX-License-Identifier: Apache-2.0
4 */
5
6/dts-v1/;
7#include <renesas/smartbond/da14699.dtsi>
8#include "da1469x_dk_pro-pinctrl.dtsi"
9
10/ {
11	model = "DA1469x series Development Kit Pro";
12	compatible = "renesas,da1469x_dk_pro";
13	#address-cells = <1>;
14	#size-cells = <1>;
15
16	chosen {
17		zephyr,sram = &sram0;
18		zephyr,flash = &flash0;
19		zephyr,console = &uart;
20		zephyr,shell-uart = &uart;
21		zephyr,code-partition = &slot0_partition;
22		zephyr,bt-hci = &bt_hci_da1469x;
23	};
24
25	lvgl_pointer {
26		compatible = "zephyr,lvgl-pointer-input";
27	};
28
29	leds {
30		compatible = "gpio-leds";
31		red_led: led_0 {
32			gpios = <&gpio1 1 GPIO_ACTIVE_HIGH>;
33		};
34	};
35
36	arduino_header: connector {
37		compatible = "arduino-header-r3";
38		#gpio-cells = <2>;
39		gpio-map-mask = <0xffffffff 0xffffffc0>;
40		gpio-map-pass-thru = <0 0x3f>;
41		gpio-map =
42			<0 0 &gpio1 9 0>,	/* A0 */
43			<1 0 &gpio0 25 0>,	/* A1 */
44			<2 0 &gpio0 8 0>,	/* A2 */
45			<3 0 &gpio0 9 0>,	/* A3 */
46			<4 0 &gpio1 13 0>,	/* A4 */
47			<5 0 &gpio1 12 0>,	/* A5 */
48			<6 0 &gpio1 2 0>,	/* D0 */
49			<7 0 &gpio1 3 0>,	/* D1 */
50			<8 0 &gpio1 4 0>,	/* D2 */
51			<9 0 &gpio1 5 0>,	/* D3 */
52			<10 0 &gpio1 7 0>,	/* D4 */
53			<11 0 &gpio1 8 0>,	/* D5 */
54			<12 0 &gpio0 17 0>,	/* D6 */
55			<13 0 &gpio0 18 0>,	/* D7 */
56			<14 0 &gpio0 19 0>,	/* D8 */
57			<15 0 &gpio0 20 0>,	/* D9 */
58			<16 0 &gpio0 21 0>,	/* D10 */
59			<17 0 &gpio0 24 0>,	/* D11 */
60			<18 0 &gpio0 26 0>,	/* D12 */
61			<19 0 &gpio0 27 0>,	/* D13 */
62			<20 0 &gpio0 28 0>,	/* D14 */
63			<21 0 &gpio0 29 0>;	/* D15 */
64	};
65
66	aliases {
67		led0 = &red_led;
68		watchdog0 = &wdog;
69	};
70
71	sysclk: system-clock {
72		compatible = "fixed-clock";
73		clock-frequency = <32000000>;
74		#clock-cells = <0>;
75	};
76};
77
78&flash0 {
79	reg = <0x16000000 DT_SIZE_M(1)>;
80
81	partitions {
82		compatible = "fixed-partitions";
83		#address-cells = <1>;
84		#size-cells = <1>;
85
86		/*
87		 * Flash area from 0x0000 to 0x2400 is reserved
88		 * for product header added by flasher.
89		 */
90
91		boot_partition: partition@2400 {
92			label = "mcuboot";
93			reg = <0x000002400 0x00009c00>;
94		};
95		slot0_partition: partition@c000 {
96			label = "image-0";
97			reg = <0x0000c000 0x00076000>;
98		};
99		slot1_partition: partition@80000 {
100			label = "image-1";
101			reg = <0x00082000 0x00076000>;
102		};
103		storage_partition: partition@f8000 {
104			label = "storage";
105			reg = <0x000f8000 0x00008000>;
106		};
107	};
108};
109
110&gpio0 {
111	status = "okay";
112};
113
114&gpio1 {
115	status = "okay";
116};
117
118&uart {
119	current-speed = <115200>;
120	status = "okay";
121	pinctrl-0 = <&uart_default>;
122	pinctrl-names = "default";
123	rx-wake-gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
124};
125
126zephyr_udc0: &usbd {
127	compatible = "renesas,smartbond-usbd";
128	status = "okay";
129};
130
131&rc32m {
132	status = "disabled";
133};
134
135&xtal32m {
136	status = "okay";
137};
138
139&xtal32k {
140	status = "okay";
141};
142
143/*
144 * On board level we switch to XTAL32K and
145 * so RCX can be disabled.
146 */
147&rcx {
148	status = "disabled";
149};
150
151&lp_clk {
152	clock-src = <&xtal32k>;
153};
154
155&sys_clk {
156	clock-src = <&xtal32m>;
157};
158
159&i2c {
160	pinctrl-0 = <&i2c_default>;
161	pinctrl-1 = <&i2c_sleep>;
162	pinctrl-names = "default", "sleep";
163};
164
165&i2c2 {
166	pinctrl-0 = <&i2c2_default>;
167	pinctrl-1 = <&i2c2_sleep>;
168	pinctrl-names = "default", "sleep";
169};
170
171&spi {
172	pinctrl-0 = <&spi_controller>;
173	pinctrl-1 = <&spi_sleep>;
174	pinctrl-names = "default", "sleep";
175};
176
177&spi2 {
178	pinctrl-0 = <&spi2_controller>;
179	pinctrl-1 = <&spi2_sleep>;
180	pinctrl-names = "default", "sleep";
181};
182
183&bt_hci_da1469x {
184	status = "okay";
185};
186