1/* 2 * Copyright (c) 2017 Christian Taedcke 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7/dts-v1/; 8#include <silabs/efm32hg322f64.dtsi> 9#include <zephyr/dt-bindings/input/input-event-codes.h> 10 11/ { 12 model = "Silicon Labs EFM32HG SLSTK3400A board"; 13 compatible = "silabs,efm32hg_slstk3400a", "silabs,efm32hg"; 14 15 chosen { 16 zephyr,console = &usart1; 17 zephyr,shell-uart = &usart1; 18 zephyr,sram = &sram0; 19 zephyr,flash = &flash0; 20 }; 21 22 /* These aliases are provided for compatibility with samples */ 23 aliases { 24 led0 = &led0; 25 led1 = &led1; 26 sw0 = &button0; 27 sw1 = &button1; 28 }; 29 30 leds { 31 compatible = "gpio-leds"; 32 led0: led_0 { 33 gpios = <&gpiof 4 0>; 34 label = "LED 0"; 35 }; 36 led1: led_1 { 37 gpios = <&gpiof 5 0>; 38 label = "LED 1"; 39 }; 40 }; 41 42 buttons { 43 compatible = "gpio-keys"; 44 button0: button_0 { 45 /* gpio flags need validation */ 46 gpios = <&gpioc 9 GPIO_ACTIVE_LOW>; 47 label = "User Push Button 0"; 48 zephyr,code = <INPUT_KEY_0>; 49 }; 50 button1: button_1 { 51 /* gpio flags need validation */ 52 gpios = <&gpioc 10 GPIO_ACTIVE_LOW>; 53 label = "User Push Button 1"; 54 zephyr,code = <INPUT_KEY_1>; 55 }; 56 }; 57 58}; 59 60&cpu0 { 61 clock-frequency = <24000000>; 62}; 63 64&gpioa { 65 status = "okay"; 66 67 board-controller-enable { 68 gpio-hog; 69 gpios = <9 GPIO_ACTIVE_HIGH>; 70 output-high; 71 }; 72}; 73 74&gpioc { 75 status = "okay"; 76}; 77 78&gpiof { 79 status = "okay"; 80}; 81 82&usart1 { 83 current-speed = <115200>; 84 location-rx = <GECKO_LOCATION(4) GECKO_PORT_A GECKO_PIN(0)>; 85 location-tx = <GECKO_LOCATION(4) GECKO_PORT_F GECKO_PIN(2)>; 86 status = "okay"; 87}; 88 89&flash0 { 90 91 partitions { 92 compatible = "fixed-partitions"; 93 #address-cells = <1>; 94 #size-cells = <1>; 95 96 /* Set 4Kb of storage at the end of the 64Kb of flash */ 97 storage_partition: partition@f000 { 98 label = "storage"; 99 reg = <0x0000f000 0x00001000>; 100 }; 101 102 }; 103}; 104