Skip to content

Commit

Permalink
boards: nxp: add RT1060 EVKC support
Browse files Browse the repository at this point in the history
MIMXRT1060 EVK rev C initial support files.

Signed-off-by: David Leach <[email protected]>
  • Loading branch information
dleach02 committed Jan 18, 2025
1 parent 561ee12 commit 36a2dd5
Show file tree
Hide file tree
Showing 16 changed files with 145 additions and 29 deletions.
4 changes: 2 additions & 2 deletions boards/nxp/mimxrt1060_evk/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright 2018-2022 NXP
# Copyright 2018-2022, 2025 NXP
#
# SPDX-License-Identifier: Apache-2.0
#
Expand All @@ -12,7 +12,7 @@ endif()

if(CONFIG_NXP_IMXRT_BOOT_HEADER)
zephyr_library()
if(${BOARD_REVISION} STREQUAL "B")
if((${BOARD_REVISION} STREQUAL "B") OR (${BOARD_REVISION} STREQUAL "C"))
set(FLASH_CONF evkbmimxrt1060_flexspi_nor_config.c)
set(BOARD_NAME evkbmimxrt1060)
elseif(CONFIG_DT_HAS_NXP_IMX_FLEXSPI_NOR_ENABLED)
Expand Down
2 changes: 1 addition & 1 deletion boards/nxp/mimxrt1060_evk/board.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ board_runner_args(pyocd "--target=mimxrt1060")
board_runner_args(jlink "--device=MIMXRT1062xxx6A")
board_runner_args(linkserver "--device=MIMXRT1062xxxxA:EVK-MIMXRT1060")

if(("${BOARD_QUALIFIERS}" MATCHES "qspi") OR ("${BOARD_REVISION}" STREQUAL "B"))
if(("${BOARD_QUALIFIERS}" MATCHES "qspi") OR ("${BOARD_REVISION}" STREQUAL "B") OR ("${BOARD_REVISION}" STREQUAL "C"))
board_runner_args(jlink "--loader=BankAddr=0x60000000&Loader=QSPI")
elseif ("${BOARD_QUALIFIERS}" MATCHES "hyperflash")
board_runner_args(jlink "--loader=BankAddr=0x60000000&Loader=HyperFlash")
Expand Down
3 changes: 2 additions & 1 deletion boards/nxp/mimxrt1060_evk/board.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ boards:
- name: "hyperflash"
revision:
format: "letter"
default: "A"
default: "C"
revisions:
- name: "A"
- name: "B"
- name: "C"
77 changes: 67 additions & 10 deletions boards/nxp/mimxrt1060_evk/doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -316,8 +316,28 @@ The MIMXRT1060 SoC has eight UARTs. ``LPUART1`` is configured for the console,
``LPUART3`` for the Bluetooth Host Controller Interface (BT HCI), and the
remaining are not used.

Board Targets
*************
Board Revisions and Targets
***************************

There are three revisions of this board.

Rev A:

* Initial version

Rev B:

* adds the M.2 connector for Wi-Fi/BLE
* adds audio expansion connector J23
* USER LED1 changed to GPIO1 pin 8

Rev C:

* Replaces audio codec WM8960(EOL) to WM8962
* Replaces 32.768 KHz oscillator from ASH7K-32.768KHz-T(EOL)to ASH7KW-32.768KHZ-L-T
* Replaces motion sensor from FXOS8700CQ(EOL) to FXLS8974CFR3
* Re-assigns Bluetooth Audio PCM with dedicated I2S2
* Re-assigns Bluetooth interface UART_CTS, UART_RTS to hardware PIN

This board has two variants that can be targeted,
depending on which flash to set as ``zephyr,flash``:
Expand Down Expand Up @@ -387,10 +407,28 @@ Flashing

Here is an example for the :zephyr:code-sample:`hello_world` application.

.. zephyr-app-commands::
:zephyr-app: samples/hello_world
:board: mimxrt1060_evk//qspi
:goals: flash
.. tabs::

.. group-tab:: i.MX RT1060 Rev A

.. zephyr-app-commands::
:zephyr-app: samples/hello_world
:board: mimxrt1060_evk@A//qspi
:goals: flash

.. group-tab:: i.MX RT1060 Rev B

