Browse Source

board: kb1062_evb board

Add support for ENE kb1062_evb board

Signed-off-by: Steven Chang <steven@ene.com.tw>
pull/74835/merge
Steven Chang 2 weeks ago committed by Benjamin Cabé
parent
commit
f548f45d1f
  1. 5
      boards/ene/kb1062_evb/Kconfig.kb1062_evb
  2. 6
      boards/ene/kb1062_evb/board.cmake
  3. 6
      boards/ene/kb1062_evb/board.yml
  4. 53
      boards/ene/kb1062_evb/doc/index.rst
  5. 70
      boards/ene/kb1062_evb/kb1062_evb.dts
  6. 12
      boards/ene/kb1062_evb/kb1062_evb.yaml
  7. 10
      boards/ene/kb1062_evb/kb1062_evb_defconfig

5
boards/ene/kb1062_evb/Kconfig.kb1062_evb

@ -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

6
boards/ene/kb1062_evb/board.cmake

@ -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)

6
boards/ene/kb1062_evb/board.yml

@ -0,0 +1,6 @@ @@ -0,0 +1,6 @@
board:
name: kb1062_evb
full_name: ENE KB1062_EVB
vendor: ene
socs:
- name: kb1062

53
boards/ene/kb1062_evb/doc/index.rst

@ -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::

70
boards/ene/kb1062_evb/kb1062_evb.dts

@ -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";
};

12
boards/ene/kb1062_evb/kb1062_evb.yaml

@ -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

10
boards/ene/kb1062_evb/kb1062_evb_defconfig

@ -0,0 +1,10 @@ @@ -0,0 +1,10 @@
# Copyright (c) 2025 ENE Technology Inc.
# SPDX-License-Identifier: Apache-2.0
# Enable console & UART driver
CONFIG_SERIAL=y
CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y
# Enable GPIO
CONFIG_GPIO=y
Loading…
Cancel
Save