Skip to content

Commit f548f45

Browse files
ene-stevenkartben
authored andcommitted
board: kb1062_evb board
Add support for ENE kb1062_evb board Signed-off-by: Steven Chang <[email protected]>
1 parent 03227c3 commit f548f45

File tree

7 files changed

+162
-0
lines changed

7 files changed

+162
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Copyright (c) 2025 ENE Technology Inc.
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
config BOARD_KB1062_EVB
5+
select SOC_KB1062

boards/ene/kb1062_evb/board.cmake

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
3+
board_runner_args(jlink "--device=KB1062" "--speed=4000")
4+
5+
include(${ZEPHYR_BASE}/boards/common/openocd.board.cmake)
6+
include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake)

boards/ene/kb1062_evb/board.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
board:
2+
name: kb1062_evb
3+
full_name: ENE KB1062_EVB
4+
vendor: ene
5+
socs:
6+
- name: kb1062

boards/ene/kb1062_evb/doc/index.rst

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
.. zephyr:board:: kb1062_evb
2+
3+
Overview
4+
********
5+
6+
The KB1062_EVB kit is a development platform to evaluate the
7+
ENE KB106X series microcontrollers. This board needs to be mated with
8+
part number KB1062.
9+
10+
Hardware
11+
********
12+
13+
- ARM Cortex-M3 Processor
14+
- 256KB Flash and 64KB RAM
15+
- ADC & GPIO headers
16+
- SER serial port
17+
- FAN PWM interface
18+
- ENE Debug interface
19+
20+
Supported Features
21+
==================
22+
23+
.. zephyr:board-supported-hw::
24+
25+
System Clock
26+
============
27+
28+
The KB106x MCU is configured to use the 48Mhz internal oscillator with the
29+
on-chip DPLL to generate a resulting EC clock rate of 48MHz/24MHz
30+
See Processor clock control register (refer 5.1 General Configuration)
31+
32+
Programming and Debugging
33+
*************************
34+
35+
.. zephyr:board-supported-runners::
36+
37+
Flashing
38+
========
39+
40+
If the correct headers are installed, this board supports SWD Debug Interface.
41+
42+
To flash with SWD, install the drivers for your programmer, for example:
43+
SEGGER J-link's drivers are at https://www.segger.com/downloads/jlink/
44+
45+
Debugging
46+
=========
47+
48+
Use SWD with a J-Link
49+
50+
References
51+
==========
52+
53+
.. target-notes::

boards/ene/kb1062_evb/kb1062_evb.dts

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
/*
2+
* Copyright (c) 2025 ENE Technology Inc.
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/dts-v1/;
8+
9+
#include <zephyr/dt-bindings/gpio/gpio.h>
10+
#include <ene/kb106x/kb1062.dtsi>
11+
#include <ene/kb106x/kb1062-pinctrl.dtsi>
12+
#include <zephyr/dt-bindings/input/input-event-codes.h>
13+
14+
/ {
15+
model = "KB1062 board";
16+
compatible = "ene,kb1062";
17+
18+
aliases {
19+
uart0 = &uart0;
20+
led0 = &led0;
21+
led1 = &led1;
22+
sw0 = &user_button;
23+
};
24+
25+
chosen {
26+
zephyr,console = &uart0;
27+
zephyr,shell-uart = &uart0;
28+
};
29+
30+
gpio_keys {
31+
compatible = "gpio-keys";
32+
33+
user_button: button {
34+
label = "User";
35+
gpios = <&gpio6x7x 0x1b (GPIO_ACTIVE_LOW | GPIO_PULL_UP)>;
36+
zephyr,code = <INPUT_KEY_0>;
37+
};
38+
};
39+
40+
leds {
41+
compatible = "gpio-leds";
42+
43+
/* green led */
44+
led0: led_0 {
45+
gpios = <&gpio0x1x 0x0f GPIO_ACTIVE_HIGH>;
46+
label = "LED0";
47+
};
48+
49+
/* blue led */
50+
led1: led_1 {
51+
gpios = <&gpio0x1x 0x11 GPIO_ACTIVE_HIGH>;
52+
label = "LED1";
53+
};
54+
};
55+
};
56+
57+
&uart0 {
58+
status = "okay";
59+
current-speed = <115200>;
60+
pinctrl-0 = <&ser0_tx_gpio16 &ser0_rx_gpio17>;
61+
pinctrl-names = "default";
62+
};
63+
64+
&gpio0x1x {
65+
status = "okay";
66+
};
67+
68+
&gpio6x7x {
69+
status = "okay";
70+
};

boards/ene/kb1062_evb/kb1062_evb.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
identifier: kb1062_evb
2+
name: KB1062 EVB
3+
type: mcu
4+
arch: arm
5+
toolchain:
6+
- zephyr
7+
- gnuarmemb
8+
supported:
9+
- gpio
10+
- uart
11+
ram: 64
12+
flash: 256
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Copyright (c) 2025 ENE Technology Inc.
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
# Enable console & UART driver
5+
CONFIG_SERIAL=y
6+
CONFIG_CONSOLE=y
7+
CONFIG_UART_CONSOLE=y
8+
9+
# Enable GPIO
10+
CONFIG_GPIO=y

0 commit comments

Comments
 (0)