boards: efm32gg_sltb009a: uart: switch to new pinctrl API

The board uses pinctrl API. This commit updates pin USART pin definition
to be compliant with new API.

Signed-off-by: Karol Gugala <kgugala@antmicro.com>
This commit is contained in:
Karol Gugala 2024-01-06 17:14:42 +01:00 committed by Carles Cufí
parent 617b45ab59
commit 57238057f0
2 changed files with 22 additions and 2 deletions

View file

@ -0,0 +1,19 @@
/*
* Copyright (c) 2024 Antmicro <www.antmicro.com>
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <dt-bindings/pinctrl/gecko-pinctrl-s1.h>
&pinctrl {
/* configuration for usart0 device, default state - operating as UART */
usart0_default: usart0_default {
group1 {
psels = <GECKO_PSEL(UART_TX, E, 0)>,
<GECKO_PSEL(UART_RX, E, 1)>,
<GECKO_LOC(UART_TX, 7)>,
<GECKO_LOC(UART_RX, 6)>;
};
};
};

View file

@ -7,6 +7,7 @@
/dts-v1/;
#include <silabs/efm32gg12b810f1024gm64.dtsi>
#include <zephyr/dt-bindings/input/input-event-codes.h>
#include "efm32gg_sltb009a-pinctrl.dtsi"
/ {
model = "Silicon Labs EFM32GG SLTB009A board";
@ -57,8 +58,8 @@
&usart0 {
current-speed = <115200>;
location-rx = <GECKO_LOCATION(1) GECKO_PORT_E GECKO_PIN(6)>;
location-tx = <GECKO_LOCATION(1) GECKO_PORT_E GECKO_PIN(7)>;
pinctrl-0 = <&usart0_default>;
pinctrl-names = "default";
status = "okay";
};