diff --git a/boards/ene/kb1062_evb/Kconfig.kb1062_evb b/boards/ene/kb1062_evb/Kconfig.kb1062_evb new file mode 100644 index 00000000000..5db70416366 --- /dev/null +++ b/boards/ene/kb1062_evb/Kconfig.kb1062_evb @@ -0,0 +1,5 @@ +# Copyright (c) 2025 ENE Technology Inc. +# SPDX-License-Identifier: Apache-2.0 + +config BOARD_KB1062_EVB + select SOC_KB1062 diff --git a/boards/ene/kb1062_evb/board.cmake b/boards/ene/kb1062_evb/board.cmake new file mode 100644 index 00000000000..15f44cb5b6c --- /dev/null +++ b/boards/ene/kb1062_evb/board.cmake @@ -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) diff --git a/boards/ene/kb1062_evb/board.yml b/boards/ene/kb1062_evb/board.yml new file mode 100644 index 00000000000..8f9797ae792 --- /dev/null +++ b/boards/ene/kb1062_evb/board.yml @@ -0,0 +1,6 @@ +board: + name: kb1062_evb + full_name: ENE KB1062_EVB + vendor: ene + socs: + - name: kb1062 diff --git a/boards/ene/kb1062_evb/doc/index.rst b/boards/ene/kb1062_evb/doc/index.rst new file mode 100644 index 00000000000..b983044c43d --- /dev/null +++ b/boards/ene/kb1062_evb/doc/index.rst @@ -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:: diff --git a/boards/ene/kb1062_evb/kb1062_evb.dts b/boards/ene/kb1062_evb/kb1062_evb.dts new file mode 100644 index 00000000000..ec6d2f19bb4 --- /dev/null +++ b/boards/ene/kb1062_evb/kb1062_evb.dts @@ -0,0 +1,70 @@ +/* + * Copyright (c) 2025 ENE Technology Inc. + * + * SPDX-License-Identifier: Apache-2.0 + */ + +/dts-v1/; + +#include +#include +#include +#include + +/ { + 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 = ; + }; + }; + + 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"; +}; diff --git a/boards/ene/kb1062_evb/kb1062_evb.yaml b/boards/ene/kb1062_evb/kb1062_evb.yaml new file mode 100644 index 00000000000..31c10b2d06e --- /dev/null +++ b/boards/ene/kb1062_evb/kb1062_evb.yaml @@ -0,0 +1,12 @@ +identifier: kb1062_evb +name: KB1062 EVB +type: mcu +arch: arm +toolchain: + - zephyr + - gnuarmemb +supported: + - gpio + - uart +ram: 64 +flash: 256 diff --git a/boards/ene/kb1062_evb/kb1062_evb_defconfig b/boards/ene/kb1062_evb/kb1062_evb_defconfig new file mode 100644 index 00000000000..30c5d268b1d --- /dev/null +++ b/boards/ene/kb1062_evb/kb1062_evb_defconfig @@ -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