Skip to content

Commit

Permalink
boards: mimxrt1060_evk: Convert to variants
Browse files Browse the repository at this point in the history
Convert qspi and hyperflash to variants instead of revisions by popular
demand.

And convert evkb into a revision instead of a different board.

Signed-off-by: Declan Snyder <[email protected]>
  • Loading branch information
decsny committed Oct 15, 2024
1 parent 2217a25 commit c119645
Show file tree
Hide file tree
Showing 18 changed files with 34 additions and 33 deletions.
2 changes: 1 addition & 1 deletion boards/nxp/mimxrt1060_evk/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ endif()

if(CONFIG_NXP_IMXRT_BOOT_HEADER)
zephyr_library()
if(CONFIG_BOARD_MIMXRT1060_EVKB)
if(${BOARD_REVISION} STREQUAL "B")
set(FLASH_CONF evkbmimxrt1060_flexspi_nor_config.c)
set(BOARD_NAME evkbmimxrt1060)
elseif(CONFIG_DT_HAS_NXP_IMX_FLEXSPI_NOR_ENABLED)
Expand Down
4 changes: 2 additions & 2 deletions boards/nxp/mimxrt1060_evk/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Copyright 2018,2023 NXP
# SPDX-License-Identifier: Apache-2.0

if BOARD_MIMXRT1060_EVK || BOARD_MIMXRT1060_EVKB
if BOARD_MIMXRT1060_EVK

config DEVICE_CONFIGURATION_DATA
default y
Expand All @@ -25,4 +25,4 @@ endif # ETH_MCUX

endif # NETWORKING

endif # BOARD_MIMXRT1060_EVK || BOARD_MIMXRT1060_EVKB
endif # BOARD_MIMXRT1060_EVK
5 changes: 0 additions & 5 deletions boards/nxp/mimxrt1060_evk/Kconfig.mimxrt1060_evkb

This file was deleted.

4 changes: 2 additions & 2 deletions boards/nxp/mimxrt1060_evk/board.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ board_runner_args(pyocd "--target=mimxrt1060")
board_runner_args(jlink "--device=MIMXRT1062xxx6A")
board_runner_args(linkserver "--device=MIMXRT1062xxxxA:EVK-MIMXRT1060")

if (("${BOARD_REVISION}" STREQUAL "qspi") OR CONFIG_BOARD_MIMXRT1060_EVKB)
if (("${BOARD_QUALIFIERS}" MATCHES "qspi") OR ("${BOARD_REVISION}" STREQUAL "B"))
board_runner_args(jlink "--loader=BankAddr=0x60000000&Loader=QSPI")
elseif ("${BOARD_REVISION}" STREQUAL "hyperflash")
elseif ("${BOARD_QUALIFIERS}" MATCHES "hyperflash")
board_runner_args(jlink "--loader=BankAddr=0x60000000&Loader=HyperFlash")
endif()

Expand Down
14 changes: 8 additions & 6 deletions boards/nxp/mimxrt1060_evk/board.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@ boards:
vendor: nxp
socs:
- name: mimxrt1062
variants:
- name: "qspi"
- name: "hyperflash"
revision:
format: "custom"
- name: mimxrt1060_evkb
full_name: MIMXRT1060-EVKB
vendor: nxp
socs:
- name: mimxrt1062
format: "letter"
default: "A"
revisions:
- name: "A"
- name: "B"
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
* SPDX-License-Identifier: Apache-2.0
*/

#include "mimxrt1060_evk.dtsi"

/ {
chosen {
zephyr,flash-controller = &s26ks512s0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# SPDX-License-Identifier: Apache-2.0
#

identifier: mimxrt1060_evk@hyperflash
identifier: mimxrt1060_evk/mimxrt1062/hyperflash
name: NXP MIMXRT1060-EVK-HYPERFLASH
type: mcu
arch: arm
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
* SPDX-License-Identifier: Apache-2.0
*/

#include "mimxrt1060_evk.dtsi"

/ {
chosen {
zephyr,flash-controller = &is25wp064;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
* SPDX-License-Identifier: Apache-2.0
*/

#include "mimxrt1060_evk.dts"
#include "mimxrt1060_evk_mimxrt1062_qspi.overlay"

/* FLEXPWM not routed to LED on this EVK */
&flexpwm2_pwm3 {
status = "disabled";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# SPDX-License-Identifier: Apache-2.0
#

identifier: mimxrt1060_evkb
identifier: mimxrt1060_evk@B/mimxrt1062/qspi
name: NXP MIMXRT1060-EVKB
type: mcu
arch: arm
Expand Down
13 changes: 13 additions & 0 deletions boards/nxp/mimxrt1060_evk/mimxrt1060_evk_mimxrt1062_qspi_defconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#
# Copyright (c) 2018, NXP
#
# SPDX-License-Identifier: Apache-2.0
#

CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y
CONFIG_SERIAL=y
CONFIG_GPIO=y
CONFIG_ARM_MPU=y
CONFIG_HW_STACK_PROTECTION=y
CONFIG_PINCTRL=y
9 changes: 0 additions & 9 deletions boards/nxp/mimxrt1060_evk/revision.cmake

This file was deleted.

2 changes: 1 addition & 1 deletion samples/boards/nxp/mimxrt1060_evk/system_off/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ tests:
build_only: true
platform_allow:
- mimxrt1060_evk
- mimxrt1060_evkb
- mimxrt1060_evk@B
integration_platforms:
- mimxrt1060_evk
2 changes: 1 addition & 1 deletion samples/drivers/i2s/output/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@ To build and flash the application:

.. zephyr-app-commands::
:zephyr-app: samples/drivers/i2s/output
:board: mimxrt1060_evkb
:board: mimxrt1060_evk@B
:goals: build flash
:compact:
1 change: 0 additions & 1 deletion samples/subsys/usb/dfu/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ common:
- mimxrt1060_evk
- sam4l_ek
- mimxrt1050_evk
- mimxrt1060_evk@hyperflash
- nucleo_f207zg
- teensy40
- teensy41
Expand Down

0 comments on commit c119645

Please sign in to comment.