.. zephyr-app-commands::
:zephyr-app: samples/hello_world
:board: mimxrt1060_evk@B//qspi
:goals: flash

.. group-tab:: i.MX RT1060 Rev C (default)

.. zephyr-app-commands::
:zephyr-app: samples/hello_world
:board: mimxrt1060_evk@C//qspi
:goals: flash

Open a serial terminal, reset the board (press the SW9 button), and you should
see the following message in the terminal:
Expand All @@ -405,10 +443,29 @@ Debugging

Here is an example for the :zephyr:code-sample:`hello_world` application.

.. zephyr-app-commands::
:zephyr-app: samples/hello_world
:board: mimxrt1060_evk//qspi
:goals: debug
.. tabs::

.. group-tab:: i.MX RT1060 Rev A

.. zephyr-app-commands::
:zephyr-app: samples/hello_world
:board: mimxrt1060_evk@A//qspi
:goals: debug

.. group-tab:: i.MX RT1060 Rev B

.. zephyr-app-commands::
:zephyr-app: samples/hello_world
:board: mimxrt1060_evk@B//qspi
:goals: debug

.. group-tab:: i.MX RT1060 Rev C (default)

.. zephyr-app-commands::
:zephyr-app: samples/hello_world
:board: mimxrt1060_evk@C//qspi
:goals: debug


Open a serial terminal, step through the application in your debugger, and you
should see the following message in the terminal:
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/mimxrt1062/qspi
identifier: mimxrt1060_evk@A/mimxrt1062/qspi
name: NXP MIMXRT1060-EVK
type: mcu
arch: arm
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,20 @@ toolchain:
ram: 32768
flash: 8192
supported:
- adc
- arduino_gpio
- arduino_i2c
- arduino_serial
- arduino_spi
- can
- counter
- display
- dma
- gpio
- i2c
- netif:eth
- sdhc
- spi
- usb_device
- dma
- can
- watchdog
- adc
vendor: nxp
15 changes: 15 additions & 0 deletions boards/nxp/mimxrt1060_evk/mimxrt1060_evk_mimxrt1062_qspi_C.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/*
* Copyright (c) 2022, Whisper.ai
*
* SPDX-License-Identifier: Apache-2.0
*/

/* FLEXPWM not routed to LED on this EVK */
&flexpwm2_pwm3 {
status = "disabled";
};

&green_led {
gpios = <&gpio1 8 GPIO_ACTIVE_HIGH>;
label = "User LED1";
};
34 changes: 34 additions & 0 deletions boards/nxp/mimxrt1060_evk/mimxrt1060_evk_mimxrt1062_qspi_C.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
#
# Copyright (c) 2022, Whisper.ai
#
# SPDX-License-Identifier: Apache-2.0
#

