1/* 2 * Copyright (c) 2023 Antmicro <www.antmicro.com> 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7#include <dt-bindings/pinctrl/gecko-pinctrl-s1.h> 8 9&pinctrl { 10 /* configuration for usart0 device, default state - operating as UART */ 11 usart0_default: usart0_default { 12 group1 { 13 psels = <GECKO_PSEL(UART_TX, A, 0)>, 14 <GECKO_PSEL(UART_RX, A, 1)>, 15 <GECKO_LOC(UART_TX, 0)>, 16 <GECKO_LOC(UART_RX, 0)>; 17 }; 18 }; 19 20 usart1_default: usart1_default { 21 group1 { 22 psels = <GECKO_PSEL(SPIM_SCK, C, 8)>, 23 <GECKO_PSEL(SPIM_MISO, C, 7)>, 24 <GECKO_PSEL(SPIM_MOSI, C, 6)>, 25 <GECKO_LOC(SPI_SCK, 11)>, 26 <GECKO_LOC(SPI_MISO, 11)>, 27 <GECKO_LOC(SPI_MOSI, 11)>; 28 }; 29 }; 30 31 usart2_default: usart2_default { 32 group1 { 33 psels = <GECKO_PSEL(SPIM_SCK, A, 8)>, 34 <GECKO_PSEL(SPIM_MISO, A, 7)>, 35 <GECKO_PSEL(SPIM_MOSI, A, 6)>, 36 <GECKO_LOC(SPI_SCK, 1)>, 37 <GECKO_LOC(SPI_MISO, 1)>, 38 <GECKO_LOC(SPI_MOSI, 1)>; 39 }; 40 }; 41}; 42