Skip to content

Commit dcb05ce

Browse files
jacobwfabiobaltieri
authored andcommitted
boards: adafruit feather nrf52840 convert to variants
Update both versions of adafruit feather nrf52840 to be variants rather than separate boards. The aim is to provide a more consistent approach and to remove some unnecessary Kconfig redundancy. Signed-off-by: Jacob Winther <[email protected]>
1 parent 91cbbe8 commit dcb05ce

15 files changed

+37
-37
lines changed

boards/adafruit/feather_nrf52840/Kconfig.adafruit_feather_nrf52840_sense renamed to boards/adafruit/feather_nrf52840/Kconfig.adafruit_feather_nrf52840

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
# Copyright (c) 2024 Jacob Winther
55
# SPDX-License-Identifier: Apache-2.0
66

7-
config BOARD_ADAFRUIT_FEATHER_NRF52840_SENSE
7+
config BOARD_ADAFRUIT_FEATHER_NRF52840
88
select SOC_NRF52840_QIAA

boards/adafruit/feather_nrf52840/Kconfig.adafruit_feather_nrf52840_express

Lines changed: 0 additions & 8 deletions
This file was deleted.

boards/adafruit/feather_nrf52840/Kconfig.defconfig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
# Copyright (c) 2024 Jacob Winther
55
# SPDX-License-Identifier: Apache-2.0
66

7-
if (BOARD_ADAFRUIT_FEATHER_NRF52840_EXPRESS || BOARD_ADAFRUIT_FEATHER_NRF52840_SENSE)
7+
if BOARD_ADAFRUIT_FEATHER_NRF52840
88

99
config BT_CTLR
1010
default BT
1111

12-
endif # BOARD_ADAFRUIT_FEATHER_NRF52840_EXPRESS || BOARD_ADAFRUIT_FEATHER_NRF52840_SENSE
12+
endif # BOARD_ADAFRUIT_FEATHER_NRF52840

boards/adafruit/feather_nrf52840/adafruit_feather_nrf52840_express.dts renamed to boards/adafruit/feather_nrf52840/adafruit_feather_nrf52840.dts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
/ {
1313
model = "Adafruit Feather nRF52840 Express";
14-
compatible = "adafruit,feather_nrf52840-express";
14+
compatible = "adafruit,feather-nrf52840";
1515

1616
chosen {
1717
zephyr,console = &uart0;

boards/adafruit/feather_nrf52840/adafruit_feather_nrf52840_express.yaml renamed to boards/adafruit/feather_nrf52840/adafruit_feather_nrf52840.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
identifier: adafruit_feather_nrf52840_express
1+
identifier: adafruit_feather_nrf52840/nrf52840
22
name: Adafruit Feather nRF52840 Express
33
type: mcu
44
arch: arm

boards/adafruit/feather_nrf52840/adafruit_feather_nrf52840_express_defconfig renamed to boards/adafruit/feather_nrf52840/adafruit_feather_nrf52840_defconfig

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
# Enable MPU
44
CONFIG_ARM_MPU=y
55

6-
# enable GPIO
6+
# Enable GPIO
77
CONFIG_GPIO=y
88

9-
# enable uart driver
9+
# Enable UART driver
1010
CONFIG_SERIAL=y
1111

12-
# enable console
12+
# Enable console
1313
CONFIG_CONSOLE=y
1414
CONFIG_UART_CONSOLE=y

boards/adafruit/feather_nrf52840/adafruit_feather_nrf52840_sense.dts renamed to boards/adafruit/feather_nrf52840/adafruit_feather_nrf52840_nrf52840_sense.dts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
/ {
1212
model = "Adafruit Feather nRF52840 Sense";
13-
compatible = "adafruit,feather_nrf52840-sense";
13+
compatible = "adafruit,feather-nrf52840-sense";
1414

1515
chosen {
1616
zephyr,console = &cdc_acm_uart0;
@@ -48,6 +48,7 @@
4848
*/
4949
reserved_partition_0: partition@0 {
5050
label = "SoftDevice";
51+
read-only;
5152
reg = <0x000000000 DT_SIZE_K(152)>;
5253
};
5354
code_partition: partition@26000 {
@@ -66,6 +67,7 @@
6667

6768
boot_partition: partition@f4000 {
6869
label = "UF2";
70+
read-only;
6971
reg = <0x000f4000 DT_SIZE_K(48)>;
7072
};
7173
};

boards/adafruit/feather_nrf52840/adafruit_feather_nrf52840_sense.yaml renamed to boards/adafruit/feather_nrf52840/adafruit_feather_nrf52840_nrf52840_sense.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
identifier: adafruit_feather_nrf52840_sense
1+
identifier: adafruit_feather_nrf52840/nrf52840/sense
22
name: Adafruit Feather nRF52840 Sense
33
type: mcu
44
arch: arm

boards/adafruit/feather_nrf52840/board.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
board_runner_args(jlink "--device=nRF52840_xxAA" "--speed=4000")
44
board_runner_args(pyocd "--target=nrf52840" "--frequency=4000000")
5-
if(CONFIG_BOARD_ADAFRUIT_FEATHER_NRF52840_SENSE)
6-
include(${ZEPHYR_BASE}/boards/common/uf2.board.cmake)
5+
if(CONFIG_BUILD_OUTPUT_UF2)
6+
include(${ZEPHYR_BASE}/boards/common/uf2.board.cmake)
77
endif()
88
include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake)
99
include(${ZEPHYR_BASE}/boards/common/pyocd.board.cmake)

0 commit comments

Comments
 (0)