diff options
author | Aseda Aboagye <aaboagye@google.com> | 2022-01-10 17:26:56 -0600 |
---|---|---|
committer | Aseda Aboagye <aaboagye@google.com> | 2022-01-10 17:26:56 -0600 |
commit | dc11829e169a9c425860ec5cca949ef80df9e0b7 (patch) | |
tree | 0517b0831c6e52b347926a1b727741df380e908c /zephyr/dts | |
parent | c5bd23a4b204565dab616f7fa4ee8a0b7b433d4c (diff) | |
parent | b44d10f8f79cadb259cc7ab79714a0919fc0c4c8 (diff) | |
download | chrome-ec-firmware-keeby-14119.B-main.tar.gz |
Merge remote-tracking branch cros/main into firmware-keeby-14119.B-mainfirmware-keeby-14119.B-main
Relevant changes:
git log --oneline c5bd23a4b..b44d10f8f -- baseboard/dedede board/cappy2
board/corori board/driblee board/gooey board/haboki board/lalala
board/waddledoo2 common/charge_state_v2.c common/mkbp_* common/ocpc.c
common/usbc/usb_tc_drp_acc_trysrc_sm.c common/usbc/usb_sm.c
common/usbc/*_pd_* common/usbc/dp_alt_mode.c common/usbc/usb_prl_sm.c
common/usbc/usb_pe_drp_sm.c common/usb_charger.c common/usb_common.c
common/usbc_ocp.c driver/charger/sm5803.* driver/charger/isl923x.*
driver/tcpm/raa489000.* driver/tcpm/it83* include/power/icelake.h
include/intel_x86.h power/icelake.c power/intel_x86.c util/getversion.sh
42d03a001 config: change temp_sensor_power from config to gpio
e296efb28 usb_common: Fix CONFIG_USB_PD_DISCHARGE_TCPC typo
c346481f4 atomic: cast to unsigned when shifting
9b972a0f2 driver/tcpm/it83xx, it8xxx2: ITE inactive port return from HOOK
a499d8fd4 driver/tcpm/it83xx, it8xxx2: set sleep mask for mixed TCPC case
ed62e2583 TCPMv2: don't set the sleep mask for TCPC embedded in EC
c962696e8 motion_sensor: Remove |int_signal| field
86b216794 ocpc: modify pre-charge target condition
6f8336eb4 dedede: Set MKBP event wake mask to 0
02d034df0 dedede: add stylus fw_config
4f7cd7509 atomic: use atomic_t where it is possible
e3ffa0519 mkbp: change the type fifo_entries to atomic_t
bb4c47af0 usb: use atomic_t where possible
c6e513ee2 power/icelake: Add SLP_S5 as a watched power signal
d89e49b20 power: Introduce S4 as a real power state
ba8a3c9c0 chgstv2: Use chipset_in_state instead of naming states
23a975d12 i2c: Use declared initializers for i2c_ports: boards a-l
35865dbec TCPMv2: Guard DATA_RESET using CONFIG_USB_PD_DATA_RESET_MSG
d4d8243ed i2c: Use declared initializers for i2c_ports: baseboards
eba8d0305 RAA489000: Fixed RAA489000 max charging current
e78b83e0f TCPMv2: Delay Data Reset until mode entry request
6230e60fc TCPMv2: Support Data Reset as DFP, initiator
412246836 intel_x86: Apply chipset resume init and suspend complete hooks
f2809b72c config: rename CONFIG_HOSTCMD_ESPI to CONFIG_HOST_INTERFACE_ESPI
BRANCH=None
BUG=b:202796060 b:207805856 b:167983049 b:208318528 b:181983966
BUG=b:207328258 b:195416058 b:205285137 b:199919093 b:207055975
BUG=b:129159505 b:204947672 b:141363146 b:207082842 b:205675485
TEST=`make -j buildall`
Signed-off-by: Aseda Aboagye <aaboagye@google.com>
Change-Id: I980351977e11088a130e478df0701be4715f049b
Diffstat (limited to 'zephyr/dts')
36 files changed, 453 insertions, 44 deletions
diff --git a/zephyr/dts/bindings/adc/named-adc.yaml b/zephyr/dts/bindings/adc/named-adc.yaml index 11df44f8d9..a21ed82e39 100644 --- a/zephyr/dts/bindings/adc/named-adc.yaml +++ b/zephyr/dts/bindings/adc/named-adc.yaml @@ -13,8 +13,7 @@ child-binding: required: true type: string description: - Human-readable string describing the device (used as - device_get_binding() argument) + String used to describe an ADC channel in the 'adc' console command. channel: required: true type: int @@ -91,12 +90,22 @@ child-binding: - ADC_AMON_BMON - ADC_BOARD_ID_0 - ADC_BOARD_ID_1 + - ADC_CORE_IMON1 + - ADC_ID_0 + - ADC_ID_1 - ADC_PMON + - ADC_PP3300_S5 - ADC_PSYS + - ADC_SOC_IMON2 + - ADC_TEMP_SENSOR_1 + - ADC_TEMP_SENSOR_2 + - ADC_TEMP_SENSOR_3 - ADC_TEMP_SENSOR_CHARGER - ADC_TEMP_SENSOR_DDR_SOC - ADC_TEMP_SENSOR_FAN + - ADC_TEMP_SENSOR_MEMORY - ADC_TEMP_SENSOR_PP3300_REGULATOR + - ADC_TEMP_SENSOR_SOC - ADC_TEMP_SENSOR_1_DDR_SOC - ADC_TEMP_SENSOR_2_AMBIENT - ADC_TEMP_SENSOR_3_CHARGER diff --git a/zephyr/dts/bindings/battery/battery-smart.yaml b/zephyr/dts/bindings/battery/battery-smart.yaml index 3bb64f094f..96f7b6bdd2 100644 --- a/zephyr/dts/bindings/battery/battery-smart.yaml +++ b/zephyr/dts/bindings/battery/battery-smart.yaml @@ -15,6 +15,8 @@ properties: - "as3gwrc3ka,c235-41" - "lgc,ap16l8j" - "lgc,ap18c8k" + - "lgc,l20l3pg2" - "murata,ap18c4k" - "panasonic,ap16l5j" - "panasonic,ap16l5j-009" + - "smp,l20m3pg2" diff --git a/zephyr/dts/bindings/battery/lgc,l20l3pg2.yaml b/zephyr/dts/bindings/battery/lgc,l20l3pg2.yaml new file mode 100644 index 0000000000..bf2b62bc44 --- /dev/null +++ b/zephyr/dts/bindings/battery/lgc,l20l3pg2.yaml @@ -0,0 +1,53 @@ +# 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. + +description: "LGC L20L3PG2" +compatible: "lgc,l20l3pg2" + +include: battery-smart.yaml + +properties: + enum-name: + type: string + default: "lgc,l20l3pg2" + + # Fuel gauge + manuf_name: + default: "LGC" + device_name: + default: "L20L3PG2" + ship_mode_reg_addr: + default: 0x34 + ship_mode_reg_data: + default: [ 0x0000, 0x1000 ] + fet_mfgacc_support: + default: 0 + fet_reg_addr: + default: 0x34 + fet_reg_mask: + default: 0x0100 + fet_disconnect_val: + default: 0x0100 + + # Battery info + voltage_max: + default: 13050 + voltage_normal: + default: 11400 + voltage_min: + default: 9000 + precharge_current: + default: 256 + start_charging_min_c: + default: 0 + start_charging_max_c: + default: 50 + charging_min_c: + default: 0 + charging_max_c: + default: 60 + discharging_min_c: + default: -20 + discharging_max_c: + default: 73 diff --git a/zephyr/dts/bindings/battery/named-batteries.yaml b/zephyr/dts/bindings/battery/named-batteries.yaml index bdd6cc70fa..f382bfd52e 100644 --- a/zephyr/dts/bindings/battery/named-batteries.yaml +++ b/zephyr/dts/bindings/battery/named-batteries.yaml @@ -18,4 +18,6 @@ child-binding: - "c235" - "lgc011" - "lgc_ap18c8k" + - "lgc_l20l3pg2" - "murata_ap18c4k" + - "smp_l20m3pg2" diff --git a/zephyr/dts/bindings/battery/smp,l20m3pg2.yaml b/zephyr/dts/bindings/battery/smp,l20m3pg2.yaml new file mode 100644 index 0000000000..874e1f8d0c --- /dev/null +++ b/zephyr/dts/bindings/battery/smp,l20m3pg2.yaml @@ -0,0 +1,53 @@ +# 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. + +description: "SMP L20M3PG2" +compatible: "smp,l20m3pg2" + +include: battery-smart.yaml + +properties: + enum-name: + type: string + default: "smp,l20m3pg2" + + # Fuel gauge + manuf_name: + default: "SMP" + device_name: + default: "L20M3PG2" + ship_mode_reg_addr: + default: 0x34 + ship_mode_reg_data: + default: [ 0x0000, 0x0100 ] + fet_mfgacc_support: + default: 0 + fet_reg_addr: + default: 0x34 + fet_reg_mask: + default: 0x0100 + fet_disconnect_val: + default: 0x0100 + + # Battery info + voltage_max: + default: 13050 + voltage_normal: + default: 11250 + voltage_min: + default: 9000 + precharge_current: + default: 256 + start_charging_min_c: + default: 0 + start_charging_max_c: + default: 45 + charging_min_c: + default: 0 + charging_max_c: + default: 45 + discharging_min_c: + default: -20 + discharging_max_c: + default: 60 diff --git a/zephyr/dts/bindings/cbi/named-cbi-fw-config-value.yaml b/zephyr/dts/bindings/cbi/named-cbi-fw-config-value.yaml new file mode 100644 index 0000000000..5d7c48604b --- /dev/null +++ b/zephyr/dts/bindings/cbi/named-cbi-fw-config-value.yaml @@ -0,0 +1,21 @@ +# 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. + +description: + Possible CBI FW_CONFIG individual field values. + It has to be defined as a grandchild on the "named-cbi-fw-config" nodes + +compatible: "named-cbi-fw-config-value" + +properties: + enum-name: + type: string + required: true + description: + Name of the value used for description purposes + value: + type: int + required: true + description: + Unique value within the parent CBI FW_CONFIG field diff --git a/zephyr/dts/bindings/cbi/named-cbi-fw-config.yaml b/zephyr/dts/bindings/cbi/named-cbi-fw-config.yaml new file mode 100644 index 0000000000..c8871ddb00 --- /dev/null +++ b/zephyr/dts/bindings/cbi/named-cbi-fw-config.yaml @@ -0,0 +1,52 @@ +# 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. + +description: CBI Firmware Config fields (FW_CONFIG) + +compatible: "named-cbi-fw-config" + +child-binding: + description: + CBI Firmware Config fields definition. + Each field is defined via a start bit (from LSB) and a size. + The total size of all FW_CONFIG bit fields must not exceed 32 bits. + properties: + enum-name: + type: string + required: true + description: + Name of field used for description purposes + start: + type: int + required: true + description: The starting bit of the field (LSB = 0) + size: + type: int + required: true + description: The size of the field in bits. + +# Example: +# +# cbi-fw-config { +# compatible = "named-cbi-fw-config"; +# +# fan { +# enum-name = "FAN"; +# start = <0> +# size = <1>; +# fan_absent { +# enum-name = "ABSENT" +# compatible = "named-cbi-fw-config-value"; +# value = <0>; +# fan_present { +# enum-name = "PRESENT" +# compatible = "named-cbi-fw-config-value"; +# value = <1>; +# }; +# }; +# }; +# +# This will generate an enum field id for CBI_FW_CONFIG_FIELD_FAN, +# and separate values for CBI_FW_CONFIG_FIELD_FAN_ABSENT = 0 and +# CBI_FW_CONFIG_FIELD_FAN_PRESENT = 1 diff --git a/zephyr/dts/bindings/cros_pwr_signal/mt8186,power-signal-list.yaml b/zephyr/dts/bindings/cros_pwr_signal/mt8186,power-signal-list.yaml new file mode 100644 index 0000000000..6e9af9ccef --- /dev/null +++ b/zephyr/dts/bindings/cros_pwr_signal/mt8186,power-signal-list.yaml @@ -0,0 +1,20 @@ +# Copyright 2021 Google LLC +# SPDX-License-Identifier: Apache-2.0 + +description: MediaTek MT8186, Power Signal List +compatible: "mt8186,power-signal-list" + +include: power-signal-list.yaml + +properties: + power-signals-required: + default: 4 + +child-binding: + properties: + power-enum-name: + enum: + - AP_IN_RST + - AP_IN_S3 + - AP_WDT_ASSERTED + - AP_WARM_RST_REQ diff --git a/zephyr/dts/bindings/emul/cros,isl923x_emul.yaml b/zephyr/dts/bindings/emul/cros,isl923x-emul.yaml index be8b1183a2..81663b5509 100644 --- a/zephyr/dts/bindings/emul/cros,isl923x_emul.yaml +++ b/zephyr/dts/bindings/emul/cros,isl923x-emul.yaml @@ -4,9 +4,14 @@ description: ISL923X Charger emulator -compatible: "cros,isl923x_emul" +compatible: "cros,isl923x-emul" include: base.yaml properties: reg: required: true + battery: + type: phandle + required: false + description: + Reference to battery emulator. diff --git a/zephyr/dts/bindings/emul/cros,ln9310-emul.yaml b/zephyr/dts/bindings/emul/cros,ln9310-emul.yaml index 811f77206f..7723998786 100644 --- a/zephyr/dts/bindings/emul/cros,ln9310-emul.yaml +++ b/zephyr/dts/bindings/emul/cros,ln9310-emul.yaml @@ -11,3 +11,9 @@ include: base.yaml properties: reg: required: true + pg_int_gpio: + type: phandle + description: + GPIO that receives interrupt signal from this device. + required: true + diff --git a/zephyr/dts/bindings/emul/cros,sn5s330.yaml b/zephyr/dts/bindings/emul/cros,sn5s330.yaml index b7964b777b..a459f9dafd 100644 --- a/zephyr/dts/bindings/emul/cros,sn5s330.yaml +++ b/zephyr/dts/bindings/emul/cros,sn5s330.yaml @@ -4,9 +4,13 @@ description: sn5s330 emulator -compatible: "cros,sn5s330" +compatible: "cros,sn5s330-emul" include: base.yaml properties: reg: required: true + int_gpio: + type: phandle + description: The GPIO that receives an interrupt signal from this device + required: true diff --git a/zephyr/dts/bindings/emul/zephyr,syv682x.yaml b/zephyr/dts/bindings/emul/zephyr,syv682x.yaml index e1ce84e85d..8652b42b82 100644 --- a/zephyr/dts/bindings/emul/zephyr,syv682x.yaml +++ b/zephyr/dts/bindings/emul/zephyr,syv682x.yaml @@ -13,3 +13,7 @@ properties: type: phandle description: The GPIO that controls FRS enable on this device required: true + alert_gpio: + type: phandle + description: The GPIO that receives the alert signal from this device + required: true diff --git a/zephyr/dts/bindings/gpio/gpio-enum-name.yaml b/zephyr/dts/bindings/gpio/gpio-enum-name.yaml index 2bc19d3ec4..a5a0fb3844 100644 --- a/zephyr/dts/bindings/gpio/gpio-enum-name.yaml +++ b/zephyr/dts/bindings/gpio/gpio-enum-name.yaml @@ -35,6 +35,7 @@ properties: - GPIO_EC_ALS_RGB_INT_L - GPIO_EC_AP_DP_HPD_ODL - GPIO_EC_BL_EN_OD + - GPIO_EC_CBI_WP - GPIO_EC_CHG_LED_B_C1 - GPIO_EC_CHG_LED_W_C0 - GPIO_EC_CHG_LED_W_C1 @@ -55,16 +56,20 @@ properties: - GPIO_EC_I2C7_EEPROM_PWR_SDA_R - GPIO_EC_I2C_SENSOR_SCL - GPIO_EC_I2C_SENSOR_SDA + - GPIO_EC_I2C_USBC_PD_INT - GPIO_EC_IMU_INT_L - GPIO_EC_INT_L - GPIO_EC_PCH_SYS_PWROK - GPIO_EC_PCH_WAKE_ODL - GPIO_EC_PCORE_INT_ODL + - GPIO_EC_PEN_CHG_DIS_ODL - GPIO_EC_PMIC_EN_ODL - GPIO_EC_PMIC_WATCHDOG_L - GPIO_EC_PROCHOT_IN_L - GPIO_EC_PWR_BTN_ODL - GPIO_EC_RST_ODL + - GPIO_EC_SOC_PWR_GOOD + - GPIO_EC_SC_RST - GPIO_EC_WP_L - GPIO_EC_X_GPIO1 - GPIO_EC_X_GPIO3 @@ -87,12 +92,14 @@ properties: - GPIO_EN_PWR_A - GPIO_EN_PWR_PCORE_S0_R - GPIO_EN_PWR_S0_R + - GPIO_EN_PWR_S3 - GPIO_EN_S5_RAILS - GPIO_EN_SLP_Z - GPIO_EN_ULP - GPIO_EN_USB_A_5V - GPIO_HDMI_PRSNT_ODL - GPIO_HIBERNATE_L + - GPIO_HUB_RST - GPIO_I2C_A_SCL - GPIO_I2C_A_SDA - GPIO_I2C_B_SCL @@ -122,16 +129,20 @@ properties: - GPIO_PCH_SLP_S5_L - GPIO_PCH_SLP_SUS_L - GPIO_PCH_SYS_PWROK + - GPIO_PCORE_OCP_L - GPIO_PGOOD_FAN - GPIO_PG_EC_ALL_SYS_PWRGD - GPIO_PG_EC_DSW_PWROK - GPIO_PG_EC_RSMRST_ODL - GPIO_PG_GROUPC_S0_OD - GPIO_PG_LPDDR4X_S3_OD + - GPIO_PG_LPDDR5_S0_OD + - GPIO_PG_LPDDR5_S3_OD - GPIO_PG_MT6315_GPU_ODL - GPIO_PG_MT6315_PROC_ODL - GPIO_PG_MT6360_ODL - GPIO_PG_PP5000_A_ODL + - GPIO_PG_PP5000_Z2_OD - GPIO_PMIC_EC_PWRGD - GPIO_PMIC_KPD_PWR_ODL - GPIO_PMIC_RESIN_L @@ -142,11 +153,14 @@ properties: - GPIO_QSIP_ON - GPIO_S0_PGOOD - GPIO_S5_PGOOD + - GPIO_SC_0_INT_L - GPIO_SET_VMC_VOLT_AT_1V8 + - GPIO_SHI_CS_L - GPIO_SKU_ID0 - GPIO_SKU_ID1 - GPIO_SKU_ID2 - GPIO_SLP_SUS_L + - GPIO_SOC_THERMTRIP_ODL - GPIO_SPI0_CS - GPIO_SPI_CLK_GPG6 - GPIO_SPI_CS_GPG7 @@ -176,6 +190,7 @@ properties: - GPIO_USB_C0_PPC_INT_ODL - GPIO_USB_C0_SWCTL_INT_ODL - GPIO_USB_C0_TCPC_INT_ODL + - GPIO_USB_C0_TCPC_RST - GPIO_USB_C0_TCPC_RST_L - GPIO_USB_C1_BC12_CHARGER_INT_ODL - GPIO_USB_C1_BC12_INT_L @@ -192,6 +207,8 @@ properties: - GPIO_USB_C1_SWCTL_INT_ODL - GPIO_USB_C1_TCPC_INT_ODL - GPIO_USB_C1_TCPC_RST_L + - GPIO_USB_HUB_FAULT_ODL + - GPIO_USB_FAULT_ODL - GPIO_VCCST_PWRGD_OD - GPIO_VBOB_EN - GPIO_VOLUME_DOWN_L @@ -199,4 +216,5 @@ properties: - GPIO_WARM_RESET_L - GPIO_WP - GPIO_WP_L + - GPIO_X_EC_GPIO1 - GPIO_X_EC_GPIO2 diff --git a/zephyr/dts/bindings/gpio/named-gpios.yaml b/zephyr/dts/bindings/gpio/named-gpios.yaml index 563c841f54..1f694a853b 100644 --- a/zephyr/dts/bindings/gpio/named-gpios.yaml +++ b/zephyr/dts/bindings/gpio/named-gpios.yaml @@ -9,12 +9,6 @@ child-binding: gpios: type: phandle-array required: true - label: - required: true - type: string - description: | - Human readable string describing the device (used as - device_get_binding() argument) "#gpio-cells": type: int required: false diff --git a/zephyr/dts/bindings/i2c/cros-ec-i2c-port-base.yaml b/zephyr/dts/bindings/i2c/cros-ec-i2c-port-base.yaml index e27488c9a9..e4981c2dc5 100644 --- a/zephyr/dts/bindings/i2c/cros-ec-i2c-port-base.yaml +++ b/zephyr/dts/bindings/i2c/cros-ec-i2c-port-base.yaml @@ -28,6 +28,7 @@ properties: - I2C_PORT_EVB_2 - I2C_PORT_EVB_3 - I2C_PORT_EVB_7 + - I2C_PORT_MP2964 - I2C_PORT_OPT_4 - I2C_PORT_POWER - I2C_PORT_PPC0 @@ -38,6 +39,7 @@ properties: - I2C_PORT_TCPC1 - I2C_PORT_USB_1_MIX - I2C_PORT_USB_C0 + - I2C_PORT_USB_C0_TCPC - I2C_PORT_USB_C0_C2_MUX - I2C_PORT_USB_C0_C2_PPC - I2C_PORT_USB_C0_C2_TCPC @@ -49,12 +51,6 @@ properties: - I2C_PORT_USB_MUX1 - I2C_PORT_VIRTUAL_BATTERY - I2C_PORT_WLC - label: - required: true - type: string - description: - Human readable string describing the device (used as device_get_binding() - argument). dynamic-speed: type: boolean required: false diff --git a/zephyr/dts/bindings/motionsense/driver/bmi160.yaml b/zephyr/dts/bindings/motionsense/driver/bmi160.yaml index 8f490254a3..6ca096d87a 100644 --- a/zephyr/dts/bindings/motionsense/driver/bmi160.yaml +++ b/zephyr/dts/bindings/motionsense/driver/bmi160.yaml @@ -10,7 +10,7 @@ include: motionsense-sensor-base.yaml properties: i2c-spi-addr-flags: type: string - description: i2c address or SPI slave logic GPIO + description: i2c address or SPI peripheral logic GPIO enum: - "BMI160_ADDR0_FLAGS" default: "BMI160_ADDR0_FLAGS" diff --git a/zephyr/dts/bindings/motionsense/driver/cros-ec,bma255.yaml b/zephyr/dts/bindings/motionsense/driver/cros-ec,bma255.yaml index 77d6282d7f..cbd9e82f2d 100644 --- a/zephyr/dts/bindings/motionsense/driver/cros-ec,bma255.yaml +++ b/zephyr/dts/bindings/motionsense/driver/cros-ec,bma255.yaml @@ -12,7 +12,7 @@ include: motionsense-sensor-base.yaml properties: i2c-spi-addr-flags: type: string - description: i2c address or SPI slave logic GPIO + description: i2c address or SPI peripheral logic GPIO enum: - "BMA2x2_I2C_ADDR1_FLAGS" - "BMA2x2_I2C_ADDR2_FLAGS" diff --git a/zephyr/dts/bindings/motionsense/driver/cros-ec,icm42607-accel.yaml b/zephyr/dts/bindings/motionsense/driver/cros-ec,icm42607-accel.yaml new file mode 100644 index 0000000000..ba7fbb3878 --- /dev/null +++ b/zephyr/dts/bindings/motionsense/driver/cros-ec,icm42607-accel.yaml @@ -0,0 +1,13 @@ +# 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. + +description: motion sense sensor node for ICM42607 accel + +compatible: "cros-ec,icm42607-accel" + +include: icm42607.yaml + +properties: + default-range: + default: 4 diff --git a/zephyr/dts/bindings/motionsense/driver/cros-ec,icm42607-gyro.yaml b/zephyr/dts/bindings/motionsense/driver/cros-ec,icm42607-gyro.yaml new file mode 100644 index 0000000000..4707f33d6d --- /dev/null +++ b/zephyr/dts/bindings/motionsense/driver/cros-ec,icm42607-gyro.yaml @@ -0,0 +1,13 @@ +# 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. + +description: motion sense sensor node for ICM42607 gyro + +compatible: "cros-ec,icm42607-gyro" + +include: icm42607.yaml + +properties: + default-range: + default: 1000 diff --git a/zephyr/dts/bindings/motionsense/driver/cros-ec,kx022.yaml b/zephyr/dts/bindings/motionsense/driver/cros-ec,kx022.yaml index b90d824575..8aecc32077 100644 --- a/zephyr/dts/bindings/motionsense/driver/cros-ec,kx022.yaml +++ b/zephyr/dts/bindings/motionsense/driver/cros-ec,kx022.yaml @@ -12,7 +12,7 @@ include: motionsense-sensor-base.yaml properties: i2c-spi-addr-flags: type: string - description: i2c address or SPI slave logic GPIO + description: i2c address or SPI peripheral logic GPIO enum: - "KX022_ADDR0_FLAGS" - "KX022_ADDR1_FLAGS" diff --git a/zephyr/dts/bindings/motionsense/driver/cros-ec,lsm6dso-accel.yaml b/zephyr/dts/bindings/motionsense/driver/cros-ec,lsm6dso-accel.yaml new file mode 100644 index 0000000000..5c3c6172f0 --- /dev/null +++ b/zephyr/dts/bindings/motionsense/driver/cros-ec,lsm6dso-accel.yaml @@ -0,0 +1,13 @@ +# 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. + +description: motionsense sensor node for LSM6DSO Accelerometer + +compatible: "cros-ec,lsm6dso-accel" + +include: lsm6dso.yaml + +properties: + default-range: + default: 2 diff --git a/zephyr/dts/bindings/motionsense/driver/cros-ec,lsm6dso-gyro.yaml b/zephyr/dts/bindings/motionsense/driver/cros-ec,lsm6dso-gyro.yaml new file mode 100644 index 0000000000..a10a98d97f --- /dev/null +++ b/zephyr/dts/bindings/motionsense/driver/cros-ec,lsm6dso-gyro.yaml @@ -0,0 +1,13 @@ +# 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. + +description: motionsense sensor node for LSM6DSO Gyro + +compatible: "cros-ec,lsm6dso-gyro" + +include: lsm6dso.yaml + +properties: + default-range: + default: 1000 diff --git a/zephyr/dts/bindings/motionsense/driver/icm42607.yaml b/zephyr/dts/bindings/motionsense/driver/icm42607.yaml new file mode 100644 index 0000000000..f47e7a2f97 --- /dev/null +++ b/zephyr/dts/bindings/motionsense/driver/icm42607.yaml @@ -0,0 +1,17 @@ +# 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. + +# common fields for both ICM426xx accel and gyro + +# every motionsense sensor node should include motionsense-sensor-base.yaml +include: motionsense-sensor-base.yaml + +properties: + i2c-spi-addr-flags: + type: string + description: i2c address or SPI peripheral logic GPIO + enum: + - "ICM42607_ADDR0_FLAGS" + - "ICM42607_ADDR1_FLAGS" + default: "ICM42607_ADDR0_FLAGS" diff --git a/zephyr/dts/bindings/motionsense/driver/lsm6dso.yaml b/zephyr/dts/bindings/motionsense/driver/lsm6dso.yaml new file mode 100644 index 0000000000..dd345854be --- /dev/null +++ b/zephyr/dts/bindings/motionsense/driver/lsm6dso.yaml @@ -0,0 +1,19 @@ +# 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. +# +# common fields for both LSM6DSO accel and gyro + +# every motionsense sensor node should include motionsense-sensor-base.yaml +include: motionsense-sensor-base.yaml + +properties: + i2c-spi-addr-flags: + type: string + description: i2c address or SPI peripheral logic GPIO + # Address is b'0110101x' where x is determined by the + # logic level on SA0 + enum: + - "LSM6DSO_ADDR0_FLAGS" + - "LSM6DSO_ADDR1_FLAGS" + default: "LSM6DSO_ADDR0_FLAGS" diff --git a/zephyr/dts/bindings/motionsense/driver/tcs3400.yaml b/zephyr/dts/bindings/motionsense/driver/tcs3400.yaml index 2fc3d7eacd..ecad7ec1a7 100644 --- a/zephyr/dts/bindings/motionsense/driver/tcs3400.yaml +++ b/zephyr/dts/bindings/motionsense/driver/tcs3400.yaml @@ -10,7 +10,7 @@ include: motionsense-sensor-base.yaml properties: i2c-spi-addr-flags: type: string - description: i2c address or SPI slave logic GPIO + description: i2c address or SPI peripheral logic GPIO enum: - "TCS3400_I2C_ADDR_FLAGS" default: "TCS3400_I2C_ADDR_FLAGS" diff --git a/zephyr/dts/bindings/motionsense/drvdata/cros-ec,drvdata-lsm6dso.yaml b/zephyr/dts/bindings/motionsense/drvdata/cros-ec,drvdata-lsm6dso.yaml new file mode 100644 index 0000000000..d3a37da9a1 --- /dev/null +++ b/zephyr/dts/bindings/motionsense/drvdata/cros-ec,drvdata-lsm6dso.yaml @@ -0,0 +1,18 @@ +# 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. + +description: LSM6DSO driver data node + +compatible: "cros-ec,drvdata-lsm6dso" + +include: drvdata-base.yaml + +# +# examples: +# +# lsm6dso_data: lsm6dso-drv-data { +# compatible = "cros-ec,drvdata-lsm6dso"; +# status = "okay"; +# }; +# diff --git a/zephyr/dts/bindings/motionsense/motionsense-sensor-base.yaml b/zephyr/dts/bindings/motionsense/motionsense-sensor-base.yaml index 6adaa22ee5..9e4aa8e3f7 100644 --- a/zephyr/dts/bindings/motionsense/motionsense-sensor-base.yaml +++ b/zephyr/dts/bindings/motionsense/motionsense-sensor-base.yaml @@ -58,13 +58,10 @@ properties: type: phandle description: phandle to another sensor that can be swapped with this one at runtime. - alternate-indicator: + alternate-ssfc-indicator: type: phandle - description: phandle to CBI SSGC value indicating that the sensor + description: phandle to CBI SSFC value indicating that the sensor should be used - runtime-probe: - type: boolean - description: runtime probing of sensor will be executed if true int-signal: type: phandle description: pin which triggers interrupt for sensor diff --git a/zephyr/dts/bindings/pmic/mps,mp2964.yaml b/zephyr/dts/bindings/pmic/mps,mp2964.yaml new file mode 100644 index 0000000000..db35aa07b2 --- /dev/null +++ b/zephyr/dts/bindings/pmic/mps,mp2964.yaml @@ -0,0 +1,9 @@ +# 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. + +description: MPS MP2964 Power Management IC + +compatible: "mps,mp2964" + +include: i2c-device.yaml diff --git a/zephyr/dts/bindings/pwm/named-pwms.yaml b/zephyr/dts/bindings/pwm/named-pwms.yaml index f01fd5a30a..3e5c1c789f 100644 --- a/zephyr/dts/bindings/pwm/named-pwms.yaml +++ b/zephyr/dts/bindings/pwm/named-pwms.yaml @@ -12,12 +12,6 @@ child-binding: pwms: type: phandle-array required: true - label: - required: true - type: string - description: - Human readable string describing the device (used as - device_get_binding() argument) frequency: required: true type: int diff --git a/zephyr/dts/bindings/temp/cros_ec_temp_sensor.yaml b/zephyr/dts/bindings/temp/cros_ec_temp_sensor.yaml index a60cdda954..f1f1dcd41c 100644 --- a/zephyr/dts/bindings/temp/cros_ec_temp_sensor.yaml +++ b/zephyr/dts/bindings/temp/cros_ec_temp_sensor.yaml @@ -7,18 +7,7 @@ description: > Zero values in degrees K(-273 in degrees C)in thermal thresholds will be ignored -compatible: cros-ec,temp-sensor - properties: - adc: - required: true - type: phandle - description: The named adc channel - - thermistor: - type: phandle - description: Underlying thermistor device if used - label: required: true type: string @@ -32,10 +21,16 @@ properties: description: Enum values used in the source code to refer to the temperature sensors enum: + - TEMP_SENSOR_1 + - TEMP_SENSOR_2 + - TEMP_SENSOR_AMB - TEMP_SENSOR_CHARGER + - TEMP_SENSOR_CPU - TEMP_SENSOR_DDR_SOC - TEMP_SENSOR_FAN + - TEMP_SENSOR_MEMORY - TEMP_SENSOR_PP3300_REGULATOR + - TEMP_SENSOR_SOC - TEMP_SENSOR_1_DDR_SOC - TEMP_SENSOR_2_AMBIENT - TEMP_SENSOR_3_CHARGER diff --git a/zephyr/dts/bindings/temp/cros_ec_temp_sensor_thermistor.yaml b/zephyr/dts/bindings/temp/cros_ec_temp_sensor_thermistor.yaml new file mode 100644 index 0000000000..34acbebcae --- /dev/null +++ b/zephyr/dts/bindings/temp/cros_ec_temp_sensor_thermistor.yaml @@ -0,0 +1,20 @@ +# 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. + +description: > + Properties for a thermistor temperature sensor + +include: cros_ec_temp_sensor.yaml + +compatible: cros-ec,temp-sensor-thermistor + +properties: + adc: + required: true + type: phandle + description: The named adc channel + + thermistor: + type: phandle + description: Underlying thermistor device diff --git a/zephyr/dts/bindings/temp/cros_ec_temp_sensor_tmp112.yaml b/zephyr/dts/bindings/temp/cros_ec_temp_sensor_tmp112.yaml new file mode 100644 index 0000000000..0cf05f48a0 --- /dev/null +++ b/zephyr/dts/bindings/temp/cros_ec_temp_sensor_tmp112.yaml @@ -0,0 +1,35 @@ +# 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. + +description: > + Properties for a TMP112 I2C temperature sensor + +include: cros_ec_temp_sensor.yaml + +compatible: cros-ec,temp-sensor-tmp112 + +properties: + tmp112-name: + type: string + required: true + description: + Enum value to index into the TMP112 specific sensors + enum: + - TMP112_SOC + - TMP112_AMB + + port: + required: true + type: phandle + description: phandle to the named i2c port + + i2c-addr-flags: + required: true + type: string + description: I2C address of chip + enum: + - TMP112_I2C_ADDR_FLAGS0 + - TMP112_I2C_ADDR_FLAGS1 + - TMP112_I2C_ADDR_FLAGS2 + - TMP112_I2C_ADDR_FLAGS3 diff --git a/zephyr/dts/bindings/usbc/nuvoton,nct38xx.yaml b/zephyr/dts/bindings/usbc/nuvoton,nct38xx.yaml new file mode 100644 index 0000000000..2d85d14f79 --- /dev/null +++ b/zephyr/dts/bindings/usbc/nuvoton,nct38xx.yaml @@ -0,0 +1,14 @@ +# 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. + +description: Nuvoton NCT38XX USB TCPC binding + +compatible: "nuvoton,nct38xx" + +properties: + gpio-dev: + type: phandle + description: | + Pointer to the NCT38XX GPIO device. This is used to binding the Cros TCPC + port index to Zephyr NCT38XX GPIO device. diff --git a/zephyr/dts/bindings/usbc/pericom,pi3usb9201.yaml b/zephyr/dts/bindings/usbc/pericom,pi3usb9201.yaml index d72fa20a47..41e1501684 100644 --- a/zephyr/dts/bindings/usbc/pericom,pi3usb9201.yaml +++ b/zephyr/dts/bindings/usbc/pericom,pi3usb9201.yaml @@ -11,7 +11,6 @@ properties: irq: type: phandles - required: true description: | GPIO interrupt from BC1.2 diff --git a/zephyr/dts/bindings/usbc/silergy,syv682x.yaml b/zephyr/dts/bindings/usbc/silergy,syv682x.yaml index 51484e1792..046f9e09fe 100644 --- a/zephyr/dts/bindings/usbc/silergy,syv682x.yaml +++ b/zephyr/dts/bindings/usbc/silergy,syv682x.yaml @@ -11,4 +11,4 @@ properties: - "SYV682X_ADDR0_FLAGS" - "SYV682X_ADDR1_FLAGS" - "SYV682X_ADDR2_FLAGS" - - "SYV682x_ADDR3_FLAGS" + - "SYV682X_ADDR3_FLAGS" diff --git a/zephyr/dts/bindings/vendor-prefixes.txt b/zephyr/dts/bindings/vendor-prefixes.txt index 856fa81426..7402b7e579 100644 --- a/zephyr/dts/bindings/vendor-prefixes.txt +++ b/zephyr/dts/bindings/vendor-prefixes.txt @@ -6,3 +6,4 @@ # Zephyr module. The format is: # vendor-prefix<TAB>vendor name cros-ec The Chromium OS Embedded Controller Project +cros The Chromium OS Embedded Controller Project |