1/* 2 * Copyright (c) 2020 Piotr Mienkowski 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7/dts-v1/; 8#include <silabs/efr32fg1p133f256gm48.dtsi> 9#include <silabs/efr32xg1p-pinctrl.dtsi> 10#include "../common/efr32-series1-common.dtsi" 11 12/ { 13 model = "Silicon Labs BRD4250B (Flex Gecko 1 Radio Board)"; 14 compatible = "silabs,slwrb4250b", "silabs,efr32fg1p"; 15 16 pwmleds { 17 compatible = "pwm-leds"; 18 status = "okay"; 19 pwm_led0: pwm_led0 { 20 pwms = <&pwm0 0 PWM_MSEC(20) PWM_POLARITY_NORMAL>; 21 }; 22 }; 23 24 aliases { 25 pwm-led0 = &pwm_led0; 26 }; 27}; 28 29&cpu0 { 30 clock-frequency = <38400000>; 31}; 32 33&timer0 { 34 status = "okay"; 35 36 pwm0: pwm { 37 status = "okay"; 38 pin-location = <GECKO_LOCATION(28) GECKO_PORT_F GECKO_PIN(4)>; 39 prescaler = <1024>; 40 }; 41}; 42 43&flash0 { 44 partitions { 45 compatible = "fixed-partitions"; 46 #address-cells = <1>; 47 #size-cells = <1>; 48 49 /* Reserve 32 kB for the bootloader */ 50 boot_partition: partition@0 { 51 label = "mcuboot"; 52 reg = <0x0 0x00008000>; 53 read-only; 54 }; 55 56 /* Reserve 94 kB for the application in slot 0 */ 57 slot0_partition: partition@8000 { 58 label = "image-0"; 59 reg = <0x00008000 0x00017800>; 60 }; 61 62 /* Reserve 94 kB for the application in slot 1 */ 63 slot1_partition: partition@1f800 { 64 label = "image-1"; 65 reg = <0x0001f800 0x00017800>; 66 }; 67 68 /* Reserve 30 kB for the scratch partition */ 69 scratch_partition: partition@37000 { 70 label = "image-scratch"; 71 reg = <0x00037000 0x00007800>; 72 }; 73 74 /* Set 6Kb of storage at the end of the 256Kb of flash */ 75 storage_partition: partition@3e800 { 76 label = "storage"; 77 reg = <0x0003e800 0x00001800>; 78 }; 79 80 }; 81}; 82 83&usart0 { 84 current-speed = <115200>; 85 pinctrl-0 = <&usart0_default>; 86 pinctrl-names = "default"; 87 status = "okay"; 88}; 89