boards: samples: drop support for Google Kukui EC
Drop support for Google Kukui EC board which was used for early Zephyr experiments but doesn't really exist anymore. Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
This commit is contained in:
parent
1be85d1854
commit
cca08c3690
13 changed files with 1 additions and 267 deletions
|
@ -1,5 +0,0 @@
|
|||
# Copyright 2019 The Chromium OS Authors
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
config BOARD_GOOGLE_KUKUI
|
||||
select SOC_STM32F098XX
|
|
@ -1 +0,0 @@
|
|||
# SPDX-License-Identifier: Apache-2.0
|
|
@ -1,5 +0,0 @@
|
|||
board:
|
||||
name: google_kukui
|
||||
vendor: google
|
||||
socs:
|
||||
- name: stm32f098xx
|
|
@ -1,88 +0,0 @@
|
|||
.. _google_kukui_board:
|
||||
|
||||
Google Kukui EC
|
||||
###############
|
||||
|
||||
Overview
|
||||
********
|
||||
|
||||
Kukui is a reference board for Chromium OS-based devices Krane and
|
||||
Kodama. These are known as the Lenovo Chromebook Duet and 10e Chromebook
|
||||
Tablet, respectively.
|
||||
|
||||
Zephyr has support for the STM32-based embedded controller (EC) on-board.
|
||||
|
||||
Hardware
|
||||
********
|
||||
|
||||
- STM32F098RCH6
|
||||
- MT6370 battery charger
|
||||
- BMM150 compass
|
||||
- BMM160 gyroscope
|
||||
- Connections to the MediaTek AP
|
||||
|
||||
Supported Features
|
||||
==================
|
||||
|
||||
The following features are supported:
|
||||
|
||||
+-----------+------------+-------------------------------------+
|
||||
| Interface | Controller | Driver/Component |
|
||||
+===========+============+=====================================+
|
||||
| NVIC | on-chip | nested vector interrupt controller |
|
||||
+-----------+------------+-------------------------------------+
|
||||
| UART | on-chip | serial port-polling; |
|
||||
| | | serial port-interrupt |
|
||||
+-----------+------------+-------------------------------------+
|
||||
| PINMUX | on-chip | pinmux |
|
||||
+-----------+------------+-------------------------------------+
|
||||
| GPIO | on-chip | gpio |
|
||||
+-----------+------------+-------------------------------------+
|
||||
| CLOCK | on-chip | reset and clock control |
|
||||
+-----------+------------+-------------------------------------+
|
||||
| FLASH | on-chip | flash memory |
|
||||
+-----------+------------+-------------------------------------+
|
||||
| WATCHDOG | on-chip | independent watchdog |
|
||||
+-----------+------------+-------------------------------------+
|
||||
|
||||
Other features (such as I2C) are not available in Zephyr.
|
||||
|
||||
The default configuration can be found in
|
||||
:zephyr_file:`boards/google/kukui/google_kukui_defconfig`
|
||||
|
||||
Connections and IOs
|
||||
===================
|
||||
|
||||
Each of the GPIO pins can be configured by software as output
|
||||
(push-pull or open-drain), as input (with or without pull-up or
|
||||
pull-down), or as peripheral alternate function.
|
||||
|
||||
Default Zephyr Peripheral Mapping:
|
||||
----------------------------------
|
||||
|
||||
- UART_1 TX/RX : PA10/PA9
|
||||
- I2C_1 SCL/SDA : PB8/PB9
|
||||
- I2C_2 SCL/SDA : PA11/PA12
|
||||
- Volume down : GPIOB pin 11
|
||||
- Volume up : GPIOB pin 10
|
||||
- Power : GPIOA pin 0
|
||||
|
||||
Programming and Debugging
|
||||
*************************
|
||||
|
||||
Build application as usual for the ``google_kukui`` board, and flash
|
||||
using Servo V2, μServo, or Servo V4 (CCD). See the
|
||||
`Chromium EC Flashing Documentation`_ for more information.
|
||||
|
||||
Debugging
|
||||
=========
|
||||
|
||||
Use SWD with a J-Link or ST-Link.
|
||||
|
||||
References
|
||||
**********
|
||||
|
||||
.. target-notes::
|
||||
|
||||
.. _Chromium EC Flashing Documentation:
|
||||
https://chromium.googlesource.com/chromiumos/platform/ec#Flashing-via-the-servo-debug-board
|
|
@ -1,67 +0,0 @@
|
|||
/*
|
||||
* Copyright (c) 2019 The Chromium OS Authors
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
/dts-v1/;
|
||||
#include <st/f0/stm32f098Xc.dtsi>
|
||||
#include <st/f0/stm32f098rchx-pinctrl.dtsi>
|
||||
|
||||
/ {
|
||||
model = "Google Kukui EC";
|
||||
compatible = "google,kukui-ec", "st,stm32f098";
|
||||
|
||||
chosen {
|
||||
zephyr,console = &usart1;
|
||||
zephyr,shell-uart = &usart1;
|
||||
zephyr,sram = &sram0;
|
||||
zephyr,flash = &flash0;
|
||||
};
|
||||
};
|
||||
|
||||
&clk_hsi {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&rcc {
|
||||
clocks = <&clk_hsi>;
|
||||
clock-frequency = <DT_FREQ_M(8)>;
|
||||
ahb-prescaler = <1>;
|
||||
apb1-prescaler = <1>;
|
||||
};
|
||||
|
||||
&usart1 {
|
||||
pinctrl-0 = <&usart1_tx_pa9 &usart1_rx_pa10>;
|
||||
pinctrl-names = "default";
|
||||
current-speed = <115200>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&flash0 {
|
||||
partitions {
|
||||
compatible = "fixed-partitions";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
|
||||
/* Set 6Kb of storage at the end of the 256Kb of flash */
|
||||
storage_partition: partition@3e800 {
|
||||
label = "storage";
|
||||
reg = <0x0003e800 DT_SIZE_K(6)>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&i2c1 {
|
||||
pinctrl-0 = <&i2c1_scl_pb8 &i2c1_sda_pb9>;
|
||||
pinctrl-names = "default";
|
||||
status = "okay";
|
||||
clock-frequency = <I2C_BITRATE_FAST>;
|
||||
};
|
||||
|
||||
&i2c2 {
|
||||
pinctrl-0 = <&i2c2_scl_pa11 &i2c2_sda_pa12>;
|
||||
pinctrl-names = "default";
|
||||
status = "okay";
|
||||
clock-frequency = <I2C_BITRATE_FAST>;
|
||||
};
|
|
@ -1,15 +0,0 @@
|
|||
identifier: google_kukui
|
||||
name: Google Kukui EC
|
||||
type: mcu
|
||||
arch: arm
|
||||
toolchain:
|
||||
- zephyr
|
||||
- gnuarmemb
|
||||
- xtools
|
||||
ram: 32
|
||||
flash: 256
|
||||
testing:
|
||||
ignore_tags:
|
||||
- net
|
||||
- bluetooth
|
||||
vendor: google
|
|
@ -1,18 +0,0 @@
|
|||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
# Serial Drivers
|
||||
CONFIG_SERIAL=y
|
||||
CONFIG_UART_INTERRUPT_DRIVEN=y
|
||||
|
||||
# Enable console
|
||||
CONFIG_CONSOLE=y
|
||||
CONFIG_UART_CONSOLE=y
|
||||
|
||||
# GPIO Controller
|
||||
CONFIG_GPIO=y
|
||||
|
||||
# Enable Clocks
|
||||
CONFIG_CLOCK_CONTROL=y
|
||||
|
||||
# enable pin controller
|
||||
CONFIG_PINCTRL=y
|
|
@ -100,6 +100,7 @@ Boards & SoC Support
|
|||
|
||||
* :ref:`native_posix<native_posix>` has been deprecated in favour of
|
||||
:ref:`native_sim<native_sim>`.
|
||||
* Support for Google Kukui EC board (``google_kukui``) has been dropped.
|
||||
|
||||
* Added support for the following shields:
|
||||
|
||||
|
|
|
@ -1,9 +0,0 @@
|
|||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
cmake_minimum_required(VERSION 3.20.0)
|
||||
|
||||
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
||||
project(google_kukui)
|
||||
|
||||
FILE(GLOB app_sources src/*.c)
|
||||
target_sources(app PRIVATE ${app_sources})
|
|
@ -1,33 +0,0 @@
|
|||
.. _google_kukui:
|
||||
|
||||
Kukui general features
|
||||
######################
|
||||
|
||||
Overview
|
||||
********
|
||||
|
||||
This provides access to :ref:`Kukui <google_kukui_board>` through a serial shell
|
||||
so you can try out the supported features, including I2C, GPIO and flash access.
|
||||
|
||||
Building
|
||||
********
|
||||
|
||||
The sample can be built as follows:
|
||||
|
||||
.. zephyr-app-commands::
|
||||
:zephyr-app: samples/boards/google_kukui
|
||||
:board: google_kukui
|
||||
:goals: build
|
||||
:compact:
|
||||
|
||||
Sample Output
|
||||
=============
|
||||
|
||||
.. code-block:: console
|
||||
|
||||
Welcome to Google Kukui
|
||||
|
||||
uart:~$ (press tab)
|
||||
clear flash gpio help history i2c resize shell
|
||||
uart:~$ i2c read I2C_2 36
|
||||
00000000: 82 00 00 ff 80 7f 00 ff 00 00 c1 0a c8 5b 0c 62 |........ .....[.b|
|
|
@ -1,6 +0,0 @@
|
|||
# Enable all useful shell commands (i.e. those with driver support)
|
||||
CONFIG_SHELL=y
|
||||
CONFIG_SHELL_BACKENDS=y
|
||||
CONFIG_SHELL_BACKEND_SERIAL=y
|
||||
CONFIG_GPIO_SHELL=y
|
||||
CONFIG_I2C_SHELL=y
|
|
@ -1,6 +0,0 @@
|
|||
sample:
|
||||
name: Kukui general features
|
||||
tests:
|
||||
sample.board.google_kukui:
|
||||
platform_allow: google_kukui
|
||||
tags: ec
|
|
@ -1,14 +0,0 @@
|
|||
/*
|
||||
* Copyright 2020 Google LLC
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#include <zephyr/kernel.h>
|
||||
#include <zephyr/sys/printk.h>
|
||||
|
||||
int main(void)
|
||||
{
|
||||
printk("Welcome to Google Kukui\n");
|
||||
return 0;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue