soc: nordic: nrf54h: Allow using NFCT pins as gpios on cpurad

NFCT is by default assigned to application so DT node does
not need to be enabled or reserved in DT to have access to
NFCT registers. On cpurad NFCT must be reserved to enable
register access and then antenna pins can be configured as
gpios.

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
This commit is contained in:
Krzysztof Chruściński 2025-06-12 10:21:42 +02:00 committed by Benjamin Cabé
commit 1dc42fc227

View file

@ -153,7 +153,9 @@ void soc_early_init_hook(void)
nrf_spu_periph_perm_dmasec_set(spu, nrf_address_slave_get(ccm030_addr), true); nrf_spu_periph_perm_dmasec_set(spu, nrf_address_slave_get(ccm030_addr), true);
#endif #endif
if (DT_NODE_HAS_STATUS(DT_NODELABEL(nfct), disabled) && if (((IS_ENABLED(CONFIG_SOC_NRF54H20_CPUAPP) &&
DT_NODE_HAS_STATUS(DT_NODELABEL(nfct), disabled)) ||
DT_NODE_HAS_STATUS(DT_NODELABEL(nfct), reserved)) &&
DT_PROP_OR(DT_NODELABEL(nfct), nfct_pins_as_gpios, 0)) { DT_PROP_OR(DT_NODELABEL(nfct), nfct_pins_as_gpios, 0)) {
nrf_nfct_pad_config_enable_set(NRF_NFCT, false); nrf_nfct_pad_config_enable_set(NRF_NFCT, false);
} }