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 usart4_default: usart4_default { 21 group1 { 22 psels = <GECKO_PSEL(UART_TX, H, 4)>, 23 <GECKO_PSEL(UART_RX, H, 5)>, 24 <GECKO_LOC(UART_TX, 4)>, 25 <GECKO_LOC(UART_RX, 4)>; 26 }; 27 }; 28 29 i2c0_default: i2c0_default { 30 group1 { 31 psels = <GECKO_PSEL(I2C_SDA, C, 0)>, 32 <GECKO_PSEL(I2C_SCL, C, 1)>, 33 <GECKO_LOC(I2C_SDA, 4)>, 34 <GECKO_LOC(I2C_SCL, 4)>; 35 }; 36 }; 37 38 i2c1_default: i2c1_default { 39 group1 { 40 psels = <GECKO_PSEL(I2C_SDA, C, 4)>, 41 <GECKO_PSEL(I2C_SCL, C, 5)>, 42 <GECKO_LOC(I2C_SDA, 0)>, 43 <GECKO_LOC(I2C_SCL, 0)>; 44 }; 45 }; 46 47 i2c2_default: i2c2_default { 48 group1 { 49 psels = <GECKO_PSEL(I2C_SDA, I, 4)>, 50 <GECKO_PSEL(I2C_SCL, I, 5)>, 51 <GECKO_LOC(I2C_SDA, 7)>, 52 <GECKO_LOC(I2C_SCL, 7)>; 53 }; 54 }; 55}; 56