1/*
2 * Copyright (c) 2021 Sateesh Kotapati
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#include "efr32bg2x.dtsi"
8#include <dt-bindings/clock/silabs/xg22-clock.h>
9#include <mem.h>
10
11/ {
12	clocks {
13		euart0clk: euart0clk {
14			#clock-cells = <0>;
15			compatible = "fixed-factor-clock";
16			clocks = <&em01grpaclk>;
17		};
18	};
19
20	soc {
21		clkin0: clkin0@5003c454 {
22			#clock-cells = <0>;
23			compatible = "fixed-clock";
24			reg = <0x5003c454 0x4>;
25			clock-frequency = <DT_FREQ_M(38)>;
26		};
27	};
28};
29
30&cmu {
31	interrupts = <46 0>;
32};
33
34&hfxo {
35	interrupts = <44 0>;
36	interrupt-names = "hfxo";
37};
38
39&msc {
40	flash0: flash@0 {
41		compatible = "soc-nv-flash";
42		write-block-size = <4>;
43		erase-block-size = <8192>;
44		reg = <0x0 DT_SIZE_K(512)>;
45	};
46};
47
48&sram0 {
49	reg = <0x20000000 DT_SIZE_K(32)>;
50};
51
52&gpio {
53	interrupts = <10 2 18 2>;
54	clocks = <&cmu CLOCK_GPIO CLOCK_BRANCH_PCLK>;
55};
56
57&dma0 {
58	interrupts = <21 0>;
59};
60
61&i2c0 {
62	interrupts = <27 0>;
63	clocks = <&cmu CLOCK_I2C0 CLOCK_BRANCH_LSPCLK>;
64};
65
66&i2c1 {
67	interrupts = <28 0>;
68	clocks = <&cmu CLOCK_I2C1 CLOCK_BRANCH_PCLK>;
69};
70
71&usart0 {
72	interrupts = <13 0>, <14 0>;
73	clocks = <&cmu CLOCK_USART0 CLOCK_BRANCH_PCLK>;
74};
75
76&usart1 {
77	interrupts = <15 0>, <16 0>;
78	clocks = <&cmu CLOCK_USART1 CLOCK_BRANCH_PCLK>;
79};
80
81&burtc0 {
82	interrupts = <18 0>;
83	clocks = <&cmu CLOCK_BURTC CLOCK_BRANCH_EM4GRPACLK>;
84};
85
86&rtcc0 {
87	interrupts = <12 0>;
88	interrupt-names = "rtcc";
89	clocks = <&cmu CLOCK_RTCC CLOCK_BRANCH_RTCCCLK>;
90};
91
92&dcdc {
93	interrupts = <61 0>;
94};
95