forked from zephyrproject-rtos/zephyr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gecko: pinctrl: Add missing configuration for Gecko Series usarts
This commit adds missing pinctrl configuration for USARTs in efm32gg_slwstk6121a, efm32gg_stk3701a and efr32_radio boards and enables PINCTRL for efr32_radio_brd4180a and efr32_radio_brd4187c boards. Signed-off-by: Franciszek Pindel <[email protected]> Signed-off-by: Mateusz Holenko <[email protected]>
- Loading branch information
1 parent
d3f1003
commit ad788ad
Showing
8 changed files
with
79 additions
and
8 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
boards/arm/efm32gg_slwstk6121a/efm32gg_slwstk6121a-pinctrl.dtsi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/* | ||
* Copyright (c) 2023 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, A, 0)>, | ||
<GECKO_PSEL(UART_RX, A, 1)>, | ||
<GECKO_LOC(UART_TX, 0)>, | ||
<GECKO_LOC(UART_RX, 0)>; | ||
}; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* | ||
* Copyright (c) 2023 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, A, 0)>, | ||
<GECKO_PSEL(UART_RX, A, 1)>, | ||
<GECKO_LOC(UART_TX, 0)>, | ||
<GECKO_LOC(UART_RX, 0)>; | ||
}; | ||
}; | ||
|
||
usart4_default: usart4_default { | ||
group1 { | ||
psels = <GECKO_PSEL(UART_TX, H, 4)>, | ||
<GECKO_PSEL(UART_RX, H, 5)>, | ||
<GECKO_LOC(UART_TX, 4)>, | ||
<GECKO_LOC(UART_RX, 4)>; | ||
}; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/* | ||
* Copyright (c) 2023 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, A, 0)>, | ||
<GECKO_PSEL(UART_RX, A, 1)>, | ||
<GECKO_LOC(UART_TX, 0)>, | ||
<GECKO_LOC(UART_RX, 0)>; | ||
}; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters