1/* 2 * Copyright (c) 2021 Sateesh Kotapati 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7/dts-v1/; 8#include <silabs/efr32bg22.dtsi> 9#include "sltb010a-pinctrl.dtsi" 10#include "thunderboard.dtsi" 11#include <zephyr/dt-bindings/regulator/silabs_dcdc.h> 12 13/ { 14 /* These aliases are provided for compatibility with samples */ 15 aliases { 16 led0 = &led0; 17 sw0 = &button0; 18 spi0 = &usart0; 19 watchdog0 = &wdog0; 20 /* If enabled, MCUboot uses this for recovery mode entrance */ 21 mcuboot-led0 = &led0; 22 mcuboot-button0 = &button0; 23 }; 24 25 chosen { 26 zephyr,code-partition = &slot0_partition; 27 zephyr,bt-hci = &bt_hci_silabs; 28 }; 29}; 30 31&hfxo { 32 status = "okay"; 33 ctune = <120>; 34 precision = <50>; 35}; 36 37&lfxo { 38 status = "okay"; 39 ctune = <37>; 40 precision = <50>; 41}; 42 43&hfrcodpll { 44 clock-frequency = <DT_FREQ_K(76800)>; 45 clocks = <&hfxo>; 46 dpll-n = <3839>; 47 dpll-m = <1919>; 48 dpll-edge = "fall"; 49 dpll-lock = "phase"; 50 dpll-autorecover; 51}; 52 53&em23grpaclk { 54 clocks = <&lfxo>; 55}; 56 57&em4grpaclk { 58 clocks = <&lfxo>; 59}; 60 61&rtccclk { 62 clocks = <&lfxo>; 63}; 64 65&wdog0clk { 66 clocks = <&lfxo>; 67}; 68 69&dcdc { 70 status = "okay"; 71 regulator-boot-on; 72 regulator-initial-mode = <SILABS_DCDC_MODE_BUCK>; 73}; 74 75&flash0 { 76 partitions { 77 /* Reserve 48 KiB for the bootloader */ 78 boot_partition: partition@0 { 79 label = "mcuboot"; 80 reg = <0x00000000 0x0000c000>; 81 read-only; 82 }; 83 84 /* Reserve 224 KiB for the application in slot 0 */ 85 slot0_partition: partition@c000 { 86 label = "image-0"; 87 reg = <0x0000c000 0x00038000>; 88 }; 89 90 /* Reserve 224 KiB for the application in slot 1 */ 91 slot1_partition: partition@44000 { 92 label = "image-1"; 93 reg = <0x00044000 0x00038000>; 94 }; 95 96 /* Set 16 KiB of storage at the end of the 512 KiB of flash */ 97 storage_partition: partition@7c000 { 98 label = "storage"; 99 reg = <0x0007c000 0x00004000>; 100 }; 101 }; 102}; 103 104&sw_imu_enable { 105 enable-gpios = <&gpiob 4 GPIO_ACTIVE_HIGH>; 106}; 107 108&bt_hci_silabs { 109 status = "okay"; 110}; 111