Skip to content

Commit 0cdb35d

Browse files
decsnykartben
authored andcommitted
boards: mimxrt1050_evk: Switch to variants
Switch from using revisions for hyperflash/qspi to using variants, by popular demand. Signed-off-by: Declan Snyder <[email protected]>
1 parent 8d2a9b3 commit 0cdb35d

34 files changed

+61
-37
lines changed

boards/nxp/mimxrt1050_evk/Kconfig.defconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ config DEVICE_CONFIGURATION_DATA
1010

1111
config NXP_IMX_EXTERNAL_SDRAM
1212
default y
13+
1314
if NETWORKING
1415

1516
config NET_L2_ETHERNET

boards/nxp/mimxrt1050_evk/board.cmake

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,17 @@
33
#
44
# SPDX-License-Identifier: Apache-2.0
55
#
6+
7+
if(NOT ("${BOARD_QUALIFIERS}" MATCHES "qspi"
8+
OR "${BOARD_QUALIFIERS}" MATCHES "hyperflash"))
9+
message(FATAL_ERROR "Please specify a board flash variant for the mimxrt1050_evk:\n"
10+
"mimxrt1050_evk/mimxrt1052/qspi or mimxrt1050_evk/mimxrt1052/hyperflash\n")
11+
endif()
12+
613
board_runner_args(jlink "--device=MCIMXRT1052")
714
board_runner_args(linkserver "--device=MIMXRT1052xxxxB:EVKB-IMXRT1050")
815

9-
if("${BOARD_REVISION}" STREQUAL "qspi")
16+
if("${BOARD_QUALIFIERS}" MATCHES "qspi")
1017
board_runner_args(jlink "--loader=BankAddr=0x60000000&Loader=QSPI")
1118
board_runner_args(pyocd "--target=mimxrt1050_quadspi")
1219
board_runner_args(linkserver "--override=/device/memory/3/flash-driver=MIMXRT1050_SFDP_QSPI.cfx")

boards/nxp/mimxrt1050_evk/board.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ board:
44
vendor: nxp
55
socs:
66
- name: mimxrt1052
7-
revision:
8-
format: "custom"
9-
default: "hyperflash"
10-
revisions:
11-
- name: "hyperflash"
12-
- name: "qspi"
7+
variants:
8+
- name: hyperflash
9+
- name: qspi

boards/nxp/mimxrt1050_evk/doc/index.rst

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ already supported, which can also be re-used on this mimxrt1050_evk board:
138138
+-----------+------------+-------------------------------------+
139139

140140
The default configuration can be found in
141-
:zephyr_file:`boards/nxp/mimxrt1050_evk/mimxrt1050_evk_defconfig`
141+
:zephyr_file:`boards/nxp/mimxrt1050_evk/mimxrt1050_evk_hyperflash_defconfig`
142142

143143
Other hardware features are not currently supported by the port.
144144

@@ -298,6 +298,17 @@ The RT1050 SoC has two USB OTG (USBOTG) controllers that supports both
298298
device and host functions through its micro USB connectors.
299299
Only USB device function is supported in Zephyr at the moment.
300300

301+
Board Targets
302+
*************
303+
304+
This board has two variants that can be targeted,
305+
depending on which flash to set as ``zephyr,flash``:
306+
307+
* ``mimxrt1050_evk/mimxrt1052/hyperflash`` is the default variant for the out of box
308+
setup of the board using hyperflash.
309+
* ``mimxrt1050_evk/mimxrt1052/qspi`` is for a board that has been reworked to use the
310+
qspi flash instead of hyperflash.
311+
301312
Programming and Debugging
302313
*************************
303314

@@ -364,7 +375,7 @@ Here is an example for the :zephyr:code-sample:`hello_world` application.
364375

365376
.. zephyr-app-commands::
366377
:zephyr-app: samples/hello_world
367-
:board: mimxrt1050_evk
378+
:board: mimxrt1050_evk//hyperflash
368379
:goals: flash
369380

370381
Open a serial terminal, reset the board (press the SW4 button), and you should
@@ -373,7 +384,7 @@ see the following message in the terminal:
373384
.. code-block:: console
374385
375386
***** Booting Zephyr OS v1.14.0-rc1 *****
376-
Hello World! mimxrt1050_evk
387+
Hello World! mimxrt1050_evk//hyperflash
377388
378389
Debugging
379390
=========
@@ -382,7 +393,7 @@ Here is an example for the :zephyr:code-sample:`hello_world` application.
382393

383394
.. zephyr-app-commands::
384395
:zephyr-app: samples/hello_world
385-
:board: mimxrt1050_evk
396+
:board: mimxrt1050_evk//hyperflash
386397
:goals: debug
387398

388399
Open a serial terminal, step through the application in your debugger, and you
@@ -391,7 +402,7 @@ should see the following message in the terminal:
391402
.. code-block:: console
392403
393404
***** Booting Zephyr OS v1.14.0-rc1 *****
394-
Hello World! mimxrt1050_evk
405+
Hello World! mimxrt1050_evk//hyperflash
395406
396407
Troubleshooting
397408
===============

boards/nxp/mimxrt1050_evk/mimxrt1050_evk_mimxrt1052_hyperflash.overlay renamed to boards/nxp/mimxrt1050_evk/mimxrt1050_evk_mimxrt1052_hyperflash.dts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
* SPDX-License-Identifier: Apache-2.0
55
*/
66

7+
#include "mimxrt1050_evk.dtsi"
8+
79
/ {
810
chosen {
911
zephyr,flash-controller = &s26ks512s0;

boards/nxp/mimxrt1050_evk/mimxrt1050_evk_mimxrt1052_hyperflash.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# SPDX-License-Identifier: Apache-2.0
55
#
66

7-
identifier: mimxrt1050_evk
7+
identifier: mimxrt1050_evk/mimxrt1052/hyperflash
88
name: NXP MIMXRT1050-EVK
99
type: mcu
1010
arch: arm

boards/nxp/mimxrt1050_evk/mimxrt1050_evk_mimxrt1052_qspi.overlay renamed to boards/nxp/mimxrt1050_evk/mimxrt1050_evk_mimxrt1052_qspi.dts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
* SPDX-License-Identifier: Apache-2.0
55
*/
66

7+
#include "mimxrt1050_evk.dtsi"
8+
79
/ {
810
chosen {
911
zephyr,flash-controller = &is25wp064;

boards/nxp/mimxrt1050_evk/mimxrt1050_evk_mimxrt1052_qspi.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# SPDX-License-Identifier: Apache-2.0
55
#
66

7-
identifier: mimxrt1050_evk@qspi
7+
identifier: mimxrt1050_evk/mimxrt1052/qspi
88
name: NXP MIMXRT1050-EVK-QSPI
99
type: mcu
1010
arch: arm

0 commit comments

Comments
 (0)