Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions dts/bindings/net/wireless/nordic,nrf-nfct-v2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@ properties:
nfct-pins-as-gpios:
type: boolean
description: |
When enabled this property will configure pins dedicated to NFCT
peripheral as regular GPIOs. If this property is applied in cpuapp then node
can be disabled or reserved (because NFCT is by default assigned to cpuapp).
If property is applied in cpurad CPU then node must be reserved.
When enabled, this property will configure the pins dedicated to the NFCT
peripheral as regular GPIOs. If the property is applied in the nRF54H20 cpurad CPU,
then the node must be reserved. Otherwise, the node can be disabled or reserved.

NFC pins in nRF54H series: P2.10 and P2.11
NFC pins in nRF54L series: P1.01 and P1.02
NFC pins in nRF7120: P0.03 and P0.04
2 changes: 1 addition & 1 deletion dts/vendor/nordic/nrf54l_05_10_15.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,7 @@
};

nfct: nfct@d6000 {
compatible = "nordic,nrf-nfct";
compatible = "nordic,nrf-nfct-v2";
reg = <0xd6000 0x1000>;
interrupts = <214 NRF_DEFAULT_IRQ_PRIORITY>;
status = "disabled";
Expand Down
2 changes: 1 addition & 1 deletion dts/vendor/nordic/nrf54lm20_a_b.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,7 @@
};

nfct: nfct@d6000 {
compatible = "nordic,nrf-nfct";
compatible = "nordic,nrf-nfct-v2";
reg = <0xd6000 0x1000>;
interrupts = <214 NRF_DEFAULT_IRQ_PRIORITY>;
status = "disabled";
Expand Down
2 changes: 1 addition & 1 deletion dts/vendor/nordic/nrf7120_enga.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,7 @@
};

nfct: nfct@d6000 {
compatible = "nordic,nrf-nfct";
compatible = "nordic,nrf-nfct-v2";
reg = <0xd6000 0x1000>;
interrupts = <214 NRF_DEFAULT_IRQ_PRIORITY>;
status = "disabled";
Expand Down
24 changes: 13 additions & 11 deletions modules/hal_nordic/nrfx/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -204,18 +204,20 @@ endif()
dt_nodelabel(uicr_path NODELABEL "uicr")
if(DEFINED uicr_path)
dt_prop(nfct_pins_as_gpios PATH ${uicr_path} PROPERTY "nfct-pins-as-gpios")
if(${nfct_pins_as_gpios})
zephyr_library_compile_definitions(
NRF_CONFIG_NFCT_PINS_AS_GPIOS
)
endif()

dt_prop(gpio_as_nreset PATH ${uicr_path} PROPERTY "gpio-as-nreset")
if(${gpio_as_nreset})
zephyr_library_compile_definitions(
NRF_CONFIG_GPIO_AS_PINRESET
)
endif()
endif()

dt_nodelabel(nfct_path NODELABEL "nfct")
if(DEFINED nfct_path AND NOT nfct_pins_as_gpios)
dt_prop(nfct_pins_as_gpios PATH ${nfct_path} PROPERTY "nfct-pins-as-gpios")
endif()

if(${nfct_pins_as_gpios})
zephyr_library_compile_definitions(NRF_CONFIG_NFCT_PINS_AS_GPIOS)
endif()

if(${gpio_as_nreset})
zephyr_library_compile_definitions(NRF_CONFIG_GPIO_AS_PINRESET)
endif()

dt_nodelabel(tampc_path NODELABEL "tampc")
Expand Down
Loading