summaryrefslogtreecommitdiff
path: root/zephyr/dts
diff options
context:
space:
mode:
authorTom Hughes <tomhughes@chromium.org>2022-09-21 14:08:36 -0700
committerTom Hughes <tomhughes@chromium.org>2022-09-22 12:59:38 -0700
commitc453fd704268ef72de871b0c5ac7a989de662334 (patch)
treefcf6ce5810f9ff9e3c8cce434812dd75492269ed /zephyr/dts
parent6c1587ca70f558b4f96b3f0b18ad8b027d3ba99d (diff)
parent28712dae9d7ed1e694f7622cc083afa71090d4d5 (diff)
downloadchrome-ec-firmware-fpmcu-dartmonkey-release.tar.gz
Merge remote-tracking branch cros/main into firmware-fpmcu-dartmonkey-releasefirmware-fpmcu-dartmonkey-release
Generated by: ./util/update_release_branch.py --board dartmonkey --relevant_paths_file ./util/fingerprint-relevant-paths.txt firmware-fpmcu-dartmonkey-release Relevant changes: git log --oneline 6c1587ca70..28712dae9d -- board/nocturne_fp board/dartmonkey common/fpsensor docs/fingerprint driver/fingerprint util/getversion.sh ded9307b79 util/getversion.sh: Fix version when not in a git repo 956055e692 board: change Google USB vendor info 71b2ef709d Update license boilerplate text in source code files 33e11afda0 Revert "fpsensor: Build fpsensor source file with C++" c8d0360723 fpsensor: Build fpsensor source file with C++ bc113abd53 fpsensor: Fix g++ compiler error 150a58a0dc fpsensor: Fix fp_set_sensor_mode return type b33b5ce85b fpsensor: Remove nested designators for C++ compatibility 2e864b2539 tree-wide: const-ify argv for console commands 56d8b360f9 test: Add test for get ikm failure when seed not set 3a3d6c3690 test: Add test for fpsensor trivial key failure 233e6bbd08 fpsensor_crypto: Abstract calls to hmac_SHA256 0a041b285b docs/fingerprint: Typo correction c03fab67e2 docs/fingerprint: Fix the path of fputils.py 0b5d4baf5a util/getversion.sh: Fix empty file list handling 6e128fe760 FPMCU dev board environment with Satlab 3eb29b6aa5 builtin: Move ssize_t to sys/types.h 345d62ebd1 docs/fingerprint: Update power numbers for latest dartmonkey release c25ffdb316 common: Conditionally support printf %l and %i modifiers 9a3c514b45 test: Add a test to check if the debugger is connected 54e603413f Move standard library tests to their own file 43fa6b4bf8 docs/fingerprint: Update power numbers for latest bloonchipper release 25536f9a84 driver/fingerprint/fpc/bep/fpc_sensor_spi.c: Format with clang-format 4face99efd driver/fingerprint/fpc/libfp/fpc_sensor_pal.h: Format with clang-format 738de2b575 trng: Rename rand to trng_rand 14b8270edd docs/fingerprint: Update dragonclaw power numbers 0b268f93d1 driver/fingerprint/fpc/libfp/fpc_private.c: Format with clang-format f80da163f2 driver/fingerprint/fpc/libfp/fpc_private.h: Format with clang-format a0751778f4 board/nocturne_fp/ro_workarounds.c: Format with clang-format 5e9c85c9b1 driver/fingerprint/fpc/libfp/fpc_sensor_pal.c: Format with clang-format c1f9dd3cf8 driver/fingerprint/fpc/libfp/fpc_bio_algorithm.h: Format with clang-format eb1e1bed8d driver/fingerprint/fpc/libfp/fpc1145_private.h: Format with clang-format 6e7b611821 driver/fingerprint/fpc/bep/fpc_bio_algorithm.h: Format with clang-format e0589cd5e2 driver/fingerprint/fpc/bep/fpc1035_private.h: Format with clang-format 58f0246dbe board/nocturne_fp/board_ro.c: Format with clang-format 7905e556a0 common/fpsensor/fpsensor_crypto.c: Format with clang-format 21289d170c driver/fingerprint/fpc/bep/fpc1025_private.h: Format with clang-format 98a20f937e common/fpsensor/fpsensor_state.c: Format with clang-format a2d255d8af common/fpsensor/fpsensor.c: Format with clang-format 84e53a65da board/nocturne_fp/board.h: Format with clang-format 73055eeb3f driver/fingerprint/fpc/bep/fpc_private.c: Format with clang-format 0f7b5cb509 common/fpsensor/fpsensor_private.h: Format with clang-format 1ceade6e65 driver/fingerprint/fpc/bep/fpc_private.h: Format with clang-format dca9d74321 Revert "trng: Rename rand to trng_rand" a6b0b3554f trng: Rename rand to trng_rand 28d0b75b70 third_party/boringssl: Remove unused header BRANCH=None BUG=b:244387210 b:242720240 b:215613183 b:242720910 b:236386294 BUG=b:234181908 b:244781166 b:234781655 b:234143158 b:234181908 BUG=b:237344361 b:236025198 b:234181908 b:180945056 chromium:1098010 BUG=b:246424843 b:234181908 b:131913998 TEST=`make -j buildall` TEST=./util/run_device_tests.py --board dartmonkey Test "aes": PASSED Test "cec": PASSED Test "cortexm_fpu": PASSED Test "crc": PASSED Test "flash_physical": PASSED Test "flash_write_protect": PASSED Test "fpsensor_hw": PASSED Test "fpsensor_spi_ro": PASSED Test "fpsensor_spi_rw": PASSED Test "fpsensor_uart_ro": PASSED Test "fpsensor_uart_rw": PASSED Test "mpu_ro": PASSED Test "mpu_rw": PASSED Test "mutex": PASSED Test "pingpong": PASSED Test "printf": PASSED Test "queue": PASSED Test "rollback_region0": PASSED Test "rollback_region1": PASSED Test "rollback_entropy": PASSED Test "rtc": PASSED Test "sha256": PASSED Test "sha256_unrolled": PASSED Test "static_if": PASSED Test "stdlib": PASSED Test "system_is_locked_wp_on": PASSED Test "system_is_locked_wp_off": PASSED Test "timer_dos": PASSED Test "utils": PASSED Test "utils_str": PASSED Test "panic_data_dartmonkey_v2.0.2887": PASSED Test "panic_data_nocturne_fp_v2.2.64": PASSED Test "panic_data_nami_fp_v2.2.144": PASSED Force-Relevant-Builds: all Signed-off-by: Tom Hughes <tomhughes@chromium.org> Change-Id: I2c312583a709fedae8fe11d92c22328c3b634bc7
Diffstat (limited to 'zephyr/dts')
-rw-r--r--zephyr/dts/bindings/adc/named-adc-channels.yaml (renamed from zephyr/dts/bindings/adc/named-adc.yaml)7
-rw-r--r--zephyr/dts/bindings/battery/aec,5477109.yaml2
-rw-r--r--zephyr/dts/bindings/battery/atl,cfd72.yaml53
-rw-r--r--zephyr/dts/bindings/battery/battery-fuel-gauge.yaml12
-rw-r--r--zephyr/dts/bindings/battery/battery-info.yaml2
-rw-r--r--zephyr/dts/bindings/battery/battery-smart.yaml31
-rw-r--r--zephyr/dts/bindings/battery/byd,l22b3pg0.yaml54
-rw-r--r--zephyr/dts/bindings/battery/byd,wv3k8.yaml54
-rw-r--r--zephyr/dts/bindings/battery/celxpert,c235-41.yaml (renamed from zephyr/dts/bindings/battery/as3gwrc3ka,c235-41.yaml)6
-rw-r--r--zephyr/dts/bindings/battery/celxpert,l22c3pg0.yaml54
-rw-r--r--zephyr/dts/bindings/battery/cosmx,ap20cbl-2.yaml57
-rw-r--r--zephyr/dts/bindings/battery/cosmx,ap20cbl.yaml57
-rw-r--r--zephyr/dts/bindings/battery/cosmx,gh02047xl.yaml54
-rw-r--r--zephyr/dts/bindings/battery/cosmx,l22x3pg0.yaml54
-rw-r--r--zephyr/dts/bindings/battery/cosmx,mvk11.yaml53
-rw-r--r--zephyr/dts/bindings/battery/dynapack,atl_gh02047xl.yaml54
-rw-r--r--zephyr/dts/bindings/battery/dynapack,c140254.yaml56
-rw-r--r--zephyr/dts/bindings/battery/dynapack,cosmx_gh02047xl.yaml54
-rw-r--r--zephyr/dts/bindings/battery/getac,bq40z50-R3-S2.yaml2
-rw-r--r--zephyr/dts/bindings/battery/getac,bq40z50-R3-S3.yaml2
-rw-r--r--zephyr/dts/bindings/battery/lgc,ac17a8m.yaml2
-rw-r--r--zephyr/dts/bindings/battery/lgc,ap19b8m.yaml54
-rw-r--r--zephyr/dts/bindings/battery/lgc,l20l3pg2.yaml2
-rw-r--r--zephyr/dts/bindings/battery/lgc,xphx8.yaml57
-rw-r--r--zephyr/dts/bindings/battery/powertech,batgqa05l22.yaml2
-rw-r--r--zephyr/dts/bindings/battery/smp,atlxdy9k.yaml53
-rw-r--r--zephyr/dts/bindings/battery/smp,c31n1915.yaml47
-rw-r--r--zephyr/dts/bindings/battery/smp,c31n2005.yaml48
-rw-r--r--zephyr/dts/bindings/battery/smp,coslight_gh02047xl.yaml54
-rw-r--r--zephyr/dts/bindings/battery/smp,cosxdy9k.yaml51
-rw-r--r--zephyr/dts/bindings/battery/smp,highpower_gh02047xl.yaml54
-rw-r--r--zephyr/dts/bindings/battery/smp,l20m3pg0.yaml2
-rw-r--r--zephyr/dts/bindings/battery/smp,l20m3pg1.yaml2
-rw-r--r--zephyr/dts/bindings/battery/smp,l20m3pg2.yaml2
-rw-r--r--zephyr/dts/bindings/battery/smp,l22m3pg0.yaml54
-rw-r--r--zephyr/dts/bindings/battery/smp,l22m3pg1.yaml54
-rw-r--r--zephyr/dts/bindings/battery/smp,pc-vp-bp153.yaml54
-rw-r--r--zephyr/dts/bindings/battery/sunwoda,atl3rr09.yaml53
-rw-r--r--zephyr/dts/bindings/battery/sunwoda,cos3rr09.yaml53
-rw-r--r--zephyr/dts/bindings/battery/sunwoda,l22d3pg0.yaml54
-rw-r--r--zephyr/dts/bindings/battery/sunwoda,l22d3pg1.yaml54
-rw-r--r--zephyr/dts/bindings/cbi/cros-ec,cbi-fw-config-value.yaml (renamed from zephyr/dts/bindings/cbi/cros-ec-cbi-fw-config-value.yaml)2
-rw-r--r--zephyr/dts/bindings/cbi/cros-ec,cbi-fw-config.yaml (renamed from zephyr/dts/bindings/cbi/cros-ec-cbi-fw-config.yaml)2
-rw-r--r--zephyr/dts/bindings/cbi/named-cbi-ssfc-value.yaml2
-rw-r--r--zephyr/dts/bindings/cbi/named-cbi-ssfc.yaml3
-rw-r--r--zephyr/dts/bindings/charger/chg-chip.yaml77
-rw-r--r--zephyr/dts/bindings/charger/intersil,isl923x.yaml2
-rw-r--r--zephyr/dts/bindings/charger/intersil,isl9241.yaml2
-rw-r--r--zephyr/dts/bindings/charger/richtek,rt9490.yaml7
-rw-r--r--zephyr/dts/bindings/charger/siliconmitus,sm5803.yaml2
-rw-r--r--zephyr/dts/bindings/charger/ti,bq25710.yaml2
-rw-r--r--zephyr/dts/bindings/console/ec-console.yaml2
-rw-r--r--zephyr/dts/bindings/cros_bbram/named-bbram-regions.yaml2
-rw-r--r--zephyr/dts/bindings/cros_dbg/nuvoton,npcx-cros-dbg.yaml2
-rw-r--r--zephyr/dts/bindings/cros_displight/cros-ec,displight.yaml7
-rw-r--r--zephyr/dts/bindings/cros_flash/cros-ec,flash-layout.yaml2
-rw-r--r--zephyr/dts/bindings/cros_flash/cros-flash-controller.yaml4
-rw-r--r--zephyr/dts/bindings/cros_flash/microchip,xec-cros-flash.yaml2
-rw-r--r--zephyr/dts/bindings/cros_kb_raw/cros-kb-raw-controller.yaml12
-rw-r--r--zephyr/dts/bindings/cros_kb_raw/ite,it8xxx2-cros-kb-raw.yaml2
-rw-r--r--zephyr/dts/bindings/cros_kb_raw/microchip,xec-cros-kb-raw.yaml4
-rw-r--r--zephyr/dts/bindings/cros_kb_raw/nuvoton,npcx-cros-kb-raw.yaml2
-rw-r--r--zephyr/dts/bindings/cros_mkbp_event/ec-wake-mask-event.yaml (renamed from zephyr/dts/bindings/cros_mkbp_event/ec-mkbp-event.yaml)2
-rw-r--r--zephyr/dts/bindings/cros_rtc/cros-rtc.yaml12
-rw-r--r--zephyr/dts/bindings/cros_rtc/microchip,xec-cros-rtc.yaml2
-rw-r--r--zephyr/dts/bindings/cros_rtc/nuvoton,npcx-cros-mtc.yaml3
-rw-r--r--zephyr/dts/bindings/cros_rtc/nxp,rtc-pcf85063a.yaml3
-rw-r--r--zephyr/dts/bindings/cros_rtc/renesas,rtc-idt1337ag.yaml3
-rw-r--r--zephyr/dts/bindings/cros_shi/ite,it8xxx2-cros-shi.yaml2
-rw-r--r--zephyr/dts/bindings/cros_shi/nuvoton,npcx-cros-shi.yaml2
-rw-r--r--zephyr/dts/bindings/emul/cros,bb-retimer-emul.yaml2
-rw-r--r--zephyr/dts/bindings/emul/cros,clock-control-emul.yaml2
-rw-r--r--zephyr/dts/bindings/emul/cros,i2c-mock.yaml3
-rw-r--r--zephyr/dts/bindings/emul/cros,isl923x-emul.yaml3
-rw-r--r--zephyr/dts/bindings/emul/cros,lis2dw12-emul.yaml3
-rw-r--r--zephyr/dts/bindings/emul/cros,ln9310-emul.yaml3
-rw-r--r--zephyr/dts/bindings/emul/cros,ps8xxx-emul.yaml10
-rw-r--r--zephyr/dts/bindings/emul/cros,pwm-mock.yaml15
-rw-r--r--zephyr/dts/bindings/emul/cros,sn5s330-emul.yaml (renamed from zephyr/dts/bindings/emul/cros,sn5s330.yaml)2
-rw-r--r--zephyr/dts/bindings/emul/cros,tcpci-generic-emul.yaml9
-rw-r--r--zephyr/dts/bindings/emul/cros-ec,flash-emul.yaml2
-rw-r--r--zephyr/dts/bindings/emul/cros-ec,kb-raw-emul.yaml4
-rw-r--r--zephyr/dts/bindings/emul/cros-ec,rtc-emul.yaml9
-rw-r--r--zephyr/dts/bindings/emul/tcpci.yaml (renamed from zephyr/dts/bindings/emul/cros,tcpci-emul.yaml)6
-rw-r--r--zephyr/dts/bindings/emul/zephyr,bma255.yaml2
-rw-r--r--zephyr/dts/bindings/emul/zephyr,bmi.yaml2
-rw-r--r--zephyr/dts/bindings/emul/zephyr,pi3usb9201-emul.yaml (renamed from zephyr/dts/bindings/emul/zephyr,pi3usb9201.yaml)2
-rw-r--r--zephyr/dts/bindings/emul/zephyr,smart-battery.yaml8
-rw-r--r--zephyr/dts/bindings/emul/zephyr,syv682x-emul.yaml (renamed from zephyr/dts/bindings/emul/zephyr,syv682x.yaml)2
-rw-r--r--zephyr/dts/bindings/emul/zephyr,tcs3400.yaml2
-rw-r--r--zephyr/dts/bindings/fan/cros-ec,fans.yaml6
-rw-r--r--zephyr/dts/bindings/gpio/cros-ec,gpio-id.yaml (renamed from zephyr/dts/bindings/gpio/gpio-id.yaml)2
-rw-r--r--zephyr/dts/bindings/gpio/cros-ec,gpio-interrupts.yaml2
-rw-r--r--zephyr/dts/bindings/gpio/cros-ec,hibernate-wake-pins.yaml (renamed from zephyr/dts/bindings/gpio/hibernate-wake-pins.yaml)2
-rw-r--r--zephyr/dts/bindings/gpio/cros-ec,usba-port-enable-pins.yaml2
-rw-r--r--zephyr/dts/bindings/gpio/gpio-enum-name.yaml120
-rw-r--r--zephyr/dts/bindings/gpio/named-gpios.yaml13
-rw-r--r--zephyr/dts/bindings/i2c/cros-ec-i2c-port-base.yaml50
-rw-r--r--zephyr/dts/bindings/i2c/named-i2c-ports.yaml2
-rw-r--r--zephyr/dts/bindings/intel/intel,rvp-board-id.yaml2
-rw-r--r--zephyr/dts/bindings/kb_discrete/ite,it8801.yaml3
-rw-r--r--zephyr/dts/bindings/keyboard/cros-ec,kblight-pwm.yaml7
-rw-r--r--zephyr/dts/bindings/keyboard/cros-keyscan.yaml2
-rw-r--r--zephyr/dts/bindings/led/cros-ec,pwm-leds.yaml11
-rw-r--r--zephyr/dts/bindings/led/maxim,seven-seg-display.yaml2
-rw-r--r--zephyr/dts/bindings/leds/cros-ec,gpio-led-pins.yaml45
-rw-r--r--zephyr/dts/bindings/leds/cros-ec,led-colors.yaml94
-rw-r--r--zephyr/dts/bindings/leds/cros-ec,led-policy.yaml102
-rw-r--r--zephyr/dts/bindings/leds/cros-ec,pwm-led-pins.yaml50
-rw-r--r--zephyr/dts/bindings/leds/cros-ec,pwm-pin-config.yaml (renamed from zephyr/dts/bindings/leds/cros-ec,pwm-led-pin-config.yaml)2
-rw-r--r--zephyr/dts/bindings/motionsense/cros-ec,motionsense-mutex.yaml12
-rw-r--r--zephyr/dts/bindings/motionsense/cros-ec,motionsense-rotation-ref.yaml2
-rw-r--r--zephyr/dts/bindings/motionsense/cros-ec,motionsense-sensor-config.yaml11
-rw-r--r--zephyr/dts/bindings/motionsense/cros-ec,motionsense-sensor-info.yaml2
-rw-r--r--zephyr/dts/bindings/motionsense/driver/bmi160.yaml2
-rw-r--r--zephyr/dts/bindings/motionsense/driver/bmi260.yaml2
-rw-r--r--zephyr/dts/bindings/motionsense/driver/bmi3xx.yaml2
-rw-r--r--zephyr/dts/bindings/motionsense/driver/cros-ec,bma255.yaml2
-rw-r--r--zephyr/dts/bindings/motionsense/driver/cros-ec,bma4xx.yaml2
-rw-r--r--zephyr/dts/bindings/motionsense/driver/cros-ec,bmi160-accel.yaml2
-rw-r--r--zephyr/dts/bindings/motionsense/driver/cros-ec,bmi160-gyro.yaml2
-rw-r--r--zephyr/dts/bindings/motionsense/driver/cros-ec,bmi260-accel.yaml2
-rw-r--r--zephyr/dts/bindings/motionsense/driver/cros-ec,bmi260-gyro.yaml2
-rw-r--r--zephyr/dts/bindings/motionsense/driver/cros-ec,bmi3xx-accel.yaml2
-rw-r--r--zephyr/dts/bindings/motionsense/driver/cros-ec,bmi3xx-gyro.yaml2
-rw-r--r--zephyr/dts/bindings/motionsense/driver/cros-ec,icm42607-accel.yaml2
-rw-r--r--zephyr/dts/bindings/motionsense/driver/cros-ec,icm42607-gyro.yaml2
-rw-r--r--zephyr/dts/bindings/motionsense/driver/cros-ec,icm426xx-accel.yaml2
-rw-r--r--zephyr/dts/bindings/motionsense/driver/cros-ec,icm426xx-gyro.yaml2
-rw-r--r--zephyr/dts/bindings/motionsense/driver/cros-ec,kx022.yaml2
-rw-r--r--zephyr/dts/bindings/motionsense/driver/cros-ec,lis2dw12.yaml2
-rw-r--r--zephyr/dts/bindings/motionsense/driver/cros-ec,lsm6dsm-accel.yaml13
-rw-r--r--zephyr/dts/bindings/motionsense/driver/cros-ec,lsm6dsm-gyro.yaml13
-rw-r--r--zephyr/dts/bindings/motionsense/driver/cros-ec,lsm6dso-accel.yaml2
-rw-r--r--zephyr/dts/bindings/motionsense/driver/cros-ec,lsm6dso-gyro.yaml2
-rw-r--r--zephyr/dts/bindings/motionsense/driver/cros-ec,tcs3400-clear.yaml2
-rw-r--r--zephyr/dts/bindings/motionsense/driver/cros-ec,tcs3400-rgb.yaml2
-rw-r--r--zephyr/dts/bindings/motionsense/driver/icm42607.yaml2
-rw-r--r--zephyr/dts/bindings/motionsense/driver/icm426xx.yaml2
-rw-r--r--zephyr/dts/bindings/motionsense/driver/lsm6dsm.yaml19
-rw-r--r--zephyr/dts/bindings/motionsense/driver/lsm6dso.yaml2
-rw-r--r--zephyr/dts/bindings/motionsense/driver/tcs3400.yaml2
-rw-r--r--zephyr/dts/bindings/motionsense/drvdata/cros-ec,accelgyro-als-channel-scale.yaml4
-rw-r--r--zephyr/dts/bindings/motionsense/drvdata/cros-ec,accelgyro-als-drv-data.yaml2
-rw-r--r--zephyr/dts/bindings/motionsense/drvdata/cros-ec,accelgyro-rgb-calibration.yaml2
-rw-r--r--zephyr/dts/bindings/motionsense/drvdata/cros-ec,drvdata-bma255.yaml2
-rw-r--r--zephyr/dts/bindings/motionsense/drvdata/cros-ec,drvdata-bma4xx.yaml2
-rw-r--r--zephyr/dts/bindings/motionsense/drvdata/cros-ec,drvdata-bmi160.yaml2
-rw-r--r--zephyr/dts/bindings/motionsense/drvdata/cros-ec,drvdata-bmi260.yaml2
-rw-r--r--zephyr/dts/bindings/motionsense/drvdata/cros-ec,drvdata-bmi3xx.yaml2
-rw-r--r--zephyr/dts/bindings/motionsense/drvdata/cros-ec,drvdata-icm426xx.yaml2
-rw-r--r--zephyr/dts/bindings/motionsense/drvdata/cros-ec,drvdata-kionix.yaml2
-rw-r--r--zephyr/dts/bindings/motionsense/drvdata/cros-ec,drvdata-lis2dw12.yaml2
-rw-r--r--zephyr/dts/bindings/motionsense/drvdata/cros-ec,drvdata-lsm6dsm.yaml21
-rw-r--r--zephyr/dts/bindings/motionsense/drvdata/cros-ec,drvdata-lsm6dso.yaml7
-rw-r--r--zephyr/dts/bindings/motionsense/drvdata/cros-ec,drvdata-tcs3400-clear.yaml2
-rw-r--r--zephyr/dts/bindings/motionsense/drvdata/cros-ec,drvdata-tcs3400-rgb.yaml2
-rw-r--r--zephyr/dts/bindings/motionsense/drvdata/drvdata-base.yaml2
-rw-r--r--zephyr/dts/bindings/motionsense/motionsense-sensor-base.yaml15
-rw-r--r--zephyr/dts/bindings/pmic/mps,mp2964.yaml2
-rw-r--r--zephyr/dts/bindings/power/intel,ap-pwr-signal-base.yaml2
-rw-r--r--zephyr/dts/bindings/power/intel,ap-pwrseq-adc.yaml2
-rw-r--r--zephyr/dts/bindings/power/intel,ap-pwrseq-external.yaml2
-rw-r--r--zephyr/dts/bindings/power/intel,ap-pwrseq-gpio.yaml2
-rw-r--r--zephyr/dts/bindings/power/intel,ap-pwrseq-vw.yaml2
-rw-r--r--zephyr/dts/bindings/power/intel,ap-pwrseq.yaml2
-rw-r--r--zephyr/dts/bindings/switchcap/switchcap-gpio.yaml6
-rw-r--r--zephyr/dts/bindings/temp/amd,sb-tsi.yaml10
-rw-r--r--zephyr/dts/bindings/temp/cros-ec,temp-sensor-thermistor.yaml (renamed from zephyr/dts/bindings/temp/cros_ec_temp_sensor_thermistor.yaml)6
-rw-r--r--zephyr/dts/bindings/temp/cros-ec,temp-sensor-tmp112.yaml10
-rw-r--r--zephyr/dts/bindings/temp/cros-ec,temp-sensors.yaml (renamed from zephyr/dts/bindings/temp/cros_ec_temp_sensor.yaml)40
-rw-r--r--zephyr/dts/bindings/temp/cros-ec,thermistor.yaml (renamed from zephyr/dts/bindings/temp/cros_ec_thermistor.yaml)4
-rw-r--r--zephyr/dts/bindings/temp/cros_ec_temp_sensor_pct2075.yaml39
-rw-r--r--zephyr/dts/bindings/temp/cros_ec_temp_sensor_sb_tsi.yaml16
-rw-r--r--zephyr/dts/bindings/temp/cros_ec_temp_sensor_tmp112.yaml35
-rw-r--r--zephyr/dts/bindings/temp/nxp,pct2075.yaml10
-rw-r--r--zephyr/dts/bindings/usbc/bc12/pericom,pi3usb9201.yaml11
-rw-r--r--zephyr/dts/bindings/usbc/bc12/richtek,rt1718s-bc12.yaml9
-rw-r--r--zephyr/dts/bindings/usbc/bc12/richtek,rt1739-bc12.yaml (renamed from zephyr/dts/bindings/usbc/richtek,rt1739-bc12.yaml)4
-rw-r--r--zephyr/dts/bindings/usbc/bc12/richtek,rt9490-bc12.yaml (renamed from zephyr/dts/bindings/usbc/richtek,rt9490-bc12.yaml)4
-rw-r--r--zephyr/dts/bindings/usbc/cros-ec,tcpci.yaml16
-rw-r--r--zephyr/dts/bindings/usbc/cros-ec,usb-mux-chain.yaml47
-rw-r--r--zephyr/dts/bindings/usbc/cypress,ccgxxf.yaml23
-rw-r--r--zephyr/dts/bindings/usbc/fairchild,fusb302.yaml21
-rw-r--r--zephyr/dts/bindings/usbc/ite,it8xxx2-tcpc.yaml3
-rw-r--r--zephyr/dts/bindings/usbc/mux/amd,usbc-mux-amd-fp6.yaml9
-rw-r--r--zephyr/dts/bindings/usbc/mux/analogix,anx7483.yaml20
-rw-r--r--zephyr/dts/bindings/usbc/mux/analogix,usbc-mux-anx7447.yaml15
-rw-r--r--zephyr/dts/bindings/usbc/mux/cros-ec,usbc-mux-tcpci.yaml59
-rw-r--r--zephyr/dts/bindings/usbc/mux/cros-ec,usbc-mux-virtual.yaml2
-rw-r--r--zephyr/dts/bindings/usbc/mux/cros-ec,usbc-mux.yaml2
-rw-r--r--zephyr/dts/bindings/usbc/mux/intel,jhl8040r.yaml (renamed from zephyr/dts/bindings/usbc/mux/intel,jhl804r.yaml)14
-rw-r--r--zephyr/dts/bindings/usbc/mux/ite,it5205.yaml18
-rw-r--r--zephyr/dts/bindings/usbc/mux/parade,ps8743.yaml9
-rw-r--r--zephyr/dts/bindings/usbc/mux/parade,ps8818.yaml9
-rw-r--r--zephyr/dts/bindings/usbc/mux/parade,usbc-mux-ps8xxx.yaml4
-rw-r--r--zephyr/dts/bindings/usbc/mux/ti,tusb1064.yaml32
-rw-r--r--zephyr/dts/bindings/usbc/named-usbc-port.yaml45
-rw-r--r--zephyr/dts/bindings/usbc/nuvoton,nct38xx.yaml40
-rw-r--r--zephyr/dts/bindings/usbc/parade,ps8xxx.yaml29
-rw-r--r--zephyr/dts/bindings/usbc/pericom,pi3usb9201.yaml26
-rw-r--r--zephyr/dts/bindings/usbc/ppc-chip.yaml20
-rw-r--r--zephyr/dts/bindings/usbc/ppc/aoz,aoz1380.yaml9
-rw-r--r--zephyr/dts/bindings/usbc/ppc/nxp,nx20p348x.yaml9
-rw-r--r--zephyr/dts/bindings/usbc/ppc/richtek,rt1739-ppc.yaml9
-rw-r--r--zephyr/dts/bindings/usbc/ppc/silergy,syv682x.yaml (renamed from zephyr/dts/bindings/usbc/silergy,syv682x.yaml)8
-rw-r--r--zephyr/dts/bindings/usbc/ppc/ti,sn5s330.yaml5
-rw-r--r--zephyr/dts/bindings/usbc/richtek,rt1739-ppc.yaml18
-rw-r--r--zephyr/dts/bindings/usbc/tcpc/anologix,anx7447-tcpc.yaml12
-rw-r--r--zephyr/dts/bindings/usbc/tcpc/cros-ec,tcpci.yaml5
-rw-r--r--zephyr/dts/bindings/usbc/tcpc/cypress,ccgxxf.yaml9
-rw-r--r--zephyr/dts/bindings/usbc/tcpc/fairchild,fusb302.yaml5
-rw-r--r--zephyr/dts/bindings/usbc/tcpc/nuvoton,nct38xx.yaml22
-rw-r--r--zephyr/dts/bindings/usbc/tcpc/parade,ps8xxx.yaml12
-rw-r--r--zephyr/dts/bindings/usbc/tcpc/richtek,rt1718s-tcpc.yaml17
-rw-r--r--zephyr/dts/bindings/usbc/ti,sn5s330.yaml14
-rw-r--r--zephyr/dts/bindings/vendor-prefixes.txt9
-rw-r--r--zephyr/dts/board-overlays/native_posix.dts4
-rw-r--r--zephyr/dts/it8xxx2_emul.dts177
-rw-r--r--zephyr/dts/npcx_emul.dts266
220 files changed, 2730 insertions, 1061 deletions
diff --git a/zephyr/dts/bindings/adc/named-adc.yaml b/zephyr/dts/bindings/adc/named-adc-channels.yaml
index 80ae9d145f..f1b6f19790 100644
--- a/zephyr/dts/bindings/adc/named-adc.yaml
+++ b/zephyr/dts/bindings/adc/named-adc-channels.yaml
@@ -1,4 +1,4 @@
-# Copyright 2021 The Chromium OS Authors. All rights reserved.
+# Copyright 2021 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
@@ -9,11 +9,6 @@ compatible: "named-adc-channels"
child-binding:
description: Named ADCs child node
properties:
- label:
- required: true
- type: string
- description:
- String used to describe an ADC channel in the 'adc' console command.
io-channels:
required: true
type: phandle-array
diff --git a/zephyr/dts/bindings/battery/aec,5477109.yaml b/zephyr/dts/bindings/battery/aec,5477109.yaml
index ca0ce51eb1..3cb8e44135 100644
--- a/zephyr/dts/bindings/battery/aec,5477109.yaml
+++ b/zephyr/dts/bindings/battery/aec,5477109.yaml
@@ -1,4 +1,4 @@
-# Copyright 2021 The Chromium OS Authors. All rights reserved.
+# Copyright 2021 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/zephyr/dts/bindings/battery/atl,cfd72.yaml b/zephyr/dts/bindings/battery/atl,cfd72.yaml
new file mode 100644
index 0000000000..0f5c4ba511
--- /dev/null
+++ b/zephyr/dts/bindings/battery/atl,cfd72.yaml
@@ -0,0 +1,53 @@
+description: "ATL-NVT ATL-ATL3.66 DELL CFD72"
+compatible: "atl,cfd72"
+
+include: battery-smart.yaml
+
+properties:
+ enum-name:
+ type: string
+ default: "atl,cfd72"
+
+ # Fuel Gauge
+ manuf_name:
+ default: "ATL-ATL3.66"
+ device_name:
+ default: "DELL CFD72"
+ ship_mode_reg_addr:
+ default: 0x00
+ ship_mode_reg_data:
+ default: [ 0x0010, 0x0010 ]
+ fet_mfgacc_support:
+ default: 0
+ fet_reg_addr:
+ default: 0x43
+ fet_reg_mask:
+ default: 0x0001
+ fet_disconnect_val:
+ default: 0x0000
+ fet_cfet_mask:
+ default: 0x0002
+ fet_cfet_off_val:
+ default: 0x0000
+
+ # Battery info
+ voltage_max:
+ default: 17600
+ voltage_normal:
+ default: 15000
+ voltage_min:
+ default: 12000
+ 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: 50
+ discharging_min_c:
+ default: -20
+ discharging_max_c:
+ default: 70
diff --git a/zephyr/dts/bindings/battery/battery-fuel-gauge.yaml b/zephyr/dts/bindings/battery/battery-fuel-gauge.yaml
index 2572090024..d2fed4bfa6 100644
--- a/zephyr/dts/bindings/battery/battery-fuel-gauge.yaml
+++ b/zephyr/dts/bindings/battery/battery-fuel-gauge.yaml
@@ -1,4 +1,4 @@
-# Copyright 2021 The Chromium OS Authors. All rights reserved.
+# Copyright 2021 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
@@ -9,10 +9,16 @@ compatible: "battery-fuel-gauge"
properties:
manuf_name:
- description: Manufacturer name
+ description: |
+ String returned by the smart battery attribute
+ ManufacturerName (0x20), which is used to help
+ uniquely identify the type of battery.
type: string
device_name:
- description: Model/Device name
+ description: |
+ String returned by the smart battery attribute
+ DeviceName (0x21), which is used to help
+ uniquely identify the type of battery.
type: string
ship_mode_wb_support:
description: |
diff --git a/zephyr/dts/bindings/battery/battery-info.yaml b/zephyr/dts/bindings/battery/battery-info.yaml
index 3a4cb875e7..54e81cedeb 100644
--- a/zephyr/dts/bindings/battery/battery-info.yaml
+++ b/zephyr/dts/bindings/battery/battery-info.yaml
@@ -1,4 +1,4 @@
-# Copyright 2021 The Chromium OS Authors. All rights reserved.
+# Copyright 2021 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/zephyr/dts/bindings/battery/battery-smart.yaml b/zephyr/dts/bindings/battery/battery-smart.yaml
index c2c6d28175..81c96f0115 100644
--- a/zephyr/dts/bindings/battery/battery-smart.yaml
+++ b/zephyr/dts/bindings/battery/battery-smart.yaml
@@ -1,4 +1,4 @@
-# Copyright 2021 The Chromium OS Authors. All rights reserved.
+# Copyright 2021 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
@@ -12,7 +12,19 @@ properties:
type: string
enum:
- "aec,5477109"
- - "as3gwrc3ka,c235-41"
+ - "atl,cfd72"
+ - "byd,l22b3pg0"
+ - "byd,wv3k8"
+ - "celxpert,c235-41"
+ - "celxpert,l22c3pg0"
+ - "cosmx,ap20cbl"
+ - "cosmx,ap20cbl-2"
+ - "cosmx,gh02047xl"
+ - "cosmx,l22x3pg0"
+ - "cosmx,mvk11"
+ - "dynapack,atl_gh02047xl"
+ - "dynapack,cosmx_gh02047xl"
+ - "dynapack,c140254"
- "ganfeng,7c01"
- "getac,bq40z50-R3-S3"
- "getac,bq40z50-R3-S2"
@@ -20,12 +32,27 @@ properties:
- "lgc,ap16l8j"
- "lgc,ap18c8k"
- "lgc,ap19a8k"
+ - "lgc,ap19b8m"
- "lgc,l20l3pg2"
+ - "lgc,xphx8"
- "murata,ap18c4k"
- "panasonic,ap16l5j"
- "panasonic,ap16l5j-009"
- "panasonic,ap19a5k"
- "powertech,batgqa05l22"
+ - "smp,atlxdy9k"
+ - "smp,c31n1915"
+ - "smp,c31n2005"
- "smp,l20m3pg0"
- "smp,l20m3pg1"
- "smp,l20m3pg2"
+ - "smp,l22m3pg0"
+ - "smp,l22m3pg1"
+ - "smp,pc-vp-bp153"
+ - "smp,coslight_gh02047xl"
+ - "smp,cosxdy9k"
+ - "smp,highpower_gh02047xl"
+ - "sunwoda,atl3rr09"
+ - "sunwoda,cos3rr09"
+ - "sunwoda,l22d3pg0"
+ - "sunwoda,l22d3pg1"
diff --git a/zephyr/dts/bindings/battery/byd,l22b3pg0.yaml b/zephyr/dts/bindings/battery/byd,l22b3pg0.yaml
new file mode 100644
index 0000000000..dbe82d5aaa
--- /dev/null
+++ b/zephyr/dts/bindings/battery/byd,l22b3pg0.yaml
@@ -0,0 +1,54 @@
+# Copyright 2022 The ChromiumOS Authors
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+description: "BYD L22B3PG0"
+compatible: "byd,l22b3pg0"
+
+include: battery-smart.yaml
+
+properties:
+ enum-name:
+ type: string
+ default: "byd,l22b3pg0"
+
+ # Fuel gauge
+ manuf_name:
+ default: "BYD"
+ device_name:
+ default: "L22B3PG0"
+ 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: 13200
+ voltage_normal:
+ default: 11310
+ voltage_min:
+ default: 9000
+ precharge_current:
+ default: 416
+ 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: 70
+
diff --git a/zephyr/dts/bindings/battery/byd,wv3k8.yaml b/zephyr/dts/bindings/battery/byd,wv3k8.yaml
new file mode 100644
index 0000000000..98c3313632
--- /dev/null
+++ b/zephyr/dts/bindings/battery/byd,wv3k8.yaml
@@ -0,0 +1,54 @@
+description: "BYD DELL WV3K8"
+compatible: "byd,wv3k8"
+
+include: battery-smart.yaml
+
+properties:
+ enum-name:
+ type: string
+ default: "byd,wv3k8"
+
+ # Fuel gauge
+ manuf_name:
+ default: "BYD"
+ device_name:
+ default: "DELL WV3K8"
+ ship_mode_reg_addr:
+ default: 0x00
+ ship_mode_reg_data:
+ default: [ 0x0010, 0x0010 ]
+ fet_mfgacc_support:
+ default: 0
+ fet_reg_addr:
+ default: 0x54
+ fet_reg_mask:
+ default: 0x0002
+ fet_disconnect_val:
+ default: 0x0000
+ fet_cfet_mask:
+ default: 0x0004
+ fet_cfet_off_val:
+ default: 0x0000
+
+ # Battery info
+ voltage_max:
+ default: 17400
+ voltage_normal:
+ default: 15000
+ voltage_min:
+ default: 12000
+ precharge_current:
+ default: 256
+ start_charging_min_c:
+ default: -3
+ start_charging_max_c:
+ default: 45
+ charging_min_c:
+ default: -3
+ charging_max_c:
+ default: 50
+ discharging_min_c:
+ default: -5
+ discharging_max_c:
+ default: 70
+
diff --git a/zephyr/dts/bindings/battery/as3gwrc3ka,c235-41.yaml b/zephyr/dts/bindings/battery/celxpert,c235-41.yaml
index c4359b29d2..cffe1c2f0d 100644
--- a/zephyr/dts/bindings/battery/as3gwrc3ka,c235-41.yaml
+++ b/zephyr/dts/bindings/battery/celxpert,c235-41.yaml
@@ -1,12 +1,12 @@
-description: "AS3GWRc3KA C235-41"
-compatible: "as3gwrc3ka,c235-41"
+description: "Celxpert C235-41"
+compatible: "celxpert,c235-41"
include: battery-smart.yaml
properties:
enum-name:
type: string
- default: "as3gwrc3ka,c235-41"
+ default: "celxpert,c235-41"
# Fuel gauge
manuf_name:
diff --git a/zephyr/dts/bindings/battery/celxpert,l22c3pg0.yaml b/zephyr/dts/bindings/battery/celxpert,l22c3pg0.yaml
new file mode 100644
index 0000000000..2e99336c06
--- /dev/null
+++ b/zephyr/dts/bindings/battery/celxpert,l22c3pg0.yaml
@@ -0,0 +1,54 @@
+# Copyright 2022 The ChromiumOS Authors
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+description: "CELXPERT L22C3PG0"
+compatible: "celxpert,l22c3pg0"
+
+include: battery-smart.yaml
+
+properties:
+ enum-name:
+ type: string
+ default: "celxpert,l22c3pg0"
+
+ # Fuel gauge
+ manuf_name:
+ default: "Celxpert"
+ device_name:
+ default: "L22C3PG0"
+ ship_mode_reg_addr:
+ default: 0x34
+ ship_mode_reg_data:
+ default: [ 0x0000, 0x1000 ]
+ fet_mfgacc_support:
+ default: 0
+ fet_reg_addr:
+ default: 0x00
+ fet_reg_mask:
+ default: 0x0018
+ fet_disconnect_val:
+ default: 0x0000
+
+ # Battery info
+ voltage_max:
+ default: 13200
+ voltage_normal:
+ default: 11310
+ voltage_min:
+ default: 9000
+ precharge_current:
+ default: 416
+ 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: 60
+
diff --git a/zephyr/dts/bindings/battery/cosmx,ap20cbl-2.yaml b/zephyr/dts/bindings/battery/cosmx,ap20cbl-2.yaml
new file mode 100644
index 0000000000..5e64834f15
--- /dev/null
+++ b/zephyr/dts/bindings/battery/cosmx,ap20cbl-2.yaml
@@ -0,0 +1,57 @@
+description: "COSMX AP20CBL-2"
+compatible: "cosmx,ap20cbl-2"
+
+include: battery-smart.yaml
+
+properties:
+ enum-name:
+ type: string
+ default: "cosmx,ap20cbl-2"
+
+ # Fuel gauge
+ manuf_name:
+ default: "COSMX KT0030B004"
+ device_name:
+ default: "AP20CBL"
+ ship_mode_reg_addr:
+ default: 0x3A
+ ship_mode_reg_data:
+ default: [ 0xC574, 0xC574 ]
+ # Documentation: b/243772306
+ # Manufacturer Access 0x00
+ # b14: C-FET Status (0: Off, 1: On)
+ # b15: D-FET Status (0: Off, 1: On)
+ fet_mfgacc_support:
+ default: 1
+ fet_reg_addr:
+ default: 0x0
+ fet_reg_mask:
+ default: 0x8000
+ fet_disconnect_val:
+ default: 0x0000
+ fet_cfet_mask:
+ default: 0x4000
+ fet_cfet_off_val:
+ default: 0x0000
+
+ # Battery info
+ voltage_max:
+ default: 13200
+ voltage_normal:
+ default: 11550
+ 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: 75
diff --git a/zephyr/dts/bindings/battery/cosmx,ap20cbl.yaml b/zephyr/dts/bindings/battery/cosmx,ap20cbl.yaml
new file mode 100644
index 0000000000..193ef649f1
--- /dev/null
+++ b/zephyr/dts/bindings/battery/cosmx,ap20cbl.yaml
@@ -0,0 +1,57 @@
+description: "COSMX AP20CBL"
+compatible: "cosmx,ap20cbl"
+
+include: battery-smart.yaml
+
+properties:
+ enum-name:
+ type: string
+ default: "cosmx,ap20cbl"
+
+ # Fuel gauge
+ manuf_name:
+ default: "COSMX KT0030B002"
+ device_name:
+ default: "AP20CBL"
+ ship_mode_reg_addr:
+ default: 0x3A
+ ship_mode_reg_data:
+ default: [ 0xC574, 0xC574 ]
+ # Documentation: b/230427330
+ # Manufacturer Access 0x00
+ # b14: Charging Disabled (0: Off, 1: On)
+ # b13: Discharging Disabled (0: Off, 1: On)
+ fet_mfgacc_support:
+ default: 1
+ fet_reg_addr:
+ default: 0x0
+ fet_reg_mask:
+ default: 0x2000
+ fet_disconnect_val:
+ default: 0x2000
+ fet_cfet_mask:
+ default: 0x4000
+ fet_cfet_off_val:
+ default: 0x4000
+
+ # Battery info
+ voltage_max:
+ default: 13200
+ voltage_normal:
+ default: 11550
+ 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: 75
diff --git a/zephyr/dts/bindings/battery/cosmx,gh02047xl.yaml b/zephyr/dts/bindings/battery/cosmx,gh02047xl.yaml
new file mode 100644
index 0000000000..aa44980621
--- /dev/null
+++ b/zephyr/dts/bindings/battery/cosmx,gh02047xl.yaml
@@ -0,0 +1,54 @@
+# Copyright 2022 The ChromiumOS Authors
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+description: "COSMX GH02047XL"
+compatible: "cosmx,gh02047xl"
+
+include: battery-smart.yaml
+
+properties:
+ enum-name:
+ type: string
+ default: "cosmx,gh02047xl"
+
+ # Fuel gauge
+ manuf_name:
+ default: "333-AC-DA-A"
+ device_name:
+ default: "GH02047XL"
+ ship_mode_reg_addr:
+ default: 0x00
+ ship_mode_reg_data:
+ default: [ 0x0010, 0x0010 ]
+ fet_mfgacc_support:
+ default: 1
+ fet_reg_addr:
+ default: 0x0
+ fet_reg_mask:
+ default: 0x0006
+ fet_disconnect_val:
+ default: 0x0
+
+ # Battery info
+ voltage_max:
+ default: 8800
+ voltage_normal:
+ default: 7700
+ voltage_min:
+ default: 6000
+ 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: -10
+ discharging_max_c:
+ default: 60
+
diff --git a/zephyr/dts/bindings/battery/cosmx,l22x3pg0.yaml b/zephyr/dts/bindings/battery/cosmx,l22x3pg0.yaml
new file mode 100644
index 0000000000..b8e199d6cb
--- /dev/null
+++ b/zephyr/dts/bindings/battery/cosmx,l22x3pg0.yaml
@@ -0,0 +1,54 @@
+# Copyright 2022 The ChromiumOS Authors
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+description: "COSMX L22X3PG0"
+compatible: "cosmx,l22x3pg0"
+
+include: battery-smart.yaml
+
+properties:
+ enum-name:
+ type: string
+ default: "cosmx,l22x3pg0"
+
+ # Fuel gauge
+ manuf_name:
+ default: "COSMX"
+ device_name:
+ default: "L22X3PG0"
+ 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: 13200
+ voltage_normal:
+ default: 11310
+ voltage_min:
+ default: 9000
+ precharge_current:
+ default: 207
+ 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: 70
+
diff --git a/zephyr/dts/bindings/battery/cosmx,mvk11.yaml b/zephyr/dts/bindings/battery/cosmx,mvk11.yaml
new file mode 100644
index 0000000000..c493d27cef
--- /dev/null
+++ b/zephyr/dts/bindings/battery/cosmx,mvk11.yaml
@@ -0,0 +1,53 @@
+description: "COSMX COM DELL MVK11"
+compatible: "cosmx,mvk11"
+
+include: battery-smart.yaml
+
+properties:
+ enum-name:
+ type: string
+ default: "cosmx,mvk11"
+
+ # Fuel Gauge
+ manuf_name:
+ default: "COM"
+ device_name:
+ default: "DELL MVK11"
+ ship_mode_reg_addr:
+ default: 0x00
+ ship_mode_reg_data:
+ default: [ 0x0010, 0x0010 ]
+ fet_mfgacc_support:
+ default: 0
+ fet_reg_addr:
+ default: 0x54
+ fet_reg_mask:
+ default: 0x0002
+ fet_disconnect_val:
+ default: 0x0000
+ fet_cfet_mask:
+ default: 0x0004
+ fet_cfet_off_val:
+ default: 0x0000
+
+ # Battery info
+ voltage_max:
+ default: 17600
+ voltage_normal:
+ default: 15000
+ voltage_min:
+ default: 12000
+ 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: 70
diff --git a/zephyr/dts/bindings/battery/dynapack,atl_gh02047xl.yaml b/zephyr/dts/bindings/battery/dynapack,atl_gh02047xl.yaml
new file mode 100644
index 0000000000..3bc3eccb4c
--- /dev/null
+++ b/zephyr/dts/bindings/battery/dynapack,atl_gh02047xl.yaml
@@ -0,0 +1,54 @@
+# Copyright 2022 The ChromiumOS Authors
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+description: "DYNAPACK ATL_GH02047XL"
+compatible: "dynapack,atl_gh02047xl"
+
+include: battery-smart.yaml
+
+properties:
+ enum-name:
+ type: string
+ default: "dynapack,atl_gh02047xl"
+
+ # Fuel gauge
+ manuf_name:
+ default: "333-27-DA-A"
+ device_name:
+ default: "GH02047XL"
+ ship_mode_reg_addr:
+ default: 0x00
+ ship_mode_reg_data:
+ default: [ 0x0010, 0x0010 ]
+ fet_mfgacc_support:
+ default: 1
+ fet_reg_addr:
+ default: 0x0
+ fet_reg_mask:
+ default: 0x0006
+ fet_disconnect_val:
+ default: 0x0
+
+ # Battery info
+ voltage_max:
+ default: 8800
+ voltage_normal:
+ default: 7700
+ voltage_min:
+ default: 6000
+ 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: -10
+ discharging_max_c:
+ default: 60
+
diff --git a/zephyr/dts/bindings/battery/dynapack,c140254.yaml b/zephyr/dts/bindings/battery/dynapack,c140254.yaml
new file mode 100644
index 0000000000..1c9f4c59de
--- /dev/null
+++ b/zephyr/dts/bindings/battery/dynapack,c140254.yaml
@@ -0,0 +1,56 @@
+description: "DYNAPACK AS3GXXE3KA C140254"
+compatible: "dynapack,c140254"
+
+include: battery-smart.yaml
+
+properties:
+ enum-name:
+ type: string
+ default: "dynapack,c140254"
+
+ # Fuel gauge
+ manuf_name:
+ default: "AS3GXXE3KA"
+ device_name:
+ default: "C140254"
+ ship_mode_reg_addr:
+ default: 0x00
+ ship_mode_reg_data:
+ default: [ 0x0010, 0x0010 ]
+ # Documentation: b/150833879
+ # Charging/Discharging FETs Status
+ # Register SBS_PackStatus_ACCESS (0x99)
+ # Bit-3: XDSG
+ # Bit-2: XCHG
+ fet_reg_addr:
+ default: 0x99
+ fet_reg_mask:
+ default: 0x0C
+ fet_disconnect_val:
+ default: 0x0C
+ fet_cfet_mask:
+ default: 0x04
+ fet_cfet_off_val:
+ default: 0x04
+
+ # Battery info
+ voltage_max:
+ default: 8900
+ voltage_normal:
+ default: 7970
+ voltage_min:
+ default: 6000
+ 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: 60
+ discharging_min_c:
+ default: -20
+ discharging_max_c:
+ default: 60 \ No newline at end of file
diff --git a/zephyr/dts/bindings/battery/dynapack,cosmx_gh02047xl.yaml b/zephyr/dts/bindings/battery/dynapack,cosmx_gh02047xl.yaml
new file mode 100644
index 0000000000..8fb6315914
--- /dev/null
+++ b/zephyr/dts/bindings/battery/dynapack,cosmx_gh02047xl.yaml
@@ -0,0 +1,54 @@
+# Copyright 2022 The ChromiumOS Authors
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+description: "DYNAPACK COSMX_GH02047XL"
+compatible: "dynapack,cosmx_gh02047xl"
+
+include: battery-smart.yaml
+
+properties:
+ enum-name:
+ type: string
+ default: "dynapack,cosmx_gh02047xl"
+
+ # Fuel gauge
+ manuf_name:
+ default: "333-2C-DA-A"
+ device_name:
+ default: "GH02047XL"
+ ship_mode_reg_addr:
+ default: 0x00
+ ship_mode_reg_data:
+ default: [ 0x0010, 0x0010 ]
+ fet_mfgacc_support:
+ default: 1
+ fet_reg_addr:
+ default: 0x0
+ fet_reg_mask:
+ default: 0x0006
+ fet_disconnect_val:
+ default: 0x0
+
+ # Battery info
+ voltage_max:
+ default: 8800
+ voltage_normal:
+ default: 7700
+ voltage_min:
+ default: 6000
+ 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: -10
+ discharging_max_c:
+ default: 60
+
diff --git a/zephyr/dts/bindings/battery/getac,bq40z50-R3-S2.yaml b/zephyr/dts/bindings/battery/getac,bq40z50-R3-S2.yaml
index b144c30be3..e59f6c1e37 100644
--- a/zephyr/dts/bindings/battery/getac,bq40z50-R3-S2.yaml
+++ b/zephyr/dts/bindings/battery/getac,bq40z50-R3-S2.yaml
@@ -1,4 +1,4 @@
-# Copyright 2022 The Chromium OS Authors. All rights reserved.
+# Copyright 2022 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/zephyr/dts/bindings/battery/getac,bq40z50-R3-S3.yaml b/zephyr/dts/bindings/battery/getac,bq40z50-R3-S3.yaml
index 57d220abbb..aed466ad11 100644
--- a/zephyr/dts/bindings/battery/getac,bq40z50-R3-S3.yaml
+++ b/zephyr/dts/bindings/battery/getac,bq40z50-R3-S3.yaml
@@ -1,4 +1,4 @@
-# Copyright 2022 The Chromium OS Authors. All rights reserved.
+# Copyright 2022 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/zephyr/dts/bindings/battery/lgc,ac17a8m.yaml b/zephyr/dts/bindings/battery/lgc,ac17a8m.yaml
index 53eeedc8a4..939713bbe5 100644
--- a/zephyr/dts/bindings/battery/lgc,ac17a8m.yaml
+++ b/zephyr/dts/bindings/battery/lgc,ac17a8m.yaml
@@ -1,4 +1,4 @@
-# Copyright 2022 The Chromium OS Authors. All rights reserved.
+# Copyright 2022 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/zephyr/dts/bindings/battery/lgc,ap19b8m.yaml b/zephyr/dts/bindings/battery/lgc,ap19b8m.yaml
new file mode 100644
index 0000000000..8a3beb49fe
--- /dev/null
+++ b/zephyr/dts/bindings/battery/lgc,ap19b8m.yaml
@@ -0,0 +1,54 @@
+description: "LGC KT0030G024 AP19B8M"
+compatible: "lgc,ap19b8m"
+
+include: battery-smart.yaml
+
+properties:
+ enum-name:
+ type: string
+ default: "lgc,ap19b8m"
+
+ # Fuel gauge
+ manuf_name:
+ default: "LGC KT0030G024"
+ device_name:
+ default: "AP19B8M"
+ ship_mode_reg_addr:
+ default: 0x3A
+ ship_mode_reg_data:
+ default: [ 0xC574, 0xC574 ]
+ # Documentation: b/135496272
+ fet_mfgacc_support:
+ default: 0
+ fet_reg_addr:
+ default: 0x43
+ fet_reg_mask:
+ default: 0x0001
+ fet_disconnect_val:
+ default: 0x0000
+ fet_cfet_mask:
+ default: 0x0002
+ fet_cfet_off_val:
+ default: 0x0000
+
+ # Battery info
+ voltage_max:
+ default: 13350
+ voltage_normal:
+ default: 11610
+ 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: 75
diff --git a/zephyr/dts/bindings/battery/lgc,l20l3pg2.yaml b/zephyr/dts/bindings/battery/lgc,l20l3pg2.yaml
index bf2b62bc44..73d2ca5ec6 100644
--- a/zephyr/dts/bindings/battery/lgc,l20l3pg2.yaml
+++ b/zephyr/dts/bindings/battery/lgc,l20l3pg2.yaml
@@ -1,4 +1,4 @@
-# Copyright 2021 The Chromium OS Authors. All rights reserved.
+# Copyright 2021 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/zephyr/dts/bindings/battery/lgc,xphx8.yaml b/zephyr/dts/bindings/battery/lgc,xphx8.yaml
new file mode 100644
index 0000000000..98b27fbe5b
--- /dev/null
+++ b/zephyr/dts/bindings/battery/lgc,xphx8.yaml
@@ -0,0 +1,57 @@
+# Copyright 2022 The ChromiumOS Authors
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+description: "LGC-LGC3.600 DELL_XPHX8"
+compatible: "lgc,xphx8"
+
+include: battery-smart.yaml
+
+properties:
+ enum-name:
+ type: string
+ default: "lgc,xphx8"
+
+ # Fuel Gauge
+ manuf_name:
+ default: "LGC-LGC3.600"
+ device_name:
+ default: "DELL XPHX8"
+ ship_mode_reg_addr:
+ default: 0x00
+ ship_mode_reg_data:
+ default: [ 0x0010, 0x0010 ]
+ fet_mfgacc_support:
+ default: 0
+ fet_reg_addr:
+ default: 0x43
+ fet_reg_mask:
+ default: 0x0001
+ fet_disconnect_val:
+ default: 0x0000
+ fet_cfet_mask:
+ default: 0x0002
+ fet_cfet_off_val:
+ default: 0x0000
+
+ # Battery info
+ voltage_max:
+ default: 17600
+ voltage_normal:
+ default: 15000
+ voltage_min:
+ default: 12000
+ precharge_current:
+ default: 256
+ start_charging_min_c:
+ default: -3
+ start_charging_max_c:
+ default: 45
+ charging_min_c:
+ default: -3
+ charging_max_c:
+ default: 50
+ discharging_min_c:
+ default: -20
+ discharging_max_c:
+ default: 70
diff --git a/zephyr/dts/bindings/battery/powertech,batgqa05l22.yaml b/zephyr/dts/bindings/battery/powertech,batgqa05l22.yaml
index a12ef741e6..45b067ee4d 100644
--- a/zephyr/dts/bindings/battery/powertech,batgqa05l22.yaml
+++ b/zephyr/dts/bindings/battery/powertech,batgqa05l22.yaml
@@ -1,4 +1,4 @@
-# Copyright 2022 The Chromium OS Authors. All rights reserved.
+# Copyright 2022 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/zephyr/dts/bindings/battery/smp,atlxdy9k.yaml b/zephyr/dts/bindings/battery/smp,atlxdy9k.yaml
new file mode 100644
index 0000000000..dd437f705a
--- /dev/null
+++ b/zephyr/dts/bindings/battery/smp,atlxdy9k.yaml
@@ -0,0 +1,53 @@
+description: "SMP-ATL SMP-ATL3.66 "
+compatible: "smp,atlxdy9k"
+
+include: battery-smart.yaml
+
+properties:
+ enum-name:
+ type: string
+ default: "smp,atlxdy9k"
+
+ # Fuel gauge
+ manuf_name:
+ default: "SMP-ATL3.66"
+ device_name:
+ default: "DELL XDY9K"
+ ship_mode_reg_addr:
+ default: 0x00
+ ship_mode_reg_data:
+ default: [ 0x0010, 0x0010 ]
+ fet_mfgacc_support:
+ default: 0
+ fet_reg_addr:
+ default: 0x43
+ fet_reg_mask:
+ default: 0x0001
+ fet_disconnect_val:
+ default: 0x0000
+ fet_cfet_mask:
+ default: 0x0002
+ fet_cfet_off_val:
+ default: 0x0000
+
+ # Battery info
+ voltage_max:
+ default: 17600
+ voltage_normal:
+ default: 15000
+ voltage_min:
+ default: 12000
+ precharge_current:
+ default: 256
+ start_charging_min_c:
+ default: -3
+ start_charging_max_c:
+ default: 45
+ charging_min_c:
+ default: -3
+ charging_max_c:
+ default: 50
+ discharging_min_c:
+ default: -17
+ discharging_max_c:
+ default: 70
diff --git a/zephyr/dts/bindings/battery/smp,c31n1915.yaml b/zephyr/dts/bindings/battery/smp,c31n1915.yaml
new file mode 100644
index 0000000000..03dd7d3915
--- /dev/null
+++ b/zephyr/dts/bindings/battery/smp,c31n1915.yaml
@@ -0,0 +1,47 @@
+description: "SMP Rechargeable Li-Polymer Battery Pack 3640mAh"
+compatible: "smp,c31n1915"
+
+include: battery-smart.yaml
+
+properties:
+ enum-name:
+ type: string
+ default: "smp,c31n1915"
+
+ # Fuel gauge
+ manuf_name:
+ default: "AS3GWND3jB"
+ device_name:
+ default: "B340035"
+ ship_mode_reg_addr:
+ default: 0x00
+ ship_mode_reg_data:
+ default: [ 0x0010, 0x0010 ]
+ fet_reg_addr:
+ default: 0x99
+ fet_reg_mask:
+ default: 0x000c
+ fet_disconnect_val:
+ default: 0x000c
+
+ # Battery info
+ voltage_max:
+ default: 13200
+ voltage_normal:
+ default: 11850
+ 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: 60
+ discharging_min_c:
+ default: -20
+ discharging_max_c:
+ default: 60
diff --git a/zephyr/dts/bindings/battery/smp,c31n2005.yaml b/zephyr/dts/bindings/battery/smp,c31n2005.yaml
new file mode 100644
index 0000000000..07b7e9f0b6
--- /dev/null
+++ b/zephyr/dts/bindings/battery/smp,c31n2005.yaml
@@ -0,0 +1,48 @@
+# SMP Li-Po 4335mAh
+description: "SMP LiPo 4335mAh AS3GWQd3jB C490-42"
+compatible: "smp,c31n2005"
+
+include: battery-smart.yaml
+
+properties:
+ enum-name:
+ type: string
+ default: "smp,c31n2005"
+
+ # Fuel gauge
+ manuf_name:
+ default: "AS3GWQd3jB"
+ device_name:
+ default: "C490-42"
+ ship_mode_reg_addr:
+ default: 0x00
+ ship_mode_reg_data:
+ default: [ 0x0010, 0x0010 ]
+ fet_reg_addr:
+ default: 0x99
+ fet_reg_mask:
+ default: 0x000c
+ fet_disconnect_val:
+ default: 0x000c
+
+ # Battery info
+ voltage_max:
+ default: 13200
+ voltage_normal:
+ default: 11880
+ 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: 60
+ discharging_min_c:
+ default: -20
+ discharging_max_c:
+ default: 60
diff --git a/zephyr/dts/bindings/battery/smp,coslight_gh02047xl.yaml b/zephyr/dts/bindings/battery/smp,coslight_gh02047xl.yaml
new file mode 100644
index 0000000000..19f8751998
--- /dev/null
+++ b/zephyr/dts/bindings/battery/smp,coslight_gh02047xl.yaml
@@ -0,0 +1,54 @@
+# Copyright 2022 The ChromiumOS Authors
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+description: "SMP COSLIGHT_GH02047XL"
+compatible: "smp,coslight_gh02047xl"
+
+include: battery-smart.yaml
+
+properties:
+ enum-name:
+ type: string
+ default: "smp,coslight_gh02047xl"
+
+ # Fuel gauge
+ manuf_name:
+ default: "333-1C-DA-A"
+ device_name:
+ default: "GH02047XL"
+ ship_mode_reg_addr:
+ default: 0x00
+ ship_mode_reg_data:
+ default: [ 0x0010, 0x0010 ]
+ fet_mfgacc_support:
+ default: 1
+ fet_reg_addr:
+ default: 0x0
+ fet_reg_mask:
+ default: 0x0006
+ fet_disconnect_val:
+ default: 0x0
+
+ # Battery info
+ voltage_max:
+ default: 8800
+ voltage_normal:
+ default: 7700
+ voltage_min:
+ default: 6000
+ 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: -10
+ discharging_max_c:
+ default: 60
+
diff --git a/zephyr/dts/bindings/battery/smp,cosxdy9k.yaml b/zephyr/dts/bindings/battery/smp,cosxdy9k.yaml
new file mode 100644
index 0000000000..29baf7b807
--- /dev/null
+++ b/zephyr/dts/bindings/battery/smp,cosxdy9k.yaml
@@ -0,0 +1,51 @@
+description: "SMP-ATL SMP-COS3.66 "
+compatible: "smp,cosxdy9k"
+
+include: battery-smart.yaml
+
+properties:
+ enum-name:
+ type: string
+ default: "smp,cosxdy9k"
+
+ # Fuel gauge
+ manuf_name:
+ default: "SMP-COS3.66"
+ device_name:
+ default: "DELL XDY9K"
+ ship_mode_reg_addr:
+ default: 0x00
+ ship_mode_reg_data:
+ default: [ 0x0010, 0x0010 ]
+ fet_reg_addr:
+ default: 0x43
+ fet_reg_mask:
+ default: 0x0001
+ fet_disconnect_val:
+ default: 0x0000
+ fet_cfet_mask:
+ default: 0x0002
+ fet_cfet_off_val:
+ default: 0x0000
+
+ # Battery info
+ voltage_max:
+ default: 17600
+ voltage_normal:
+ default: 15000
+ voltage_min:
+ default: 12000
+ precharge_current:
+ default: 256
+ start_charging_min_c:
+ default: -3
+ start_charging_max_c:
+ default: 45
+ charging_min_c:
+ default: -3
+ charging_max_c:
+ default: 50
+ discharging_min_c:
+ default: -17
+ discharging_max_c:
+ default: 70
diff --git a/zephyr/dts/bindings/battery/smp,highpower_gh02047xl.yaml b/zephyr/dts/bindings/battery/smp,highpower_gh02047xl.yaml
new file mode 100644
index 0000000000..f3d039dfdf
--- /dev/null
+++ b/zephyr/dts/bindings/battery/smp,highpower_gh02047xl.yaml
@@ -0,0 +1,54 @@
+# Copyright 2022 The ChromiumOS Authors
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+description: "SMP HIGHPOWER_GH02047XL"
+compatible: "smp,highpower_gh02047xl"
+
+include: battery-smart.yaml
+
+properties:
+ enum-name:
+ type: string
+ default: "smp,highpower_gh02047xl"
+
+ # Fuel gauge
+ manuf_name:
+ default: "333-1D-DA-A"
+ device_name:
+ default: "GH02047XL"
+ ship_mode_reg_addr:
+ default: 0x00
+ ship_mode_reg_data:
+ default: [ 0x0010, 0x0010 ]
+ fet_mfgacc_support:
+ default: 1
+ fet_reg_addr:
+ default: 0x0
+ fet_reg_mask:
+ default: 0x0006
+ fet_disconnect_val:
+ default: 0x0
+
+ # Battery info
+ voltage_max:
+ default: 8800
+ voltage_normal:
+ default: 7700
+ voltage_min:
+ default: 6000
+ 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: -10
+ discharging_max_c:
+ default: 60
+
diff --git a/zephyr/dts/bindings/battery/smp,l20m3pg0.yaml b/zephyr/dts/bindings/battery/smp,l20m3pg0.yaml
index ecb0678dc7..437a3ca140 100644
--- a/zephyr/dts/bindings/battery/smp,l20m3pg0.yaml
+++ b/zephyr/dts/bindings/battery/smp,l20m3pg0.yaml
@@ -1,4 +1,4 @@
-# Copyright 2022 The Chromium OS Authors. All rights reserved.
+# Copyright 2022 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/zephyr/dts/bindings/battery/smp,l20m3pg1.yaml b/zephyr/dts/bindings/battery/smp,l20m3pg1.yaml
index f462f8b388..00a6b99a84 100644
--- a/zephyr/dts/bindings/battery/smp,l20m3pg1.yaml
+++ b/zephyr/dts/bindings/battery/smp,l20m3pg1.yaml
@@ -1,4 +1,4 @@
-# Copyright 2022 The Chromium OS Authors. All rights reserved.
+# Copyright 2022 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/zephyr/dts/bindings/battery/smp,l20m3pg2.yaml b/zephyr/dts/bindings/battery/smp,l20m3pg2.yaml
index 874e1f8d0c..37a5cb2052 100644
--- a/zephyr/dts/bindings/battery/smp,l20m3pg2.yaml
+++ b/zephyr/dts/bindings/battery/smp,l20m3pg2.yaml
@@ -1,4 +1,4 @@
-# Copyright 2021 The Chromium OS Authors. All rights reserved.
+# Copyright 2021 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/zephyr/dts/bindings/battery/smp,l22m3pg0.yaml b/zephyr/dts/bindings/battery/smp,l22m3pg0.yaml
new file mode 100644
index 0000000000..991734c9bc
--- /dev/null
+++ b/zephyr/dts/bindings/battery/smp,l22m3pg0.yaml
@@ -0,0 +1,54 @@
+# Copyright 2022 The ChromiumOS Authors
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+description: "SMP L22M3PG0"
+compatible: "smp,l22m3pg0"
+
+include: battery-smart.yaml
+
+properties:
+ enum-name:
+ type: string
+ default: "smp,l22m3pg0"
+
+ # Fuel gauge
+ manuf_name:
+ default: "SMP"
+ device_name:
+ default: "L22M3PG0"
+ ship_mode_reg_addr:
+ default: 0x34
+ ship_mode_reg_data:
+ default: [ 0x0000, 0x1000 ]
+ fet_mfgacc_support:
+ default: 0
+ fet_reg_addr:
+ default: 0x00
+ fet_reg_mask:
+ default: 0x0018
+ fet_disconnect_val:
+ default: 0x0000
+
+ # Battery info
+ voltage_max:
+ default: 13200
+ voltage_normal:
+ default: 11310
+ voltage_min:
+ default: 9000
+ precharge_current:
+ default: 208
+ 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: 60
+
diff --git a/zephyr/dts/bindings/battery/smp,l22m3pg1.yaml b/zephyr/dts/bindings/battery/smp,l22m3pg1.yaml
new file mode 100644
index 0000000000..48152e0722
--- /dev/null
+++ b/zephyr/dts/bindings/battery/smp,l22m3pg1.yaml
@@ -0,0 +1,54 @@
+# Copyright 2022 The ChromiumOS Authors
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+description: "SMP L22M3PG1"
+compatible: "smp,l22m3pg1"
+
+include: battery-smart.yaml
+
+properties:
+ enum-name:
+ type: string
+ default: "smp,l22m3pg1"
+
+ # Fuel gauge
+ manuf_name:
+ default: "SMP"
+ device_name:
+ default: "L22M3PG1"
+ ship_mode_reg_addr:
+ default: 0x34
+ ship_mode_reg_data:
+ default: [ 0x0000, 0x1000 ]
+ fet_mfgacc_support:
+ default: 0
+ fet_reg_addr:
+ default: 0x00
+ fet_reg_mask:
+ default: 0x0018
+ fet_disconnect_val:
+ default: 0x0000
+
+ # Battery info
+ voltage_max:
+ default: 13200
+ voltage_normal:
+ default: 11520
+ voltage_min:
+ default: 9000
+ precharge_current:
+ default: 248
+ 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: 60
+
diff --git a/zephyr/dts/bindings/battery/smp,pc-vp-bp153.yaml b/zephyr/dts/bindings/battery/smp,pc-vp-bp153.yaml
new file mode 100644
index 0000000000..3341b40d14
--- /dev/null
+++ b/zephyr/dts/bindings/battery/smp,pc-vp-bp153.yaml
@@ -0,0 +1,54 @@
+# Copyright 2022 The ChromiumOS Authors
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+description: "SMP PC-VP-BP153"
+compatible: "smp,pc-vp-bp153"
+
+include: battery-smart.yaml
+
+properties:
+ enum-name:
+ type: string
+ default: "smp,pc-vp-bp153"
+
+ # Fuel gauge
+ manuf_name:
+ default: "SIMPLO"
+ device_name:
+ default: "PC-VP-BP153"
+ 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: 8800
+ voltage_normal:
+ default: 7680
+ voltage_min:
+ default: 6000
+ precharge_current:
+ default: 128
+ 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: 70
+
diff --git a/zephyr/dts/bindings/battery/sunwoda,atl3rr09.yaml b/zephyr/dts/bindings/battery/sunwoda,atl3rr09.yaml
new file mode 100644
index 0000000000..5ca2477f87
--- /dev/null
+++ b/zephyr/dts/bindings/battery/sunwoda,atl3rr09.yaml
@@ -0,0 +1,53 @@
+description: "SUNWODA SWD-ATL4.242"
+compatible: "sunwoda,atl3rr09"
+
+include: battery-smart.yaml
+
+properties:
+ enum-name:
+ type: string
+ default: "sunwoda,atl3rr09"
+
+ # Fuel Gauge
+ manuf_name:
+ default: "SWD-ATL4.242"
+ device_name:
+ default: "DELL 3RR09"
+ ship_mode_reg_addr:
+ default: 0x00
+ ship_mode_reg_data:
+ default: [ 0x0010, 0x0010 ]
+ fet_mfgacc_support:
+ default: 0
+ fet_reg_addr:
+ default: 0x54
+ fet_reg_mask:
+ default: 0x0002
+ fet_disconnect_val:
+ default: 0x0000
+ fet_cfet_mask:
+ default: 0x0004
+ fet_cfet_off_val:
+ default: 0x0000
+
+ # Battery info
+ voltage_max:
+ default: 17800
+ voltage_normal:
+ default: 15200
+ voltage_min:
+ default: 12000
+ precharge_current:
+ default: 256
+ start_charging_min_c:
+ default: 0
+ start_charging_max_c:
+ default: 45
+ charging_min_c:
+ default: -3
+ charging_max_c:
+ default: 50
+ discharging_min_c:
+ default: -5
+ discharging_max_c:
+ default: 70
diff --git a/zephyr/dts/bindings/battery/sunwoda,cos3rr09.yaml b/zephyr/dts/bindings/battery/sunwoda,cos3rr09.yaml
new file mode 100644
index 0000000000..58d6b7d635
--- /dev/null
+++ b/zephyr/dts/bindings/battery/sunwoda,cos3rr09.yaml
@@ -0,0 +1,53 @@
+description: "SUNWODA SWD-COS4.264"
+compatible: "sunwoda,cos3rr09"
+
+include: battery-smart.yaml
+
+properties:
+ enum-name:
+ type: string
+ default: "sunwoda,cos3rr09"
+
+ # Fuel Gauge
+ manuf_name:
+ default: "SWD-COS4.264"
+ device_name:
+ default: "DELL 3RR09YMD"
+ ship_mode_reg_addr:
+ default: 0x00
+ ship_mode_reg_data:
+ default: [ 0x0010, 0x0010 ]
+ fet_mfgacc_support:
+ default: 0
+ fet_reg_addr:
+ default: 0x54
+ fet_reg_mask:
+ default: 0x0002
+ fet_disconnect_val:
+ default: 0x0000
+ fet_cfet_mask:
+ default: 0x0004
+ fet_cfet_off_val:
+ default: 0x0000
+
+ # Battery info
+ voltage_max:
+ default: 17800
+ voltage_normal:
+ default: 15200
+ voltage_min:
+ default: 12000
+ precharge_current:
+ default: 256
+ start_charging_min_c:
+ default: 0
+ start_charging_max_c:
+ default: 45
+ charging_min_c:
+ default: -3
+ charging_max_c:
+ default: 50
+ discharging_min_c:
+ default: -5
+ discharging_max_c:
+ default: 70
diff --git a/zephyr/dts/bindings/battery/sunwoda,l22d3pg0.yaml b/zephyr/dts/bindings/battery/sunwoda,l22d3pg0.yaml
new file mode 100644
index 0000000000..a0ff640c6b
--- /dev/null
+++ b/zephyr/dts/bindings/battery/sunwoda,l22d3pg0.yaml
@@ -0,0 +1,54 @@
+# Copyright 2022 The ChromiumOS Authors
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+description: "SUNWODA L22D3PG0"
+compatible: "sunwoda,l22d3pg0"
+
+include: battery-smart.yaml
+
+properties:
+ enum-name:
+ type: string
+ default: "sunwoda,l22d3pg0"
+
+ # Fuel gauge
+ manuf_name:
+ default: "Sunwoda"
+ device_name:
+ default: "L22D3PG0"
+ ship_mode_reg_addr:
+ default: 0x34
+ ship_mode_reg_data:
+ default: [ 0x0000, 0x1000 ]
+ fet_mfgacc_support:
+ default: 0
+ fet_reg_addr:
+ default: 0x00
+ fet_reg_mask:
+ default: 0x0018
+ fet_disconnect_val:
+ default: 0x0000
+
+ # Battery info
+ voltage_max:
+ default: 13200
+ voltage_normal:
+ default: 11310
+ voltage_min:
+ default: 9000
+ precharge_current:
+ default: 209
+ 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: 60
+
diff --git a/zephyr/dts/bindings/battery/sunwoda,l22d3pg1.yaml b/zephyr/dts/bindings/battery/sunwoda,l22d3pg1.yaml
new file mode 100644
index 0000000000..84505cffeb
--- /dev/null
+++ b/zephyr/dts/bindings/battery/sunwoda,l22d3pg1.yaml
@@ -0,0 +1,54 @@
+# Copyright 2022 The ChromiumOS Authors
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+description: "SUNWODA L22D3PG1"
+compatible: "sunwoda,l22d3pg1"
+
+include: battery-smart.yaml
+
+properties:
+ enum-name:
+ type: string
+ default: "sunwoda,l22d3pg1"
+
+ # Fuel gauge
+ manuf_name:
+ default: "Sunwoda"
+ device_name:
+ default: "L22D3PG1"
+ ship_mode_reg_addr:
+ default: 0x34
+ ship_mode_reg_data:
+ default: [ 0x0000, 0x1000 ]
+ fet_mfgacc_support:
+ default: 0
+ fet_reg_addr:
+ default: 0x00
+ fet_reg_mask:
+ default: 0x0018
+ fet_disconnect_val:
+ default: 0x0000
+
+ # Battery info
+ voltage_max:
+ default: 13200
+ voltage_normal:
+ default: 11520
+ voltage_min:
+ default: 9000
+ precharge_current:
+ default: 251
+ 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: 60
+
diff --git a/zephyr/dts/bindings/cbi/cros-ec-cbi-fw-config-value.yaml b/zephyr/dts/bindings/cbi/cros-ec,cbi-fw-config-value.yaml
index facbb086f1..6c45ffbf0b 100644
--- a/zephyr/dts/bindings/cbi/cros-ec-cbi-fw-config-value.yaml
+++ b/zephyr/dts/bindings/cbi/cros-ec,cbi-fw-config-value.yaml
@@ -1,4 +1,4 @@
-# Copyright 2021 The Chromium OS Authors. All rights reserved.
+# Copyright 2021 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/zephyr/dts/bindings/cbi/cros-ec-cbi-fw-config.yaml b/zephyr/dts/bindings/cbi/cros-ec,cbi-fw-config.yaml
index b19c9632be..b47c511d5e 100644
--- a/zephyr/dts/bindings/cbi/cros-ec-cbi-fw-config.yaml
+++ b/zephyr/dts/bindings/cbi/cros-ec,cbi-fw-config.yaml
@@ -1,4 +1,4 @@
-# Copyright 2021 The Chromium OS Authors. All rights reserved.
+# Copyright 2021 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/zephyr/dts/bindings/cbi/named-cbi-ssfc-value.yaml b/zephyr/dts/bindings/cbi/named-cbi-ssfc-value.yaml
index f97d688727..7e04afed87 100644
--- a/zephyr/dts/bindings/cbi/named-cbi-ssfc-value.yaml
+++ b/zephyr/dts/bindings/cbi/named-cbi-ssfc-value.yaml
@@ -1,4 +1,4 @@
-# Copyright 2021 The Chromium OS Authors. All rights reserved.
+# Copyright 2021 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/zephyr/dts/bindings/cbi/named-cbi-ssfc.yaml b/zephyr/dts/bindings/cbi/named-cbi-ssfc.yaml
index bd6c1d535b..2db330079d 100644
--- a/zephyr/dts/bindings/cbi/named-cbi-ssfc.yaml
+++ b/zephyr/dts/bindings/cbi/named-cbi-ssfc.yaml
@@ -1,4 +1,4 @@
-# Copyright 2021 The Chromium OS Authors. All rights reserved.
+# Copyright 2021 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
@@ -20,6 +20,7 @@ child-binding:
description:
Enum values used only for description purposes
enum:
+ - AUDIO_CODEC
- BASE_SENSOR
- LID_SENSOR
- LIGHTBAR
diff --git a/zephyr/dts/bindings/charger/chg-chip.yaml b/zephyr/dts/bindings/charger/chg-chip.yaml
index 50e78756d9..58cc487b1b 100644
--- a/zephyr/dts/bindings/charger/chg-chip.yaml
+++ b/zephyr/dts/bindings/charger/chg-chip.yaml
@@ -1,20 +1,9 @@
-# Copyright (c) 2022 The Chromium OS Authors
+# Copyright 2022 The ChromiumOS Authors
# SPDX-License-Identifier: Apache-2.0
description: Charger chip
-properties:
- port:
- type: phandle
- required: true
- description: |
- I2C port used to communicate with charger chip
-
- i2c-addr-flags:
- type: string
- required: false
- description: |
- I2C address of charger chip
+include: i2c-device.yaml
# Example
# The charger chips nodes have to be placed under the USB-C
@@ -30,28 +19,30 @@ properties:
# port0@0 {
# compatible = "named-usbc-port";
# reg = <0>;
-# bc12 {
-# compatible = "pericom,pi3usb9201";
-# port = <&i2c_ec_i2c_usb_c0>;
-# };
-# chg {
-# compatible = "siliconmitus,sm5803";
-# status = "okay";
-# port = <&i2c_ec_i2c_usb_c0>;
-# };
+# bc12 = <&bc12_port0>;
+# chg = <&chg_port0>;
# };
# port1@1 {
# compatible = "named-usbc-port";
# reg = <1>;
-# bc12 {
-# compatible = "pericom,pi3usb9201";
-# port = <&i2c_ec_i2c_sub_usb_c1>;
-# };
-# chg {
-# compatible = "siliconmitus,sm5803";
-# status = "okay";
-# port = <&i2c_ec_i2c_sub_usb_c1>;
-# };
+# bc12 = <&bc12_port1>;
+# chg = <&chg_port1>;
+# };
+# };
+#
+# &i2c5 {
+# chg_port0: sm5803@32 {
+# compatible = "siliconmitus,sm5803";
+# status = "okay";
+# reg = <0x32>;
+# };
+# };
+#
+# &i2c4 {
+# chg_port1: sm5803@32 {
+# compatible = "siliconmitus,sm5803";
+# status = "okay";
+# reg = <0x32>;
# };
# };
#
@@ -63,23 +54,19 @@ properties:
# port0@0 {
# compatible = "named-usbc-port";
# reg = <0>;
-# bc12 {
-# compatible = "pericom,pi3usb9201";
-# port = <&i2c_ec_i2c_usb_c0>;
-# };
-# chg {
-# compatible = "siliconmitus,sm5803";
-# status = "okay";
-# port = <&i2c_ec_i2c_usb_c0>;
-# };
+# chg = <&charger>;
# };
# port1@1 {
# compatible = "named-usbc-port";
# reg = <1>;
-# bc12 {
-# compatible = "pericom,pi3usb9201";
-# port = <&i2c_ec_i2c_sub_usb_c1>;
-# };
+# bc12 = <&bc12_port1>;
+# };
+# };
+#
+# &i2c5 {
+# charger: sm5803@32 {
+# compatible = "siliconmitus,sm5803";
+# status = "okay";
+# reg = <0x32>;
# };
# };
-
diff --git a/zephyr/dts/bindings/charger/intersil,isl923x.yaml b/zephyr/dts/bindings/charger/intersil,isl923x.yaml
index 2da947fea8..a9c2e8f814 100644
--- a/zephyr/dts/bindings/charger/intersil,isl923x.yaml
+++ b/zephyr/dts/bindings/charger/intersil,isl923x.yaml
@@ -1,4 +1,4 @@
-# Copyright 2021 The Chromium OS Authors. All rights reserved.
+# Copyright 2021 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/zephyr/dts/bindings/charger/intersil,isl9241.yaml b/zephyr/dts/bindings/charger/intersil,isl9241.yaml
index 567c2077a6..7423e46a23 100644
--- a/zephyr/dts/bindings/charger/intersil,isl9241.yaml
+++ b/zephyr/dts/bindings/charger/intersil,isl9241.yaml
@@ -1,4 +1,4 @@
-# Copyright 2021 The Chromium OS Authors. All rights reserved.
+# Copyright 2021 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/zephyr/dts/bindings/charger/richtek,rt9490.yaml b/zephyr/dts/bindings/charger/richtek,rt9490.yaml
index 96d8b81fa0..ecd25696f3 100644
--- a/zephyr/dts/bindings/charger/richtek,rt9490.yaml
+++ b/zephyr/dts/bindings/charger/richtek,rt9490.yaml
@@ -1,4 +1,4 @@
-# Copyright 2022 The Chromium OS Authors. All rights reserved.
+# Copyright 2022 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
@@ -7,3 +7,8 @@ description: Richtek RT9490 Charger
compatible: "richtek,rt9490"
include: chg-chip.yaml
+
+properties:
+ thermistor:
+ type: phandle
+ description: Underlying thermistor device to measure temperature
diff --git a/zephyr/dts/bindings/charger/siliconmitus,sm5803.yaml b/zephyr/dts/bindings/charger/siliconmitus,sm5803.yaml
index 9aac5f3d8b..20d88d1659 100644
--- a/zephyr/dts/bindings/charger/siliconmitus,sm5803.yaml
+++ b/zephyr/dts/bindings/charger/siliconmitus,sm5803.yaml
@@ -1,4 +1,4 @@
-# Copyright 2022 The Chromium OS Authors. All rights reserved.
+# Copyright 2022 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/zephyr/dts/bindings/charger/ti,bq25710.yaml b/zephyr/dts/bindings/charger/ti,bq25710.yaml
index 2ebf194b77..d0bc20a015 100644
--- a/zephyr/dts/bindings/charger/ti,bq25710.yaml
+++ b/zephyr/dts/bindings/charger/ti,bq25710.yaml
@@ -1,4 +1,4 @@
-# Copyright 2022 The Chromium OS Authors. All rights reserved.
+# Copyright 2022 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/zephyr/dts/bindings/console/ec-console.yaml b/zephyr/dts/bindings/console/ec-console.yaml
index f79ddd67b0..0f46524a39 100644
--- a/zephyr/dts/bindings/console/ec-console.yaml
+++ b/zephyr/dts/bindings/console/ec-console.yaml
@@ -1,4 +1,4 @@
-# Copyright 2021 The Chromium OS Authors. All rights reserved.
+# Copyright 2021 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/zephyr/dts/bindings/cros_bbram/named-bbram-regions.yaml b/zephyr/dts/bindings/cros_bbram/named-bbram-regions.yaml
index 8b12473d0a..a8824c3fb1 100644
--- a/zephyr/dts/bindings/cros_bbram/named-bbram-regions.yaml
+++ b/zephyr/dts/bindings/cros_bbram/named-bbram-regions.yaml
@@ -1,4 +1,4 @@
-# Copyright (c) 2021 Google Inc.
+# Copyright 2021 Google LLC
# SPDX-License-Identifier: Apache-2.0
description: Named battery-backed RAM parent node
diff --git a/zephyr/dts/bindings/cros_dbg/nuvoton,npcx-cros-dbg.yaml b/zephyr/dts/bindings/cros_dbg/nuvoton,npcx-cros-dbg.yaml
index c3a9937d45..0cdfd41e31 100644
--- a/zephyr/dts/bindings/cros_dbg/nuvoton,npcx-cros-dbg.yaml
+++ b/zephyr/dts/bindings/cros_dbg/nuvoton,npcx-cros-dbg.yaml
@@ -1,4 +1,4 @@
-# Copyright (c) 2021 Google Inc.
+# Copyright 2021 Google LLC
# SPDX-License-Identifier: Apache-2.0
description: Nuvoton, NPCX Debug Interface
diff --git a/zephyr/dts/bindings/cros_displight/cros-ec,displight.yaml b/zephyr/dts/bindings/cros_displight/cros-ec,displight.yaml
index df51bf19dc..1ce1892fd2 100644
--- a/zephyr/dts/bindings/cros_displight/cros-ec,displight.yaml
+++ b/zephyr/dts/bindings/cros_displight/cros-ec,displight.yaml
@@ -1,4 +1,4 @@
-# Copyright 2022 The Chromium OS Authors. All rights reserved.
+# Copyright 2022 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
@@ -14,11 +14,6 @@ properties:
required: true
description: PWM controlling the display backlight level.
- frequency:
- type: int
- required: true
- description: PWM frequency in Hz.
-
generic-pwm-channel:
type: int
required: false
diff --git a/zephyr/dts/bindings/cros_flash/cros-ec,flash-layout.yaml b/zephyr/dts/bindings/cros_flash/cros-ec,flash-layout.yaml
index 991f3c71cf..0ec9bdfbb0 100644
--- a/zephyr/dts/bindings/cros_flash/cros-ec,flash-layout.yaml
+++ b/zephyr/dts/bindings/cros_flash/cros-ec,flash-layout.yaml
@@ -1,4 +1,4 @@
-# Copyright 2021 The Chromium OS Authors. All rights reserved.
+# Copyright 2021 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/zephyr/dts/bindings/cros_flash/cros-flash-controller.yaml b/zephyr/dts/bindings/cros_flash/cros-flash-controller.yaml
index b9c8a9f149..9469a02004 100644
--- a/zephyr/dts/bindings/cros_flash/cros-flash-controller.yaml
+++ b/zephyr/dts/bindings/cros_flash/cros-flash-controller.yaml
@@ -6,7 +6,3 @@
include: base.yaml
bus: crosflash
-
-properties:
- label:
- required: true
diff --git a/zephyr/dts/bindings/cros_flash/microchip,xec-cros-flash.yaml b/zephyr/dts/bindings/cros_flash/microchip,xec-cros-flash.yaml
index 2b9aea1554..a5c1155b9e 100644
--- a/zephyr/dts/bindings/cros_flash/microchip,xec-cros-flash.yaml
+++ b/zephyr/dts/bindings/cros_flash/microchip,xec-cros-flash.yaml
@@ -1,4 +1,4 @@
-# Copyright 2022 The Chromium OS Authors. All rights reserved.
+# Copyright 2022 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/zephyr/dts/bindings/cros_kb_raw/cros-kb-raw-controller.yaml b/zephyr/dts/bindings/cros_kb_raw/cros-kb-raw-controller.yaml
deleted file mode 100644
index e8c95419e1..0000000000
--- a/zephyr/dts/bindings/cros_kb_raw/cros-kb-raw-controller.yaml
+++ /dev/null
@@ -1,12 +0,0 @@
-# Copyright 2020 Google LLC
-# SPDX-License-Identifier: Apache-2.0
-
-# Common fields for Chrome OS raw keyboard devices
-
-include: base.yaml
-
-bus: croskb
-
-properties:
- label:
- required: true
diff --git a/zephyr/dts/bindings/cros_kb_raw/ite,it8xxx2-cros-kb-raw.yaml b/zephyr/dts/bindings/cros_kb_raw/ite,it8xxx2-cros-kb-raw.yaml
index 9c1d635b61..a03da035b1 100644
--- a/zephyr/dts/bindings/cros_kb_raw/ite,it8xxx2-cros-kb-raw.yaml
+++ b/zephyr/dts/bindings/cros_kb_raw/ite,it8xxx2-cros-kb-raw.yaml
@@ -5,7 +5,7 @@ description: ITE, it8xxx2-cros-kb-raw node
compatible: "ite,it8xxx2-cros-kb-raw"
-include: cros-kb-raw-controller.yaml
+include: base.yaml
properties:
reg:
diff --git a/zephyr/dts/bindings/cros_kb_raw/microchip,xec-cros-kb-raw.yaml b/zephyr/dts/bindings/cros_kb_raw/microchip,xec-cros-kb-raw.yaml
index 79ca1dda4a..9ad5a50bfd 100644
--- a/zephyr/dts/bindings/cros_kb_raw/microchip,xec-cros-kb-raw.yaml
+++ b/zephyr/dts/bindings/cros_kb_raw/microchip,xec-cros-kb-raw.yaml
@@ -1,4 +1,4 @@
-# Copyright 2022 The Chromium OS Authors. All rights reserved.
+# Copyright 2022 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
@@ -6,7 +6,7 @@ description: Microchip, xec-cros-kb-raw node
compatible: "microchip,xec-cros-kb-raw"
-include: [cros-kb-raw-controller.yaml, pinctrl-device.yaml]
+include: [base.yaml, pinctrl-device.yaml]
properties:
reg:
diff --git a/zephyr/dts/bindings/cros_kb_raw/nuvoton,npcx-cros-kb-raw.yaml b/zephyr/dts/bindings/cros_kb_raw/nuvoton,npcx-cros-kb-raw.yaml
index 241cd11cbf..dbecfb0502 100644
--- a/zephyr/dts/bindings/cros_kb_raw/nuvoton,npcx-cros-kb-raw.yaml
+++ b/zephyr/dts/bindings/cros_kb_raw/nuvoton,npcx-cros-kb-raw.yaml
@@ -5,7 +5,7 @@ description: Nuvoton, NPCX-cros-kb-raw node
compatible: "nuvoton,npcx-cros-kb-raw"
-include: [cros-kb-raw-controller.yaml, pinctrl-device.yaml]
+include: [base.yaml, pinctrl-device.yaml]
properties:
reg:
diff --git a/zephyr/dts/bindings/cros_mkbp_event/ec-mkbp-event.yaml b/zephyr/dts/bindings/cros_mkbp_event/ec-wake-mask-event.yaml
index d3ec3c8ff5..04e95ea829 100644
--- a/zephyr/dts/bindings/cros_mkbp_event/ec-mkbp-event.yaml
+++ b/zephyr/dts/bindings/cros_mkbp_event/ec-wake-mask-event.yaml
@@ -1,4 +1,4 @@
-# Copyright 2021 The Chromium OS Authors. All rights reserved.
+# Copyright 2021 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/zephyr/dts/bindings/cros_rtc/cros-rtc.yaml b/zephyr/dts/bindings/cros_rtc/cros-rtc.yaml
deleted file mode 100644
index f754826404..0000000000
--- a/zephyr/dts/bindings/cros_rtc/cros-rtc.yaml
+++ /dev/null
@@ -1,12 +0,0 @@
-# Copyright 2021 Google LLC
-# SPDX-License-Identifier: Apache-2.0
-
-# Common fields for Chrome OS RTC devices
-
-include: base.yaml
-
-bus: crosrtc
-
-properties:
- label:
- required: true
diff --git a/zephyr/dts/bindings/cros_rtc/microchip,xec-cros-rtc.yaml b/zephyr/dts/bindings/cros_rtc/microchip,xec-cros-rtc.yaml
index 6b22559d01..f22b26c2ec 100644
--- a/zephyr/dts/bindings/cros_rtc/microchip,xec-cros-rtc.yaml
+++ b/zephyr/dts/bindings/cros_rtc/microchip,xec-cros-rtc.yaml
@@ -1,4 +1,4 @@
-# Copyright 2022 The Chromium OS Authors. All rights reserved.
+# Copyright 2022 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/zephyr/dts/bindings/cros_rtc/nuvoton,npcx-cros-mtc.yaml b/zephyr/dts/bindings/cros_rtc/nuvoton,npcx-cros-mtc.yaml
index 547b6897e8..3db0880e75 100644
--- a/zephyr/dts/bindings/cros_rtc/nuvoton,npcx-cros-mtc.yaml
+++ b/zephyr/dts/bindings/cros_rtc/nuvoton,npcx-cros-mtc.yaml
@@ -11,9 +11,6 @@ properties:
reg:
required: true
- label:
- required: true
-
mtc-alarm:
type: phandle
required: true
diff --git a/zephyr/dts/bindings/cros_rtc/nxp,rtc-pcf85063a.yaml b/zephyr/dts/bindings/cros_rtc/nxp,rtc-pcf85063a.yaml
index 8b881d2f2c..db6f3f9685 100644
--- a/zephyr/dts/bindings/cros_rtc/nxp,rtc-pcf85063a.yaml
+++ b/zephyr/dts/bindings/cros_rtc/nxp,rtc-pcf85063a.yaml
@@ -8,9 +8,6 @@ compatible: "nxp,rtc-pcf85063a"
include: [base.yaml, i2c-device.yaml]
properties:
- label:
- required: true
-
int-pin:
type: phandle
required: true
diff --git a/zephyr/dts/bindings/cros_rtc/renesas,rtc-idt1337ag.yaml b/zephyr/dts/bindings/cros_rtc/renesas,rtc-idt1337ag.yaml
index ad4e5ce891..c2643f0e84 100644
--- a/zephyr/dts/bindings/cros_rtc/renesas,rtc-idt1337ag.yaml
+++ b/zephyr/dts/bindings/cros_rtc/renesas,rtc-idt1337ag.yaml
@@ -8,9 +8,6 @@ compatible: "renesas,rtc-idt1337ag"
include: [base.yaml, i2c-device.yaml]
properties:
- label:
- required: true
-
int-pin:
type: phandle
required: true
diff --git a/zephyr/dts/bindings/cros_shi/ite,it8xxx2-cros-shi.yaml b/zephyr/dts/bindings/cros_shi/ite,it8xxx2-cros-shi.yaml
index 0ad49f1487..2e2c6b74a5 100644
--- a/zephyr/dts/bindings/cros_shi/ite,it8xxx2-cros-shi.yaml
+++ b/zephyr/dts/bindings/cros_shi/ite,it8xxx2-cros-shi.yaml
@@ -1,4 +1,4 @@
-# Copyright 2021 The Chromium OS Authors. All rights reserved.
+# Copyright 2021 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/zephyr/dts/bindings/cros_shi/nuvoton,npcx-cros-shi.yaml b/zephyr/dts/bindings/cros_shi/nuvoton,npcx-cros-shi.yaml
index 0761ba3526..9a5596bd4c 100644
--- a/zephyr/dts/bindings/cros_shi/nuvoton,npcx-cros-shi.yaml
+++ b/zephyr/dts/bindings/cros_shi/nuvoton,npcx-cros-shi.yaml
@@ -1,4 +1,4 @@
-# Copyright (c) 2021 Google Inc.
+# Copyright 2021 Google LLC
# SPDX-License-Identifier: Apache-2.0
description: Nuvoton, NPCX Serial Host Interface (SHI) node
diff --git a/zephyr/dts/bindings/emul/cros,bb-retimer-emul.yaml b/zephyr/dts/bindings/emul/cros,bb-retimer-emul.yaml
index 007a73b17b..11dd5f5218 100644
--- a/zephyr/dts/bindings/emul/cros,bb-retimer-emul.yaml
+++ b/zephyr/dts/bindings/emul/cros,bb-retimer-emul.yaml
@@ -1,4 +1,4 @@
-# Copyright 2021 The Chromium OS Authors. All rights reserved.
+# Copyright 2021 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/zephyr/dts/bindings/emul/cros,clock-control-emul.yaml b/zephyr/dts/bindings/emul/cros,clock-control-emul.yaml
index fa632ea2d4..746c883942 100644
--- a/zephyr/dts/bindings/emul/cros,clock-control-emul.yaml
+++ b/zephyr/dts/bindings/emul/cros,clock-control-emul.yaml
@@ -1,4 +1,4 @@
-# Copyright 2021 The chromium OS Authors. All rights reserved.
+# Copyright 2021 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/zephyr/dts/bindings/emul/cros,i2c-mock.yaml b/zephyr/dts/bindings/emul/cros,i2c-mock.yaml
index 7da69028bd..11dbb62b45 100644
--- a/zephyr/dts/bindings/emul/cros,i2c-mock.yaml
+++ b/zephyr/dts/bindings/emul/cros,i2c-mock.yaml
@@ -1,4 +1,4 @@
-# Copyright 2021 The chromium OS Authors. All rights reserved.
+# Copyright 2021 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
@@ -7,6 +7,7 @@ description: A generic I2C mock
compatible: "cros,i2c-mock"
include: base.yaml
+
properties:
reg:
required: true
diff --git a/zephyr/dts/bindings/emul/cros,isl923x-emul.yaml b/zephyr/dts/bindings/emul/cros,isl923x-emul.yaml
index 81663b5509..10ad8d1ba9 100644
--- a/zephyr/dts/bindings/emul/cros,isl923x-emul.yaml
+++ b/zephyr/dts/bindings/emul/cros,isl923x-emul.yaml
@@ -1,4 +1,4 @@
-# Copyright 2021 The chromium OS Authors. All rights reserved.
+# Copyright 2021 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
@@ -7,6 +7,7 @@ description: ISL923X Charger emulator
compatible: "cros,isl923x-emul"
include: base.yaml
+
properties:
reg:
required: true
diff --git a/zephyr/dts/bindings/emul/cros,lis2dw12-emul.yaml b/zephyr/dts/bindings/emul/cros,lis2dw12-emul.yaml
index 44c29fbe56..f0a8632c18 100644
--- a/zephyr/dts/bindings/emul/cros,lis2dw12-emul.yaml
+++ b/zephyr/dts/bindings/emul/cros,lis2dw12-emul.yaml
@@ -1,4 +1,4 @@
-# Copyright 2021 The chromium OS Authors. All rights reserved.
+# Copyright 2021 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
@@ -7,6 +7,7 @@ description: CROS implementation of the LIS2DW12 emulator
compatible: "cros,lis2dw12-emul"
include: base.yaml
+
properties:
reg:
required: true
diff --git a/zephyr/dts/bindings/emul/cros,ln9310-emul.yaml b/zephyr/dts/bindings/emul/cros,ln9310-emul.yaml
index ba37836fb5..7f086cd5f2 100644
--- a/zephyr/dts/bindings/emul/cros,ln9310-emul.yaml
+++ b/zephyr/dts/bindings/emul/cros,ln9310-emul.yaml
@@ -1,4 +1,4 @@
-# Copyright 2021 The Chromium OS Authors. All rights reserved.
+# Copyright 2021 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
@@ -16,4 +16,3 @@ properties:
description:
GPIO that receives interrupt signal from this device.
required: true
-
diff --git a/zephyr/dts/bindings/emul/cros,ps8xxx-emul.yaml b/zephyr/dts/bindings/emul/cros,ps8xxx-emul.yaml
index e2d45ca52f..31e53903d2 100644
--- a/zephyr/dts/bindings/emul/cros,ps8xxx-emul.yaml
+++ b/zephyr/dts/bindings/emul/cros,ps8xxx-emul.yaml
@@ -1,4 +1,4 @@
-# Copyright 2021 The Chromium OS Authors. All rights reserved.
+# Copyright 2021 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
@@ -6,15 +6,9 @@ description: Zephyr PS8xxx emulator
compatible: "cros,ps8xxx-emul"
-include: base.yaml
+include: tcpci.yaml
properties:
- tcpci-i2c:
- type: phandle
- required: true
- description:
- Base TCPCI emulator. Has to be sibling of PS8xxx emulator.
-
p0-i2c-addr:
type: int
required: true
diff --git a/zephyr/dts/bindings/emul/cros,pwm-mock.yaml b/zephyr/dts/bindings/emul/cros,pwm-mock.yaml
new file mode 100644
index 0000000000..3b3a992cd0
--- /dev/null
+++ b/zephyr/dts/bindings/emul/cros,pwm-mock.yaml
@@ -0,0 +1,15 @@
+# Copyright 2022 The ChromiumOS Authors
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+description: A generic PWM mock
+compatible: "cros,pwm-mock"
+include: [pwm-controller.yaml, base.yaml]
+properties:
+ reg:
+ required: true
+
+pwm-cells:
+ - channel
+ - period
+ - flags
diff --git a/zephyr/dts/bindings/emul/cros,sn5s330.yaml b/zephyr/dts/bindings/emul/cros,sn5s330-emul.yaml
index 0cfe3ebe9c..cbdf320bc1 100644
--- a/zephyr/dts/bindings/emul/cros,sn5s330.yaml
+++ b/zephyr/dts/bindings/emul/cros,sn5s330-emul.yaml
@@ -1,4 +1,4 @@
-# Copyright 2021 The chromium OS Authors. All rights reserved.
+# Copyright 2021 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/zephyr/dts/bindings/emul/cros,tcpci-generic-emul.yaml b/zephyr/dts/bindings/emul/cros,tcpci-generic-emul.yaml
new file mode 100644
index 0000000000..73d115f5ed
--- /dev/null
+++ b/zephyr/dts/bindings/emul/cros,tcpci-generic-emul.yaml
@@ -0,0 +1,9 @@
+# Copyright 2022 The ChromiumOS Authors
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+description: Zephyr TCPCI Generic Emulator
+
+compatible: "cros,tcpci-generic-emul"
+
+include: tcpci.yaml
diff --git a/zephyr/dts/bindings/emul/cros-ec,flash-emul.yaml b/zephyr/dts/bindings/emul/cros-ec,flash-emul.yaml
index 490258e8a9..c6a20f9991 100644
--- a/zephyr/dts/bindings/emul/cros-ec,flash-emul.yaml
+++ b/zephyr/dts/bindings/emul/cros-ec,flash-emul.yaml
@@ -1,4 +1,4 @@
-# Copyright 2022 The Chromium OS Authors. All rights reserved.
+# Copyright 2022 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/zephyr/dts/bindings/emul/cros-ec,kb-raw-emul.yaml b/zephyr/dts/bindings/emul/cros-ec,kb-raw-emul.yaml
index 781f1498d7..f6821dbc2b 100644
--- a/zephyr/dts/bindings/emul/cros-ec,kb-raw-emul.yaml
+++ b/zephyr/dts/bindings/emul/cros-ec,kb-raw-emul.yaml
@@ -1,4 +1,4 @@
-# Copyright 2022 The Chromium OS Authors. All rights reserved.
+# Copyright 2022 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
@@ -6,7 +6,7 @@ description: Emulator for Chromiumos EC raw keyboard driver.
compatible: "cros-ec,kb-raw-emul"
-include: cros-kb-raw-controller.yaml
+include: base.yaml
properties:
rows:
diff --git a/zephyr/dts/bindings/emul/cros-ec,rtc-emul.yaml b/zephyr/dts/bindings/emul/cros-ec,rtc-emul.yaml
new file mode 100644
index 0000000000..d3efd6835f
--- /dev/null
+++ b/zephyr/dts/bindings/emul/cros-ec,rtc-emul.yaml
@@ -0,0 +1,9 @@
+# Copyright 2022 The ChromiumOS Authors
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+description: Emulator for Chromiumos EC flash driver.
+
+compatible: "cros-ec,rtc-emul"
+
+include: base.yaml
diff --git a/zephyr/dts/bindings/emul/cros,tcpci-emul.yaml b/zephyr/dts/bindings/emul/tcpci.yaml
index 3b218acd62..9f825c5dda 100644
--- a/zephyr/dts/bindings/emul/cros,tcpci-emul.yaml
+++ b/zephyr/dts/bindings/emul/tcpci.yaml
@@ -1,10 +1,8 @@
-# Copyright 2021 The Chromium OS Authors. All rights reserved.
+# Copyright 2022 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
-description: Zephyr TCPCI Emulator
-
-compatible: "cros,tcpci-emul"
+description: Common TCPCI properties
include: base.yaml
diff --git a/zephyr/dts/bindings/emul/zephyr,bma255.yaml b/zephyr/dts/bindings/emul/zephyr,bma255.yaml
index 40750196c1..3f504e05a5 100644
--- a/zephyr/dts/bindings/emul/zephyr,bma255.yaml
+++ b/zephyr/dts/bindings/emul/zephyr,bma255.yaml
@@ -1,4 +1,4 @@
-# Copyright 2021 The Chromium OS Authors. All rights reserved.
+# Copyright 2021 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/zephyr/dts/bindings/emul/zephyr,bmi.yaml b/zephyr/dts/bindings/emul/zephyr,bmi.yaml
index a754287bcc..6280d5cc39 100644
--- a/zephyr/dts/bindings/emul/zephyr,bmi.yaml
+++ b/zephyr/dts/bindings/emul/zephyr,bmi.yaml
@@ -1,4 +1,4 @@
-# Copyright 2021 The Chromium OS Authors. All rights reserved.
+# Copyright 2021 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/zephyr/dts/bindings/emul/zephyr,pi3usb9201.yaml b/zephyr/dts/bindings/emul/zephyr,pi3usb9201-emul.yaml
index 856703e9d7..1f26a62f73 100644
--- a/zephyr/dts/bindings/emul/zephyr,pi3usb9201.yaml
+++ b/zephyr/dts/bindings/emul/zephyr,pi3usb9201-emul.yaml
@@ -1,4 +1,4 @@
-# Copyright 2021 The Chromium OS Authors. All rights reserved.
+# Copyright 2021 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/zephyr/dts/bindings/emul/zephyr,smart-battery.yaml b/zephyr/dts/bindings/emul/zephyr,smart-battery.yaml
index cc1d2f368d..4c46fd4f64 100644
--- a/zephyr/dts/bindings/emul/zephyr,smart-battery.yaml
+++ b/zephyr/dts/bindings/emul/zephyr,smart-battery.yaml
@@ -1,4 +1,4 @@
-# Copyright 2021 The Chromium OS Authors. All rights reserved.
+# Copyright 2021 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
@@ -153,3 +153,9 @@ properties:
required: false
default: "LION"
description: Manufacturer data. Length has to be smaller than 32 bytes.
+
+ mf-info:
+ type: string
+ required: false
+ default: "LION"
+ description: Manufacturer info. Length has to be smaller than 32 bytes.
diff --git a/zephyr/dts/bindings/emul/zephyr,syv682x.yaml b/zephyr/dts/bindings/emul/zephyr,syv682x-emul.yaml
index 8652b42b82..2ad9241f96 100644
--- a/zephyr/dts/bindings/emul/zephyr,syv682x.yaml
+++ b/zephyr/dts/bindings/emul/zephyr,syv682x-emul.yaml
@@ -1,4 +1,4 @@
-# Copyright 2021 The Chromium OS Authors. All rights reserved.
+# Copyright 2021 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/zephyr/dts/bindings/emul/zephyr,tcs3400.yaml b/zephyr/dts/bindings/emul/zephyr,tcs3400.yaml
index a4474ec279..f214a21064 100644
--- a/zephyr/dts/bindings/emul/zephyr,tcs3400.yaml
+++ b/zephyr/dts/bindings/emul/zephyr,tcs3400.yaml
@@ -1,4 +1,4 @@
-# Copyright 2021 The Chromium OS Authors. All rights reserved.
+# Copyright 2021 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/zephyr/dts/bindings/fan/cros-ec,fans.yaml b/zephyr/dts/bindings/fan/cros-ec,fans.yaml
index ee1d8be891..9aa6317f61 100644
--- a/zephyr/dts/bindings/fan/cros-ec,fans.yaml
+++ b/zephyr/dts/bindings/fan/cros-ec,fans.yaml
@@ -1,4 +1,4 @@
-# Copyright 2021 The Chromium OS Authors. All rights reserved.
+# Copyright 2021 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
@@ -29,10 +29,6 @@ child-binding:
required: true
description:
PWM channel to control the fan
- pwm-frequency:
- type: int
- description:
- PWM frequency in Hz.
tach:
type: phandle
required: false
diff --git a/zephyr/dts/bindings/gpio/gpio-id.yaml b/zephyr/dts/bindings/gpio/cros-ec,gpio-id.yaml
index 24322b3de8..689171c1d4 100644
--- a/zephyr/dts/bindings/gpio/gpio-id.yaml
+++ b/zephyr/dts/bindings/gpio/cros-ec,gpio-id.yaml
@@ -1,6 +1,6 @@
description: Defines board version and sku id gpios
-compatible: cros-ec,gpio-id
+compatible: "cros-ec,gpio-id"
properties:
bits:
diff --git a/zephyr/dts/bindings/gpio/cros-ec,gpio-interrupts.yaml b/zephyr/dts/bindings/gpio/cros-ec,gpio-interrupts.yaml
index 56cf17a5a1..bb6b4001f4 100644
--- a/zephyr/dts/bindings/gpio/cros-ec,gpio-interrupts.yaml
+++ b/zephyr/dts/bindings/gpio/cros-ec,gpio-interrupts.yaml
@@ -1,4 +1,4 @@
-# Copyright 2022 The Chromium OS Authors. All rights reserved.
+# Copyright 2022 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
#
diff --git a/zephyr/dts/bindings/gpio/hibernate-wake-pins.yaml b/zephyr/dts/bindings/gpio/cros-ec,hibernate-wake-pins.yaml
index 0d79efa79d..a6cb488c48 100644
--- a/zephyr/dts/bindings/gpio/hibernate-wake-pins.yaml
+++ b/zephyr/dts/bindings/gpio/cros-ec,hibernate-wake-pins.yaml
@@ -1,4 +1,4 @@
-# Copyright 2021 The Chromium OS Authors. All rights reserved.
+# Copyright 2021 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/zephyr/dts/bindings/gpio/cros-ec,usba-port-enable-pins.yaml b/zephyr/dts/bindings/gpio/cros-ec,usba-port-enable-pins.yaml
index 8ee2a380f3..92532c1893 100644
--- a/zephyr/dts/bindings/gpio/cros-ec,usba-port-enable-pins.yaml
+++ b/zephyr/dts/bindings/gpio/cros-ec,usba-port-enable-pins.yaml
@@ -1,4 +1,4 @@
-# Copyright 2022 The Chromium OS Authors. All rights reserved.
+# Copyright 2022 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/zephyr/dts/bindings/gpio/gpio-enum-name.yaml b/zephyr/dts/bindings/gpio/gpio-enum-name.yaml
index bdfb1fba1c..8252ca75e1 100644
--- a/zephyr/dts/bindings/gpio/gpio-enum-name.yaml
+++ b/zephyr/dts/bindings/gpio/gpio-enum-name.yaml
@@ -4,12 +4,17 @@ properties:
type: string
description:
Enum used in code.
- These names should only be used for legacy common code.
+ These names MUST ONLY be referenced by legacy code that is
+ included with Zephyr projects.
Some development boards like trogdor, volteer etc. shim in
the older baseboard/board headers and code, so they
are also using most of these names. When these
boards get removed, these names can be removed
+
+ Do not add any more names to this list. Please remove
+ any names that are not referenced by Zephyr projects (or
+ are not in included common legacy code)
enum:
- GPIO_AC_PRESENT
- GPIO_AP_EC_SYSRST_ODL
@@ -42,8 +47,6 @@ properties:
- GPIO_EN_PP3300_A
- GPIO_EN_PP5000
- GPIO_EN_PP5000_A
- - GPIO_EN_PP5000_USB_A0_VBUS
- - GPIO_EN_PP5000_USB_A1_VBUS
- GPIO_EN_PP5000_USBA
- GPIO_EN_PP5000_USBA_R
- GPIO_EN_PPVAR_VCCIN
@@ -128,128 +131,37 @@ properties:
- GPIO_VOLUME_DOWN_L
- GPIO_VOLUME_UP_L
- GPIO_WARM_RESET_L
- - IOEX_5V_DC_DC_MODE_CTRL
- - IOEX_ATMEL_MISO
- - IOEX_ATMEL_MOSI
- - IOEX_ATMEL_RESET_L
- - IOEX_ATMEL_SCLK
- - IOEX_ATMEL_SS
- - IOEX_BAT_LED_AMBER_L
- - IOEX_BAT_LED_GREEN_FULL_L
- - IOEX_BAT_LED_RED_L
- - IOEX_BAT_LED_WHITE_L
- - IOEX_BOARD_ID_DET0
- - IOEX_BOARD_ID_DET1
- - IOEX_BOARD_ID_DET2
- - IOEX_C1_CHARGER_LED_AMBER_DB
- - IOEX_C1_CHARGER_LED_WHITE_DB
- - IOEX_DAC_BUF1_LATCH_FAULT_L
- - IOEX_DAC_BUF2_LATCH_FAULT_L
- - IOEX_DONGLE_DET
- - IOEX_DUT_CHG_EN
- - IOEX_EN_PP3300_DP
- - IOEX_EN_PP3300_ETH
- - IOEX_EN_PP5000_ALT_3P3
- - IOEX_EN_PP5000_USB_A0_VBUS
- - IOEX_EN_PP5000_USB_A1_VBUS_DB
- - IOEX_EN_PWR_HDMI
- - IOEX_EN_PWR_HDMI_DB
- - IOEX_EN_USB_A0_5V
- - IOEX_EN_USB_A1_5V_DB
- - IOEX_EN_USB_A1_5V_DB_OPT1
- - IOEX_EN_USB_A1_5V_DB_OPT2
- - IOEX_EN_VOUT_BUF_CC1
- - IOEX_EN_VOUT_BUF_CC2
- - IOEX_FAULT_CLEAR_CC
- - IOEX_HDMI_DATA_EN
- - IOEX_HDMI_DATA_EN_DB
- - IOEX_HDMI_POWER_EN_DB
- - IOEX_HOST_CHRG_DET
- - IOEX_HOST_OR_CHG_CTL
- - IOEX_ID_1_USB_C0_FRS_EN
- - IOEX_ID_1_USB_C0_OC_ODL
- - IOEX_ID_1_USB_C0_RT_RST_ODL
- - IOEX_ID_1_USB_C1_OC_ODL
- - IOEX_ID_1_USB_C2_FRS_EN
- - IOEX_ID_1_USB_C2_OC_ODL
- - IOEX_ID_1_USB_C2_RT_RST_ODL
- - IOEX_KB_BL_EN
- - IOEX_LED_BLUE
- - IOEX_LED_GREEN
- - IOEX_LED_ORANGE
- - IOEX_PP3300_DP_FAULT_L
- - IOEX_PP5000_SRC_SEL
- - IOEX_PPC_ID
- - IOEX_PWR_LED_WHITE_L
- - IOEX_SBU_FLIP_SEL
- - IOEX_SBU_UART_SEL
- - IOEX_SYS_PWR_IRQ_ODL
- - IOEX_TCA_GPIO_DBG_LED_K_ODL
- - IOEX_UART_18_SEL
- - IOEX_USB3_A0_FAULT_L
- - IOEX_USB3_A0_MUX_EN_L
- - IOEX_USB3_A0_MUX_SEL
- - IOEX_USB3_A0_PWR_EN
- - IOEX_USB3_A1_FAULT_L
- - IOEX_USB3_A1_MUX_SEL
- - IOEX_USB3_A1_PWR_EN
- - IOEX_USB_A0_CHARGE_EN_L
- - IOEX_USB_A0_LIMIT_SDP
- - IOEX_USB_A0_RETIMER_EN
- - IOEX_USB_A0_RETIMER_RST
- - IOEX_USB_A1_CHARGE_EN_DB_L
- - IOEX_USB_A1_CHARGE_EN_DB_L_OPT1
- - IOEX_USB_A1_CHARGE_EN_DB_L_OPT2
- - IOEX_USB_A1_FAULT_DB_ODL
- - IOEX_USB_A1_LIMIT_SDP_DB
- IOEX_USB_A1_RETIMER_EN
- - IOEX_USB_A1_RETIMER_EN_OPT1
- - IOEX_USB_A1_RETIMER_EN_OPT2
- - IOEX_USB_A1_RETIMER_RST
- - IOEX_USB_A1_RETIMER_RST_DB
- IOEX_USB_C0_BB_RETIMER_LS_EN
- IOEX_USB_C0_BB_RETIMER_RST
- IOEX_USB_C0_C1_OC
- - IOEX_USB_C0_DATA_EN
- - IOEX_USB_C0_FAULT_ODL
- IOEX_USB_C0_FRS_EN
- - IOEX_USB_C0_OC_ODL
- - IOEX_USB_C0_PPC_EN_L
+ - IOEX_USB_C0_HBR_LS_EN
+ - IOEX_USB_C0_HBR_RST
+ - IOEX_USB_C0_MUX_SBU_SEL_0
+ - IOEX_USB_C0_MUX_SBU_SEL_1
- IOEX_USB_C0_PPC_ILIM_3A_EN
- - IOEX_USB_C0_RT_RST_ODL
- IOEX_USB_C0_SBU_FLIP
- IOEX_USB_C0_TCPC_FASTSW_CTL_EN
- IOEX_USB_C0_USB_MUX_CNTRL_0
- IOEX_USB_C0_USB_MUX_CNTRL_1
- IOEX_USB_C1_BB_RETIMER_LS_EN
- IOEX_USB_C1_BB_RETIMER_RST
- - IOEX_USB_C1_DATA_EN
- IOEX_USB_C1_FAULT_ODL
- - IOEX_USB_C1_FRS_EN
+ - IOEX_USB_C1_HBR_LS_EN
+ - IOEX_USB_C1_HBR_RST
- IOEX_USB_C1_HPD
- IOEX_USB_C1_HPD_IN_DB
- - IOEX_USB_C1_IN_HPD
- - IOEX_USB_C1_MUX_RST_DB
- - IOEX_USB_C1_OC_ODL
- - IOEX_USB_C1_POWER_SWITCH_ID
- - IOEX_USB_C1_PPC_EN_L
- IOEX_USB_C1_PPC_ILIM_3A_EN
- - IOEX_USB_C1_RT_RST_ODL
- IOEX_USB_C1_SBU_FLIP
- IOEX_USB_C1_TCPC_FASTSW_CTL_EN
- IOEX_USB_C2_BB_RETIMER_LS_EN
- IOEX_USB_C2_BB_RETIMER_RST
+ - IOEX_USB_C2_HBR_RST
+ - IOEX_USB_C2_HBR_LS_EN
- IOEX_USB_C2_C3_OC
- IOEX_USB_C2_FRS_EN
- - IOEX_USB_C2_OC_ODL
- - IOEX_USB_C2_RT_RST_ODL
- - IOEX_USB_C2_USB_MUX_CNTRL_0
- - IOEX_USB_C2_USB_MUX_CNTRL_1
- IOEX_USB_C3_BB_RETIMER_LS_EN
- IOEX_USB_C3_BB_RETIMER_RST
- - IOEX_USB_DUTCHG_FLT_ODL
- - IOEX_USBH_PWRDN_L
- - IOEX_USERVO_FASTBOOT_MUX_SEL
- - IOEX_USERVO_FAULT_L
- - IOEX_USERVO_POWER_EN
- - IOEX_VBUS_DISCHRG_EN
+ - IOEX_USB_C3_HBR_RST
+ - IOEX_USB_C3_HBR_LS_EN
diff --git a/zephyr/dts/bindings/gpio/named-gpios.yaml b/zephyr/dts/bindings/gpio/named-gpios.yaml
index 59ed404754..bf0ba7237e 100644
--- a/zephyr/dts/bindings/gpio/named-gpios.yaml
+++ b/zephyr/dts/bindings/gpio/named-gpios.yaml
@@ -10,10 +10,11 @@ child-binding:
# Must name this property [..-]gpios which
# is treated specially (looks for #gpio-cells
# in referenced node so that cell properties can
- # be specified).
+ # be specified). If this property does not exist, treat
+ # this GPIO as unimplemented.
gpios:
type: phandle-array
- required: true
+ required: false
"#led-pin-cells":
type: int
required: false
@@ -27,5 +28,13 @@ child-binding:
according to the flags in the gpios node.
type: boolean
required: false
+ alias:
+ description:
+ When set, defines an alias for this GPIO's enum-name.
+
+ This is to allow common or generic names in legacy code to map
+ to the particular board's GPIO name.
+ type: string
+ required: false
led-pin-cells:
- value
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 bd24f32620..7d3aad07f7 100644
--- a/zephyr/dts/bindings/i2c/cros-ec-i2c-port-base.yaml
+++ b/zephyr/dts/bindings/i2c/cros-ec-i2c-port-base.yaml
@@ -1,4 +1,4 @@
-# Copyright (c) 2021 The Chromium OS Authors
+# Copyright 2021 The ChromiumOS Authors
# SPDX-License-Identifier: Apache-2.0
description: I2C port base properties
@@ -13,55 +13,11 @@ properties:
description:
A port number used by remote components like Kernel via the I2C_PASSTHRU
Host Command
- enum-name:
- type: string
+ enum-names:
+ type: string-array
required: true
description:
Enum values used in the source code to refer to the i2c port
- enum:
- - I2C_PORT_ACCEL
- - I2C_PORT_BATTERY
- - I2C_PORT_CHARGER
- - I2C_PORT_EEPROM
- - I2C_PORT_EVB_0
- - I2C_PORT_EVB_1
- - I2C_PORT_EVB_2
- - I2C_PORT_EVB_3
- - I2C_PORT_EVB_7
- - I2C_PORT_KB_DISCRETE
- - I2C_PORT_MP2964
- - I2C_PORT_OPT_4
- - I2C_PORT_PORT80
- - I2C_PORT_POWER
- - I2C_PORT_PPC0
- - I2C_PORT_PPC1
- - I2C_PORT_RTC
- - I2C_PORT_SENSOR
- - I2C_PORT_TCPC0
- - I2C_PORT_TCPC1
- - I2C_PORT_THERMAL_AP
- - I2C_PORT_TYPEC_0
- - I2C_PORT_TYPEC_1
- - I2C_PORT_TYPEC_2
- - I2C_PORT_TYPEC_3
- - I2C_PORT_TYPEC_AIC_1
- - I2C_PORT_TYPEC_AIC_2
- - I2C_PORT_USB_1_MIX
- - I2C_PORT_USB_C0
- - I2C_PORT_USB_C0_TCPC
- - I2C_PORT_USB_C0_C2_BC12
- - I2C_PORT_USB_C0_C2_MUX
- - I2C_PORT_USB_C0_C2_PPC
- - I2C_PORT_USB_C0_C2_TCPC
- - I2C_PORT_USB_C1
- - I2C_PORT_USB_C1_BC12
- - I2C_PORT_USB_C1_PPC
- - I2C_PORT_USB_C1_TCPC
- - I2C_PORT_USB_MUX
- - I2C_PORT_USB_MUX0
- - I2C_PORT_USB_MUX1
- - I2C_PORT_VIRTUAL_BATTERY
- - I2C_PORT_WLC
dynamic-speed:
type: boolean
required: false
diff --git a/zephyr/dts/bindings/i2c/named-i2c-ports.yaml b/zephyr/dts/bindings/i2c/named-i2c-ports.yaml
index 4fce9c3229..5aa95e5f65 100644
--- a/zephyr/dts/bindings/i2c/named-i2c-ports.yaml
+++ b/zephyr/dts/bindings/i2c/named-i2c-ports.yaml
@@ -1,4 +1,4 @@
-# Copyright (c) 2020 The Chromium OS Authors
+# Copyright 2020 The ChromiumOS Authors
# SPDX-License-Identifier: Apache-2.0
description: Named I2C ports parent node
diff --git a/zephyr/dts/bindings/intel/intel,rvp-board-id.yaml b/zephyr/dts/bindings/intel/intel,rvp-board-id.yaml
index 6ef25aa6bd..9b4fed524e 100644
--- a/zephyr/dts/bindings/intel/intel,rvp-board-id.yaml
+++ b/zephyr/dts/bindings/intel/intel,rvp-board-id.yaml
@@ -1,4 +1,4 @@
-# Copyright 2022 The Chromium OS Authors. All rights reserved.
+# Copyright 2022 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/zephyr/dts/bindings/kb_discrete/ite,it8801.yaml b/zephyr/dts/bindings/kb_discrete/ite,it8801.yaml
index 228b3500af..036d3d0e69 100644
--- a/zephyr/dts/bindings/kb_discrete/ite,it8801.yaml
+++ b/zephyr/dts/bindings/kb_discrete/ite,it8801.yaml
@@ -1,4 +1,4 @@
-# Copyright 2022 The Chromium OS Authors. All rights reserved.
+# Copyright 2022 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
@@ -14,6 +14,5 @@ include: i2c-device.yaml
# kb_not_raw: ite-it8801@38 {
# compatible = "ite,it8801";
# reg = <0x38>;
-# label = "KEYBOARD_DISCRETE";
# };
#
diff --git a/zephyr/dts/bindings/keyboard/cros-ec,kblight-pwm.yaml b/zephyr/dts/bindings/keyboard/cros-ec,kblight-pwm.yaml
index 33607729cd..9cf862a555 100644
--- a/zephyr/dts/bindings/keyboard/cros-ec,kblight-pwm.yaml
+++ b/zephyr/dts/bindings/keyboard/cros-ec,kblight-pwm.yaml
@@ -1,4 +1,4 @@
-# Copyright 2022 The Chromium OS Authors. All rights reserved.
+# Copyright 2022 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
@@ -14,11 +14,6 @@ properties:
required: true
description: PWM controlling the Keyboard backlight level.
- frequency:
- type: int
- required: true
- description: PWM frequency in Hz.
-
generic-pwm-channel:
type: int
required: false
diff --git a/zephyr/dts/bindings/keyboard/cros-keyscan.yaml b/zephyr/dts/bindings/keyboard/cros-keyscan.yaml
index 11caf7fd11..a2ec2afc46 100644
--- a/zephyr/dts/bindings/keyboard/cros-keyscan.yaml
+++ b/zephyr/dts/bindings/keyboard/cros-keyscan.yaml
@@ -1,4 +1,4 @@
- # Copyright 2021 The Chromium OS Authors. All rights reserved.
+ # Copyright 2021 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/zephyr/dts/bindings/led/cros-ec,pwm-leds.yaml b/zephyr/dts/bindings/led/cros-ec,pwm-leds.yaml
index f854f84d50..1d94ec1b6f 100644
--- a/zephyr/dts/bindings/led/cros-ec,pwm-leds.yaml
+++ b/zephyr/dts/bindings/led/cros-ec,pwm-leds.yaml
@@ -1,4 +1,4 @@
-# Copyright 2021 The Chromium OS Authors. All rights reserved.
+# Copyright 2021 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
@@ -41,7 +41,7 @@ properties:
pwmleds {
compatible = "pwm-leds";
pwm_sidesel: pwm_sidesel {
- pwms = <&pwm7 0 PWM_HZ(4800) PWM_POLARITY_INVERTED>;
+ pwms = <&pwm7 0 PWM_HZ(2400) PWM_POLARITY_INVERTED>;
};
};
cros-pwmleds {
@@ -49,13 +49,6 @@ properties:
sidesel = <&pwm_sidesel>;
};
- frequency:
- type: int
- required: true
- description: |
- PWM frequency in Hz for LEDs. SIDESEL, if present, uses half the
- frequency.
-
color-map-red:
type: array
required: false
diff --git a/zephyr/dts/bindings/led/maxim,seven-seg-display.yaml b/zephyr/dts/bindings/led/maxim,seven-seg-display.yaml
index 9307edad34..d66a0cdca2 100644
--- a/zephyr/dts/bindings/led/maxim,seven-seg-display.yaml
+++ b/zephyr/dts/bindings/led/maxim,seven-seg-display.yaml
@@ -1,4 +1,4 @@
-# Copyright 2022 The Chromium OS Authors. All rights reserved.
+# Copyright 2022 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/zephyr/dts/bindings/leds/cros-ec,gpio-led-pins.yaml b/zephyr/dts/bindings/leds/cros-ec,gpio-led-pins.yaml
index 53688a8172..2e5fe7cff0 100644
--- a/zephyr/dts/bindings/leds/cros-ec,gpio-led-pins.yaml
+++ b/zephyr/dts/bindings/leds/cros-ec,gpio-led-pins.yaml
@@ -1,4 +1,4 @@
-# Copyright 2022 The Chromium OS Authors. All rights reserved.
+# Copyright 2022 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
@@ -7,20 +7,24 @@ description: GPIO LED pins parent node
compatible: "cros-ec,gpio-led-pins"
child-binding:
- description: Each child node describes all the GPIO pins that need to be
- altered to set a specific color. Eg. for a board supporting
- Blue and Amber LEDs - to set LED_AMBER color, amber LED will
- need to be set to 1 and blue LED to 0. So a node looks like
- color-amber {
- led-color = "LED_AMBER";
- led-pins = <&gpio_ec_chg_led_y_c1 1>,
- <&gpio_ec_chg_led_b_c1 0>;
- };
+ description: |
+ Each child node describes all the GPIO pins that need to be altered to set
+ a specific color.
+ e.g. For a board supporting Blue and Amber LEDs - to set LED_AMBER color,
+ amber LED will need to be set to 1 and blue LED to 0. 1 always turns on
+ the LED and 0 always turns off the LED. So a node looks like
+ color-amber {
+ led-color = "LED_AMBER";
+ led-pins = <&gpio_ec_chg_led_y_c1 1>,
+ <&gpio_ec_chg_led_b_c1 0>;
+ };
properties:
led-color:
type: string
required: true
- description: Used to link the color nodes with the pin nodes
+ description: |
+ This property is used to identify pin nodes based on color enum.
+ It is required by the EC_CMD_LED_CONTROL host command.
enum:
- LED_OFF
- LED_RED
@@ -32,10 +36,9 @@ child-binding:
led-id:
type: string
required: true
- description: Used to link the color nodes with the pin nodes in
- case of multiple LEDs. Also required by ectool to
- identify led-ids supported. It needs to match the
- enum names defined in ec_commands.h
+ description: |
+ This property is required by the EC_CMD_LED_CONTROL host command.
+ It must match the enum names defined in ec_commands.h.
enum:
- EC_LED_ID_BATTERY_LED
- EC_LED_ID_POWER_LED
@@ -47,8 +50,9 @@ child-binding:
br-color:
type: string
required: false
- description: This is used in the ectool brightness range APIs.
- It needs to match the enum names defined in ec_commands.h
+ description: |
+ This is used in the ectool brightness range APIs. It must match
+ the enum names defined in ec_commands.h.
enum:
- EC_LED_COLOR_RED
- EC_LED_COLOR_GREEN
@@ -58,4 +62,9 @@ child-binding:
- EC_LED_COLOR_AMBER
led-pins:
type: phandle-array
- required: false
+ required: true
+ description: |
+ This property is used to specify an array of gpio pins and
+ corresponding values to enable a particular color.
+ e.g. Amber color - led-pins = <&gpio_ec_chg_led_y_c1 1>,
+ <&gpio_ec_chg_led_b_c1 0>;
diff --git a/zephyr/dts/bindings/leds/cros-ec,led-colors.yaml b/zephyr/dts/bindings/leds/cros-ec,led-colors.yaml
deleted file mode 100644
index cd10ca9a60..0000000000
--- a/zephyr/dts/bindings/leds/cros-ec,led-colors.yaml
+++ /dev/null
@@ -1,94 +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.
-
-description: LED colors parent node
-
-compatible: "cros-ec,led-colors"
-
-child-binding:
- description: LED Color nodes to describe the policy combination a node
- depends on, and the color to set to for that combination.
- e.g. If Blue color needs to be set for charge state discharge
- in S0, a node looks like
- power-state-discharge-s0 {
- charge-state = "PWR_STATE_DISCHARGE";
- chipset-state = "POWER_S0";
- color-0 {
- led-color = "LED_BLUE";
- };
- };
-
- properties:
- charge-state:
- description: If the LED color depends on charge state, this
- property is used to describe it.
- type: string
- required: false
- enum:
- - PWR_STATE_CHARGE
- - PWR_STATE_DISCHARGE
- - PWR_STATE_ERROR
- - PWR_STATE_IDLE
- - PWR_STATE_CHARGE_NEAR_FULL
-
- charge-port:
- description: If the LED color depends on the charging port (left or right)
- type: int
- required: false
-
- chipset-state:
- description: If the LED color depends on chipset state, this
- property is used to describe it.
- type: string
- required: false
- enum:
- - POWER_S0
- - POWER_S3
- - POWER_S5
-
- batt-lvl:
- description: If the LED color depends on current battery level, this property
- is used to describe the batt_lvl range using closed interval [x,y].
- Use the macros defined in dt-bindings/battery.h.
- e.g. <BATTERY_LEVEL_EMPTY BATTERY_LEVEL_LOW> describes battery level
- range of BATTERY_LEVEL_EMPTY to BATTERY_LEVEL_LOW inclusive.
- type: array
- required: false
-
- extra-flag:
- description: If the LED color depends on additional factors
- type: string
- required: false
- enum:
- - NONE
- - LED_CHFLAG_FORCE_IDLE
- - LED_CHFLAG_DEFAULT
-
- child-binding:
- description: Color enum
- properties:
- led-color:
- description: Handle to LED pins node that describes pins to set
- to enable a particular color
- type: phandle
- required: true
- period-ms:
- description: In case of blinking LEDs, amount of time in msecs
- the LED color is active. This value must be a
- multiple of HOOK_TICK_INTERVAL_MS
- e.g.
- power-state-error {
- charge-state = "PWR_STATE_ERROR";
- /* One sec Amber, one sec Off */
- color-0 {
- led-color = "LED_AMBER";
- period-ms = <1000>;
- };
- color-1 {
- led-color = "LED_OFF";
- period-ms = <1000>;
- };
- };
- type: int
- required: false
diff --git a/zephyr/dts/bindings/leds/cros-ec,led-policy.yaml b/zephyr/dts/bindings/leds/cros-ec,led-policy.yaml
new file mode 100644
index 0000000000..7bdcbd863e
--- /dev/null
+++ b/zephyr/dts/bindings/leds/cros-ec,led-policy.yaml
@@ -0,0 +1,102 @@
+# Copyright 2021 The ChromiumOS Authors
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+description: LED policy parent node
+
+compatible: "cros-ec,led-policy"
+
+child-binding:
+ description: |
+ LED policy nodes to describe the policy combination a node depends on, and
+ the color to set to for that combination.
+ e.g. If Blue color needs to be set for charge state discharge in S0, a
+ node looks like
+ power-state-discharge-s0 {
+ charge-state = "PWR_STATE_DISCHARGE";
+ chipset-state = "POWER_S0";
+ charge-port = <0>;
+ color-0 {
+ led-color = <&color_blue>;
+ };
+ };
+
+ properties:
+ charge-state:
+ description: |
+ If the LED color depends on charge state, this property is used
+ to describe it.
+ PWR_STATE_CHARGE - AC is connected, battery is charging.
+ PWR_STATE_DISCHARGE - AC is not connected, battery is discharging.
+ PWR_STATE_ERROR - Battery is in error state.
+ PWR_STATE_IDLE - AC is connected, battery is not charging.
+ PWR_STATE_FORCED_IDLE - AC is connected, battery is not charging.
+ Used during factory testing.
+ PWR_STATE_CHARGE_NEAR_FULL - AC is connected, battery is charging
+ and close to fully charged.
+ type: string
+ required: false
+ enum:
+ - PWR_STATE_CHARGE
+ - PWR_STATE_DISCHARGE
+ - PWR_STATE_ERROR
+ - PWR_STATE_IDLE
+ - PWR_STATE_FORCED_IDLE
+ - PWR_STATE_CHARGE_NEAR_FULL
+
+ charge-port:
+ description: |
+ If the LED color depends on the charging port (left or right).
+ type: int
+ required: false
+
+ chipset-state:
+ description: |
+ If the LED color depends on chipset state, this property is used
+ to describe it.
+ type: string
+ required: false
+ enum:
+ - POWER_S0
+ - POWER_S3
+ - POWER_S5
+
+ batt-lvl:
+ description: |
+ If the LED color depends on current battery level, this property
+ is used to describe batt_lvl range using closed interval [x,y].
+ Use the macros defined in dt-bindings/battery.h.
+ e.g. <BATTERY_LEVEL_EMPTY BATTERY_LEVEL_LOW> describes battery level
+ range of BATTERY_LEVEL_EMPTY to BATTERY_LEVEL_LOW inclusive.
+ type: array
+ required: false
+
+ child-binding:
+ description: Color enum
+ properties:
+ led-color:
+ description: |
+ Handle to LED pins node that describes pins to set to enable a
+ particular color.
+ type: phandle
+ required: true
+ period-ms:
+ description: |
+ In case of blinking LEDs, amount of time in msecs the LED
+ color is active. This value must be a multiple of
+ HOOK_TICK_INTERVAL_MS.
+ e.g.
+ power-state-error {
+ charge-state = "PWR_STATE_ERROR";
+ /* One sec Amber, one sec Off */
+ color-0 {
+ led-color = <&color_amber>;
+ period-ms = <1000>;
+ };
+ color-1 {
+ led-color = <&color_off>;
+ period-ms = <1000>;
+ };
+ };
+ type: int
+ required: false
diff --git a/zephyr/dts/bindings/leds/cros-ec,pwm-led-pins.yaml b/zephyr/dts/bindings/leds/cros-ec,pwm-led-pins.yaml
index dcd06d7b96..19fee69be4 100644
--- a/zephyr/dts/bindings/leds/cros-ec,pwm-led-pins.yaml
+++ b/zephyr/dts/bindings/leds/cros-ec,pwm-led-pins.yaml
@@ -1,4 +1,4 @@
-# Copyright 2022 The Chromium OS Authors. All rights reserved.
+# Copyright 2022 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
@@ -6,27 +6,24 @@ description: PWM LED pins parent node
compatible: "cros-ec,pwm-led-pins"
-properties:
- pwm-frequency:
- type: int
- required: true
- description: PWM frequency in Hz.
-
child-binding:
- description: Each child node describes all the PWM pins that need to be
- altered to set a specific color. Eg. For blue and amber PWM
- channels, in order to set color amber, a node looks like
- this where 100 is PWM duty cycle in percentage
- color-amber {
- led-color = "LED_AMBER";
- led-pins = <&pwm_led_y 100>,
- <&pwm_led_b 0>;
- };
+ description: |
+ Each child node describes all the PWM pins that need to be altered to set
+ a specific color.
+ e.g. For blue and amber PWM channels, in order to set color amber, a node
+ looks like this where 100 is PWM duty cycle in percentage.
+ color-amber {
+ led-color = "LED_AMBER";
+ led-pins = <&pwm_led_y 100>,
+ <&pwm_led_b 0>;
+ };
properties:
led-color:
type: string
required: true
- description: Used to link the color nodes with the pin nodes
+ description: |
+ This property is used to identify pin nodes based on color enum.
+ It is required by the EC_CMD_LED_CONTROL host command.
enum:
- LED_OFF
- LED_RED
@@ -38,10 +35,9 @@ child-binding:
led-id:
type: string
required: true
- description: Used to link the color nodes with the pin nodes in
- case of multiple LEDs. Also required by ectool to
- identify led-ids supported. It needs to match the
- enum names defined in ec_commands.h
+ description: |
+ This property is required by the EC_CMD_LED_CONTROL host command.
+ It must match the enum names defined in ec_commands.h.
enum:
- EC_LED_ID_BATTERY_LED
- EC_LED_ID_POWER_LED
@@ -53,8 +49,9 @@ child-binding:
br-color:
type: string
required: false
- description: This is used in the ectool brightness range APIs.
- It needs to match the enum names defined in ec_commands.h
+ description: |
+ This is used in the ectool brightness range APIs. It must match
+ the enum names defined in ec_commands.h.
enum:
- EC_LED_COLOR_RED
- EC_LED_COLOR_GREEN
@@ -64,4 +61,9 @@ child-binding:
- EC_LED_COLOR_AMBER
led-pins:
type: phandle-array
- required: false
+ required: true
+ description: |
+ This property is used to specify an array of PWM pins and
+ corresponding values to enable a particular color.
+ e.g. Amber color - led-pins = <&pwm_led_y 100>,
+ <&pwm_led_b 0>;
diff --git a/zephyr/dts/bindings/leds/cros-ec,pwm-led-pin-config.yaml b/zephyr/dts/bindings/leds/cros-ec,pwm-pin-config.yaml
index 0813847bba..bdef6b6144 100644
--- a/zephyr/dts/bindings/leds/cros-ec,pwm-led-pin-config.yaml
+++ b/zephyr/dts/bindings/leds/cros-ec,pwm-pin-config.yaml
@@ -1,4 +1,4 @@
-# Copyright 2022 The Chromium OS Authors. All rights reserved.
+# Copyright 2022 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/zephyr/dts/bindings/motionsense/cros-ec,motionsense-mutex.yaml b/zephyr/dts/bindings/motionsense/cros-ec,motionsense-mutex.yaml
index c988af258d..17c60744c8 100644
--- a/zephyr/dts/bindings/motionsense/cros-ec,motionsense-mutex.yaml
+++ b/zephyr/dts/bindings/motionsense/cros-ec,motionsense-mutex.yaml
@@ -1,4 +1,4 @@
-# Copyright (c) 2021 The Chromium OS Authors
+# Copyright 2021 The ChromiumOS Authors
# SPDX-License-Identifier: Apache-2.0
description: Motion sense mutex parent node
@@ -9,14 +9,6 @@ child-binding:
description: A mutex node is used to create an instance of mutex_t.
A mutex node is referenced by one or more sensor nodes in
"/motionsense-sensors" node.
- properties:
- label:
- required: true
- type: string
- description: Human readable string describing the mutex.
- This is a brief explanation about the mutex.
- The property is not actually used in code.
-
#
# examples:
@@ -24,11 +16,9 @@ child-binding:
# motionsense-mutex {
# compatible = "cros-ec,motionsense-mutex";
# mutex_bma255: bma255-mutex {
-# label = "BMA255_MUTEX";
# };
#
# mutex_bmi260: bmi260-mutex {
-# label = "BMI260_MUTEX";
# };
# };
#
diff --git a/zephyr/dts/bindings/motionsense/cros-ec,motionsense-rotation-ref.yaml b/zephyr/dts/bindings/motionsense/cros-ec,motionsense-rotation-ref.yaml
index 7de86ec8db..da2b99e928 100644
--- a/zephyr/dts/bindings/motionsense/cros-ec,motionsense-rotation-ref.yaml
+++ b/zephyr/dts/bindings/motionsense/cros-ec,motionsense-rotation-ref.yaml
@@ -1,4 +1,4 @@
-# Copyright 2021 The Chromium OS Authors. All rights reserved.
+# Copyright 2021 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/zephyr/dts/bindings/motionsense/cros-ec,motionsense-sensor-config.yaml b/zephyr/dts/bindings/motionsense/cros-ec,motionsense-sensor-config.yaml
index 68cdd15637..cb0fd96d95 100644
--- a/zephyr/dts/bindings/motionsense/cros-ec,motionsense-sensor-config.yaml
+++ b/zephyr/dts/bindings/motionsense/cros-ec,motionsense-sensor-config.yaml
@@ -1,4 +1,4 @@
-# Copyright 2021 The Chromium OS Authors. All rights reserved.
+# Copyright 2021 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
@@ -26,17 +26,10 @@ child-binding:
and it is used to indicate one of the 4 configurations.
For example, node name ec-s0 is for SENSOR_CONFIG_EC_S0.
ec-s0 {
- label = "SENSOR_CONFIG_EC_S0";
odr = <1000>;
ec_rate = <1000>;
};
properties:
- label:
- type: string
- required: false
- description: |
- Human-readable string describing the config.
- see the example the above.
odr:
type: int
required: false
@@ -55,11 +48,9 @@ child-binding:
# 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)>;
# };
# };
diff --git a/zephyr/dts/bindings/motionsense/cros-ec,motionsense-sensor-info.yaml b/zephyr/dts/bindings/motionsense/cros-ec,motionsense-sensor-info.yaml
index 2f508777e1..b0e960e559 100644
--- a/zephyr/dts/bindings/motionsense/cros-ec,motionsense-sensor-info.yaml
+++ b/zephyr/dts/bindings/motionsense/cros-ec,motionsense-sensor-info.yaml
@@ -1,4 +1,4 @@
-# Copyright 2021 The Chromium OS Authors. All rights reserved.
+# Copyright 2021 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/zephyr/dts/bindings/motionsense/driver/bmi160.yaml b/zephyr/dts/bindings/motionsense/driver/bmi160.yaml
index 6ca096d87a..e2c4bd6ac7 100644
--- a/zephyr/dts/bindings/motionsense/driver/bmi160.yaml
+++ b/zephyr/dts/bindings/motionsense/driver/bmi160.yaml
@@ -1,4 +1,4 @@
-# Copyright 2021 The Chromium OS Authors. All rights reserved.
+# Copyright 2021 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/zephyr/dts/bindings/motionsense/driver/bmi260.yaml b/zephyr/dts/bindings/motionsense/driver/bmi260.yaml
index f308472ec3..33fd4356b8 100644
--- a/zephyr/dts/bindings/motionsense/driver/bmi260.yaml
+++ b/zephyr/dts/bindings/motionsense/driver/bmi260.yaml
@@ -1,4 +1,4 @@
-# Copyright 2021 The Chromium OS Authors. All rights reserved.
+# Copyright 2021 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/zephyr/dts/bindings/motionsense/driver/bmi3xx.yaml b/zephyr/dts/bindings/motionsense/driver/bmi3xx.yaml
index bd99738afe..e9e603fc96 100644
--- a/zephyr/dts/bindings/motionsense/driver/bmi3xx.yaml
+++ b/zephyr/dts/bindings/motionsense/driver/bmi3xx.yaml
@@ -1,4 +1,4 @@
-# Copyright 2022 The Chromium OS Authors. All rights reserved.
+# Copyright 2022 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/zephyr/dts/bindings/motionsense/driver/cros-ec,bma255.yaml b/zephyr/dts/bindings/motionsense/driver/cros-ec,bma255.yaml
index cbd9e82f2d..12a5be2d44 100644
--- a/zephyr/dts/bindings/motionsense/driver/cros-ec,bma255.yaml
+++ b/zephyr/dts/bindings/motionsense/driver/cros-ec,bma255.yaml
@@ -1,4 +1,4 @@
-# Copyright 2021 The Chromium OS Authors. All rights reserved.
+# Copyright 2021 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/zephyr/dts/bindings/motionsense/driver/cros-ec,bma4xx.yaml b/zephyr/dts/bindings/motionsense/driver/cros-ec,bma4xx.yaml
index 6c912c96d4..b17b372af1 100644
--- a/zephyr/dts/bindings/motionsense/driver/cros-ec,bma4xx.yaml
+++ b/zephyr/dts/bindings/motionsense/driver/cros-ec,bma4xx.yaml
@@ -1,4 +1,4 @@
-# Copyright 2022 The Chromium OS Authors. All rights reserved.
+# Copyright 2022 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/zephyr/dts/bindings/motionsense/driver/cros-ec,bmi160-accel.yaml b/zephyr/dts/bindings/motionsense/driver/cros-ec,bmi160-accel.yaml
index 4eabf12cd5..cb574c6c0c 100644
--- a/zephyr/dts/bindings/motionsense/driver/cros-ec,bmi160-accel.yaml
+++ b/zephyr/dts/bindings/motionsense/driver/cros-ec,bmi160-accel.yaml
@@ -1,4 +1,4 @@
-# Copyright 2021 The Chromium OS Authors. All rights reserved.
+# Copyright 2021 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/zephyr/dts/bindings/motionsense/driver/cros-ec,bmi160-gyro.yaml b/zephyr/dts/bindings/motionsense/driver/cros-ec,bmi160-gyro.yaml
index b7a0b38290..8064549e4a 100644
--- a/zephyr/dts/bindings/motionsense/driver/cros-ec,bmi160-gyro.yaml
+++ b/zephyr/dts/bindings/motionsense/driver/cros-ec,bmi160-gyro.yaml
@@ -1,4 +1,4 @@
-# Copyright 2021 The Chromium OS Authors. All rights reserved.
+# Copyright 2021 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/zephyr/dts/bindings/motionsense/driver/cros-ec,bmi260-accel.yaml b/zephyr/dts/bindings/motionsense/driver/cros-ec,bmi260-accel.yaml
index 130600cca2..d18feaa813 100644
--- a/zephyr/dts/bindings/motionsense/driver/cros-ec,bmi260-accel.yaml
+++ b/zephyr/dts/bindings/motionsense/driver/cros-ec,bmi260-accel.yaml
@@ -1,4 +1,4 @@
-# Copyright 2021 The Chromium OS Authors. All rights reserved.
+# Copyright 2021 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/zephyr/dts/bindings/motionsense/driver/cros-ec,bmi260-gyro.yaml b/zephyr/dts/bindings/motionsense/driver/cros-ec,bmi260-gyro.yaml
index 00226d0304..29e87e89ee 100644
--- a/zephyr/dts/bindings/motionsense/driver/cros-ec,bmi260-gyro.yaml
+++ b/zephyr/dts/bindings/motionsense/driver/cros-ec,bmi260-gyro.yaml
@@ -1,4 +1,4 @@
-# Copyright 2021 The Chromium OS Authors. All rights reserved.
+# Copyright 2021 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/zephyr/dts/bindings/motionsense/driver/cros-ec,bmi3xx-accel.yaml b/zephyr/dts/bindings/motionsense/driver/cros-ec,bmi3xx-accel.yaml
index 24d28645ee..7d0f077226 100644
--- a/zephyr/dts/bindings/motionsense/driver/cros-ec,bmi3xx-accel.yaml
+++ b/zephyr/dts/bindings/motionsense/driver/cros-ec,bmi3xx-accel.yaml
@@ -1,4 +1,4 @@
-# Copyright 2022 The Chromium OS Authors. All rights reserved.
+# Copyright 2022 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/zephyr/dts/bindings/motionsense/driver/cros-ec,bmi3xx-gyro.yaml b/zephyr/dts/bindings/motionsense/driver/cros-ec,bmi3xx-gyro.yaml
index e8792492ef..0085dc5648 100644
--- a/zephyr/dts/bindings/motionsense/driver/cros-ec,bmi3xx-gyro.yaml
+++ b/zephyr/dts/bindings/motionsense/driver/cros-ec,bmi3xx-gyro.yaml
@@ -1,4 +1,4 @@
-# Copyright 2022 The Chromium OS Authors. All rights reserved.
+# Copyright 2022 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/zephyr/dts/bindings/motionsense/driver/cros-ec,icm42607-accel.yaml b/zephyr/dts/bindings/motionsense/driver/cros-ec,icm42607-accel.yaml
index ba7fbb3878..7812870aee 100644
--- a/zephyr/dts/bindings/motionsense/driver/cros-ec,icm42607-accel.yaml
+++ b/zephyr/dts/bindings/motionsense/driver/cros-ec,icm42607-accel.yaml
@@ -1,4 +1,4 @@
-# Copyright 2021 The Chromium OS Authors. All rights reserved.
+# Copyright 2021 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/zephyr/dts/bindings/motionsense/driver/cros-ec,icm42607-gyro.yaml b/zephyr/dts/bindings/motionsense/driver/cros-ec,icm42607-gyro.yaml
index 4707f33d6d..fb4739242f 100644
--- a/zephyr/dts/bindings/motionsense/driver/cros-ec,icm42607-gyro.yaml
+++ b/zephyr/dts/bindings/motionsense/driver/cros-ec,icm42607-gyro.yaml
@@ -1,4 +1,4 @@
-# Copyright 2021 The Chromium OS Authors. All rights reserved.
+# Copyright 2021 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/zephyr/dts/bindings/motionsense/driver/cros-ec,icm426xx-accel.yaml b/zephyr/dts/bindings/motionsense/driver/cros-ec,icm426xx-accel.yaml
index fbc9f44051..d41275cdd8 100644
--- a/zephyr/dts/bindings/motionsense/driver/cros-ec,icm426xx-accel.yaml
+++ b/zephyr/dts/bindings/motionsense/driver/cros-ec,icm426xx-accel.yaml
@@ -1,4 +1,4 @@
-# Copyright 2021 The Chromium OS Authors. All rights reserved.
+# Copyright 2021 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/zephyr/dts/bindings/motionsense/driver/cros-ec,icm426xx-gyro.yaml b/zephyr/dts/bindings/motionsense/driver/cros-ec,icm426xx-gyro.yaml
index 1f0ae26ced..bcad871fc7 100644
--- a/zephyr/dts/bindings/motionsense/driver/cros-ec,icm426xx-gyro.yaml
+++ b/zephyr/dts/bindings/motionsense/driver/cros-ec,icm426xx-gyro.yaml
@@ -1,4 +1,4 @@
-# Copyright 2021 The Chromium OS Authors. All rights reserved.
+# Copyright 2021 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/zephyr/dts/bindings/motionsense/driver/cros-ec,kx022.yaml b/zephyr/dts/bindings/motionsense/driver/cros-ec,kx022.yaml
index 8aecc32077..e66988502a 100644
--- a/zephyr/dts/bindings/motionsense/driver/cros-ec,kx022.yaml
+++ b/zephyr/dts/bindings/motionsense/driver/cros-ec,kx022.yaml
@@ -1,4 +1,4 @@
-# Copyright 2021 The Chromium OS Authors. All rights reserved.
+# Copyright 2021 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/zephyr/dts/bindings/motionsense/driver/cros-ec,lis2dw12.yaml b/zephyr/dts/bindings/motionsense/driver/cros-ec,lis2dw12.yaml
index bacf8f2c75..9dd07a7b78 100644
--- a/zephyr/dts/bindings/motionsense/driver/cros-ec,lis2dw12.yaml
+++ b/zephyr/dts/bindings/motionsense/driver/cros-ec,lis2dw12.yaml
@@ -1,4 +1,4 @@
-# Copyright 2021 The Chromium OS Authors. All rights reserved.
+# Copyright 2021 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/zephyr/dts/bindings/motionsense/driver/cros-ec,lsm6dsm-accel.yaml b/zephyr/dts/bindings/motionsense/driver/cros-ec,lsm6dsm-accel.yaml
new file mode 100644
index 0000000000..25bd059906
--- /dev/null
+++ b/zephyr/dts/bindings/motionsense/driver/cros-ec,lsm6dsm-accel.yaml
@@ -0,0 +1,13 @@
+# Copyright 2022 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 LSM6DSM Accelerometer
+
+compatible: "cros-ec,lsm6dsm-accel"
+
+include: lsm6dsm.yaml
+
+properties:
+ default-range:
+ default: 4
diff --git a/zephyr/dts/bindings/motionsense/driver/cros-ec,lsm6dsm-gyro.yaml b/zephyr/dts/bindings/motionsense/driver/cros-ec,lsm6dsm-gyro.yaml
new file mode 100644
index 0000000000..737f3a5105
--- /dev/null
+++ b/zephyr/dts/bindings/motionsense/driver/cros-ec,lsm6dsm-gyro.yaml
@@ -0,0 +1,13 @@
+# Copyright 2022 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 LSM6DSM Gyro
+
+compatible: "cros-ec,lsm6dsm-gyro"
+
+include: lsm6dsm.yaml
+
+properties:
+ default-range:
+ default: 1000
diff --git a/zephyr/dts/bindings/motionsense/driver/cros-ec,lsm6dso-accel.yaml b/zephyr/dts/bindings/motionsense/driver/cros-ec,lsm6dso-accel.yaml
index 5c3c6172f0..044c187c50 100644
--- a/zephyr/dts/bindings/motionsense/driver/cros-ec,lsm6dso-accel.yaml
+++ b/zephyr/dts/bindings/motionsense/driver/cros-ec,lsm6dso-accel.yaml
@@ -1,4 +1,4 @@
-# Copyright 2021 The Chromium OS Authors. All rights reserved.
+# Copyright 2021 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/zephyr/dts/bindings/motionsense/driver/cros-ec,lsm6dso-gyro.yaml b/zephyr/dts/bindings/motionsense/driver/cros-ec,lsm6dso-gyro.yaml
index a10a98d97f..1a946eab98 100644
--- a/zephyr/dts/bindings/motionsense/driver/cros-ec,lsm6dso-gyro.yaml
+++ b/zephyr/dts/bindings/motionsense/driver/cros-ec,lsm6dso-gyro.yaml
@@ -1,4 +1,4 @@
-# Copyright 2021 The Chromium OS Authors. All rights reserved.
+# Copyright 2021 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/zephyr/dts/bindings/motionsense/driver/cros-ec,tcs3400-clear.yaml b/zephyr/dts/bindings/motionsense/driver/cros-ec,tcs3400-clear.yaml
index 323286c462..05033de35e 100644
--- a/zephyr/dts/bindings/motionsense/driver/cros-ec,tcs3400-clear.yaml
+++ b/zephyr/dts/bindings/motionsense/driver/cros-ec,tcs3400-clear.yaml
@@ -1,4 +1,4 @@
-# Copyright 2021 The Chromium OS Authors. All rights reserved.
+# Copyright 2021 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/zephyr/dts/bindings/motionsense/driver/cros-ec,tcs3400-rgb.yaml b/zephyr/dts/bindings/motionsense/driver/cros-ec,tcs3400-rgb.yaml
index e2987cf44b..903574a7f3 100644
--- a/zephyr/dts/bindings/motionsense/driver/cros-ec,tcs3400-rgb.yaml
+++ b/zephyr/dts/bindings/motionsense/driver/cros-ec,tcs3400-rgb.yaml
@@ -1,4 +1,4 @@
-# Copyright 2021 The Chromium OS Authors. All rights reserved.
+# Copyright 2021 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/zephyr/dts/bindings/motionsense/driver/icm42607.yaml b/zephyr/dts/bindings/motionsense/driver/icm42607.yaml
index f47e7a2f97..4052f12fd9 100644
--- a/zephyr/dts/bindings/motionsense/driver/icm42607.yaml
+++ b/zephyr/dts/bindings/motionsense/driver/icm42607.yaml
@@ -1,4 +1,4 @@
-# Copyright 2021 The Chromium OS Authors. All rights reserved.
+# Copyright 2021 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/zephyr/dts/bindings/motionsense/driver/icm426xx.yaml b/zephyr/dts/bindings/motionsense/driver/icm426xx.yaml
index 5c33931706..7f5e8e164c 100644
--- a/zephyr/dts/bindings/motionsense/driver/icm426xx.yaml
+++ b/zephyr/dts/bindings/motionsense/driver/icm426xx.yaml
@@ -1,4 +1,4 @@
-# Copyright 2021 The Chromium OS Authors. All rights reserved.
+# Copyright 2021 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/zephyr/dts/bindings/motionsense/driver/lsm6dsm.yaml b/zephyr/dts/bindings/motionsense/driver/lsm6dsm.yaml
new file mode 100644
index 0000000000..efd71fe181
--- /dev/null
+++ b/zephyr/dts/bindings/motionsense/driver/lsm6dsm.yaml
@@ -0,0 +1,19 @@
+# Copyright 2022 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 LSM6DSM 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:
+ - "LSM6DSM_ADDR0_FLAGS"
+ - "LSM6DSM_ADDR1_FLAGS"
+ default: "LSM6DSM_ADDR0_FLAGS"
diff --git a/zephyr/dts/bindings/motionsense/driver/lsm6dso.yaml b/zephyr/dts/bindings/motionsense/driver/lsm6dso.yaml
index dd345854be..565c64b1c8 100644
--- a/zephyr/dts/bindings/motionsense/driver/lsm6dso.yaml
+++ b/zephyr/dts/bindings/motionsense/driver/lsm6dso.yaml
@@ -1,4 +1,4 @@
-# Copyright 2021 The Chromium OS Authors. All rights reserved.
+# Copyright 2021 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
#
diff --git a/zephyr/dts/bindings/motionsense/driver/tcs3400.yaml b/zephyr/dts/bindings/motionsense/driver/tcs3400.yaml
index ecad7ec1a7..1c2fbeccbc 100644
--- a/zephyr/dts/bindings/motionsense/driver/tcs3400.yaml
+++ b/zephyr/dts/bindings/motionsense/driver/tcs3400.yaml
@@ -1,4 +1,4 @@
-# Copyright 2021 The Chromium OS Authors. All rights reserved.
+# Copyright 2021 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/zephyr/dts/bindings/motionsense/drvdata/cros-ec,accelgyro-als-channel-scale.yaml b/zephyr/dts/bindings/motionsense/drvdata/cros-ec,accelgyro-als-channel-scale.yaml
index 753edc7ea8..39f92c7a50 100644
--- a/zephyr/dts/bindings/motionsense/drvdata/cros-ec,accelgyro-als-channel-scale.yaml
+++ b/zephyr/dts/bindings/motionsense/drvdata/cros-ec,accelgyro-als-channel-scale.yaml
@@ -1,4 +1,4 @@
-# Copyright 2021 The Chromium OS Authors. All rights reserved.
+# Copyright 2021 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
@@ -6,7 +6,7 @@ description: |
Bindings for als_channel_scale_t in accelgyro.h.
Each channel has scaling factor for normalization & cover
-compatible: cros-ec,accelgyro-als-channel-scale
+compatible: "cros-ec,accelgyro-als-channel-scale"
properties:
k-channel-scale:
diff --git a/zephyr/dts/bindings/motionsense/drvdata/cros-ec,accelgyro-als-drv-data.yaml b/zephyr/dts/bindings/motionsense/drvdata/cros-ec,accelgyro-als-drv-data.yaml
index 7d64689cf2..13a64bafb0 100644
--- a/zephyr/dts/bindings/motionsense/drvdata/cros-ec,accelgyro-als-drv-data.yaml
+++ b/zephyr/dts/bindings/motionsense/drvdata/cros-ec,accelgyro-als-drv-data.yaml
@@ -1,4 +1,4 @@
-# Copyright 2021 The Chromium OS Authors. All rights reserved.
+# Copyright 2021 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/zephyr/dts/bindings/motionsense/drvdata/cros-ec,accelgyro-rgb-calibration.yaml b/zephyr/dts/bindings/motionsense/drvdata/cros-ec,accelgyro-rgb-calibration.yaml
index 4204a63cff..e0ef479ffd 100644
--- a/zephyr/dts/bindings/motionsense/drvdata/cros-ec,accelgyro-rgb-calibration.yaml
+++ b/zephyr/dts/bindings/motionsense/drvdata/cros-ec,accelgyro-rgb-calibration.yaml
@@ -1,4 +1,4 @@
-# Copyright 2021 The Chromium OS Authors. All rights reserved.
+# Copyright 2021 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/zephyr/dts/bindings/motionsense/drvdata/cros-ec,drvdata-bma255.yaml b/zephyr/dts/bindings/motionsense/drvdata/cros-ec,drvdata-bma255.yaml
index 4cabd620da..8749d96de6 100644
--- a/zephyr/dts/bindings/motionsense/drvdata/cros-ec,drvdata-bma255.yaml
+++ b/zephyr/dts/bindings/motionsense/drvdata/cros-ec,drvdata-bma255.yaml
@@ -1,4 +1,4 @@
-# Copyright 2021 The Chromium OS Authors. All rights reserved.
+# Copyright 2021 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/zephyr/dts/bindings/motionsense/drvdata/cros-ec,drvdata-bma4xx.yaml b/zephyr/dts/bindings/motionsense/drvdata/cros-ec,drvdata-bma4xx.yaml
index 2f00d771b3..5504b3642c 100644
--- a/zephyr/dts/bindings/motionsense/drvdata/cros-ec,drvdata-bma4xx.yaml
+++ b/zephyr/dts/bindings/motionsense/drvdata/cros-ec,drvdata-bma4xx.yaml
@@ -1,4 +1,4 @@
-# Copyright 2022 The Chromium OS Authors. All rights reserved.
+# Copyright 2022 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/zephyr/dts/bindings/motionsense/drvdata/cros-ec,drvdata-bmi160.yaml b/zephyr/dts/bindings/motionsense/drvdata/cros-ec,drvdata-bmi160.yaml
index 52f5c346fc..c4aea99ea1 100644
--- a/zephyr/dts/bindings/motionsense/drvdata/cros-ec,drvdata-bmi160.yaml
+++ b/zephyr/dts/bindings/motionsense/drvdata/cros-ec,drvdata-bmi160.yaml
@@ -1,4 +1,4 @@
-# Copyright 2021 The Chromium OS Authors. All rights reserved.
+# Copyright 2021 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/zephyr/dts/bindings/motionsense/drvdata/cros-ec,drvdata-bmi260.yaml b/zephyr/dts/bindings/motionsense/drvdata/cros-ec,drvdata-bmi260.yaml
index 4d414121d1..a6247c6cd4 100644
--- a/zephyr/dts/bindings/motionsense/drvdata/cros-ec,drvdata-bmi260.yaml
+++ b/zephyr/dts/bindings/motionsense/drvdata/cros-ec,drvdata-bmi260.yaml
@@ -1,4 +1,4 @@
-# Copyright 2021 The Chromium OS Authors. All rights reserved.
+# Copyright 2021 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/zephyr/dts/bindings/motionsense/drvdata/cros-ec,drvdata-bmi3xx.yaml b/zephyr/dts/bindings/motionsense/drvdata/cros-ec,drvdata-bmi3xx.yaml
index d3fa8cc009..5ca2059b3d 100644
--- a/zephyr/dts/bindings/motionsense/drvdata/cros-ec,drvdata-bmi3xx.yaml
+++ b/zephyr/dts/bindings/motionsense/drvdata/cros-ec,drvdata-bmi3xx.yaml
@@ -1,4 +1,4 @@
-# Copyright 2022 The Chromium OS Authors. All rights reserved.
+# Copyright 2022 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/zephyr/dts/bindings/motionsense/drvdata/cros-ec,drvdata-icm426xx.yaml b/zephyr/dts/bindings/motionsense/drvdata/cros-ec,drvdata-icm426xx.yaml
index b88ad7eacd..04ba419d69 100644
--- a/zephyr/dts/bindings/motionsense/drvdata/cros-ec,drvdata-icm426xx.yaml
+++ b/zephyr/dts/bindings/motionsense/drvdata/cros-ec,drvdata-icm426xx.yaml
@@ -1,4 +1,4 @@
-# Copyright 2021 The Chromium OS Authors. All rights reserved.
+# Copyright 2021 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/zephyr/dts/bindings/motionsense/drvdata/cros-ec,drvdata-kionix.yaml b/zephyr/dts/bindings/motionsense/drvdata/cros-ec,drvdata-kionix.yaml
index 3151412b79..0f86616ae2 100644
--- a/zephyr/dts/bindings/motionsense/drvdata/cros-ec,drvdata-kionix.yaml
+++ b/zephyr/dts/bindings/motionsense/drvdata/cros-ec,drvdata-kionix.yaml
@@ -1,4 +1,4 @@
-# Copyright 2021 The Chromium OS Authors. All rights reserved.
+# Copyright 2021 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/zephyr/dts/bindings/motionsense/drvdata/cros-ec,drvdata-lis2dw12.yaml b/zephyr/dts/bindings/motionsense/drvdata/cros-ec,drvdata-lis2dw12.yaml
index ecb182a4fd..25f47c7e96 100644
--- a/zephyr/dts/bindings/motionsense/drvdata/cros-ec,drvdata-lis2dw12.yaml
+++ b/zephyr/dts/bindings/motionsense/drvdata/cros-ec,drvdata-lis2dw12.yaml
@@ -1,4 +1,4 @@
-# Copyright 2021 The Chromium OS Authors. All rights reserved.
+# Copyright 2021 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/zephyr/dts/bindings/motionsense/drvdata/cros-ec,drvdata-lsm6dsm.yaml b/zephyr/dts/bindings/motionsense/drvdata/cros-ec,drvdata-lsm6dsm.yaml
new file mode 100644
index 0000000000..66e6f32f60
--- /dev/null
+++ b/zephyr/dts/bindings/motionsense/drvdata/cros-ec,drvdata-lsm6dsm.yaml
@@ -0,0 +1,21 @@
+# Copyright 2022 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: LSM6DSM driver data node. Note this has to be
+ a separate instance for each sensor instance for this device
+ e.g if the device is used for both accel and gyro, then
+ separate instances of this driver data node must be used for each.
+
+compatible: "cros-ec,drvdata-lsm6dsm"
+
+include: drvdata-base.yaml
+
+#
+# examples:
+#
+# lsm6dsm_data: lsm6dsm-drv-data {
+# compatible = "cros-ec,drvdata-lsm6dsm";
+# status = "okay";
+# };
+#
diff --git a/zephyr/dts/bindings/motionsense/drvdata/cros-ec,drvdata-lsm6dso.yaml b/zephyr/dts/bindings/motionsense/drvdata/cros-ec,drvdata-lsm6dso.yaml
index d3a37da9a1..57f2eedf01 100644
--- a/zephyr/dts/bindings/motionsense/drvdata/cros-ec,drvdata-lsm6dso.yaml
+++ b/zephyr/dts/bindings/motionsense/drvdata/cros-ec,drvdata-lsm6dso.yaml
@@ -1,8 +1,11 @@
-# Copyright 2021 The Chromium OS Authors. All rights reserved.
+# Copyright 2021 The ChromiumOS Authors
# 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
+description: LSM6DSO driver data node. Note this has to be
+ a separate instance for each sensor instance for this device
+ e.g if the device is used for both accel and gyro, then
+ separate instances of this driver data node must be used for each.
compatible: "cros-ec,drvdata-lsm6dso"
diff --git a/zephyr/dts/bindings/motionsense/drvdata/cros-ec,drvdata-tcs3400-clear.yaml b/zephyr/dts/bindings/motionsense/drvdata/cros-ec,drvdata-tcs3400-clear.yaml
index c1059d40be..6b234d4460 100644
--- a/zephyr/dts/bindings/motionsense/drvdata/cros-ec,drvdata-tcs3400-clear.yaml
+++ b/zephyr/dts/bindings/motionsense/drvdata/cros-ec,drvdata-tcs3400-clear.yaml
@@ -1,4 +1,4 @@
-# Copyright 2021 The Chromium OS Authors. All rights reserved.
+# Copyright 2021 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/zephyr/dts/bindings/motionsense/drvdata/cros-ec,drvdata-tcs3400-rgb.yaml b/zephyr/dts/bindings/motionsense/drvdata/cros-ec,drvdata-tcs3400-rgb.yaml
index 7ae7bc5983..b81a4d6d49 100644
--- a/zephyr/dts/bindings/motionsense/drvdata/cros-ec,drvdata-tcs3400-rgb.yaml
+++ b/zephyr/dts/bindings/motionsense/drvdata/cros-ec,drvdata-tcs3400-rgb.yaml
@@ -1,4 +1,4 @@
-# Copyright 2021 The Chromium OS Authors. All rights reserved.
+# Copyright 2021 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/zephyr/dts/bindings/motionsense/drvdata/drvdata-base.yaml b/zephyr/dts/bindings/motionsense/drvdata/drvdata-base.yaml
index dc32d69d21..b278f26ba3 100644
--- a/zephyr/dts/bindings/motionsense/drvdata/drvdata-base.yaml
+++ b/zephyr/dts/bindings/motionsense/drvdata/drvdata-base.yaml
@@ -1,4 +1,4 @@
-# Copyright 2021 The Chromium OS Authors. All rights reserved.
+# Copyright 2021 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/zephyr/dts/bindings/motionsense/motionsense-sensor-base.yaml b/zephyr/dts/bindings/motionsense/motionsense-sensor-base.yaml
index 9e4aa8e3f7..c5ef4ba192 100644
--- a/zephyr/dts/bindings/motionsense/motionsense-sensor-base.yaml
+++ b/zephyr/dts/bindings/motionsense/motionsense-sensor-base.yaml
@@ -1,4 +1,4 @@
-# Copyright 2021 The Chromium OS Authors. All rights reserved.
+# Copyright 2021 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
@@ -9,13 +9,6 @@ include: base.yaml
properties:
status:
required: true
- label:
- type: string
- required: true
- description: |
- Human readable string describing the motion sensor.
- This is used as the name of the motion sensor.
- e.g) label = "Lid Accel";
active-mask:
type: string
description: indicates system power state for sensor to be active
@@ -53,7 +46,10 @@ properties:
drv-data:
type: phandle
required: false
- description: phandle to driver data to be used for the motion sensor
+ description: phandle to driver data to be used for the motion sensor.
+ Some drivers require this to be a global shared datas structure
+ used by all instances of this device, others require separate
+ data structures for each instance.
alternate-for:
type: phandle
description: phandle to another sensor that can be swapped with this one
@@ -73,7 +69,6 @@ properties:
# compatible = "cros-ec,bma255";
# status = "okay";
#
-# label = "Lid Accel";
# active-mask = "SENSOR_ACTIVE_S0_S3";
# location = "MOTIONSENSE_LOC_LID";
# mutex = <&mutex_bma255>;
diff --git a/zephyr/dts/bindings/pmic/mps,mp2964.yaml b/zephyr/dts/bindings/pmic/mps,mp2964.yaml
index db35aa07b2..57017992a7 100644
--- a/zephyr/dts/bindings/pmic/mps,mp2964.yaml
+++ b/zephyr/dts/bindings/pmic/mps,mp2964.yaml
@@ -1,4 +1,4 @@
-# Copyright 2021 The Chromium OS Authors. All rights reserved.
+# Copyright 2021 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/zephyr/dts/bindings/power/intel,ap-pwr-signal-base.yaml b/zephyr/dts/bindings/power/intel,ap-pwr-signal-base.yaml
index 256320f85b..375d51227d 100644
--- a/zephyr/dts/bindings/power/intel,ap-pwr-signal-base.yaml
+++ b/zephyr/dts/bindings/power/intel,ap-pwr-signal-base.yaml
@@ -1,4 +1,4 @@
-# Copyright 2022 The Chromium OS Authors. All rights reserved.
+# Copyright 2022 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/zephyr/dts/bindings/power/intel,ap-pwrseq-adc.yaml b/zephyr/dts/bindings/power/intel,ap-pwrseq-adc.yaml
index c3a267a19a..3dd6fabf1c 100644
--- a/zephyr/dts/bindings/power/intel,ap-pwrseq-adc.yaml
+++ b/zephyr/dts/bindings/power/intel,ap-pwrseq-adc.yaml
@@ -1,4 +1,4 @@
-# Copyright 2022 The Chromium OS Authors. All rights reserved.
+# Copyright 2022 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/zephyr/dts/bindings/power/intel,ap-pwrseq-external.yaml b/zephyr/dts/bindings/power/intel,ap-pwrseq-external.yaml
index 2aaf05bf23..e0258b0f7c 100644
--- a/zephyr/dts/bindings/power/intel,ap-pwrseq-external.yaml
+++ b/zephyr/dts/bindings/power/intel,ap-pwrseq-external.yaml
@@ -1,4 +1,4 @@
-# Copyright 2022 The Chromium OS Authors. All rights reserved.
+# Copyright 2022 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/zephyr/dts/bindings/power/intel,ap-pwrseq-gpio.yaml b/zephyr/dts/bindings/power/intel,ap-pwrseq-gpio.yaml
index bd550eff5e..c72b36f5d2 100644
--- a/zephyr/dts/bindings/power/intel,ap-pwrseq-gpio.yaml
+++ b/zephyr/dts/bindings/power/intel,ap-pwrseq-gpio.yaml
@@ -1,4 +1,4 @@
-# Copyright 2022 The Chromium OS Authors. All rights reserved.
+# Copyright 2022 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/zephyr/dts/bindings/power/intel,ap-pwrseq-vw.yaml b/zephyr/dts/bindings/power/intel,ap-pwrseq-vw.yaml
index 12b310e383..606dd6c2b4 100644
--- a/zephyr/dts/bindings/power/intel,ap-pwrseq-vw.yaml
+++ b/zephyr/dts/bindings/power/intel,ap-pwrseq-vw.yaml
@@ -1,4 +1,4 @@
-# Copyright 2022 The Chromium OS Authors. All rights reserved.
+# Copyright 2022 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/zephyr/dts/bindings/power/intel,ap-pwrseq.yaml b/zephyr/dts/bindings/power/intel,ap-pwrseq.yaml
index 64c1fc7d30..b0a0426435 100644
--- a/zephyr/dts/bindings/power/intel,ap-pwrseq.yaml
+++ b/zephyr/dts/bindings/power/intel,ap-pwrseq.yaml
@@ -1,4 +1,4 @@
- # Copyright 2022 The Chromium OS Authors. All rights reserved.
+ # Copyright 2022 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/zephyr/dts/bindings/switchcap/switchcap-gpio.yaml b/zephyr/dts/bindings/switchcap/switchcap-gpio.yaml
index 5d1a25bf94..0016401835 100644
--- a/zephyr/dts/bindings/switchcap/switchcap-gpio.yaml
+++ b/zephyr/dts/bindings/switchcap/switchcap-gpio.yaml
@@ -14,3 +14,9 @@ properties:
required: false
description: |
GPIO used to read if power is good
+
+ poff-delay-ms:
+ type: int
+ required: false
+ description: |
+ Additional power off delay required for some systems
diff --git a/zephyr/dts/bindings/temp/amd,sb-tsi.yaml b/zephyr/dts/bindings/temp/amd,sb-tsi.yaml
new file mode 100644
index 0000000000..f99c01081a
--- /dev/null
+++ b/zephyr/dts/bindings/temp/amd,sb-tsi.yaml
@@ -0,0 +1,10 @@
+# Copyright 2021 The ChromiumOS Authors
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+description: >
+ Properties for an Side Band Temperature Sensor Interface sensor
+
+compatible: "amd,sb-tsi"
+
+include: i2c-device.yaml
diff --git a/zephyr/dts/bindings/temp/cros_ec_temp_sensor_thermistor.yaml b/zephyr/dts/bindings/temp/cros-ec,temp-sensor-thermistor.yaml
index 34acbebcae..958dbd79e9 100644
--- a/zephyr/dts/bindings/temp/cros_ec_temp_sensor_thermistor.yaml
+++ b/zephyr/dts/bindings/temp/cros-ec,temp-sensor-thermistor.yaml
@@ -1,13 +1,11 @@
-# Copyright 2021 The Chromium OS Authors. All rights reserved.
+# Copyright 2021 The ChromiumOS Authors
# 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
+compatible: "cros-ec,temp-sensor-thermistor"
properties:
adc:
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..43ab9386c9
--- /dev/null
+++ b/zephyr/dts/bindings/temp/cros-ec,temp-sensor-tmp112.yaml
@@ -0,0 +1,10 @@
+# Copyright 2021 The ChromiumOS Authors
+# 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
+
+compatible: "cros-ec,temp-sensor-tmp112"
+
+include: i2c-device.yaml
diff --git a/zephyr/dts/bindings/temp/cros_ec_temp_sensor.yaml b/zephyr/dts/bindings/temp/cros-ec,temp-sensors.yaml
index 393cb1be78..66c5bc955a 100644
--- a/zephyr/dts/bindings/temp/cros_ec_temp_sensor.yaml
+++ b/zephyr/dts/bindings/temp/cros-ec,temp-sensors.yaml
@@ -1,44 +1,22 @@
-# Copyright 2021 The Chromium OS Authors. All rights reserved.
+# Copyright 2021 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
description: >
- Common properties for temperature sensors
+ Common properties for temperature sensors that are not handled by drivers.
Zero values in degrees K(-273 in degrees C)in thermal thresholds will
be ignored
-compatible: cros-ec,temp-sensor
+compatible: "cros-ec,temp-sensors"
-properties:
- label:
- required: true
- type: string
- description:
- Human-readable string describing the device (used as
- device_get_binding() argument)
-
- enum-name:
- type: string
+child-binding:
+ description: Named temperature sensor node
+ properties:
+ sensor:
+ type: phandle
required: true
description:
- Enum values used in the source code to refer to the temperature sensors
- enum:
- - TEMP_SENSOR_1
- - TEMP_SENSOR_2
- - TEMP_SENSOR_3
- - TEMP_SENSOR_4
- - 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
- - TEMP_SENSOR_4_WWAN
+ A pointer to a coresponding temperature sensor node.
power-good-pin:
type: phandle
diff --git a/zephyr/dts/bindings/temp/cros_ec_thermistor.yaml b/zephyr/dts/bindings/temp/cros-ec,thermistor.yaml
index d4bc32ed3c..3121f8a95f 100644
--- a/zephyr/dts/bindings/temp/cros_ec_thermistor.yaml
+++ b/zephyr/dts/bindings/temp/cros-ec,thermistor.yaml
@@ -1,4 +1,4 @@
-# Copyright 2021 The Chromium OS Authors. All rights reserved.
+# Copyright 2021 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
@@ -7,7 +7,7 @@
description: Common properties for thermistors
-compatible: cros-ec,thermistor
+compatible: "cros-ec,thermistor"
properties:
scaling-factor:
diff --git a/zephyr/dts/bindings/temp/cros_ec_temp_sensor_pct2075.yaml b/zephyr/dts/bindings/temp/cros_ec_temp_sensor_pct2075.yaml
deleted file mode 100644
index a85dc1759e..0000000000
--- a/zephyr/dts/bindings/temp/cros_ec_temp_sensor_pct2075.yaml
+++ /dev/null
@@ -1,39 +0,0 @@
-# Copyright 2022 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 PCT2075 I2C temperature sensor
-
-include: cros_ec_temp_sensor.yaml
-
-compatible: cros-ec,temp-sensor-pct2075
-
-properties:
- pct2075-name:
- type: string
- required: true
- description:
- Enum value to index into the PCT2075 specific sensors
- enum:
- - PCT2075_SOC
- - PCT2075_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:
- - PCT2075_I2C_ADDR_FLAGS0
- - PCT2075_I2C_ADDR_FLAGS1
- - PCT2075_I2C_ADDR_FLAGS2
- - PCT2075_I2C_ADDR_FLAGS3
- - PCT2075_I2C_ADDR_FLAGS4
- - PCT2075_I2C_ADDR_FLAGS5
- - PCT2075_I2C_ADDR_FLAGS6
- - PCT2075_I2C_ADDR_FLAGS7
diff --git a/zephyr/dts/bindings/temp/cros_ec_temp_sensor_sb_tsi.yaml b/zephyr/dts/bindings/temp/cros_ec_temp_sensor_sb_tsi.yaml
deleted file mode 100644
index a0772281cb..0000000000
--- a/zephyr/dts/bindings/temp/cros_ec_temp_sensor_sb_tsi.yaml
+++ /dev/null
@@ -1,16 +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.
-
-description: >
- Properties for an Side Band Temperature Sensor Interface sensor
-
-include: cros_ec_temp_sensor.yaml
-
-compatible: cros-ec,temp-sensor-sb-tsi
-
-properties:
- port:
- required: true
- type: phandle
- description: phandle to the sensor's i2c port
diff --git a/zephyr/dts/bindings/temp/cros_ec_temp_sensor_tmp112.yaml b/zephyr/dts/bindings/temp/cros_ec_temp_sensor_tmp112.yaml
deleted file mode 100644
index 0cf05f48a0..0000000000
--- a/zephyr/dts/bindings/temp/cros_ec_temp_sensor_tmp112.yaml
+++ /dev/null
@@ -1,35 +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.
-
-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/temp/nxp,pct2075.yaml b/zephyr/dts/bindings/temp/nxp,pct2075.yaml
new file mode 100644
index 0000000000..bca7f7125b
--- /dev/null
+++ b/zephyr/dts/bindings/temp/nxp,pct2075.yaml
@@ -0,0 +1,10 @@
+# Copyright 2021 The ChromiumOS Authors
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+description: >
+ Properties for a PCT2075 I2C temperature sensor
+
+compatible: "nxp,pct2075"
+
+include: i2c-device.yaml
diff --git a/zephyr/dts/bindings/usbc/bc12/pericom,pi3usb9201.yaml b/zephyr/dts/bindings/usbc/bc12/pericom,pi3usb9201.yaml
new file mode 100644
index 0000000000..841c443877
--- /dev/null
+++ b/zephyr/dts/bindings/usbc/bc12/pericom,pi3usb9201.yaml
@@ -0,0 +1,11 @@
+description: USBC BC1.2
+
+compatible: "pericom,pi3usb9201"
+
+include: base.yaml
+
+properties:
+ irq:
+ type: phandles
+ description: |
+ GPIO interrupt from BC1.2
diff --git a/zephyr/dts/bindings/usbc/bc12/richtek,rt1718s-bc12.yaml b/zephyr/dts/bindings/usbc/bc12/richtek,rt1718s-bc12.yaml
new file mode 100644
index 0000000000..6a93e78496
--- /dev/null
+++ b/zephyr/dts/bindings/usbc/bc12/richtek,rt1718s-bc12.yaml
@@ -0,0 +1,9 @@
+# Copyright 2022 The ChromiumOS Authors
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+description: USBC RT1718S BC1.2
+
+compatible: "richtek,rt1718s-bc12"
+
+include: base.yaml
diff --git a/zephyr/dts/bindings/usbc/richtek,rt1739-bc12.yaml b/zephyr/dts/bindings/usbc/bc12/richtek,rt1739-bc12.yaml
index b6f44f72db..aef959bea8 100644
--- a/zephyr/dts/bindings/usbc/richtek,rt1739-bc12.yaml
+++ b/zephyr/dts/bindings/usbc/bc12/richtek,rt1739-bc12.yaml
@@ -1,7 +1,9 @@
-# Copyright 2022 The Chromium OS Authors. All rights reserved.
+# Copyright 2022 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
description: USBC BC1.2
compatible: "richtek,rt1739-bc12"
+
+include: base.yaml
diff --git a/zephyr/dts/bindings/usbc/richtek,rt9490-bc12.yaml b/zephyr/dts/bindings/usbc/bc12/richtek,rt9490-bc12.yaml
index 94496455a3..38791d65bf 100644
--- a/zephyr/dts/bindings/usbc/richtek,rt9490-bc12.yaml
+++ b/zephyr/dts/bindings/usbc/bc12/richtek,rt9490-bc12.yaml
@@ -1,4 +1,4 @@
-# Copyright 2022 The Chromium OS Authors. All rights reserved.
+# Copyright 2022 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
@@ -6,6 +6,8 @@ description: USBC BC1.2
compatible: "richtek,rt9490-bc12"
+include: base.yaml
+
properties:
irq:
type: phandles
diff --git a/zephyr/dts/bindings/usbc/cros-ec,tcpci.yaml b/zephyr/dts/bindings/usbc/cros-ec,tcpci.yaml
deleted file mode 100644
index a3c36d9ded..0000000000
--- a/zephyr/dts/bindings/usbc/cros-ec,tcpci.yaml
+++ /dev/null
@@ -1,16 +0,0 @@
-description: USBC TCPC
-
-compatible: "cros-ec,tcpci"
-
-properties:
- port:
- type: phandle
- required: true
- description: |
- I2C port used to communicate with controller
-
- i2c-addr-flags:
- type: int
- required: true
- description: |
- I2C address of controller
diff --git a/zephyr/dts/bindings/usbc/cros-ec,usb-mux-chain.yaml b/zephyr/dts/bindings/usbc/cros-ec,usb-mux-chain.yaml
new file mode 100644
index 0000000000..398d7255ac
--- /dev/null
+++ b/zephyr/dts/bindings/usbc/cros-ec,usb-mux-chain.yaml
@@ -0,0 +1,47 @@
+# Copyright 2022 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: USB-C muxes chain
+
+compatible: "cros-ec,usb-mux-chain"
+
+properties:
+ usb-muxes:
+ type: phandles
+ required: true
+ description: |
+ List of USB-C muxes and retimers for the USB-C port. The USB-C subsystem
+ traverses this list in the order specified. The phandles are references to
+ cros-ec,usbc-mux nodes. Link this mux chain with a specific USB-C port by
+ adding the "cros-ec,usb-mux-chain" as a child of the "named-usbc-port"
+ node.
+
+ alternative-chain:
+ type: boolean
+ description: |
+ Set if this is alternative USB-C muxes chain. It can be selected in
+ runtime using USB_MUX_ENABLE_ALTERNATIVE macro.
+
+# Example DTS defining USB-C port 0 with main and alternative usb mux chains.
+# The main chain has two muxes: BB retimer and virtual mux.
+# The alternative chain has three muxes: BB retimer, SOC side BB retimer and
+# virtual mux.
+#
+# usbc_port0: port0@0 {
+# compatible = "named-usbc-port";
+# reg = <0>;
+# ...
+# usb-mux-chain-0 {
+# compatible = "cros-ec,usb-mux-chain";
+# usb-muxes = <&usb_c0_bb_retimer
+# &virtual_mux_c0>;
+# };
+# usb-mux-chain-0 {
+# compatible = "cros-ec,usb-mux-chain";
+# alternative-chain;
+# usb-muxes = <&usb_c0_bb_retimer
+# &usb_c0_soc_side_bb_retimer
+# &virtual_mux_c0>;
+# };
+# };
diff --git a/zephyr/dts/bindings/usbc/cypress,ccgxxf.yaml b/zephyr/dts/bindings/usbc/cypress,ccgxxf.yaml
deleted file mode 100644
index 61f05495ea..0000000000
--- a/zephyr/dts/bindings/usbc/cypress,ccgxxf.yaml
+++ /dev/null
@@ -1,23 +0,0 @@
-# Copyright 2022 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: USBC TCPC
-
-compatible: "cypress,ccgxxf"
-
-properties:
- port:
- type: phandle
- required: true
- description: |
- I2C port used to communicate with controller
-
- i2c-addr-flags:
- type: string
- default: "CCGXXF_I2C_ADDR1_FLAGS"
- enum:
- - "CCGXXF_I2C_ADDR1_FLAGS"
- - "CCGXXF_I2C_ADDR2_FLAGS"
- description: |
- I2C address of controller
diff --git a/zephyr/dts/bindings/usbc/fairchild,fusb302.yaml b/zephyr/dts/bindings/usbc/fairchild,fusb302.yaml
deleted file mode 100644
index 1eba4dedaf..0000000000
--- a/zephyr/dts/bindings/usbc/fairchild,fusb302.yaml
+++ /dev/null
@@ -1,21 +0,0 @@
-description: USBC TCPC
-
-compatible: "fairchild,fusb302"
-
-properties:
- port:
- type: phandle
- required: true
- description: |
- I2C port used to communicate with controller
-
- i2c-addr-flags:
- type: string
- default: "FUSB302_I2C_ADDR_FLAGS"
- enum:
- - "FUSB302_I2C_ADDR_FLAGS"
- - "FUSB302_I2C_ADDR_B01_FLAGS"
- - "FUSB302_I2C_ADDR_B10_FLAGS"
- - "FUSB302_I2C_ADDR_B11_FLAGS"
- description: |
- I2C address of controller
diff --git a/zephyr/dts/bindings/usbc/ite,it8xxx2-tcpc.yaml b/zephyr/dts/bindings/usbc/ite,it8xxx2-tcpc.yaml
deleted file mode 100644
index 846ac5ead7..0000000000
--- a/zephyr/dts/bindings/usbc/ite,it8xxx2-tcpc.yaml
+++ /dev/null
@@ -1,3 +0,0 @@
-description: USBC TCPC
-
-compatible: "ite,it8xxx2-tcpc"
diff --git a/zephyr/dts/bindings/usbc/mux/amd,usbc-mux-amd-fp6.yaml b/zephyr/dts/bindings/usbc/mux/amd,usbc-mux-amd-fp6.yaml
new file mode 100644
index 0000000000..1ce1db82c7
--- /dev/null
+++ b/zephyr/dts/bindings/usbc/mux/amd,usbc-mux-amd-fp6.yaml
@@ -0,0 +1,9 @@
+# Copyright 2022 The ChromiumOS Authors
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+description: USB-C AMD-FP6 mux
+
+include: ["i2c-device.yaml", "cros-ec,usbc-mux.yaml"]
+
+compatible: "amd,usbc-mux-amd-fp6"
diff --git a/zephyr/dts/bindings/usbc/mux/analogix,anx7483.yaml b/zephyr/dts/bindings/usbc/mux/analogix,anx7483.yaml
index 9e4716d5d1..c4ac7782f0 100644
--- a/zephyr/dts/bindings/usbc/mux/analogix,anx7483.yaml
+++ b/zephyr/dts/bindings/usbc/mux/analogix,anx7483.yaml
@@ -1,26 +1,10 @@
-# Copyright 2022 The Chromium OS Authors. All rights reserved.
+# Copyright 2022 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
description: |
Analogix re-timing MUX
-include: cros-ec,usbc-mux.yaml
+include: ["i2c-device.yaml", "cros-ec,usbc-mux.yaml"]
compatible: "analogix,anx7483"
-
-properties:
- port:
- type: phandle
- required: true
- description: phandle to the named i2c port
-
- i2c-addr-flags:
- type: string
- required: true
- description: I2C address of chip
- enum:
- - ANX7483_I2C_ADDR0_FLAGS
- - ANX7483_I2C_ADDR1_FLAGS
- - ANX7483_I2C_ADDR2_FLAGS
- - ANX7483_I2C_ADDR3_FLAGS
diff --git a/zephyr/dts/bindings/usbc/mux/analogix,usbc-mux-anx7447.yaml b/zephyr/dts/bindings/usbc/mux/analogix,usbc-mux-anx7447.yaml
new file mode 100644
index 0000000000..25b042e28c
--- /dev/null
+++ b/zephyr/dts/bindings/usbc/mux/analogix,usbc-mux-anx7447.yaml
@@ -0,0 +1,15 @@
+# Copyright 2022 The ChromiumOS Authors
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+description: USBC ANX7447 USB MUX
+
+include: cros-ec,usbc-mux.yaml
+
+compatible: "analogix,usbc-mux-anx7447"
+
+properties:
+ hpd-update-enable:
+ type: boolean
+ description: |
+ Enable anx7447 hpd update callback
diff --git a/zephyr/dts/bindings/usbc/mux/cros-ec,usbc-mux-tcpci.yaml b/zephyr/dts/bindings/usbc/mux/cros-ec,usbc-mux-tcpci.yaml
index 9b986a5942..548d510630 100644
--- a/zephyr/dts/bindings/usbc/mux/cros-ec,usbc-mux-tcpci.yaml
+++ b/zephyr/dts/bindings/usbc/mux/cros-ec,usbc-mux-tcpci.yaml
@@ -1,10 +1,12 @@
-# Copyright 2022 The Chromium OS Authors. All rights reserved.
+# Copyright 2022 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
description: USBC TCPC USB MUX
-include: cros-ec,usbc-mux.yaml
+# Include base.yaml instead of i2c-device.yaml because the reg property is not
+# required for this node.
+include: ["base.yaml", "cros-ec,usbc-mux.yaml"]
compatible: "cros-ec,usbc-mux-tcpci"
@@ -14,56 +16,3 @@ properties:
required: false
description: |
Name of function used as hpd_update callback
- enum:
- - ps8xxx_tcpc_update_hpd_status
-
- port:
- type: phandle
- required: false
- description: |
- If the TCPC in your design is used to manage both the power-delivery
- interface and configure the mux for the USB superspeed signals, this
- property, and the i2c-addr-flags should be omitted. The driver uses
- the I2C configuration specified in the corresponding TCPC node.
-
- Example below
-
- port0@0 {
- compatible = "named-usbc-port";
- reg = <0>;
- tcpc {
- compatible = "parade,ps8xxx";
- status = "okay";
- port = <&i2c_tcpc0>;
- i2c-addr-flags = "PS8XXX_I2C_ADDR1_FLAGS";
- };
- usb-muxes = <&usb_mux_0>;
- };
- usb_mux_0 usb-mux-0 {
- compatible = "parade,usbc-mux-ps8xxx";
- /* I2C configuration provide by TCPC node */
- };
-
- If the TCPC in your design only configures the USB superspeed signals,
- for instance when the EC chip contains an embedded TCPC controller,
- then port and i2c-addr-flags are required.
-
- port0@0 {
- compatible = "named-usbc-port";
- reg = <0>;
- tcpc {
- compatible = "ite,it8xxx2-tcpc";
- };
- };
- usb_mux_0 usb-mux-0 {
- compatible = "parade,usbc-mux-ps8xxx";
- port = <i2c_usbc0>;
- i2c-addr-flags = "PS8XXX_I2C_ADDR1_FLAGS";
- };
-
- i2c-addr-flags:
- type: int
- required: false
- description: |
- I2C address of chip. If provided, port property has to be present too.
- Please check description of port property for more information.
diff --git a/zephyr/dts/bindings/usbc/mux/cros-ec,usbc-mux-virtual.yaml b/zephyr/dts/bindings/usbc/mux/cros-ec,usbc-mux-virtual.yaml
index cadeb6d35b..7231bc9e2c 100644
--- a/zephyr/dts/bindings/usbc/mux/cros-ec,usbc-mux-virtual.yaml
+++ b/zephyr/dts/bindings/usbc/mux/cros-ec,usbc-mux-virtual.yaml
@@ -1,4 +1,4 @@
-# Copyright 2022 The Chromium OS Authors. All rights reserved.
+# Copyright 2022 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/zephyr/dts/bindings/usbc/mux/cros-ec,usbc-mux.yaml b/zephyr/dts/bindings/usbc/mux/cros-ec,usbc-mux.yaml
index 21cb8e0a3f..0e76f548a9 100644
--- a/zephyr/dts/bindings/usbc/mux/cros-ec,usbc-mux.yaml
+++ b/zephyr/dts/bindings/usbc/mux/cros-ec,usbc-mux.yaml
@@ -1,4 +1,4 @@
-# Copyright 2022 The Chromium OS Authors. All rights reserved.
+# Copyright 2022 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
diff --git a/zephyr/dts/bindings/usbc/mux/intel,jhl804r.yaml b/zephyr/dts/bindings/usbc/mux/intel,jhl8040r.yaml
index 5098080c25..6289d440f1 100644
--- a/zephyr/dts/bindings/usbc/mux/intel,jhl804r.yaml
+++ b/zephyr/dts/bindings/usbc/mux/intel,jhl8040r.yaml
@@ -1,4 +1,4 @@
-# Copyright 2021 The Chromium OS Authors. All rights reserved.
+# Copyright 2021 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
@@ -6,7 +6,7 @@ description: Intel JHL8040R Thunderbolt 4 Retimer
compatible: "intel,jhl8040r"
-include: cros-ec,usbc-mux.yaml
+include: ["i2c-device.yaml", "cros-ec,usbc-mux.yaml"]
properties:
reset-pin:
@@ -20,13 +20,3 @@ properties:
ls-en-pin:
type: phandle
required: false
-
- port:
- type: phandle
- required: true
- description: phandle to the named i2c port
-
- i2c-addr-flags:
- type: int
- required: true
- description: I2C address of chip
diff --git a/zephyr/dts/bindings/usbc/mux/ite,it5205.yaml b/zephyr/dts/bindings/usbc/mux/ite,it5205.yaml
index 4d4c360d47..3c9381aee1 100644
--- a/zephyr/dts/bindings/usbc/mux/ite,it5205.yaml
+++ b/zephyr/dts/bindings/usbc/mux/ite,it5205.yaml
@@ -1,23 +1,9 @@
-# Copyright 2022 The Chromium OS Authors. All rights reserved.
+# Copyright 2022 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
description: ITE IT5205 USB Type-C 3:2 alternate mode MUX
-include: cros-ec,usbc-mux.yaml
+include: ["i2c-device.yaml", "cros-ec,usbc-mux.yaml"]
compatible: "ite,it5205"
-
-properties:
- port:
- type: phandle
- required: true
- description: phandle to the named i2c port
-
- i2c-addr-flags:
- type: string
- required: true
- description: I2C address of chip
- enum:
- - IT5205_I2C_ADDR1_FLAGS
- - IT5205_I2C_ADDR2_FLAGS
diff --git a/zephyr/dts/bindings/usbc/mux/parade,ps8743.yaml b/zephyr/dts/bindings/usbc/mux/parade,ps8743.yaml
new file mode 100644
index 0000000000..1ee0bbaf74
--- /dev/null
+++ b/zephyr/dts/bindings/usbc/mux/parade,ps8743.yaml
@@ -0,0 +1,9 @@
+# Copyright 2022 The ChromiumOS Authors
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+description: Parade PS8743 USB Type-C alternate mode MUX
+
+include: ["i2c-device.yaml", "cros-ec,usbc-mux.yaml"]
+
+compatible: "parade,ps8743"
diff --git a/zephyr/dts/bindings/usbc/mux/parade,ps8818.yaml b/zephyr/dts/bindings/usbc/mux/parade,ps8818.yaml
new file mode 100644
index 0000000000..aafdf29341
--- /dev/null
+++ b/zephyr/dts/bindings/usbc/mux/parade,ps8818.yaml
@@ -0,0 +1,9 @@
+# Copyright 2022 The ChromiumOS Authors
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+description: USBC PS8818 Retimer
+
+include: ["i2c-device.yaml", "cros-ec,usbc-mux.yaml"]
+
+compatible: "parade,ps8818"
diff --git a/zephyr/dts/bindings/usbc/mux/parade,usbc-mux-ps8xxx.yaml b/zephyr/dts/bindings/usbc/mux/parade,usbc-mux-ps8xxx.yaml
index 685544cbf4..4df0b35d76 100644
--- a/zephyr/dts/bindings/usbc/mux/parade,usbc-mux-ps8xxx.yaml
+++ b/zephyr/dts/bindings/usbc/mux/parade,usbc-mux-ps8xxx.yaml
@@ -1,4 +1,4 @@
-# Copyright 2022 The Chromium OS Authors. All rights reserved.
+# Copyright 2022 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
@@ -13,3 +13,5 @@ properties:
description: |
PS8xxx USB MUX almost always use this hdp_update callback
default: "ps8xxx_tcpc_update_hpd_status"
+ enum:
+ - ps8xxx_tcpc_update_hpd_status
diff --git a/zephyr/dts/bindings/usbc/mux/ti,tusb1064.yaml b/zephyr/dts/bindings/usbc/mux/ti,tusb1064.yaml
index 6c625459c1..d5a0b34e6c 100644
--- a/zephyr/dts/bindings/usbc/mux/ti,tusb1064.yaml
+++ b/zephyr/dts/bindings/usbc/mux/ti,tusb1064.yaml
@@ -1,4 +1,4 @@
-# Copyright 2022 The Chromium OS Authors. All rights reserved.
+# Copyright 2022 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
@@ -6,34 +6,6 @@ description: |
TI TUSB546, TUSB1044, or TUSB1064 USB-C MUX, device variant depends on
CONFIG_PLATFORM_EC_USB_MUX_TUSB_TYPE Kconfig choice
-include: cros-ec,usbc-mux.yaml
+include: ["i2c-device.yaml", "cros-ec,usbc-mux.yaml"]
compatible: "ti,tusb1064"
-
-properties:
- port:
- type: phandle
- required: true
- description: phandle to the named i2c port
-
- i2c-addr-flags:
- type: string
- required: true
- description: I2C address of chip
- enum:
- - TUSB1064_I2C_ADDR0_FLAGS
- - TUSB1064_I2C_ADDR1_FLAGS
- - TUSB1064_I2C_ADDR2_FLAGS
- - TUSB1064_I2C_ADDR3_FLAGS
- - TUSB1064_I2C_ADDR4_FLAGS
- - TUSB1064_I2C_ADDR5_FLAGS
- - TUSB1064_I2C_ADDR6_FLAGS
- - TUSB1064_I2C_ADDR7_FLAGS
- - TUSB1064_I2C_ADDR8_FLAGS
- - TUSB1064_I2C_ADDR9_FLAGS
- - TUSB1064_I2C_ADDR10_FLAGS
- - TUSB1064_I2C_ADDR11_FLAGS
- - TUSB1064_I2C_ADDR12_FLAGS
- - TUSB1064_I2C_ADDR13_FLAGS
- - TUSB1064_I2C_ADDR14_FLAGS
- - TUSB1064_I2C_ADDR15_FLAGS
diff --git a/zephyr/dts/bindings/usbc/named-usbc-port.yaml b/zephyr/dts/bindings/usbc/named-usbc-port.yaml
index bcd9c7a2b4..1cdcb878b2 100644
--- a/zephyr/dts/bindings/usbc/named-usbc-port.yaml
+++ b/zephyr/dts/bindings/usbc/named-usbc-port.yaml
@@ -1,4 +1,4 @@
-# Copyright 2022 The Chromium OS Authors. All rights reserved.
+# Copyright 2022 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
@@ -9,13 +9,36 @@ compatible: "named-usbc-port"
include: base.yaml
properties:
- usb-muxes:
- type: phandles
+ bc12:
+ type: phandle
required: false
description: |
- List of USB-C muxes and retimers for the USB-C port. The USB-C subsystem
- traverses this list in the order specified. The phandles are references to
- cros-ec,usbc-mux nodes.
+ BC1.2 chip for the USB-C port.
+ tcpc:
+ type: phandle
+ required: false
+ description: |
+ TCPC chip for the USB-C port.
+ chg:
+ type: phandle
+ required: false
+ description: |
+ Charger chip for the USB-C port.
+ chg_alt:
+ type: phandle
+ required: false
+ description: |
+ Alternative charger for the USB-C port.
+ ppc:
+ type: phandle
+ required: false
+ description: |
+ PPC for the USB-C port.
+ ppc_alt:
+ type: phandle
+ required: false
+ description: |
+ Alternate PPC for the USB-C port.
# Example:
@@ -27,17 +50,11 @@ properties:
# port0@0 {
# compatible = "named-usbc-port";
# reg = <0>;
-# bc12 {
-# compatible = "pericom,pi3usb9201";
-# port = <&i2c_ec_i2c_usb_c0>;
-# };
+# bc12 = <&bc12_port0>;
# };
# port1@1 {
# compatible = "named-usbc-port";
# reg = <1>;
-# bc12 {
-# compatible = "pericom,pi3usb9201";
-# port = <&i2c_ec_i2c_sub_usb_c1>;
-# };
+# bc12 = <&bc12_port1>;
# };
# };
diff --git a/zephyr/dts/bindings/usbc/nuvoton,nct38xx.yaml b/zephyr/dts/bindings/usbc/nuvoton,nct38xx.yaml
deleted file mode 100644
index ddd307c2a2..0000000000
--- a/zephyr/dts/bindings/usbc/nuvoton,nct38xx.yaml
+++ /dev/null
@@ -1,40 +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.
-
-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.
-
- port:
- type: phandle
- description: |
- I2C port used to communicate with controller
-
- i2c-addr-flags:
- type: string
- default: "NCT38XX_I2C_ADDR1_1_FLAGS"
- enum:
- - "NCT38XX_I2C_ADDR1_1_FLAGS"
- - "NCT38XX_I2C_ADDR1_2_FLAGS"
- - "NCT38XX_I2C_ADDR1_3_FLAGS"
- - "NCT38XX_I2C_ADDR1_4_FLAGS"
- - "NCT38XX_I2C_ADDR2_1_FLAGS"
- - "NCT38XX_I2C_ADDR2_2_FLAGS"
- - "NCT38XX_I2C_ADDR2_3_FLAGS"
- - "NCT38XX_I2C_ADDR2_4_FLAGS"
- description: |
- I2C address of controller
-
- tcpc-flags:
- type: int
- default: 0
- description: |
- TCPC configuration flags
diff --git a/zephyr/dts/bindings/usbc/parade,ps8xxx.yaml b/zephyr/dts/bindings/usbc/parade,ps8xxx.yaml
deleted file mode 100644
index 8a65e736c9..0000000000
--- a/zephyr/dts/bindings/usbc/parade,ps8xxx.yaml
+++ /dev/null
@@ -1,29 +0,0 @@
-description: USBC TCPC
-
-compatible: "parade,ps8xxx"
-
-properties:
- port:
- type: phandle
- required: true
- description: |
- I2C port used to communicate with controller
-
- i2c-addr-flags:
- type: string
- default: "PS8XXX_I2C_ADDR1_FLAGS"
- enum:
- - "PS8XXX_I2C_ADDR1_P1_FLAGS"
- - "PS8XXX_I2C_ADDR1_P2_FLAGS"
- - "PS8XXX_I2C_ADDR1_FLAGS"
- - "PS8XXX_I2C_ADDR2_FLAGS"
- - "PS8XXX_I2C_ADDR3_FLAGS"
- - "PS8XXX_I2C_ADDR4_FLAGS"
- description: |
- I2C address of controller
-
- tcpc-flags:
- type: int
- default: 0
- description: |
- TCPC configuration flags
diff --git a/zephyr/dts/bindings/usbc/pericom,pi3usb9201.yaml b/zephyr/dts/bindings/usbc/pericom,pi3usb9201.yaml
deleted file mode 100644
index 41e1501684..0000000000
--- a/zephyr/dts/bindings/usbc/pericom,pi3usb9201.yaml
+++ /dev/null
@@ -1,26 +0,0 @@
-description: USBC BC1.2
-
-compatible: "pericom,pi3usb9201"
-
-properties:
- port:
- type: phandle
- required: true
- description: |
- I2C port used to communicate with controller
-
- irq:
- type: phandles
- description: |
- GPIO interrupt from BC1.2
-
- i2c-addr-flags:
- type: string
- default: "PI3USB9201_I2C_ADDR_3_FLAGS"
- enum:
- - "PI3USB9201_I2C_ADDR_0_FLAGS"
- - "PI3USB9201_I2C_ADDR_1_FLAGS"
- - "PI3USB9201_I2C_ADDR_2_FLAGS"
- - "PI3USB9201_I2C_ADDR_3_FLAGS"
- description: |
- I2C address of controller
diff --git a/zephyr/dts/bindings/usbc/ppc-chip.yaml b/zephyr/dts/bindings/usbc/ppc-chip.yaml
index b5b2cedc03..7fe944fe4c 100644
--- a/zephyr/dts/bindings/usbc/ppc-chip.yaml
+++ b/zephyr/dts/bindings/usbc/ppc-chip.yaml
@@ -1,28 +1,14 @@
-# Copyright (c) 2021 The Chromium OS Authors
+# Copyright 2021 The ChromiumOS Authors
# SPDX-License-Identifier: Apache-2.0
description: Power path chip
+include: i2c-device.yaml
+
properties:
- port:
- type: phandle
- required: true
- description: |
- I2C port used to communicate with controller
irq:
type: phandles
required: false
description: |
GPIO interrupt from PPC
-
- i2c-addr-flags:
- type: string
- description: |
- I2C address of controller
-
- alternate-for:
- type: phandle
- description: |
- Pointer to the primary PPC device that can be replaced at runtime
- by this device.
diff --git a/zephyr/dts/bindings/usbc/ppc/aoz,aoz1380.yaml b/zephyr/dts/bindings/usbc/ppc/aoz,aoz1380.yaml
new file mode 100644
index 0000000000..52144ffc78
--- /dev/null
+++ b/zephyr/dts/bindings/usbc/ppc/aoz,aoz1380.yaml
@@ -0,0 +1,9 @@
+# Copyright 2022 The ChromiumOS Authors
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+description: AOZ1380 USBC PPC binding
+
+compatible: "aoz,aoz1380"
+
+include: ppc-chip.yaml
diff --git a/zephyr/dts/bindings/usbc/ppc/nxp,nx20p348x.yaml b/zephyr/dts/bindings/usbc/ppc/nxp,nx20p348x.yaml
new file mode 100644
index 0000000000..b297702356
--- /dev/null
+++ b/zephyr/dts/bindings/usbc/ppc/nxp,nx20p348x.yaml
@@ -0,0 +1,9 @@
+# Copyright 2022 The ChromiumOS Authors
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+description: NXP NX20P348X USBC PPC binding
+
+compatible: "nxp,nx20p348x"
+
+include: ppc-chip.yaml
diff --git a/zephyr/dts/bindings/usbc/ppc/richtek,rt1739-ppc.yaml b/zephyr/dts/bindings/usbc/ppc/richtek,rt1739-ppc.yaml
new file mode 100644
index 0000000000..e15322883c
--- /dev/null
+++ b/zephyr/dts/bindings/usbc/ppc/richtek,rt1739-ppc.yaml
@@ -0,0 +1,9 @@
+# Copyright 2022 The ChromiumOS Authors
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+description: USBC PPC
+
+compatible: "richtek,rt1739-ppc"
+
+include: ppc-chip.yaml
diff --git a/zephyr/dts/bindings/usbc/silergy,syv682x.yaml b/zephyr/dts/bindings/usbc/ppc/silergy,syv682x.yaml
index 51ab7e89e1..ab45a98ebd 100644
--- a/zephyr/dts/bindings/usbc/silergy,syv682x.yaml
+++ b/zephyr/dts/bindings/usbc/ppc/silergy,syv682x.yaml
@@ -9,11 +9,3 @@ properties:
type: phandle
description: The GPIO that controls FRS enable on this device
required: false
-
- i2c-addr-flags:
- default: "SYV682X_ADDR0_FLAGS"
- enum:
- - "SYV682X_ADDR0_FLAGS"
- - "SYV682X_ADDR1_FLAGS"
- - "SYV682X_ADDR2_FLAGS"
- - "SYV682X_ADDR3_FLAGS"
diff --git a/zephyr/dts/bindings/usbc/ppc/ti,sn5s330.yaml b/zephyr/dts/bindings/usbc/ppc/ti,sn5s330.yaml
new file mode 100644
index 0000000000..9d92811c03
--- /dev/null
+++ b/zephyr/dts/bindings/usbc/ppc/ti,sn5s330.yaml
@@ -0,0 +1,5 @@
+description: USBC PPC
+
+compatible: "ti,sn5s330"
+
+include: ppc-chip.yaml
diff --git a/zephyr/dts/bindings/usbc/richtek,rt1739-ppc.yaml b/zephyr/dts/bindings/usbc/richtek,rt1739-ppc.yaml
deleted file mode 100644
index a1f2dbdbb0..0000000000
--- a/zephyr/dts/bindings/usbc/richtek,rt1739-ppc.yaml
+++ /dev/null
@@ -1,18 +0,0 @@
-# Copyright 2022 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: USBC PPC
-
-compatible: "richtek,rt1739-ppc"
-
-include: ppc-chip.yaml
-
-properties:
- i2c-addr-flags:
- default: "RT1739_ADDR1_FLAGS"
- enum:
- - "RT1739_ADDR1_FLAGS"
- - "RT1739_ADDR2_FLAGS"
- - "RT1739_ADDR3_FLAGS"
- - "RT1739_ADDR4_FLAGS"
diff --git a/zephyr/dts/bindings/usbc/tcpc/anologix,anx7447-tcpc.yaml b/zephyr/dts/bindings/usbc/tcpc/anologix,anx7447-tcpc.yaml
new file mode 100644
index 0000000000..cb10c3ee15
--- /dev/null
+++ b/zephyr/dts/bindings/usbc/tcpc/anologix,anx7447-tcpc.yaml
@@ -0,0 +1,12 @@
+description: Anologix ANX7447 USBC TCPC binding
+
+compatible: "anologix,anx7447-tcpc"
+
+include: i2c-device.yaml
+
+properties:
+ tcpc-flags:
+ type: int
+ default: 0
+ description: |
+ TCPC configuration flags
diff --git a/zephyr/dts/bindings/usbc/tcpc/cros-ec,tcpci.yaml b/zephyr/dts/bindings/usbc/tcpc/cros-ec,tcpci.yaml
new file mode 100644
index 0000000000..10a8f04f55
--- /dev/null
+++ b/zephyr/dts/bindings/usbc/tcpc/cros-ec,tcpci.yaml
@@ -0,0 +1,5 @@
+description: USBC TCPC
+
+compatible: "cros-ec,tcpci"
+
+include: i2c-device.yaml
diff --git a/zephyr/dts/bindings/usbc/tcpc/cypress,ccgxxf.yaml b/zephyr/dts/bindings/usbc/tcpc/cypress,ccgxxf.yaml
new file mode 100644
index 0000000000..f6ad3c3ba6
--- /dev/null
+++ b/zephyr/dts/bindings/usbc/tcpc/cypress,ccgxxf.yaml
@@ -0,0 +1,9 @@
+# Copyright 2022 The ChromiumOS Authors
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+description: USBC TCPC
+
+compatible: "cypress,ccgxxf"
+
+include: i2c-device.yaml
diff --git a/zephyr/dts/bindings/usbc/tcpc/fairchild,fusb302.yaml b/zephyr/dts/bindings/usbc/tcpc/fairchild,fusb302.yaml
new file mode 100644
index 0000000000..05b7f9b9ad
--- /dev/null
+++ b/zephyr/dts/bindings/usbc/tcpc/fairchild,fusb302.yaml
@@ -0,0 +1,5 @@
+description: USBC TCPC
+
+compatible: "fairchild,fusb302"
+
+include: i2c-device.yaml
diff --git a/zephyr/dts/bindings/usbc/tcpc/nuvoton,nct38xx.yaml b/zephyr/dts/bindings/usbc/tcpc/nuvoton,nct38xx.yaml
new file mode 100644
index 0000000000..51a69846e0
--- /dev/null
+++ b/zephyr/dts/bindings/usbc/tcpc/nuvoton,nct38xx.yaml
@@ -0,0 +1,22 @@
+# Copyright 2021 The ChromiumOS Authors
+# 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"
+
+include: i2c-device.yaml
+
+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.
+
+ tcpc-flags:
+ type: int
+ default: 0
+ description: |
+ TCPC configuration flags
diff --git a/zephyr/dts/bindings/usbc/tcpc/parade,ps8xxx.yaml b/zephyr/dts/bindings/usbc/tcpc/parade,ps8xxx.yaml
new file mode 100644
index 0000000000..8048e05522
--- /dev/null
+++ b/zephyr/dts/bindings/usbc/tcpc/parade,ps8xxx.yaml
@@ -0,0 +1,12 @@
+description: USBC TCPC
+
+compatible: "parade,ps8xxx"
+
+include: i2c-device.yaml
+
+properties:
+ tcpc-flags:
+ type: int
+ default: 0
+ description: |
+ TCPC configuration flags
diff --git a/zephyr/dts/bindings/usbc/tcpc/richtek,rt1718s-tcpc.yaml b/zephyr/dts/bindings/usbc/tcpc/richtek,rt1718s-tcpc.yaml
new file mode 100644
index 0000000000..fb7dc8a4aa
--- /dev/null
+++ b/zephyr/dts/bindings/usbc/tcpc/richtek,rt1718s-tcpc.yaml
@@ -0,0 +1,17 @@
+# Copyright 2022 The ChromiumOS Authors
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+description: USBC RT1718S TCPC
+
+compatible: "richtek,rt1718s-tcpc"
+
+include: i2c-device.yaml
+
+properties:
+ tcpc-flags:
+ type: int
+ default: 0
+ description: |
+ TCPC configuration flags
+
diff --git a/zephyr/dts/bindings/usbc/ti,sn5s330.yaml b/zephyr/dts/bindings/usbc/ti,sn5s330.yaml
deleted file mode 100644
index 664f888805..0000000000
--- a/zephyr/dts/bindings/usbc/ti,sn5s330.yaml
+++ /dev/null
@@ -1,14 +0,0 @@
-description: USBC PPC
-
-compatible: "ti,sn5s330"
-
-include: ppc-chip.yaml
-
-properties:
- i2c-addr-flags:
- default: "SN5S330_ADDR0_FLAGS"
- enum:
- - "SN5S330_ADDR0_FLAGS"
- - "SN5S330_ADDR1_FLAGS"
- - "SN5S330_ADDR2_FLAGS"
- - "SN5S330_ADDR3_FLAGS"
diff --git a/zephyr/dts/bindings/vendor-prefixes.txt b/zephyr/dts/bindings/vendor-prefixes.txt
index 403b0ba1ea..53dd2d4cfc 100644
--- a/zephyr/dts/bindings/vendor-prefixes.txt
+++ b/zephyr/dts/bindings/vendor-prefixes.txt
@@ -1,4 +1,4 @@
-# Copyright 2021 The Chromium OS Authors. All rights reserved.
+# Copyright 2021 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
@@ -9,9 +9,14 @@ cros-ec The Chromium OS Embedded Controller Project
cros The Chromium OS Embedded Controller Project
intersil Intersil
lgc LG Chem
-as3gwrc3ka Battery vendor
smp Battery vendor
aec Battery vendor
powertech Battery vendor
getac Battery vendor
ganfeng Battery vendor
+byd Battery vendor
+celxpert Battery vendor
+sunwoda Battery vendor
+cosmx Battery vendor
+dynapack Battery vendor
+atl Battery vendor \ No newline at end of file
diff --git a/zephyr/dts/board-overlays/native_posix.dts b/zephyr/dts/board-overlays/native_posix.dts
index 7801997553..44a034d73b 100644
--- a/zephyr/dts/board-overlays/native_posix.dts
+++ b/zephyr/dts/board-overlays/native_posix.dts
@@ -1,4 +1,4 @@
-/* Copyright 2021 The Chromium OS Authors. All rights reserved.
+/* Copyright 2021 The ChromiumOS Authors
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
@@ -9,7 +9,7 @@
named-gpios {
compatible = "named-gpios";
- entering_rw {
+ entering-rw {
gpios = <&gpio0 1 GPIO_OUTPUT_LOW>;
enum-name = "GPIO_ENTERING_RW";
};
diff --git a/zephyr/dts/it8xxx2_emul.dts b/zephyr/dts/it8xxx2_emul.dts
new file mode 100644
index 0000000000..dcb44aebd2
--- /dev/null
+++ b/zephyr/dts/it8xxx2_emul.dts
@@ -0,0 +1,177 @@
+/* Copyright 2022 The ChromiumOS Authors
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+/* Contains emulators for devices normally found on IT8xxx2 chips.
+ * To use, include this file, then the board's gpio definitions.
+ */
+
+#include <dt-bindings/gpio_defines.h>
+
+/ {
+ gpioa: gpio@f01601 {
+ status = "okay";
+ compatible = "zephyr,gpio-emul";
+ reg = <0xf01601 0x4>;
+ rising-edge;
+ falling-edge;
+ high-level;
+ low-level;
+ gpio-controller;
+ #gpio-cells = <2>;
+ ngpios = <8>;
+ };
+ gpiob: gpio@f01602 {
+ status = "okay";
+ compatible = "zephyr,gpio-emul";
+ reg = <0xf01602 0x4>;
+ rising-edge;
+ falling-edge;
+ high-level;
+ low-level;
+ gpio-controller;
+ #gpio-cells = <2>;
+ ngpios = <8>;
+ };
+ gpioc: gpio@f01603 {
+ status = "okay";
+ compatible = "zephyr,gpio-emul";
+ reg = <0xf01603 0x4>;
+ rising-edge;
+ falling-edge;
+ high-level;
+ low-level;
+ gpio-controller;
+ #gpio-cells = <2>;
+ ngpios = <8>;
+ };
+ gpiod: gpio@f01604 {
+ status = "okay";
+ compatible = "zephyr,gpio-emul";
+ reg = <0xf01604 0x4>;
+ rising-edge;
+ falling-edge;
+ high-level;
+ low-level;
+ gpio-controller;
+ #gpio-cells = <2>;
+ ngpios = <8>;
+ };
+ gpioe: gpio@f01605 {
+ status = "okay";
+ compatible = "zephyr,gpio-emul";
+ reg = <0xf01605 0x4>;
+ rising-edge;
+ falling-edge;
+ high-level;
+ low-level;
+ gpio-controller;
+ #gpio-cells = <2>;
+ ngpios = <8>;
+ };
+ gpiof: gpio@f01606 {
+ status = "okay";
+ compatible = "zephyr,gpio-emul";
+ reg = <0xf01606 0x4>;
+ rising-edge;
+ falling-edge;
+ high-level;
+ low-level;
+ gpio-controller;
+ #gpio-cells = <2>;
+ ngpios = <8>;
+ };
+ gpiog: gpio@f01607 {
+ status = "okay";
+ compatible = "zephyr,gpio-emul";
+ reg = <0xf01607 0x4>;
+ rising-edge;
+ falling-edge;
+ high-level;
+ low-level;
+ gpio-controller;
+ #gpio-cells = <2>;
+ ngpios = <8>;
+ };
+ gpioh: gpio@f01608 {
+ status = "okay";
+ compatible = "zephyr,gpio-emul";
+ reg = <0xf01608 0x4>;
+ rising-edge;
+ falling-edge;
+ high-level;
+ low-level;
+ gpio-controller;
+ #gpio-cells = <2>;
+ ngpios = <8>;
+ };
+ gpioi: gpio@f01609 {
+ status = "okay";
+ compatible = "zephyr,gpio-emul";
+ reg = <0xf01609 0x4>;
+ rising-edge;
+ falling-edge;
+ high-level;
+ low-level;
+ gpio-controller;
+ #gpio-cells = <2>;
+ ngpios = <8>;
+ };
+ gpioj: gpio@f0160a {
+ status = "okay";
+ compatible = "zephyr,gpio-emul";
+ reg = <0xf0160a 0x4>;
+ rising-edge;
+ falling-edge;
+ high-level;
+ low-level;
+ gpio-controller;
+ #gpio-cells = <2>;
+ ngpios = <8>;
+ };
+ gpiok: gpio@f0160b {
+ status = "okay";
+ compatible = "zephyr,gpio-emul";
+ reg = <0xf0160b 0x4>;
+ rising-edge;
+ falling-edge;
+ high-level;
+ low-level;
+ gpio-controller;
+ #gpio-cells = <2>;
+ ngpios = <8>;
+ };
+ gpiol: gpio@f0160c {
+ status = "okay";
+ compatible = "zephyr,gpio-emul";
+ reg = <0xf0160c 0x4>;
+ rising-edge;
+ falling-edge;
+ high-level;
+ low-level;
+ gpio-controller;
+ #gpio-cells = <2>;
+ ngpios = <8>;
+ };
+ gpiom: gpio@f0160d {
+ status = "okay";
+ compatible = "zephyr,gpio-emul";
+ reg = <0xf0160d 0x4>;
+ rising-edge;
+ falling-edge;
+ high-level;
+ low-level;
+ gpio-controller;
+ #gpio-cells = <2>;
+ ngpios = <8>;
+ };
+
+ i2c_ctrl0: i2c@f01c40 {
+ compatible = "zephyr,i2c-emul-controller";
+ clock-frequency = <I2C_BITRATE_STANDARD>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+ reg = <0xf01c40 0x1000>;
+ };
+};
diff --git a/zephyr/dts/npcx_emul.dts b/zephyr/dts/npcx_emul.dts
new file mode 100644
index 0000000000..20b1a02eeb
--- /dev/null
+++ b/zephyr/dts/npcx_emul.dts
@@ -0,0 +1,266 @@
+/* Copyright 2022 The ChromiumOS Authors
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+/* Contains emulators for devices normally found on NPCX chips.
+ * To use, include this file, then the board's gpio definitions.
+ */
+
+#include <dt-bindings/gpio_defines.h>
+
+/ {
+ gpio1: gpio@101 {
+ status = "okay";
+ compatible = "zephyr,gpio-emul";
+ reg = <0x101 0x4>;
+ rising-edge;
+ falling-edge;
+ high-level;
+ low-level;
+ gpio-controller;
+ #gpio-cells = <2>;
+ ngpios = <8>;
+ };
+ gpio3: gpio@301 {
+ status = "okay";
+ compatible = "zephyr,gpio-emul";
+ reg = <0x301 0x4>;
+ rising-edge;
+ falling-edge;
+ high-level;
+ low-level;
+ gpio-controller;
+ #gpio-cells = <2>;
+ ngpios = <8>;
+ };
+ gpio4: gpio@400 {
+ status = "okay";
+ compatible = "zephyr,gpio-emul";
+ reg = <0x400 0x4>;
+ rising-edge;
+ falling-edge;
+ high-level;
+ low-level;
+ gpio-controller;
+ #gpio-cells = <2>;
+ ngpios = <8>;
+ };
+ gpio5: gpio@500 {
+ status = "okay";
+ compatible = "zephyr,gpio-emul";
+ reg = <0x500 0x4>;
+ rising-edge;
+ falling-edge;
+ high-level;
+ low-level;
+ gpio-controller;
+ #gpio-cells = <2>;
+ ngpios = <8>;
+ };
+ gpio6: gpio@600 {
+ status = "okay";
+ compatible = "zephyr,gpio-emul";
+ reg = <0x600 0x4>;
+ rising-edge;
+ falling-edge;
+ high-level;
+ low-level;
+ gpio-controller;
+ #gpio-cells = <2>;
+ ngpios = <8>;
+ };
+ gpio7: gpio@700 {
+ status = "okay";
+ compatible = "zephyr,gpio-emul";
+ reg = <0x700 0x4>;
+ rising-edge;
+ falling-edge;
+ high-level;
+ low-level;
+ gpio-controller;
+ #gpio-cells = <2>;
+ ngpios = <8>;
+ };
+ gpio8: gpio@801 {
+ status = "okay";
+ compatible = "zephyr,gpio-emul";
+ reg = <0x801 0x4>;
+ rising-edge;
+ falling-edge;
+ high-level;
+ low-level;
+ gpio-controller;
+ #gpio-cells = <2>;
+ ngpios = <8>;
+ };
+ gpio9: gpio@900 {
+ status = "okay";
+ compatible = "zephyr,gpio-emul";
+ reg = <0x900 0x4>;
+ rising-edge;
+ falling-edge;
+ high-level;
+ low-level;
+ gpio-controller;
+ #gpio-cells = <2>;
+ ngpios = <8>;
+ };
+ gpioa: gpio@a00 {
+ status = "okay";
+ compatible = "zephyr,gpio-emul";
+ reg = <0xa00 0x4>;
+ rising-edge;
+ falling-edge;
+ high-level;
+ low-level;
+ gpio-controller;
+ #gpio-cells = <2>;
+ ngpios = <8>;
+ };
+ gpiob: gpio@b00 {
+ status = "okay";
+ compatible = "zephyr,gpio-emul";
+ reg = <0xb00 0x4>;
+ rising-edge;
+ falling-edge;
+ high-level;
+ low-level;
+ gpio-controller;
+ #gpio-cells = <2>;
+ ngpios = <8>;
+ };
+ gpioc: gpio@c00 {
+ status = "okay";
+ compatible = "zephyr,gpio-emul";
+ reg = <0xc00 0x4>;
+ rising-edge;
+ falling-edge;
+ high-level;
+ low-level;
+ gpio-controller;
+ #gpio-cells = <2>;
+ ngpios = <8>;
+ };
+ gpiod: gpio@d00 {
+ status = "okay";
+ compatible = "zephyr,gpio-emul";
+ reg = <0xd00 0x4>;
+ rising-edge;
+ falling-edge;
+ high-level;
+ low-level;
+ gpio-controller;
+ #gpio-cells = <2>;
+ ngpios = <8>;
+ };
+ gpioe: gpio@e00 {
+ status = "okay";
+ compatible = "zephyr,gpio-emul";
+ reg = <0xe00 0x4>;
+ rising-edge;
+ falling-edge;
+ high-level;
+ low-level;
+ gpio-controller;
+ #gpio-cells = <2>;
+ ngpios = <8>;
+ };
+ gpiof: gpio@f00 {
+ status = "okay";
+ compatible = "zephyr,gpio-emul";
+ reg = <0xf00 0x4>;
+ rising-edge;
+ falling-edge;
+ high-level;
+ low-level;
+ gpio-controller;
+ #gpio-cells = <2>;
+ ngpios = <8>;
+ };
+
+ i2c_ctrl0: i2c@40009000 {
+ status = "okay";
+ compatible = "zephyr,i2c-emul-controller";
+ clock-frequency = <I2C_BITRATE_STANDARD>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+ reg = <0x40009000 0x1000>;
+ };
+ i2c_ctrl1: i2c@4000b000 {
+ status = "okay";
+ compatible = "zephyr,i2c-emul-controller";
+ clock-frequency = <I2C_BITRATE_STANDARD>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+ reg = <0x4000b000 0x1000>;
+ };
+
+ i2c_ctrl2: i2c@400c0000 {
+ status = "okay";
+ compatible = "zephyr,i2c-emul-controller";
+ clock-frequency = <I2C_BITRATE_STANDARD>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+ reg = <0x400c0000 0x1000>;
+ };
+
+ i2c_ctrl3: i2c@400c2000 {
+ status = "okay";
+ compatible = "zephyr,i2c-emul-controller";
+ clock-frequency = <I2C_BITRATE_STANDARD>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+ reg = <0x400c2000 0x1000>;
+ };
+
+ i2c_ctrl4: i2c@40008000 {
+ status = "okay";
+ compatible = "zephyr,i2c-emul-controller";
+ clock-frequency = <I2C_BITRATE_STANDARD>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+ reg = <0x40008000 0x1000>;
+ };
+
+ i2c_ctrl5: i2c@40017000 {
+ status = "okay";
+ compatible = "zephyr,i2c-emul-controller";
+ clock-frequency = <I2C_BITRATE_STANDARD>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+ reg = <0x40017000 0x1000>;
+ };
+
+ i2c_ctrl6: i2c@40018000 {
+ status = "okay";
+ compatible = "zephyr,i2c-emul-controller";
+ clock-frequency = <I2C_BITRATE_STANDARD>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+ reg = <0x40018000 0x1000>;
+ };
+
+ i2c_ctrl7: i2c@40019000 {
+ status = "okay";
+ compatible = "zephyr,i2c-emul-controller";
+ clock-frequency = <I2C_BITRATE_STANDARD>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+ reg = <0x40019000 0x1000>;
+ };
+ scfg: scfg@400c3000 {
+ compatible = "nuvoton,npcx-scfg";
+ /* First reg region is System Configuration Device */
+ /* Second reg region is System Glue Device */
+ reg = <0x400c3000 0x70
+ 0x400a5000 0x2000>;
+ reg-names = "scfg", "glue";
+ #alt-cells = <3>;
+ #lvol-cells = <2>;
+ };
+};
+
+&gpio0 {
+ ngpios = <8>;
+};