Skip to content

Commit 1dc42fc

Browse files
nordic-krchkartben
authored andcommitted
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>
1 parent b84dd5b commit 1dc42fc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

soc/nordic/nrf54h/soc.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,9 @@ void soc_early_init_hook(void)
153153
nrf_spu_periph_perm_dmasec_set(spu, nrf_address_slave_get(ccm030_addr), true);
154154
#endif
155155

156-
if (DT_NODE_HAS_STATUS(DT_NODELABEL(nfct), disabled) &&
156+
if (((IS_ENABLED(CONFIG_SOC_NRF54H20_CPUAPP) &&
157+
DT_NODE_HAS_STATUS(DT_NODELABEL(nfct), disabled)) ||
158+
DT_NODE_HAS_STATUS(DT_NODELABEL(nfct), reserved)) &&
157159
DT_PROP_OR(DT_NODELABEL(nfct), nfct_pins_as_gpios, 0)) {
158160
nrf_nfct_pad_config_enable_set(NRF_NFCT, false);
159161
}

0 commit comments

Comments
 (0)