Skip to content

Commit 9d01746

Browse files
nordic-krchcfriedt
authored andcommitted
drivers: serial: Remove deprecated uart_nrfx_uarte2 driver
Use of uart_nrfx_uarte2 driver was deprecated before 4.1 release and now can be removed. Signed-off-by: Krzysztof Chruściński <[email protected]>
1 parent 15eeb3d commit 9d01746

File tree

5 files changed

+1
-1154
lines changed

5 files changed

+1
-1154
lines changed

drivers/serial/CMakeLists.txt

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ zephyr_library_sources_ifdef(CONFIG_UART_MSPM0 uart_mspm0.c)
6060
zephyr_library_sources_ifdef(CONFIG_UART_NEORV32 uart_neorv32.c)
6161
zephyr_library_sources_ifdef(CONFIG_UART_NPCX uart_npcx.c)
6262
zephyr_library_sources_ifdef(CONFIG_UART_NRFX_UART uart_nrfx_uart.c)
63+
zephyr_library_sources_ifdef(CONFIG_UART_NRFX_UARTE uart_nrfx_uarte.c)
6364
zephyr_library_sources_ifdef(CONFIG_UART_NS16550 uart_ns16550.c)
6465
zephyr_library_sources_ifdef(CONFIG_UART_NUMAKER uart_numaker.c)
6566
zephyr_library_sources_ifdef(CONFIG_UART_NUMICRO uart_numicro.c)
@@ -110,16 +111,6 @@ zephyr_library_sources_ifdef(CONFIG_USART_SAM usart_sam.c)
110111
zephyr_library_sources_ifdef(CONFIG_USERSPACE uart_handlers.c)
111112
# zephyr-keep-sorted-stop
112113

113-
if (CONFIG_UART_NRFX_UARTE)
114-
if (CONFIG_UART_NRFX_UARTE_LEGACY_SHIM)
115-
zephyr_library_sources(uart_nrfx_uarte.c)
116-
else()
117-
message(DEPRECATION
118-
"Do not set CONFIG_UART_NRFX_UARTE_LEGACY_SHIM=n as this option is deprecated.")
119-
zephyr_library_sources(uart_nrfx_uarte2.c)
120-
endif()
121-
endif()
122-
123114
if(CONFIG_UART_NATIVE_PTY)
124115
zephyr_library_compile_definitions(NO_POSIX_CHEATS)
125116
zephyr_library_sources(uart_native_pty.c)

drivers/serial/Kconfig.nrfx

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ config UART_NRFX_UART
2525
config UART_NRFX_UARTE
2626
def_bool y
2727
depends on DT_HAS_NORDIC_NRF_UARTE_ENABLED
28-
imply NRFX_UARTE_CONFIG_SKIP_PSEL_CONFIG if !UART_NRFX_UARTE_LEGACY_SHIM
29-
imply NRFX_UARTE_CONFIG_SKIP_GPIO_CONFIG if !UART_NRFX_UARTE_LEGACY_SHIM
3028

3129
config UART_NRFX_UARTE_NO_IRQ
3230
bool "Polling without interrupt"
@@ -36,23 +34,9 @@ config UART_NRFX_UARTE_NO_IRQ
3634
When enabled, then interrupt handler is not used at all and it is possible
3735
to get to the lowest power state after uart_poll_out if receiver is not used.
3836

39-
config UART_NRFX_UARTE_LEGACY_SHIM
40-
bool "Legacy UARTE shim"
41-
depends on UART_NRFX_UARTE
42-
default y
43-
help
44-
Disabling this option is deprecated.
45-
46-
config DEPRECATED_UART_NRFX_UARTE_LEGACY_SHIM
47-
bool
48-
default y if !UART_NRFX_UARTE_LEGACY_SHIM
49-
depends on UART_NRFX_UARTE
50-
select DEPRECATED
51-
5237
config UART_NRFX_UARTE_ENHANCED_RX
5338
bool "Enhanced RX handling"
5439
depends on UART_ASYNC_API
55-
depends on UART_NRFX_UARTE_LEGACY_SHIM
5640
depends on !(UART_0_NRF_HW_ASYNC || UART_1_NRF_HW_ASYNC || UART_2_NRF_HW_ASYNC)
5741
default y
5842
help
@@ -65,7 +49,6 @@ config UART_NRFX_UARTE_ENHANCED_RX
6549
config UART_ASYNC_TX_CACHE_SIZE
6650
int "TX cache buffer size"
6751
depends on UART_ASYNC_API
68-
depends on UART_NRFX_UARTE_LEGACY_SHIM
6952
default 8
7053
help
7154
For UARTE, TX cache buffer is used when provided TX buffer is not located

drivers/serial/Kconfig.nrfx_uart_instance

