soc: nordic: nrf54h: Add option to use NFCT pins as GPIOs
Protection circuit must be disabled to use NFCT antenna pins as GPIOs. It can be done by adding nfct-pins-as-gpios to nfct node in the devicetree in cpuapp. Node must be disabled as NFCT is not used. In legacy platforms same property was added to uicr node because that information was stored in UICR. In nrf54h20 it is not part of UICR so property is part of nfct node. Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
This commit is contained in:
parent
81df84ae25
commit
7249fac80d
3 changed files with 28 additions and 0 deletions
|
@ -18,6 +18,7 @@
|
|||
#include <hal/nrf_lrcconf.h>
|
||||
#include <hal/nrf_spu.h>
|
||||
#include <hal/nrf_memconf.h>
|
||||
#include <hal/nrf_nfct.h>
|
||||
#include <soc/nrfx_coredep.h>
|
||||
#include <soc_lrcconf.h>
|
||||
#include <dmm.h>
|
||||
|
@ -151,6 +152,11 @@ static int nordicsemi_nrf54h_init(void)
|
|||
nrf_spu_periph_perm_dmasec_set(spu, nrf_address_slave_get(ccm030_addr), true);
|
||||
#endif
|
||||
|
||||
if (DT_NODE_HAS_STATUS(DT_NODELABEL(nfct), disabled) &&
|
||||
DT_PROP_OR(DT_NODELABEL(nfct), nfct_pins_as_gpios, 0)) {
|
||||
nrf_nfct_pad_config_enable_set(NRF_NFCT, false);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue