1/*
2 * Copyright (c) 2020 Piotr Mienkowski
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#include <zephyr/dt-bindings/input/input-event-codes.h>
8#include "efr32-series1-common-pinctrl.dtsi"
9
10/ {
11	chosen {
12		zephyr,console = &usart0;
13		zephyr,shell-uart = &usart0;
14		zephyr,uart-pipe = &usart0;
15		zephyr,sram = &sram0;
16		zephyr,flash = &flash0;
17		zephyr,code-partition = &slot0_partition;
18	};
19
20	/* These aliases are provided for compatibility with samples */
21	aliases {
22		led0 = &led0;
23		led1 = &led1;
24		sw0 = &button0;
25		sw1 = &button1;
26		watchdog0 = &wdog0;
27	};
28
29	leds {
30		compatible = "gpio-leds";
31		led0: led_0 {
32			gpios = <&gpiof 4 0>;
33			label = "LED 0";
34		};
35		led1: led_1 {
36			gpios = <&gpiof 5 0>;
37			label = "LED 1";
38		};
39	};
40
41	buttons {
42		compatible = "gpio-keys";
43		button0: button_0 {
44			/* gpio flags need validation */
45			gpios = <&gpiof 6 GPIO_ACTIVE_LOW>;
46			label = "User Push Button 0";
47			zephyr,code = <INPUT_KEY_0>;
48		};
49		button1: button_1 {
50			/* gpio flags need validation */
51			gpios = <&gpiof 7 GPIO_ACTIVE_LOW>;
52			label = "User Push Button 1";
53			zephyr,code = <INPUT_KEY_1>;
54		};
55	};
56
57};
58
59&usart0 {
60	current-speed = <115200>;
61	pinctrl-0 = <&usart0_default>;
62	pinctrl-names = "default";
63	status = "okay";
64};
65
66&usart1 {
67	compatible = "silabs,gecko-spi-usart";
68
69	#address-cells = <1>;
70	#size-cells = <0>;
71
72	pinctrl-0 = <&usart1_default>;
73	pinctrl-names = "default";
74
75	cs-gpios = <&gpioa 4 GPIO_ACTIVE_LOW>;
76
77	status = "okay";
78
79	mx25r80: mx25r8035f@0 {
80		compatible = "jedec,spi-nor";
81		reg = <0>;
82		spi-max-frequency = <33000000>;
83		size = <0x800000>;
84		jedec-id = [c2 28 14];
85	};
86};
87
88&rtcc0 {
89	prescaler = <1>;
90	status = "okay";
91};
92
93&gpio {
94	location-swo = <0>;
95	status = "okay";
96};
97
98&gpioa {
99	status = "okay";
100
101	board-controller-enable {
102		gpio-hog;
103		gpios = <5 GPIO_ACTIVE_HIGH>;
104		output-high;
105	};
106};
107
108&gpiob {
109	status = "okay";
110};
111
112&gpioc {
113	status = "okay";
114};
115
116&gpiod {
117	status = "okay";
118};
119
120&gpiof {
121	status = "okay";
122};
123
124&wdog0 {
125	status = "okay";
126};
127