diff options
Diffstat (limited to 'zephyr/projects/volteer/delbin')
-rw-r--r-- | zephyr/projects/volteer/delbin/CMakeLists.txt | 23 | ||||
-rw-r--r-- | zephyr/projects/volteer/delbin/gpio.dts | 349 | ||||
-rw-r--r-- | zephyr/projects/volteer/delbin/include/gpio_map.h | 70 | ||||
-rw-r--r-- | zephyr/projects/volteer/delbin/motionsense.dts | 162 | ||||
-rw-r--r-- | zephyr/projects/volteer/delbin/prj.conf | 51 | ||||
-rw-r--r-- | zephyr/projects/volteer/delbin/zmake.yaml | 14 |
6 files changed, 0 insertions, 669 deletions
diff --git a/zephyr/projects/volteer/delbin/CMakeLists.txt b/zephyr/projects/volteer/delbin/CMakeLists.txt deleted file mode 100644 index 0303ee7c62..0000000000 --- a/zephyr/projects/volteer/delbin/CMakeLists.txt +++ /dev/null @@ -1,23 +0,0 @@ -# Copyright 2021 The Chromium OS Authors. All rights reserved. -# Use of this source code is governed by a BSD-style license that can be -# found in the LICENSE file. - -cmake_minimum_required(VERSION 3.13.1) - -find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE}) -project(delbin) - -set(PLATFORM_EC_BOARD "${PLATFORM_EC}/board/delbin" CACHE PATH - "Path to the platform/ec board directory") -set(PLATFORM_EC_BASEBOARD "${PLATFORM_EC}/baseboard/volteer" CACHE PATH - "Path to the platform/ec baseboard directory") - -# Include board specific header files -zephyr_library_include_directories( - include - "${PLATFORM_EC_BASEBOARD}" - "${PLATFORM_EC_BOARD}") - -# Include selected EC source for the baseboard -zephyr_library_sources_ifdef(CONFIG_PLATFORM_EC_POWERSEQ - "${PLATFORM_EC_BASEBOARD}/power.c") diff --git a/zephyr/projects/volteer/delbin/gpio.dts b/zephyr/projects/volteer/delbin/gpio.dts deleted file mode 100644 index 7d7a89d4f2..0000000000 --- a/zephyr/projects/volteer/delbin/gpio.dts +++ /dev/null @@ -1,349 +0,0 @@ -/* Copyright 2021 The Chromium OS Authors. All rights reserved. - * Use of this source code is governed by a BSD-style license that can be - * found in the LICENSE file. - */ - -/ { - named-gpios { - compatible = "named-gpios"; - - ec_lid_open { - gpios = <&gpiod 2 GPIO_INPUT>; - enum-name = "GPIO_LID_OPEN"; - label = "EC_LID_OPEN"; - }; - ec_wp_l { - gpios = <&gpioa 1 GPIO_INPUT>; - enum-name = "GPIO_WP_L"; - label = "EC_WP_L"; - }; - h1_ec_pwr_btn_odl { - gpios = <&gpio0 1 GPIO_INPUT>; - enum-name = "GPIO_POWER_BUTTON_L"; - label = "H1_EC_PWR_BTN_ODL"; - }; - acok_od { - gpios = <&gpio0 0 GPIO_INPUT>; - enum-name = "GPIO_AC_PRESENT"; - label = "ACOK_OD"; - }; - slp_s0_l { - gpios = <&gpiod 5 GPIO_INPUT>; - enum-name = "GPIO_PCH_SLP_S0_L"; - label = "SLP_S0_L"; - }; - slp_s3_l { - gpios = <&gpioa 5 GPIO_INPUT>; - enum-name = "GPIO_PCH_SLP_S3_L"; - label = "SLP_S3_L"; - }; - slp_sus_l { - gpios = <&gpiod 7 GPIO_INPUT>; - enum-name = "GPIO_SLP_SUS_L"; - label = "SLP_SUS_L"; - }; - pg_ec_rsmrst_odl { - gpios = <&gpioe 2 GPIO_INPUT>; - enum-name = "GPIO_PG_EC_RSMRST_ODL"; - label = "PG_EC_RSMRST_ODL"; - }; - rsmrst_l_pgood { - gpios = <&gpioe 2 GPIO_INPUT>; - enum-name = "GPIO_RSMRST_L_PGOOD"; - label = "RSMRST_L_PGOOD"; - }; - dsw_pwrok { - gpios = <&gpioc 7 GPIO_INPUT>; - enum-name = "GPIO_PG_EC_DSW_PWROK"; - label = "DSW_PWROK"; - }; - pg_ec_all_sys_pwrgd { - gpios = <&gpiof 4 GPIO_INPUT>; - enum-name = "GPIO_PG_EC_ALL_SYS_PWRGD"; - label = "PG_EC_ALL_SYS_PWRGD"; - }; - gpio_ec_imu_int_l: ec_imu_int_l { - gpios = <&gpio5 6 GPIO_INPUT>; - enum-name = "GPIO_EC_IMU_INT_L"; - label = "EC_IMU_INT_L"; - }; - tablet_mode_l { - gpios = <&gpio9 5 GPIO_INPUT>; - enum-name = "GPIO_TABLET_MODE_L"; - label = "TABLET_MODE_L"; - }; - ec_accel_int { - gpios = <&gpio8 1 (GPIO_INPUT | GPIO_PULL_UP)>; - label = "EC_ACCEL_INT"; - }; - usb_c0_tcpc_int_odl { - gpios = <&gpioe 0 GPIO_INPUT>; - label = "USB_C0_TCPC_INT_ODL"; - }; - usb_c1_tcpc_int_odl { - gpios = <&gpioa 2 GPIO_INPUT>; - label = "USB_C1_TCPC_INT_ODL"; - }; - usb_c0_ppc_int_odl { - gpios = <&gpio6 2 GPIO_INPUT>; - label = "USB_C0_PPC_INT_ODL"; - }; - usb_c1_ppc_int_odl { - gpios = <&gpiof 5 GPIO_INPUT>; - label = "USB_C1_PPC_INT_ODL"; - }; - usb_c0_bc12_int_odl { - gpios = <&gpioe 4 GPIO_INPUT>; - label = "USB_C0_BC12_INT_ODL"; - }; - usb_c1_mix_int_odl { - gpios = <&gpio0 3 GPIO_INPUT>; - label = "USB_C1_MIX_INT_ODL"; - }; - ec_voldn_btn_odl { - gpios = <&gpio9 3 (GPIO_INPUT | GPIO_PULL_UP)>; - label = "EC_VOLDN_BTN_ODL"; - }; - ec_volup_btn_odl { - gpios = <&gpio9 7 (GPIO_INPUT | GPIO_PULL_UP)>; - label = "EC_VOLUP_BTN_ODL"; - }; - en_pp3300_a { - gpios = <&gpioa 3 GPIO_OUT_LOW>; - enum-name = "GPIO_EN_PP3300_A"; - label = "EN_PP3300_A"; - }; - en_pp5000_a { - gpios = <&gpioa 4 GPIO_OUT_LOW>; - enum-name = "GPIO_EN_PP5000"; - label = "EN_PP5000_A"; - }; - en_ppvar_vccin { - gpios = <&gpio4 3 GPIO_OUT_LOW>; - enum-name = "GPIO_EN_PPVAR_VCCIN"; - label = "EN_PPVAR_VCCIN"; - }; - ec_rst_odl { - gpios = <&gpio0 2 GPIO_INPUT>; - label = "EC_RST_ODL"; - }; - ec_pch_sys_pwrok { - gpios = <&gpio3 7 GPIO_OUT_LOW>; - enum-name = "GPIO_EC_PCH_SYS_PWROK"; - label = "EC_PCH_SYS_PWROK"; - }; - ec_pch_rsmrst_odl { - gpios = <&gpioa 6 GPIO_ODR_LOW>; - enum-name = "GPIO_PCH_RSMRST_L"; - label = "EC_PCH_RSMRST_ODL"; - }; - ec_pch_pwr_btn_odl { - gpios = <&gpioc 1 GPIO_ODR_HIGH>; - enum-name = "GPIO_PCH_PWRBTN_L"; - label = "EC_PCH_PWR_BTN_ODL"; - }; - ec_pch_rtcrst { - gpios = <&gpio7 6 GPIO_OUT_LOW>; - enum-name = "GPIO_PCH_RTCRST"; - label = "EC_PCH_RTCRST"; - }; - ec_pch_wake_odl { - gpios = <&gpio7 4 GPIO_ODR_HIGH>; - enum-name = "GPIO_EC_PCH_WAKE_ODL"; - label = "EC_PCH_WAKE_ODL"; - }; - ec_entering_rw { - gpios = <&gpioe 3 GPIO_OUT_LOW>; - enum-name = "GPIO_ENTERING_RW"; - label = "EC_ENTERING_RW"; - }; - ec_prochot_odl { - gpios = <&gpio6 3 GPIO_ODR_HIGH>; - enum-name = "GPIO_CPU_PROCHOT"; - label = "EC_PROCHOT_ODL"; - }; - ec_prochot_in_l { - gpios = <&gpiof 0 GPIO_INPUT>; - enum-name = "GPIO_EC_PROCHOT_IN_L"; - label = "EC_PROCHOT_IN_L"; - }; - sys_rst_odl { - gpios = <&gpioc 5 GPIO_ODR_HIGH>; - enum-name = "GPIO_SYS_RESET_L"; - label = "SYS_RST_ODL"; - }; - ec_pch_int_odl { - gpios = <&gpiob 0 GPIO_ODR_HIGH>; - label = "EC_PCH_INT_ODL"; - }; - en_pp5000_usba { - gpios = <&gpioc 6 GPIO_OUT_LOW>; - label = "EN_PP5000_USBA"; - }; - usb_a_low_pwr_od { - gpios = <&gpio6 6 GPIO_ODR_LOW>; - label = "USB_A_LOW_PWR_OD"; - }; - usb_c0_rt_rst_odl { - gpios = <&gpiod 4 GPIO_ODR_LOW>; - label = "USB_C0_RT_RST_ODL"; - }; - usb_c1_rt_rst_odl { - gpios = <&gpio8 3 GPIO_ODR_LOW>; - label = "USB_C1_RT_RST_ODL"; - }; - usb_c0_oc_odl { - gpios = <&gpiob 1 GPIO_ODR_HIGH>; - label = "USB_C0_OC_ODL"; - }; - usb_c1_oc_odl { - gpios = <&gpio5 0 GPIO_ODR_HIGH>; - label = "USB_C1_OC_ODL"; - }; - uart2_ec_rx { - gpios = <&gpio7 5 GPIO_OUT_LOW>; - label = "UART2_EC_RX"; - }; - led_1_l { - gpios = <&gpioc 4 GPIO_OUT_HIGH>; - label = "LED_1_L"; - }; - led_2_l { - gpios = <&gpioc 3 GPIO_OUT_HIGH>; - label = "LED_2_L"; - }; - led_3_l { - gpios = <&gpioc 2 GPIO_OUT_HIGH>; - label = "LED_3_L"; - }; - ccd_mode_odl { - gpios = <&gpioe 5 GPIO_INPUT>; - label = "CCD_MODE_ODL"; - }; - ec_kb_bl_en { - gpios = <&gpio8 6 GPIO_OUT_LOW>; - label = "EC_KB_BL_EN"; - }; - unused_gpio34 { - gpios = <&gpio3 4 (GPIO_INPUT | GPIO_PULL_UP)>; - label = "UNUSED_GPIO34"; - }; - unused_gpio41 { - gpios = <&gpio4 1 (GPIO_INPUT | GPIO_PULL_UP)>; - label = "UNUSED_GPIO41"; - }; - unused_gpio72 { - gpios = <&gpio7 2 (GPIO_INPUT | GPIO_PULL_UP)>; - label = "UNUSED_GPIO72"; - }; - unused_gpio96 { - gpios = <&gpio9 6 (GPIO_INPUT | GPIO_PULL_UP)>; - label = "UNUSED_GPIO96"; - }; - unused_gpioa7 { - gpios = <&gpioa 7 (GPIO_INPUT | GPIO_PULL_UP)>; - label = "UNUSED_GPIOA7"; - }; - unused_gpioc0 { - gpios = <&gpioc 0 (GPIO_INPUT | GPIO_PULL_UP)>; - label = "UNUSED_GPIOC0"; - }; - unused_gpiof2 { - gpios = <&gpiof 2 (GPIO_INPUT | GPIO_PULL_UP)>; - label = "UNUSED_GPIOF2"; - }; - ec_edp_bl_en { - gpios = <&gpiod 3 GPIO_OUT_HIGH>; - enum-name = "GPIO_ENABLE_BACKLIGHT"; - label = "EC_EDP_BL_EN"; - }; - ec_i2c0_sensor_scl { - gpios = <&gpiob 5 GPIO_INPUT>; - enum-name = "GPIO_EC_I2C0_SENSOR_SCL"; - label = "EC_I2C0_SENSOR_SCL"; - }; - ec_i2c0_sensor_sda { - gpios = <&gpiob 4 GPIO_INPUT>; - enum-name = "GPIO_EC_I2C0_SENSOR_SDA"; - label = "EC_I2C0_SENSOR_SDA"; - }; - ec_i2c1_usb_c0_scl { - gpios = <&gpio9 0 GPIO_INPUT>; - enum-name = "GPIO_EC_I2C1_USB_C0_SCL"; - label = "EC_I2C1_USB_C0_SCL"; - }; - ec_i2c1_usb_c0_sda { - gpios = <&gpio8 7 GPIO_INPUT>; - enum-name = "GPIO_EC_I2C1_USB_C0_SDA"; - label = "EC_I2C1_USB_C0_SDA"; - }; - ec_i2c2_usb_c1_scl { - gpios = <&gpio9 2 GPIO_INPUT>; - enum-name = "GPIO_EC_I2C2_USB_C1_SCL"; - label = "EC_I2C2_USB_C1_SCL"; - }; - ec_i2c2_usb_c1_sda { - gpios = <&gpio9 1 GPIO_INPUT>; - enum-name = "GPIO_EC_I2C2_USB_C1_SDA"; - label = "EC_I2C2_USB_C1_SDA"; - }; - ec_i2c3_usb_1_mix_scl { - gpios = <&gpiod 1 GPIO_INPUT>; - enum-name = "GPIO_EC_I2C3_USB_1_MIX_SCL"; - label = "EC_I2C3_USB_1_MIX_SCL"; - }; - ec_i2c3_usb_1_mix_sda { - gpios = <&gpiod 0 GPIO_INPUT>; - enum-name = "GPIO_EC_I2C3_USB_1_MIX_SDA"; - label = "EC_I2C3_USB_1_MIX_SDA"; - }; - ec_i2c5_power_scl { - gpios = <&gpio3 3 GPIO_INPUT>; - enum-name = "GPIO_EC_I2C5_BATTERY_SCL"; - label = "EC_I2C5_POWER_SCL"; - }; - ec_i2c5_power_sda { - gpios = <&gpio3 6 GPIO_INPUT>; - enum-name = "GPIO_EC_I2C5_BATTERY_SDA"; - label = "EC_I2C5_POWER_SDA"; - }; - ec_i2c7_eeprom_scl { - gpios = <&gpiob 3 GPIO_INPUT>; - enum-name = "GPIO_EC_I2C7_EEPROM_PWR_SCL_R"; - label = "EC_I2C7_EEPROM_SCL"; - }; - ec_i2c7_eeprom_sda { - gpios = <&gpiob 2 GPIO_INPUT>; - enum-name = "GPIO_EC_I2C7_EEPROM_PWR_SDA_R"; - label = "EC_I2C7_EEPROM_SDA"; - }; - ec_batt_pres_odl { - gpios = <&gpioe 1 GPIO_INPUT>; - label = "EC_BATT_PRES_ODL"; - }; - usb_c0_dp_hpd { - gpios = <&gpiof 3 GPIO_INPUT>; - label = "USB_C0_DP_HPD"; - }; - usb_c1_dp_hpd { - gpios = <&gpio7 0 GPIO_INPUT>; - label = "USB_C1_DP_HPD"; - }; - en_pp5000_fan { - gpios = <&gpio6 1 GPIO_OUT_LOW>; - label = "EN_PP5000_FAN"; - }; - ec_kso_02_inv { - gpios = <&gpio1 7 GPIO_OUT_LOW>; - enum-name = "GPIO_KBD_KSO2"; - label = "EC_KSO_02_INV"; - }; - }; - - def-lvol-io-list { - compatible = "nuvoton,npcx-lvolctrl-def"; - - /* I2C_SDA0 & SCL0 */ - lvol-io-pads = <&lvol_iob4 &lvol_iob5>; - }; -}; diff --git a/zephyr/projects/volteer/delbin/include/gpio_map.h b/zephyr/projects/volteer/delbin/include/gpio_map.h deleted file mode 100644 index 1f4b4e1ee0..0000000000 --- a/zephyr/projects/volteer/delbin/include/gpio_map.h +++ /dev/null @@ -1,70 +0,0 @@ -/* Copyright 2021 The Chromium OS Authors. All rights reserved. - * Use of this source code is governed by a BSD-style license that can be - * found in the LICENSE file. - */ - -#ifndef __ZEPHYR_GPIO_MAP_H -#define __ZEPHYR_GPIO_MAP_H - -#include <devicetree.h> -#include <gpio_signal.h> - -#define GPIO_PCH_DSW_PWROK GPIO_UNIMPLEMENTED -#define GPIO_USB_C1_LS_EN GPIO_UNIMPLEMENTED - -#ifdef CONFIG_PLATFORM_EC_POWERSEQ -#define POWER_SIGNAL_INT(gpio, edge) \ - GPIO_INT(gpio, edge, power_signal_interrupt) -#define AP_PROCHOT_INT(gpio, edge) \ - GPIO_INT(gpio, edge, throttle_ap_prochot_input_interrupt) -#else -#define POWER_SIGNAL_INT(gpio, edge) -#define AP_PROCHOT_INT(gpio, edge) -#endif - -#ifdef CONFIG_PLATFORM_EC_ACCELGYRO_BMI260 -#define BMI260_INT(gpio, edge) GPIO_INT(gpio, edge, bmi260_interrupt) -#else -#define BMI260_INT(gpio, edge) -#endif - -#ifdef CONFIG_PLATFORM_EC_GMR_TABLET_MODE -#define GMR_TABLET_MODE_INT(gpio, edge) GPIO_INT(gpio, edge, \ - gmr_tablet_switch_isr) -#define GMR_TABLET_MODE_GPIO_L GPIO_TABLET_MODE_L -#else -#define GMR_TABLET_MODE_INT(gpio, edge) -#endif - -/* - * Set EC_CROS_GPIO_INTERRUPTS to a space-separated list of GPIO_INT items. - * - * Each GPIO_INT requires three parameters: - * gpio_signal - The enum gpio_signal for the interrupt gpio - * interrupt_flags - The interrupt-related flags (e.g. GPIO_INT_EDGE_BOTH) - * handler - The platform/ec interrupt handler. - * - * Ensure that this files includes all necessary headers to declare all - * referenced handler functions. - * - * For example, one could use the follow definition: - * #define EC_CROS_GPIO_INTERRUPTS \ - * GPIO_INT(NAMED_GPIO(h1_ec_pwr_btn_odl), GPIO_INT_EDGE_BOTH, button_print) - */ -#define EC_CROS_GPIO_INTERRUPTS \ - BMI260_INT(GPIO_EC_IMU_INT_L, GPIO_INT_EDGE_FALLING) \ - GMR_TABLET_MODE_INT(GPIO_TABLET_MODE_L, GPIO_INT_EDGE_BOTH) \ - GPIO_INT(GPIO_AC_PRESENT, GPIO_INT_EDGE_BOTH, extpower_interrupt) \ - GPIO_INT(GPIO_LID_OPEN, GPIO_INT_EDGE_BOTH, lid_interrupt) \ - GPIO_INT(GPIO_POWER_BUTTON_L, GPIO_INT_EDGE_BOTH, \ - power_button_interrupt) \ - GPIO_INT(GPIO_WP_L, GPIO_INT_EDGE_BOTH, switch_interrupt) \ - POWER_SIGNAL_INT(GPIO_PCH_SLP_S0_L, GPIO_INT_EDGE_BOTH) \ - POWER_SIGNAL_INT(GPIO_PCH_SLP_S3_L, GPIO_INT_EDGE_BOTH) \ - POWER_SIGNAL_INT(GPIO_PG_EC_DSW_PWROK, GPIO_INT_EDGE_BOTH) \ - POWER_SIGNAL_INT(GPIO_PG_EC_RSMRST_ODL, GPIO_INT_EDGE_BOTH) \ - POWER_SIGNAL_INT(GPIO_PG_EC_ALL_SYS_PWRGD, GPIO_INT_EDGE_BOTH) \ - POWER_SIGNAL_INT(GPIO_SLP_SUS_L, GPIO_INT_EDGE_BOTH) \ - AP_PROCHOT_INT(GPIO_EC_PROCHOT_IN_L, GPIO_INT_EDGE_BOTH) - -#endif /* __ZEPHYR_GPIO_MAP_H */ diff --git a/zephyr/projects/volteer/delbin/motionsense.dts b/zephyr/projects/volteer/delbin/motionsense.dts deleted file mode 100644 index badc21a5e7..0000000000 --- a/zephyr/projects/volteer/delbin/motionsense.dts +++ /dev/null @@ -1,162 +0,0 @@ -/* Copyright 2021 The Chromium OS Authors. All rights reserved. - * Use of this source code is governed by a BSD-style license that can be - * found in the LICENSE file. - */ - -#include <dt-bindings/motionsense/utils.h> - - -/ { - aliases { - /* - * motion sense's <>_INT_EVENT is handled - * by alias. Using the alias, each driver creates - * its own <>_INT_EVENT. - */ - bmi260-int = &base_accel; - }; - - /* - * Declare mutexes used by sensor drivers. - * A mutex node is used to create an instance of mutex_t. - * A mutex node is referenced by a sensor node if the - * corresponding sensor driver needs to use the - * instance of the mutex. - */ - motionsense-mutex { - compatible = "cros-ec,motionsense-mutex"; - mutex_bma255: bma255-mutex { - label = "BMA255_MUTEX"; - }; - - mutex_bmi260: bmi260-mutex { - label = "BMI260_MUTEX"; - }; - }; - - /* Rotation matrix used by drivers. */ - motionsense-rotation-ref { - compatible = "cros-ec,motionsense-rotation-ref"; - lid_rot_ref: lid-rotation-ref { - mat33 = <(-1) 0 0 - 0 (-1) 0 - 0 0 1>; - }; - base_rot_ref: base-rotation-ref { - mat33 = <1 0 0 - 0 1 0 - 0 0 1>; - }; - }; - - /* - * Driver specific data. A driver-specific data can be shared with - * different motion sensors while they are using the same driver. - * - * If a node's compatible starts with "cros-ec,accelgyro-", it is for - * a common structure defined in accelgyro.h. - * e.g) compatible = "cros-ec,accelgyro-als-drv-data" is for - * "struct als_drv_data_t" in accelgyro.h - */ - motionsense-sensor-data { - bma255_data: bma255-drv-data { - compatible = "cros-ec,drvdata-bma255"; - status = "okay"; - }; - - bmi260_data: bmi260-drv-data { - compatible = "cros-ec,drvdata-bmi260"; - status = "okay"; - }; - }; - - /* - * List of motion sensors that creates motion_sensors array. - * The label "lid_accel" and "base_accel" are used to indicate - * motion sensor IDs for lid angle calculation. - */ - motionsense-sensor { - lid_accel: lid-accel { - compatible = "cros-ec,bma255"; - status = "okay"; - - label = "Lid Accel"; - active-mask = "SENSOR_ACTIVE_S0_S3"; - location = "MOTIONSENSE_LOC_LID"; - mutex = <&mutex_bma255>; - port = <&i2c_sensor>; - rot-standard-ref = <&lid_rot_ref>; - default-range = <2>; - drv-data = <&bma255_data>; - i2c-spi-addr-flags = "BMA2x2_I2C_ADDR1_FLAGS"; - configs { - compatible = - "cros-ec,motionsense-sensor-config"; - ec-s0 { - label = "SENSOR_CONFIG_EC_S0"; - odr = <(10000 | ROUND_UP_FLAG)>; - }; - ec-s3 { - label = "SENSOR_CONFIG_EC_S3"; - odr = <(10000 | ROUND_UP_FLAG)>; - }; - }; - }; - - base_accel: base-accel { - compatible = "cros-ec,bmi260-accel"; - status = "okay"; - - label = "Base Accel"; - active-mask = "SENSOR_ACTIVE_S0_S3"; - location = "MOTIONSENSE_LOC_BASE"; - mutex = <&mutex_bmi260>; - port = <&i2c_sensor>; - rot-standard-ref = <&base_rot_ref>; - default-range = <4>; - drv-data = <&bmi260_data>; - i2c-spi-addr-flags = "BMI260_ADDR0_FLAGS"; - configs { - compatible = - "cros-ec,motionsense-sensor-config"; - ec-s0 { - label = "SENSOR_CONFIG_EC_S0"; - odr = <(10000 | ROUND_UP_FLAG)>; - ec-rate = <(100 * USEC_PER_MSEC)>; - }; - ec-s3 { - label = "SENSOR_CONFIG_EC_S3"; - odr = <(10000 | ROUND_UP_FLAG)>; - ec-rate = <(100 * USEC_PER_MSEC)>; - }; - }; - }; - - base-gyro { - compatible = "cros-ec,bmi260-gyro"; - status = "okay"; - - label = "Base Gyro"; - active-mask = "SENSOR_ACTIVE_S0_S3"; - location = "MOTIONSENSE_LOC_BASE"; - mutex = <&mutex_bmi260>; - port = <&i2c_sensor>; - rot-standard-ref = <&base_rot_ref>; - default-range = <1000>; /* dps */ - drv-data = <&bmi260_data>; - i2c-spi-addr-flags = "BMI260_ADDR0_FLAGS"; - }; - }; - - motionsense-sensor-info { - compatible = "cros-ec,motionsense-sensor-info"; - - /* - * list of GPIO interrupts that have to - * be enabled at initial stage - */ - sensor-irqs = <&gpio_ec_imu_int_l>; - /* list of sensors in force mode */ - accel-force-mode-sensors = <&lid_accel>; - }; -}; diff --git a/zephyr/projects/volteer/delbin/prj.conf b/zephyr/projects/volteer/delbin/prj.conf deleted file mode 100644 index 1ef881f686..0000000000 --- a/zephyr/projects/volteer/delbin/prj.conf +++ /dev/null @@ -1,51 +0,0 @@ -# Copyright 2021 The Chromium OS Authors. All rights reserved. -# Use of this source code is governed by a BSD-style license that can be -# found in the LICENSE file. - -CONFIG_CROS_EC=y -CONFIG_PLATFORM_EC=y -CONFIG_SHIMMED_TASKS=y -CONFIG_I2C=y -CONFIG_PLATFORM_EC_BRINGUP=y - -CONFIG_ARM_MPU=y - -CONFIG_PLATFORM_EC_VBOOT_EFS2=n - -CONFIG_ESPI=y -CONFIG_PLATFORM_EC_ESPI_VW_SLP_S4=y - -CONFIG_PLATFORM_EC_EXTPOWER_GPIO=y -CONFIG_PLATFORM_EC_LID_SWITCH=y -CONFIG_PLATFORM_EC_POWER_BUTTON=y - -# Power sequencing -CONFIG_AP=y -CONFIG_AP_X86_INTEL_TGL=y -CONFIG_PLATFORM_EC_POWERSEQ=y -CONFIG_PLATFORM_EC_POWERSEQ_RTC_RESET=y -CONFIG_PLATFORM_EC_THROTTLE_AP=y - -# TODO(b/180410072): bringup these features -CONFIG_PLATFORM_EC_BOARD_VERSION_CBI=n -CONFIG_PLATFORM_EC_BOARD_VERSION_GPIO=n -CONFIG_PLATFORM_EC_VBOOT_HASH=n -CONFIG_PLATFORM_EC_VSTORE=n - -# Sensors -CONFIG_PLATFORM_EC_MOTIONSENSE=y -CONFIG_PLATFORM_EC_ACCEL_FIFO=y -CONFIG_PLATFORM_EC_ACCEL_INTERRUPTS=y -CONFIG_PLATFORM_EC_DYNAMIC_MOTION_SENSOR_COUNT=y -CONFIG_PLATFORM_EC_GMR_TABLET_MODE=y -CONFIG_PLATFORM_EC_LID_ANGLE=y -CONFIG_PLATFORM_EC_LID_ANGLE_UPDATE=y -CONFIG_PLATFORM_EC_SENSOR_TIGHT_TIMESTAMPS=y -CONFIG_PLATFORM_EC_TABLET_MODE=y - -# Sensor Drivers -CONFIG_PLATFORM_EC_ACCEL_BMA255=y -CONFIG_PLATFORM_EC_ACCELGYRO_BMI260=y -CONFIG_PLATFORM_EC_ACCELGYRO_BMI_COMM_I2C=y - -CONFIG_SYSCON=y diff --git a/zephyr/projects/volteer/delbin/zmake.yaml b/zephyr/projects/volteer/delbin/zmake.yaml deleted file mode 100644 index dc5217e042..0000000000 --- a/zephyr/projects/volteer/delbin/zmake.yaml +++ /dev/null @@ -1,14 +0,0 @@ -# Copyright 2021 The Chromium OS Authors. All rights reserved. -# Use of this source code is governed by a BSD-style license that can be -# found in the LICENSE file. - -board: volteer -dts-overlays: - - gpio.dts - - motionsense.dts -supported-toolchains: - - coreboot-sdk - - zephyr -supported-zephyr-versions: - - v2.6 -output-type: npcx |