Browse Source
Add support for ENE kb1062_evb board Signed-off-by: Steven Chang <steven@ene.com.tw>pull/74835/merge
7 changed files with 162 additions and 0 deletions
@ -0,0 +1,5 @@
@@ -0,0 +1,5 @@
|
||||
# Copyright (c) 2025 ENE Technology Inc. |
||||
# SPDX-License-Identifier: Apache-2.0 |
||||
|
||||
config BOARD_KB1062_EVB |
||||
select SOC_KB1062 |
@ -0,0 +1,6 @@
@@ -0,0 +1,6 @@
|
||||
# SPDX-License-Identifier: Apache-2.0 |
||||
|
||||
board_runner_args(jlink "--device=KB1062" "--speed=4000") |
||||
|
||||
include(${ZEPHYR_BASE}/boards/common/openocd.board.cmake) |
||||
include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake) |
@ -0,0 +1,6 @@
@@ -0,0 +1,6 @@
|
||||
board: |
||||
name: kb1062_evb |
||||
full_name: ENE KB1062_EVB |
||||
vendor: ene |
||||
socs: |
||||
- name: kb1062 |
@ -0,0 +1,53 @@
@@ -0,0 +1,53 @@
|
||||
.. zephyr:board:: kb1062_evb |
||||
|
||||
Overview |
||||
******** |
||||
|
||||
The KB1062_EVB kit is a development platform to evaluate the |
||||
ENE KB106X series microcontrollers. This board needs to be mated with |
||||
part number KB1062. |
||||
|
||||
Hardware |
||||
******** |
||||
|
||||
- ARM Cortex-M3 Processor |
||||
- 256KB Flash and 64KB RAM |
||||
- ADC & GPIO headers |
||||
- SER serial port |
||||
- FAN PWM interface |
||||
- ENE Debug interface |
||||
|
||||
Supported Features |
||||
================== |
||||
|
||||
.. zephyr:board-supported-hw:: |
||||
|
||||
System Clock |
||||
============ |
||||
|
||||
The KB106x MCU is configured to use the 48Mhz internal oscillator with the |
||||
on-chip DPLL to generate a resulting EC clock rate of 48MHz/24MHz |
||||
See Processor clock control register (refer 5.1 General Configuration) |
||||
|
||||
Programming and Debugging |
||||
************************* |
||||
|
||||
.. zephyr:board-supported-runners:: |
||||
|
||||
Flashing |
||||
======== |
||||
|
||||
If the correct headers are installed, this board supports SWD Debug Interface. |
||||
|
||||
To flash with SWD, install the drivers for your programmer, for example: |
||||
SEGGER J-link's drivers are at https://www.segger.com/downloads/jlink/ |
||||
|
||||
Debugging |
||||
========= |
||||
|
||||
Use SWD with a J-Link |
||||
|
||||
References |
||||
========== |
||||
|
||||
.. target-notes:: |
@ -0,0 +1,70 @@
@@ -0,0 +1,70 @@
|
||||
/* |
||||
* Copyright (c) 2025 ENE Technology Inc. |
||||
* |
||||
* SPDX-License-Identifier: Apache-2.0 |
||||
*/ |
||||
|
||||
/dts-v1/; |
||||
|
||||
#include <zephyr/dt-bindings/gpio/gpio.h> |
||||
#include <ene/kb106x/kb1062.dtsi> |
||||
#include <ene/kb106x/kb1062-pinctrl.dtsi> |
||||
#include <zephyr/dt-bindings/input/input-event-codes.h> |
||||
|
||||
/ { |
||||
model = "KB1062 board"; |
||||
compatible = "ene,kb1062"; |
||||
|
||||
aliases { |
||||
uart0 = &uart0; |
||||
led0 = &led0; |
||||
led1 = &led1; |
||||
sw0 = &user_button; |
||||
}; |
||||
|
||||
chosen { |
||||
zephyr,console = &uart0; |
||||
zephyr,shell-uart = &uart0; |
||||
}; |
||||
|
||||
gpio_keys { |
||||
compatible = "gpio-keys"; |
||||
|
||||
user_button: button { |
||||
label = "User"; |
||||
gpios = <&gpio6x7x 0x1b (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>; |
||||
zephyr,code = <INPUT_KEY_0>; |
||||
}; |
||||
}; |
||||
|
||||
leds { |
||||
compatible = "gpio-leds"; |
||||
|
||||
/* green led */ |
||||
led0: led_0 { |
||||
gpios = <&gpio0x1x 0x0f GPIO_ACTIVE_HIGH>; |
||||
label = "LED0"; |
||||
}; |
||||
|
||||
/* blue led */ |
||||
led1: led_1 { |
||||
gpios = <&gpio0x1x 0x11 GPIO_ACTIVE_HIGH>; |
||||
label = "LED1"; |
||||
}; |
||||
}; |
||||
}; |
||||
|
||||
&uart0 { |
||||
status = "okay"; |
||||
current-speed = <115200>; |
||||
pinctrl-0 = <&ser0_tx_gpio16 &ser0_rx_gpio17>; |
||||
pinctrl-names = "default"; |
||||
}; |
||||
|
||||
&gpio0x1x { |
||||
status = "okay"; |
||||
}; |
||||
|
||||
&gpio6x7x { |
||||
status = "okay"; |
||||
}; |
@ -0,0 +1,12 @@
@@ -0,0 +1,12 @@
|
||||
identifier: kb1062_evb |
||||
name: KB1062 EVB |
||||
type: mcu |
||||
arch: arm |
||||
toolchain: |
||||
- zephyr |
||||
- gnuarmemb |
||||
supported: |
||||
- gpio |
||||
- uart |
||||
ram: 64 |
||||
flash: 256 |
Loading…
Reference in new issue