1/*
2 * Copyright (c) 2024 GARDENA GmbH
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7/dts-v1/;
8#include <silabs/sim3u167.dtsi>
9#include "sim3u1xx_dk-pinctrl.dtsi"
10#include <zephyr/dt-bindings/input/input-event-codes.h>
11
12/ {
13	model = "Silicon Labs SiM3U1xx-B-DK";
14	compatible = "gardena,sim3u1xx-dk", "silabs,sim3u167","silabs,sim3u";
15
16	aliases {
17		led0 = &led_yellow;
18		led1 = &led_red;
19		sw0 = &user_button_sw2;
20		sw1 = &user_button_sw3;
21	};
22
23	chosen {
24		zephyr,console = &usart0;
25		zephyr,flash = &flash0;
26		zephyr,shell-uart = &usart0;
27		zephyr,uart-pipe = &usart0;
28		zephyr,sram = &sram0;
29	};
30
31	leds {
32		compatible = "gpio-leds";
33
34		led_red: led_2_10 {
35			label = "Red LED (DS3)";
36			gpios = <&gpio2 10 GPIO_ACTIVE_HIGH>;
37		};
38		led_yellow: led_2_11 {
39			label = "Yellow LED (DS4)";
40			gpios = <&gpio2 11 GPIO_ACTIVE_HIGH>;
41		};
42	};
43
44	gpio_keys {
45		compatible = "gpio-keys";
46
47		user_button_sw2: button_0 {
48			label = "Push button switch (SW2)";
49			gpios = <&gpio2 8 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
50			zephyr,code = <INPUT_KEY_0>;
51		};
52		user_button_sw3: button_1 {
53			label = "Push button switch (SW3)";
54			gpios = <&gpio2 9 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>;
55			zephyr,code = <INPUT_KEY_1>;
56		};
57	};
58};
59
60&cpu0 {
61	clock-frequency = <76953600>;
62};
63
64&pll0 {
65	status = "okay";
66};
67
68&clk_ahb {
69	clocks = <&pll0>;
70	status = "okay";
71};
72
73&clk_apb {
74	divider = <2>;
75	status = "okay";
76};
77
78&usart0 {
79	current-speed = <115200>;
80	pinctrl-0 = <&usart0_default>;
81	pinctrl-names = "default";
82	hw-flow-control;
83	status = "okay";
84};
85
86&gpio0 {
87	status = "okay";
88};
89
90&gpio2 {
91	status = "okay";
92};
93
94&flash0 {
95	status = "okay";
96
97	partitions {
98		compatible = "fixed-partitions";
99		#address-cells = <1>;
100		#size-cells = <1>;
101
102		slot0_partition: partition@0 {
103			label = "image-0";
104			reg = <0x00000000 DT_SIZE_K(192)>;
105		};
106
107		storage_partition: partition@30000 {
108			label = "storage";
109			reg = <0x00030000 DT_SIZE_K(64)>;
110		};
111	};
112};
113
114&dma {
115	status = "okay";
116	dma-channels = <8>; /* Crypto DMA channels have ID 5, 6, and 7 */
117};
118
119&crypto {
120	status = "okay";
121};
122