identifier: mimxrt1060_evk@C/mimxrt1062/qspi
name: NXP MIMXRT1060-EVKC
type: mcu
arch: arm
toolchain:
- zephyr
- gnuarmemb
- xtools
ram: 32768
flash: 8192
supported:
- adc
- arduino_gpio
- arduino_i2c
- arduino_serial
- arduino_spi
- can
- counter
- display
- dma
- gpio
- i2c
- netif:eth
- sdhc
- spi
- usb_device
- watchdog
vendor: nxp
5 changes: 4 additions & 1 deletion samples/bluetooth/peripheral_ht/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,15 @@ tests:
platform_allow:
- mimxrt1020_evk
- mimxrt1050_evk/mimxrt1052/hyperflash
- mimxrt1060_evk/mimxrt1062/qspi
- mimxrt1060_evk@A/mimxrt1062/qspi
- mimxrt1060_evk@B/mimxrt1062/qspi
- mimxrt1060_evk@C/mimxrt1062/qspi
- frdm_k64f
tags: bluetooth
extra_args: SHIELD=frdm_kw41z
integration_platforms:
- mimxrt1020_evk
- mimxrt1060_evk/mimxrt1062/qspi
sample.bluetooth.peripheral_ht.nxp:
# Disabling monolithic since CI environment doesn't use blobs
build_only: true
Expand Down
3 changes: 2 additions & 1 deletion samples/boards/nxp/mimxrt1060_evk/system_off/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ tests:
sample.boards.mimxrt1060_evk.system_off:
build_only: true
platform_allow:
- mimxrt1060_evk/mimxrt1062/qspi
- mimxrt1060_evk@A/mimxrt1062/qspi
- mimxrt1060_evk@B/mimxrt1062/qspi
- mimxrt1060_evk@C/mimxrt1062/qspi
integration_platforms:
- mimxrt1060_evk/mimxrt1062/qspi
4 changes: 3 additions & 1 deletion samples/drivers/display/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@ tests:
sample.display.rk043fn02h_ct:
platform_allow:
- mimxrt1064_evk
- mimxrt1060_evk/mimxrt1062/qspi
- mimxrt1060_evk@A/mimxrt1062/qspi
- mimxrt1060_evk@B/mimxrt1062/qspi
- mimxrt1060_evk@C/mimxrt1062/qspi
- mimxrt1050_evk/mimxrt1052/hyperflash
- mimxrt1040_evk
integration_platforms:
Expand Down
2 changes: 1 addition & 1 deletion samples/subsys/display/lvgl/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ tests:
samples.subsys.display.lvgl.rk043fn02h_ct:
platform_allow:
- mimxrt1064_evk
- mimxrt1060_evk/mimxrt1062/qspi
- mimxrt1060_evk@C/mimxrt1062/qspi
- mimxrt1050_evk/mimxrt1052/hyperflash
- mimxrt1040_evk
integration_platforms:
Expand Down
8 changes: 6 additions & 2 deletions samples/subsys/usb/dfu/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,15 @@ common:
- mimxrt1010_evk
- mimxrt1020_evk
- mimxrt1015_evk
- mimxrt1060_evk/mimxrt1062/qspi
- mimxrt1060_evk@A/mimxrt1062/qspi
- mimxrt1060_evk@B/mimxrt1062/qspi
- mimxrt1060_evk@C/mimxrt1062/qspi
- sam4l_ek
- mimxrt1050_evk/mimxrt1052/hyperflash
- mimxrt1050_evk/mimxrt1052/qspi
- mimxrt1060_evk/mimxrt1062/hyperflash
- mimxrt1060_evk@A/mimxrt1062/hyperflash
- mimxrt1060_evk@B/mimxrt1062/hyperflash
- mimxrt1060_evk@C/mimxrt1062/hyperflash
- nucleo_f207zg
- teensy40
- teensy41
Expand Down
1 change: 0 additions & 1 deletion samples/subsys/usb/hid-mouse/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ tests:
- frdm_k64f
- stm32f723e_disco
- nucleo_f413zh
- mimxrt685_evk/mimxrt685s/cm33
- mimxrt1060_evk/mimxrt1062/qspi
extra_args:
- CONF_FILE="usbd_next_prj.conf"
Expand Down
4 changes: 2 additions & 2 deletions tests/drivers/gpio/gpio_basic_api/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,9 @@ tests:
- mimxrt595_evk/mimxrt595s/cm33
- mimxrt1020_evk
- mimxrt1040_evk
- mimxrt1060_evk/mimxrt1062/qspi
- mimxrt1060_evk@A/mimxrt1062/qspi
- mimxrt1060_evk@B/mimxrt1062/qspi
- mimxrt1060_evk@C/mimxrt1062/qspi
- lpcxpresso55s69/lpc55s69/cpu0
- lpcxpresso55s36
drivers.gpio.2pin_arduino_customized:
Expand All @@ -71,7 +72,6 @@ tests:
- mimxrt1020_evk
- mimxrt1040_evk
- mimxrt1060_evk/mimxrt1062/qspi
- mimxrt1060_evk@B/mimxrt1062/qspi
- lpcxpresso55s69/lpc55s69/cpu0
- lpcxpresso55s36
- nucleo_wb09ke
Expand Down
4 changes: 2 additions & 2 deletions tests/drivers/stepper/drv8424/api/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ tests:
- drv8424
platform_allow:
- nucleo_f767zi
- mimxrt1060_evk@B/mimxrt1062/qspi
- mimxrt1060_evk/mimxrt1062/qspi
- native_sim
integration_platforms:
- nucleo_f767zi
- mimxrt1060_evk@B/mimxrt1062/qspi
- mimxrt1060_evk/mimxrt1062/qspi
- native_sim

0 comments on commit 36a2dd5

Please sign in to comment.