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