boards: RoboKit1: Convert to HWMv2
Port the board to HWMv2. Signed-off-by: Gerson Fernando Budke <nandojve@gmail.com>
This commit is contained in:
committed by
Carles Cufi
parent
1108d7b0ed
commit
37dfacbf9e
@@ -1,8 +0,0 @@
|
||||
# TDK RoboKit 1 Board Options
|
||||
|
||||
# Copyright (c) 2022 Intel Corporation
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
config BOARD_TDK_ROBOKIT1
|
||||
bool "TDK RoboKit1 Board"
|
||||
depends on SOC_PART_NUMBER_SAME70Q21 || SOC_PART_NUMBER_SAME70Q21B
|
||||
@@ -1,11 +0,0 @@
|
||||
# TDK RoboKit1 Configuration
|
||||
|
||||
# Copyright (c) 2022 Intel Corporation
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
if BOARD_TDK_ROBOKIT1
|
||||
|
||||
config BOARD
|
||||
default "tdk_robotkit1"
|
||||
|
||||
endif # BOARD_TDK_ROBOKIT1
|
||||
@@ -1,16 +0,0 @@
|
||||
/*
|
||||
* Copyright (c) 2022 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
/dts-v1/;
|
||||
|
||||
#include <atmel/same70q21.dtsi>
|
||||
|
||||
#include "tdk_robokit1-common.dtsi"
|
||||
|
||||
/ {
|
||||
model = "TDK RoboKit1";
|
||||
compatible = "tdk,robokit1", "atmel,same70q21", "atmel,same70";
|
||||
};
|
||||
@@ -1,17 +0,0 @@
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
CONFIG_SOC_SERIES_SAME70=y
|
||||
CONFIG_SOC_PART_NUMBER_SAME70Q21B=y
|
||||
CONFIG_SOC_ATMEL_SAME70_EXT_MAINCK=y
|
||||
CONFIG_SOC_ATMEL_SAME70_PLLA_MULA=24
|
||||
CONFIG_SOC_ATMEL_SAME70_PLLA_DIVA=1
|
||||
CONFIG_ARM_MPU=y
|
||||
CONFIG_CONSOLE=y
|
||||
CONFIG_UART_CONSOLE=y
|
||||
CONFIG_SERIAL=y
|
||||
CONFIG_BOARD_TDK_ROBOKIT1=y
|
||||
CONFIG_WDT_DISABLE_AT_BOOT=y
|
||||
CONFIG_BUILD_OUTPUT_HEX=y
|
||||
|
||||
# Enable HW stack protection
|
||||
CONFIG_HW_STACK_PROTECTION=y
|
||||
10
boards/tdk/index.rst
Normal file
10
boards/tdk/index.rst
Normal file
@@ -0,0 +1,10 @@
|
||||
.. _boards-tdk:
|
||||
|
||||
TDK
|
||||
###
|
||||
|
||||
.. toctree::
|
||||
:maxdepth: 1
|
||||
:glob:
|
||||
|
||||
**/*
|
||||
6
boards/tdk/robokit1/Kconfig.robokit1
Normal file
6
boards/tdk/robokit1/Kconfig.robokit1
Normal file
@@ -0,0 +1,6 @@
|
||||
# Copyright (c) 2022 Intel Corporation
|
||||
# Copyright (c) 2024 Gerson Fernando Budke
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
config BOARD_ROBOKIT1
|
||||
select SOC_SAME70Q21B
|
||||
@@ -1,6 +1,7 @@
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
board_runner_args(jlink "--device=ATSAME70Q21")
|
||||
include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake)
|
||||
|
||||
board_runner_args(openocd --cmd-post-verify "atsamv gpnvm set 1")
|
||||
include(${ZEPHYR_BASE}/boards/common/openocd.board.cmake)
|
||||
include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake)
|
||||
5
boards/tdk/robokit1/board.yml
Normal file
5
boards/tdk/robokit1/board.yml
Normal file
@@ -0,0 +1,5 @@
|
||||
board:
|
||||
name: robokit1
|
||||
vendor: tdk
|
||||
socs:
|
||||
- name: same70q21b
|
||||
|
Before Width: | Height: | Size: 90 KiB After Width: | Height: | Size: 90 KiB |
@@ -1,4 +1,4 @@
|
||||
.. _tdk_robokit1:
|
||||
.. _robokit1:
|
||||
|
||||
TDK RoboKit 1
|
||||
#############
|
||||
@@ -107,7 +107,7 @@ features:
|
||||
- N/A
|
||||
|
||||
The default configuration can be found in the Kconfig
|
||||
:zephyr_file:`boards/arm/tdk_robokit1/tdk_robokit1_defconfig`.
|
||||
:zephyr_file:`boards/tdk/robokit1/robokit1_defconfig`.
|
||||
|
||||
Connections and IOs
|
||||
===================
|
||||
@@ -157,10 +157,10 @@ Flashing
|
||||
|
||||
.. zephyr-app-commands::
|
||||
:zephyr-app: samples/hello_world
|
||||
:board: tdk_robokit1
|
||||
:board: robokit1
|
||||
:goals: build flash
|
||||
|
||||
You should see "Hello World! tdk_robokit1" in your terminal.
|
||||
You should see "Hello World! robokit1" in your terminal.
|
||||
|
||||
Debugging
|
||||
=========
|
||||
@@ -170,7 +170,7 @@ You can debug an application in the usual way. Here is an example for the
|
||||
|
||||
.. zephyr-app-commands::
|
||||
:zephyr-app: samples/hello_world
|
||||
:board: tdk_robokit1
|
||||
:board: robokit1
|
||||
:maybe-skip-config:
|
||||
:goals: debug
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#include "tdk_robokit1-pinctrl.dtsi"
|
||||
#include "robokit1-pinctrl.dtsi"
|
||||
|
||||
/ {
|
||||
aliases {
|
||||
17
boards/tdk/robokit1/robokit1.dts
Normal file
17
boards/tdk/robokit1/robokit1.dts
Normal file
@@ -0,0 +1,17 @@
|
||||
/*
|
||||
* Copyright (c) 2022 Intel Corporation
|
||||
* Copyright (c) 2024 Gerson Fernando Budke
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
/dts-v1/;
|
||||
|
||||
#include <atmel/same70q21b.dtsi>
|
||||
|
||||
#include "robokit1-common.dtsi"
|
||||
|
||||
/ {
|
||||
model = "TDK RoboKit1";
|
||||
compatible = "tdk,robokit1", "atmel,same70q21b", "atmel,same70";
|
||||
};
|
||||
@@ -1,21 +1,21 @@
|
||||
identifier: tdk_robokit1
|
||||
identifier: robokit1
|
||||
name: TDK RoboKit1
|
||||
type: mcu
|
||||
arch: arm
|
||||
ram: 384
|
||||
flash: 2048
|
||||
ram: 384
|
||||
toolchain:
|
||||
- zephyr
|
||||
- gnuarmemb
|
||||
- xtools
|
||||
supported:
|
||||
- dma
|
||||
- i2c
|
||||
- gpio
|
||||
- spi
|
||||
- watchdog
|
||||
- usb_device
|
||||
- pwm
|
||||
- can
|
||||
- dma
|
||||
- hwinfo
|
||||
- gpio
|
||||
- i2c
|
||||
- pwm
|
||||
- spi
|
||||
- usb_device
|
||||
- watchdog
|
||||
vendor: tdk
|
||||
11
boards/tdk/robokit1/robokit1_defconfig
Normal file
11
boards/tdk/robokit1/robokit1_defconfig
Normal file
@@ -0,0 +1,11 @@
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
CONFIG_BUILD_OUTPUT_HEX=y
|
||||
|
||||
CONFIG_ARM_MPU=y
|
||||
CONFIG_HW_STACK_PROTECTION=y
|
||||
CONFIG_WDT_DISABLE_AT_BOOT=y
|
||||
|
||||
CONFIG_CONSOLE=y
|
||||
CONFIG_UART_CONSOLE=y
|
||||
CONFIG_SERIAL=y
|
||||
Reference in New Issue
Block a user