1/*
2 * Copyright (c) 2023 Antmicro <www.antmicro.com>
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7/dts-v1/;
8#include <silabs/efr32bg27.dtsi>
9#include <silabs/efr32bg2x-pinctrl.dtsi>
10#include "thunderboard.dtsi"
11
12/ {
13	model = "Silicon Labs EFR32BG27C140F768IM40 Thunderboard-style board";
14	compatible = "silabs,efr32bg27c140f768im40", "silabs,efr32bg27_brd2602a",
15		"silabs,efr32bg27";
16
17	/* These aliases are provided for compatibility with samples */
18	aliases {
19		led0 = &led0;
20		sw0 = &button0;
21		spi-flash0 = &mx25r80;
22		spi0 = &usart0;
23		watchdog0 = &wdog0;
24		/* If enabled, MCUboot uses this for recovery mode entrance */
25		mcuboot-led0 = &led0;
26		mcuboot-button0 = &button0;
27	};
28
29	chosen {
30		zephyr,code-partition = &slot0_partition;
31	};
32};
33
34&flash0 {
35	partitions {
36		/* Reserve 48 KiB for the bootloader */
37		boot_partition: partition@0 {
38			label = "mcuboot";
39			reg = <0x00000000 0x0000c000>;
40			read-only;
41		};
42
43		/* Reserve 328 KiB for the application in slot 0 */
44		slot0_partition: partition@c000 {
45			label = "image-0";
46			reg = <0x0000c000 0x00052000>;
47		};
48
49		/* Reserve 328 KiB for the application in slot 1 */
50		slot1_partition: partition@5e000 {
51			label = "image-1";
52			reg = <0x0005e000 0x00052000>;
53		};
54
55		/* Set 64 KiB of storage at the end of the 768 KiB of flash */
56		storage_partition: partition@b0000 {
57			label = "storage";
58			reg = <0x000b0000 0x00010000>;
59		};
60	};
61};
62
63&led0 {
64	gpios = <&gpioa GECKO_PIN(4) GPIO_ACTIVE_HIGH>;
65};
66
67&sw_sensor_enable {
68	enable-gpios = <&gpioc GECKO_PIN(6) GPIO_ACTIVE_HIGH>;
69};
70
71
72&sw_mic_enable {
73	enable-gpios = <&gpioc GECKO_PIN(7) GPIO_ACTIVE_HIGH>;
74};
75
76
77&sw_imu_enable {
78	enable-gpios = <&gpiob GECKO_PIN(4) GPIO_ACTIVE_HIGH>;
79};
80
81&button0 {
82	gpios = <&gpiob GECKO_PIN(3) GPIO_ACTIVE_LOW>;
83};
84