You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
137 lines
2.3 KiB
137 lines
2.3 KiB
/* |
|
* Copyright (c) 2023 Antmicro <www.antmicro.com> |
|
* |
|
* SPDX-License-Identifier: Apache-2.0 |
|
*/ |
|
|
|
/dts-v1/; |
|
#include <silabs/xg27/efr32bg27c140f768im40.dtsi> |
|
#include "xg27_dk2602a-pinctrl.dtsi" |
|
#include "thunderboard.dtsi" |
|
#include <zephyr/dt-bindings/regulator/silabs_dcdc.h> |
|
|
|
/ { |
|
model = "Silicon Labs xG27-DK2602A Dev Kit"; |
|
compatible = "silabs,efr32bg27c140f768im40", "silabs,xg27_dk2602a", |
|
"silabs,efr32bg27"; |
|
|
|
/* These aliases are provided for compatibility with samples */ |
|
aliases { |
|
led0 = &led0; |
|
spi0 = &usart0; |
|
sw0 = &button0; |
|
watchdog0 = &wdog0; |
|
|
|
/* If enabled, MCUboot uses this for recovery mode entrance */ |
|
mcuboot-led0 = &led0; |
|
mcuboot-button0 = &button0; |
|
}; |
|
|
|
chosen { |
|
zephyr,bt-hci = &bt_hci_silabs; |
|
zephyr,code-partition = &slot0_partition; |
|
}; |
|
}; |
|
|
|
&hfxo { |
|
ctune = <140>; |
|
precision = <50>; |
|
status = "okay"; |
|
}; |
|
|
|
&lfxo { |
|
ctune = <63>; |
|
precision = <50>; |
|
status = "okay"; |
|
}; |
|
|
|
&hfrcodpll { |
|
clock-frequency = <DT_FREQ_K(76800)>; |
|
clocks = <&hfxo>; |
|
dpll-autorecover; |
|
dpll-edge = "fall"; |
|
dpll-lock = "phase"; |
|
dpll-m = <1919>; |
|
dpll-n = <3839>; |
|
}; |
|
|
|
&em23grpaclk { |
|
clocks = <&lfxo>; |
|
}; |
|
|
|
&em4grpaclk { |
|
clocks = <&lfxo>; |
|
}; |
|
|
|
&rtccclk { |
|
clocks = <&lfxo>; |
|
}; |
|
|
|
&wdog0clk { |
|
clocks = <&lfxo>; |
|
}; |
|
|
|
&dcdc { |
|
regulator-boot-on; |
|
regulator-initial-mode = <SILABS_DCDC_MODE_BUCK>; |
|
status = "okay"; |
|
}; |
|
|
|
&flash0 { |
|
partitions { |
|
/* Reserve 48 KiB for the bootloader */ |
|
boot_partition: partition@0 { |
|
reg = <0x00000000 0x0000c000>; |
|
label = "mcuboot"; |
|
read-only; |
|
}; |
|
|
|
/* Reserve 328 KiB for the application in slot 0 */ |
|
slot0_partition: partition@c000 { |
|
reg = <0x0000c000 0x00052000>; |
|
label = "image-0"; |
|
}; |
|
|
|
/* Reserve 328 KiB for the application in slot 1 */ |
|
slot1_partition: partition@5e000 { |
|
reg = <0x0005e000 0x00052000>; |
|
label = "image-1"; |
|
}; |
|
|
|
/* Set 64 KiB of storage at the end of the 768 KiB of flash */ |
|
storage_partition: partition@b0000 { |
|
reg = <0x000b0000 0x00010000>; |
|
label = "storage"; |
|
}; |
|
}; |
|
}; |
|
|
|
&led0 { |
|
gpios = <&gpioa 4 GPIO_ACTIVE_HIGH>; |
|
}; |
|
|
|
&sw_sensor_enable { |
|
enable-gpios = <&gpioc 6 GPIO_ACTIVE_HIGH>; |
|
}; |
|
|
|
|
|
&sw_mic_enable { |
|
enable-gpios = <&gpioc 7 GPIO_ACTIVE_HIGH>; |
|
}; |
|
|
|
|
|
&sw_imu_enable { |
|
enable-gpios = <&gpiob 4 GPIO_ACTIVE_HIGH>; |
|
}; |
|
|
|
&button0 { |
|
gpios = <&gpiob 3 GPIO_ACTIVE_LOW>; |
|
}; |
|
|
|
&radio { |
|
pa-voltage-mv = <1800>; |
|
}; |
|
|
|
&bt_hci_silabs { |
|
status = "okay"; |
|
};
|
|
|