1/* 2 * Copyright (c) 2020 Piotr Mienkowski 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7/dts-v1/; 8#include <silabs/efr32mg12p432f1024gl125.dtsi> 9#include "../common/efr32-series1-common.dtsi" 10 11/ { 12 model = "Silicon Labs BRD4161A (Mighty Gecko 12 Radio Board)"; 13 compatible = "silabs,slwrb4161a", "silabs,efr32mg12p"; 14}; 15 16&cpu0 { 17 clock-frequency = <38400000>; 18}; 19 20&flash0 { 21 partitions { 22 compatible = "fixed-partitions"; 23 #address-cells = <1>; 24 #size-cells = <1>; 25 26 /* Reserve 32 kB for the bootloader */ 27 boot_partition: partition@0 { 28 label = "mcuboot"; 29 reg = <0x0 0x00008000>; 30 read-only; 31 }; 32 33 /* Reserve 220 kB for the application in slot 0 */ 34 slot0_partition: partition@8000 { 35 label = "image-0"; 36 reg = <0x00008000 0x00037000>; 37 }; 38 39 /* Reserve 220 kB for the application in slot 1 */ 40 slot1_partition: partition@3f000 { 41 label = "image-1"; 42 reg = <0x0003f000 0x00037000>; 43 }; 44 45 /* Reserve 32 kB for the scratch partition */ 46 scratch_partition: partition@76000 { 47 label = "image-scratch"; 48 reg = <0x00076000 0x00008000>; 49 }; 50 51 /* Set 8Kb of storage at the end of the 512KB of flash */ 52 storage_partition: partition@7e000 { 53 label = "storage"; 54 reg = <0x0007e000 0x00002000>; 55 }; 56 57 }; 58}; 59 60&pinctrl { 61 i2c0_default: i2c0_default { 62 group1 { 63 psels = <GECKO_PSEL(I2C_SDA, C, 11)>, 64 <GECKO_PSEL(I2C_SCL, C, 10)>, 65 <GECKO_LOC(I2C_SDA, 16)>, 66 <GECKO_LOC(I2C_SCL, 14)>; 67 }; 68 }; 69}; 70 71&usart2 { 72 compatible = "silabs,gecko-spi-usart"; 73 #address-cells = <1>; 74 #size-cells = <0>; 75 pinctrl-0 = <&usart2_default>; 76 pinctrl-names = "default"; 77 cs-gpios = <&gpioa 9 GPIO_ACTIVE_LOW>; 78 status = "okay"; 79}; 80 81&i2c0 { 82 pinctrl-0 = <&i2c0_default>; 83 pinctrl-names = "default"; 84 status = "okay"; 85 86 si7021: si7021@40 { 87 compatible = "silabs,si7006"; 88 reg = <0x40>; 89 status = "okay"; 90 }; 91}; 92