1/* 2 * Copyright (c) 2022 Silicon Labs 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7#include <dt-bindings/pinctrl/gecko-pinctrl.h> 8 9&pinctrl { 10 /* configuration for usart0 device, operating as SPI */ 11 usart0_default: usart0_default { 12 group1 { 13 psels = <GECKO_PSEL(SPI_SCK, C, 2)>, 14 <GECKO_PSEL(SPI_MOSI, C, 0)>, 15 <GECKO_PSEL(SPI_MISO, C, 1)>; 16 }; 17 }; 18 19 /* configuration for usart1 device, default state - operating as UART */ 20 usart1_default: usart1_default { 21 group1 { 22 /* configure PA.6 as UART_RX and PA.5 as UART_TX */ 23 psels = <GECKO_PSEL(UART_TX, A, 5)>, 24 <GECKO_PSEL(UART_RX, A, 6)>, 25 <GECKO_LOC(UART, 1)>; 26 }; 27 }; 28}; 29