Lines changed: 0 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
config UART_$(nrfx_uart_num)_INTERRUPT_DRIVEN
77
bool "Interrupt support on port $(nrfx_uart_num)"
88
depends on UART_INTERRUPT_DRIVEN
9-
select UART_ASYNC_TO_INT_DRIVEN_API if !UART_NRFX_UARTE_LEGACY_SHIM
109
default y
1110
help
1211
This option enables UART interrupt support on port $(nrfx_uart_num).
@@ -29,9 +28,6 @@ config UART_$(nrfx_uart_num)_ENHANCED_POLL_OUT
2928
When enabled, polling out does not trigger interrupt which stops TX.
3029
Feature uses a PPI channel.
3130

32-
config NRFX_UARTE$(nrfx_uart_num)
33-
def_bool y if HAS_HW_NRF_UARTE$(nrfx_uart_num) && !UART_NRFX_UARTE_LEGACY_SHIM
34-
3531
config UART_$(nrfx_uart_num)_NRF_PARITY_BIT
3632
bool "Parity bit"
3733
help
@@ -40,7 +36,6 @@ config UART_$(nrfx_uart_num)_NRF_PARITY_BIT
4036
config UART_$(nrfx_uart_num)_NRF_TX_BUFFER_SIZE
4137
int "Size of RAM buffer"
4238
depends on HAS_HW_NRF_UARTE$(nrfx_uart_num)
43-
depends on UART_NRFX_UARTE_LEGACY_SHIM
4439
range 1 $(UINT16_MAX)
4540
default 32
4641
help
@@ -52,7 +47,6 @@ config UART_$(nrfx_uart_num)_NRF_HW_ASYNC
5247
bool "Use hardware RX byte counting"
5348
depends on HAS_HW_NRF_UARTE$(nrfx_uart_num)
5449
depends on UART_ASYNC_API
55-
depends on UART_NRFX_UARTE_LEGACY_SHIM
5650
depends on HAS_HW_NRF_PPI || HAS_HW_NRF_DPPIC
5751
select NRFX_GPPI
5852
help
@@ -65,7 +59,6 @@ config UART_$(nrfx_uart_num)_NRF_ASYNC_LOW_POWER
6559
bool "Low power mode"
6660
depends on HAS_HW_NRF_UARTE$(nrfx_uart_num)
6761
depends on UART_ASYNC_API
68-
depends on UART_NRFX_UARTE_LEGACY_SHIM
6962
default y if !PM_DEVICE
7063
help
7164
When enabled, UARTE is enabled before each TX or RX usage and disabled
@@ -78,46 +71,3 @@ config UART_$(nrfx_uart_num)_NRF_ASYNC_LOW_POWER
7871
config UART_$(nrfx_uart_num)_NRF_HW_ASYNC_TIMER
7972
int "Timer instance"
8073
depends on UART_$(nrfx_uart_num)_NRF_HW_ASYNC
81-
82-
config UART_$(nrfx_uart_num)_HAS_RX_CACHE_SECTION
83-
def_bool $(dt_nodelabel_has_prop,uart$(nrfx_uart_num),memory-regions)
84-
imply NRFX_UARTE_CONFIG_RX_CACHE_ENABLED
85-
help
86-
This helper symbol indicates the existence of a linker section which
87-
can be dedicated to an RX cache buffer.
88-
89-
config UART_$(nrfx_uart_num)_TX_CACHE_SIZE
90-
int "TX cache buffer size"
91-
depends on !UART_NRFX_UARTE_LEGACY_SHIM
92-
default 8
93-
help
94-
For UARTE, TX cache buffer is used when provided TX buffer is not located
95-
in memory which can be used by the EasyDMA.
96-
97-
config UART_$(nrfx_uart_num)_RX_CACHE_SIZE
98-
int "RX cache buffer size"
99-
depends on !UART_NRFX_UARTE_LEGACY_SHIM
100-
default 32 if UART_$(nrfx_uart_num)_HAS_RX_CACHE_SECTION
101-
default 5
102-
range 5 $(UINT8_MAX)
103-
help
104-
For UARTE, RX cache buffer is used when provided RX buffer is not located
105-
in memory which can be used by the EasyDMA. It is also used to store
106-
flushed data.
107-
108-
config UART_$(nrfx_uart_num)_A2I_RX_SIZE
109-
depends on !UART_NRFX_UARTE_LEGACY_SHIM
110-
int "Asynchronous to interrupt driven adaptation layer RX buffer size"
111-
default 64 if UART_$(nrfx_uart_num)_INTERRUPT_DRIVEN
112-
default 0
113-
help
114-
Amount of space dedicated for RX. It is divided into chunks with some
115-
amount of that space used for control data.
116-
117-
config UART_$(nrfx_uart_num)_A2I_RX_BUF_COUNT
118-
depends on !UART_NRFX_UARTE_LEGACY_SHIM
119-
int "Asynchronous to interrupt driven adaptation layer RX buffer count"
120-
default 8 if UART_$(nrfx_uart_num)_INTERRUPT_DRIVEN
121-
default 0
122-
help
123-
Number of chunks into RX space is divided.

0 commit comments

Comments
 (0)