Skip to content

Commit

Permalink
boards: arm: Add support for 96Boards Meerkat96 board
Browse files Browse the repository at this point in the history
Add board suppor for 96Boards Meerkat96 board from Novtech based on
NXP i.MX7 multi core processor. Zephyr is ported to run on the single
core Cortex-M co-processor on this board.

More information about this board can be found in 96Boards website:
https://www.96boards.org/product/imx7-96/

By default Zephyr console output is available via UART1 available at
the 40pin LS connector.

Signed-off-by: Manivannan Sadhasivam <[email protected]>
  • Loading branch information
Mani-Sadhasivam authored and MaureenHelm committed Jun 17, 2019
1 parent f84e651 commit 49df0b1
Show file tree
Hide file tree
Showing 10 changed files with 548 additions and 0 deletions.
1 change: 1 addition & 0 deletions CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
/boards/arm/ @MaureenHelm @galak
/boards/arm/96b_argonkey/ @avisconti
/boards/arm/96b_carbon/ @rsalveti @idlethread
/boards/arm/96b_meerkat96/ @Mani-Sadhasivam
/boards/arm/96b_nitrogen/ @idlethread
/boards/arm/96b_neonkey/ @Mani-Sadhasivam
/boards/arm/96b_stm32_sensor_mez/ @Mani-Sadhasivam
Expand Down
64 changes: 64 additions & 0 deletions boards/arm/96b_meerkat96/96b_meerkat96.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
/*
* Copyright (c) 2019, Linaro Ltd.
*
* SPDX-License-Identifier: Apache-2.0
*/

/dts-v1/;
#include <nxp/nxp_imx7d_m4.dtsi>

/ {
model = "Meerkat96 Board";
compatible = "novtech,imx7d-meerkat96";

chosen {
zephyr,flash = &tcml_code;
zephyr,sram = &tcmu_sys;
zephyr,console = &uart1;
zephyr,shell-uart = &uart1;
};

leds {
compatible = "gpio-leds";
green_led_0: led_0 {
gpios = <&gpio1 4 GPIO_INT_ACTIVE_LOW>;
label = "User LED1";
};
green_led_1: led_1 {
gpios = <&gpio1 5 GPIO_INT_ACTIVE_LOW>;
label = "User LED2";
};
green_led_2: led_2 {
gpios = <&gpio1 6 GPIO_INT_ACTIVE_LOW>;
label = "User LED3";
};
green_led_3: led_3 {
gpios = <&gpio1 7 GPIO_INT_ACTIVE_LOW>;
label = "User LED4";
};
};

aliases {
gpio-1 = &gpio1;
led0 = &green_led_0;
led1 = &green_led_1;
led2 = &green_led_2;
led3 = &green_led_3;
uart-1 = &uart1;
mu-b = &mub;
};
};

&uart1 {
status = "ok";
current-speed = <115200>;
modem-mode = <0>;
};

&gpio1 {
status = "ok";
};

&mub {
status = "ok";
};
23 changes: 23 additions & 0 deletions boards/arm/96b_meerkat96/96b_meerkat96.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#
# Copyright (c) 2019, Linaro Ltd.
#
# SPDX-License-Identifier: Apache-2.0
#

identifier: 96b_meerkat96
name: 96Boards Meerkat96
type: mcu
arch: arm
ram: 32
flash: 32
toolchain:
- zephyr
- gnuarmemb
- xtools
supported:
- gpio
- shell
testing:
ignore_tags:
- net
- bluetooth
24 changes: 24 additions & 0 deletions boards/arm/96b_meerkat96/96b_meerkat96_defconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#
# Copyright (c) 2019, Linaro Ltd.
#
# SPDX-License-Identifier: Apache-2.0
#

CONFIG_ARM=y
CONFIG_SOC_FAMILY_IMX=y
CONFIG_SOC_SERIES_IMX7_M4=y
CONFIG_SOC_MCIMX7_M4=y
CONFIG_BOARD_96B_MEERKAT96=y
CONFIG_CORTEX_M_SYSTICK=y

# enable uart driver
CONFIG_SERIAL=y
CONFIG_SERIAL_HAS_DRIVER=y
CONFIG_UART_INTERRUPT_DRIVEN=y

# console
CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y
CONFIG_CONSOLE_HAS_DRIVER=y

CONFIG_XIP=y
9 changes: 9 additions & 0 deletions boards/arm/96b_meerkat96/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#
# Copyright (c) 2019, Linaro Ltd.
#
# SPDX-License-Identifier: Apache-2.0
#

zephyr_library()
zephyr_library_include_directories(${ZEPHYR_BASE}/drivers)
zephyr_library_sources(pinmux.c)
11 changes: 11 additions & 0 deletions boards/arm/96b_meerkat96/Kconfig.board
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Kconfig - 96Boards Meerkat96 board
#
# Copyright (c) 2019, Linaro Ltd.
#
# SPDX-License-Identifier: Apache-2.0
#

config BOARD_96B_MEERKAT96
bool "96Boards Meerkat96 board"
depends on SOC_SERIES_IMX7_M4
select SOC_PART_NUMBER_MCIMX7D5EVM10SC
34 changes: 34 additions & 0 deletions boards/arm/96b_meerkat96/Kconfig.defconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Kconfig - 96Boards Meerkat96 board
#
# Copyright (c) 2019, Linaro Ltd.
#
# SPDX-License-Identifier: Apache-2.0
#

if BOARD_96B_MEERKAT96

config BOARD
default "96b_meerkat96"

if GPIO_IMX

config GPIO_IMX_PORT_1
default y

endif # GPIO_IMX

if UART_IMX

config UART_IMX_UART_1
default y

endif # UART_IMX

if !XIP
config FLASH_SIZE
default 0
config FLASH_BASE_ADDRESS
default 0
endif

endif # BOARD_96B_MEERKAT96
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 49df0b1

Please sign in to comment.