1/*
2 * Copyright (c) 2017 Christian Taedcke
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7/dts-v1/;
8#include <silabs/efm32wg990f256.dtsi>
9#include <zephyr/dt-bindings/input/input-event-codes.h>
10
11/ {
12	model = "Silicon Labs EFM32WG STK3800 board";
13	compatible = "silabs,efm32wg_stk3800", "silabs,efm32wg";
14
15	chosen {
16		zephyr,console = &uart0;
17		zephyr,shell-uart = &uart0;
18		zephyr,sram = &sram0;
19		zephyr,flash = &flash0;
20	};
21
22	/* These aliases are provided for compatibility with samples */
23	aliases {
24		led0 = &led0;
25		led1 = &led1;
26		sw0 = &button0;
27		sw1 = &button1;
28	};
29
30	leds {
31		compatible = "gpio-leds";
32		led0: led_0 {
33			gpios = <&gpioe 2 0>;
34			label = "LED 0";
35		};
36		led1: led_1 {
37			gpios = <&gpioe 3 0>;
38			label = "LED 1";
39		};
40	};
41
42	buttons {
43		compatible = "gpio-keys";
44		button0: button_0 {
45			/* gpio flags need validation */
46			gpios = <&gpiob 9 GPIO_ACTIVE_LOW>;
47			label = "User Push Button 0";
48			zephyr,code = <INPUT_KEY_0>;
49		};
50		button1: button_1 {
51			/* gpio flags need validation */
52			gpios = <&gpiob 19 GPIO_ACTIVE_LOW>;
53			label = "User Push Button 1";
54			zephyr,code = <INPUT_KEY_1>;
55		};
56	};
57};
58
59&cpu0 {
60	clock-frequency = <48000000>;
61};
62
63&gpioa {
64	status = "okay";
65};
66
67&gpiob {
68	status = "okay";
69};
70
71&gpioe {
72	status = "okay";
73};
74
75&gpiof {
76	status = "okay";
77
78	board-controller-enable {
79		gpio-hog;
80		gpios = <7 GPIO_ACTIVE_HIGH>;
81		output-high;
82	};
83};
84
85&uart0 {
86	current-speed = <115200>;
87	location-rx = <GECKO_LOCATION(1) GECKO_PORT_E GECKO_PIN(1)>;
88	location-tx = <GECKO_LOCATION(1) GECKO_PORT_E GECKO_PIN(0)>;
89	status = "okay";
90};
91
92&flash0 {
93
94	partitions {
95		compatible = "fixed-partitions";
96		#address-cells = <1>;
97		#size-cells = <1>;
98
99		/* Set 6Kb of storage at the end of the 256Kb of flash */
100		storage_partition: partition@3e800 {
101			label = "storage";
102			reg = <0x0003e800 0x00001800>;
103		};
104
105	};
106};
107