Skip to content

Commit 9305851

Browse files
degjorvarlubos
authored andcommitted
modules: trusted-firmware-m: Update config used in set NFCT pins as GPIOS
Add support for NFCT pins as GPIOS for /ns targets to 54L series. Update NFCT pins config to use the same config on all devices. Signed-off-by: Dag Erik Gjørvad <[email protected]>
1 parent 338bd31 commit 9305851

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

modules/trusted-firmware-m/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ endif()
144144
if(CONFIG_NFCT_PINS_AS_GPIOS OR CONFIG_TFM_NFCT_PINS_AS_GPIOS)
145145
set_property(TARGET zephyr_property_target
146146
APPEND PROPERTY TFM_CMAKE_OPTIONS
147-
-DCONFIG_NFCT_PINS_AS_GPIOS=ON
147+
-DNRF_CONFIG_NFCT_PINS_AS_GPIOS=ON
148148
)
149149
endif()
150150

modules/trusted-firmware-m/Kconfig

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ config TFM_CPU_FREQ_MHZ
350350
config TFM_NFCT_PINS_AS_GPIOS
351351
bool
352352
default y if !DT_HAS_NORDIC_NRF_NFCT_ENABLED
353-
depends on SOC_NRF5340_CPUAPP
353+
depends on SOC_NRF5340_CPUAPP || SOC_SERIES_NRF54LX
354354
help
355355
Two pins are usually reserved for NFC in SoCs that implement the
356356
NFCT peripheral. This option switches them to normal GPIO mode.
@@ -360,6 +360,8 @@ config TFM_NFCT_PINS_AS_GPIOS
360360
flashing device using the image which has this option disabled.
361361

362362
NFC pins in nRF5340: P0.02 and P0.03
363+
NFC pins in nRF54L15/10/05: P1.02 and P1.03
364+
NFC pins in nRF54LM20A: P1.01 and P1.02
363365

364366
TF-M configures these pins as GPIOS when the NFCT peripheral is not
365367
enabled in the device-tree of the target.

modules/trusted-firmware-m/tfm_boards/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,8 @@ if (NRF_ALLOW_NON_SECURE_FAULT_HANDLING)
144144
)
145145
endif()
146146

147-
if (CONFIG_NFCT_PINS_AS_GPIOS)
148-
target_compile_definitions(platform_s PUBLIC CONFIG_NFCT_PINS_AS_GPIOS)
147+
if(NRF_CONFIG_NFCT_PINS_AS_GPIOS)
148+
target_compile_definitions(platform_s PUBLIC NRF_CONFIG_NFCT_PINS_AS_GPIOS)
149149
endif()
150150

151151
if (TFM_CPU_FREQ_MHZ)

0 commit comments

Comments
 (0)