Skip to content

Commit

Permalink
[nrf fromtree] boards: arm: nrf: use UICR nfc-pins-as-gpios devicetre…
Browse files Browse the repository at this point in the history
…e property

Instead of CONFIG_NFCT_PINS_AS_GPIOS (about to be deprecated).

Signed-off-by: Gerard Marull-Paretas <[email protected]>
(cherry picked from commit dd568d0)
  • Loading branch information
gmarull committed Oct 9, 2023
1 parent 0e3c0a4 commit 848f5bf
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 7 deletions.
4 changes: 4 additions & 0 deletions boards/arm/bt610/bt610.dts
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,10 @@
status = "okay";
};

&uicr {
nfct-pins-as-gpios;
};

&gpio0 {
status = "okay";
};
Expand Down
1 change: 0 additions & 1 deletion boards/arm/bt610/bt610_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ CONFIG_ARM_MPU=y

# Enable GPIO
CONFIG_GPIO=y
CONFIG_NFCT_PINS_AS_GPIOS=y

# Enable uart driver
CONFIG_SERIAL=y
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,10 @@
status = "okay";
};

&uicr {
nfct-pins-as-gpios;
};

&gpio0 {
status = "okay";
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,5 @@ CONFIG_GPIO=y

# additional board options
CONFIG_GPIO_AS_PINRESET=y
CONFIG_NFCT_PINS_AS_GPIOS=y

CONFIG_PINCTRL=y
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,10 @@
status = "okay";
};

&uicr {
nfct-pins-as-gpios;
};

&gpio0 {
status = "okay";
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ CONFIG_GPIO=y

# additional board options
CONFIG_GPIO_AS_PINRESET=y
CONFIG_NFCT_PINS_AS_GPIOS=y

CONFIG_PINCTRL=y

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,7 @@
zephyr,sram-non-secure-partition = &sram0_ns;
};
};

&uicr {
nfct-pins-as-gpios;
};
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ CONFIG_HW_STACK_PROTECTION=y
CONFIG_ARM_TRUSTZONE_M=y

CONFIG_GPIO=y
CONFIG_NFCT_PINS_AS_GPIOS=y

CONFIG_SERIAL=y

Expand Down
4 changes: 4 additions & 0 deletions boards/arm/pinetime_devkit0/pinetime_devkit0.dts
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,10 @@
status = "okay";
};

&uicr {
nfct-pins-as-gpios;
};

&gpio0 {
status = "okay";

Expand Down
3 changes: 0 additions & 3 deletions boards/arm/pinetime_devkit0/pinetime_devkit0_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ CONFIG_SERIAL=y
CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y

# use P0.09 and P0.10 as GPIOs
CONFIG_NFCT_PINS_AS_GPIOS=y

# use P0.21 as RST
CONFIG_GPIO_AS_PINRESET=y

Expand Down

0 comments on commit 848f5bf

Please sign in to comment.