summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Merge remote-tracking branch cros/main into firmware-keeby-14119.B-mainfirmware-keeby-14119.B-mainAseda Aboagye2022-01-101087-9243/+34310
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Relevant changes: git log --oneline c5bd23a4b..b44d10f8f -- baseboard/dedede board/cappy2 board/corori board/driblee board/gooey board/haboki board/lalala board/waddledoo2 common/charge_state_v2.c common/mkbp_* common/ocpc.c common/usbc/usb_tc_drp_acc_trysrc_sm.c common/usbc/usb_sm.c common/usbc/*_pd_* common/usbc/dp_alt_mode.c common/usbc/usb_prl_sm.c common/usbc/usb_pe_drp_sm.c common/usb_charger.c common/usb_common.c common/usbc_ocp.c driver/charger/sm5803.* driver/charger/isl923x.* driver/tcpm/raa489000.* driver/tcpm/it83* include/power/icelake.h include/intel_x86.h power/icelake.c power/intel_x86.c util/getversion.sh 42d03a001 config: change temp_sensor_power from config to gpio e296efb28 usb_common: Fix CONFIG_USB_PD_DISCHARGE_TCPC typo c346481f4 atomic: cast to unsigned when shifting 9b972a0f2 driver/tcpm/it83xx, it8xxx2: ITE inactive port return from HOOK a499d8fd4 driver/tcpm/it83xx, it8xxx2: set sleep mask for mixed TCPC case ed62e2583 TCPMv2: don't set the sleep mask for TCPC embedded in EC c962696e8 motion_sensor: Remove |int_signal| field 86b216794 ocpc: modify pre-charge target condition 6f8336eb4 dedede: Set MKBP event wake mask to 0 02d034df0 dedede: add stylus fw_config 4f7cd7509 atomic: use atomic_t where it is possible e3ffa0519 mkbp: change the type fifo_entries to atomic_t bb4c47af0 usb: use atomic_t where possible c6e513ee2 power/icelake: Add SLP_S5 as a watched power signal d89e49b20 power: Introduce S4 as a real power state ba8a3c9c0 chgstv2: Use chipset_in_state instead of naming states 23a975d12 i2c: Use declared initializers for i2c_ports: boards a-l 35865dbec TCPMv2: Guard DATA_RESET using CONFIG_USB_PD_DATA_RESET_MSG d4d8243ed i2c: Use declared initializers for i2c_ports: baseboards eba8d0305 RAA489000: Fixed RAA489000 max charging current e78b83e0f TCPMv2: Delay Data Reset until mode entry request 6230e60fc TCPMv2: Support Data Reset as DFP, initiator 412246836 intel_x86: Apply chipset resume init and suspend complete hooks f2809b72c config: rename CONFIG_HOSTCMD_ESPI to CONFIG_HOST_INTERFACE_ESPI BRANCH=None BUG=b:202796060 b:207805856 b:167983049 b:208318528 b:181983966 BUG=b:207328258 b:195416058 b:205285137 b:199919093 b:207055975 BUG=b:129159505 b:204947672 b:141363146 b:207082842 b:205675485 TEST=`make -j buildall` Signed-off-by: Aseda Aboagye <aaboagye@google.com> Change-Id: I980351977e11088a130e478df0701be4715f049b
| * nissa: Enable logging for bringup.Andrew McRae2022-01-101-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Enable logging for nivviks bringup. BUG=none TEST=zmake configure -b nivviks; test on nivviks. BRANCH=none Signed-off-by: Andrew McRae <amcrae@google.com> Change-Id: I44cda39850f8028f474278889029131fa505fd15 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3377442 Reviewed-by: Peter Marheine <pmarheine@chromium.org> Commit-Queue: Peter Marheine <pmarheine@chromium.org>
| * taniks:add charger.ctony.tang2022-01-101-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | taniks use bq25720 charger, and it's same as taeko. I add bq25720 charger back. BUG=b:211573264 BRANCH=brya TEST=make buildall -j Cq-Depend: chromium:3351433 Signed-off-by: tony.tang <tony.tang@lcfc.corp-partner.google.com> Change-Id: I12e4f6ac92e005e3b0bb09e5f5ac9842c35031a7 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3376683 Reviewed-by: caveh jalali <caveh@chromium.org> Commit-Queue: caveh jalali <caveh@chromium.org>
| * taniks:remove charger.creno.wang2022-01-101-90/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | taniks use bq25720 charger, and it's same as taeko. It should use symbolic link to baseboard's charger_bq25720.c instead of dedicated charger.c code. I remove charger.c first then I will add charger_bq25720.c through another CL. BUG=b:211573264 BRANCH=brya TEST=make buildall -j Cq-Depend: chromium:3376683 Signed-off-by: reno.wang <reno.wang@lcfc.corp-partner.google.com> Change-Id: I30c500db5a17f66da9285c2815a2c731832b981d Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3351433 Reviewed-by: Boris Mittelberg <bmbm@google.com> Tested-by: Tony Tang <tony.tang@lcfc.corp-partner.google.com> Commit-Queue: caveh jalali <caveh@chromium.org>
| * ectool: Update max sensor count with defined macroB R, Harsha2022-01-102-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Define a new macro EC_MAX_TEMP_SENSOR_ENTRIES in ec_commands.h and replace all hard coded or const used to check for available thermal sensors with the EC_MAX_TEMP_SENSOR_ENTRIES macro BUG=none BRANCH=none TEST=make buildall -j, zmake testall Signed-off-by: B R, Harsha <harsha.b.r@intel.com> Change-Id: Ifbcf4b9dca9be1ad59918d567eeaffa2ac5db81e Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3369161 Reviewed-by: Harsha BR <harsha.b.r@intel.corp-partner.google.com> Tested-by: Harsha BR <harsha.b.r@intel.corp-partner.google.com> Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org> Reviewed-by: caveh jalali <caveh@chromium.org> Commit-Queue: caveh jalali <caveh@chromium.org>
| * zephyr: brya: Enable fanRajesh Kumar2022-01-104-0/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Enable zephyr configuration for fan. BUG=b:212388053 BRANCH=none TEST=EC console command "faninfo","fanduty" Signed-off-by: Rajesh Kumar <rajesh3.kumar@intel.com> Change-Id: Iafb91807342f2ca2fb32965ae94768b4da3dcb59 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3360079 Reviewed-by: Vijay P Hiremath <vijay.p.hiremath@intel.com> Reviewed-by: Keith Short <keithshort@chromium.org>
| * zephyr: brya: Enable pwm channelsRajesh Kumar2022-01-103-0/+80
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This enables pwm channels for brya BUG=b:213549232 BRANCH=none TEST=EC console command "pwmduty" Signed-off-by: Rajesh Kumar <rajesh3.kumar@intel.com> Change-Id: Icb2531352c1c631019b20100b4aaff68c6f9f11d Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3373627 Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Keith Short <keithshort@chromium.org>
| * zephyr: throttling config should depends on temp sensorMichał Barnaś2022-01-102-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Enabling AP throttling shouldn't be possible when there's no temp sensor enabled. BRANCH=main BUG=b:181983966 TEST=zmake testall Change-Id: I9742f1971b9836f28d097e6ee50802f00b7a951d Signed-off-by: Michał Barnaś <mb@semihalf.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3314584 Reviewed-by: Keith Short <keithshort@chromium.org>
| * config: change temp_sensor_power from config to gpioMichał Barnaś2022-01-1049-63/+112
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Split the temp_sensor_power config to separate config and gpio definition. To match the behavior of other optional gpios, there should be config that enables support for feature that requires gpio and per-board define that assigns custom GPIO name to board specific one. BRANCH=main BUG=b:181983966 TEST=zmake testall, compare_build.sh Change-Id: I57ff2532444960170d7a8a08027f13fbce8f34a2 Signed-off-by: Michał Barnaś <mb@semihalf.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3314583 Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org> Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
| * beadrix: Initialize the vivaldi keyboardTeddy Shih2022-01-101-0/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Initialize the vivaldi keyboard. BUG=b:204882915, b:212561859 BRANCH=None TEST=Manual 1. evtest, make sure the keycode is correct. 2. Check F1 to F10 function. 3. Check F2 + power button (EC reboot). 4. Check ESC + F2 + power button. Signed-off-by: Teddy Shih <teddyshih@ami.corp-partner.google.com> Change-Id: Ifa619e304153c1cd383f4b8e874e4885f77e3339 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3369845 Reviewed-by: Henry Sun <henrysun@google.com> Commit-Queue: Henry Sun <henrysun@google.com>
| * krabby: configure i2cTing Shen2022-01-101-16/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | BUG=b:202808130 TEST=1) `i2c scan` 2) `i2c read_byte` on random devices. BRANCH=main Signed-off-by: Ting Shen <phoenixshen@google.com> Change-Id: I5a473881ffbff95707faf7be69602f4d69c3b4fe Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3337702 Reviewed-by: Eric Yilun Lin <yllin@google.com> Commit-Queue: Ting Shen <phoenixshen@chromium.org> Tested-by: Ting Shen <phoenixshen@chromium.org>
| * zephyr: kingler: enable CBI EEPROMEric Yilun Lin2022-01-104-3/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Enable CBI module. BUG=b:209921101 TEST=cbi BRANCH=none Change-Id: Ifd2b79fb7fd9afdeb26c322e59d9554198e0f8cf Signed-off-by: Eric Yilun Lin <yllin@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3344096 Tested-by: Eric Yilun Lin <yllin@google.com> Auto-Submit: Eric Yilun Lin <yllin@google.com> Reviewed-by: Ting Shen <phoenixshen@chromium.org> Commit-Queue: Ting Shen <phoenixshen@chromium.org>
| * usb_mux: use cached mux state in host cmd EC_CMD_USB_PD_MUX_INFOTing Shen2022-01-101-12/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There's a bug that if AP send EC_CMD_USB_PD_MUX_INFO when mux is in LPM, configure_mux() will wake the mux up and won't put it back to sleep again. This increases the devices power consumption. To fix this, use usb_get_mux instead because it handles LPM correctly. BUG=b:195517210, b:213296482 TEST=1) S3 power improved on Tomato 2) Add debug message in driver code, make sure mux is in sleep state. BRANCH=main Signed-off-by: Ting Shen <phoenixshen@google.com> Change-Id: I232820cbf4715b9c56836306a3e89728b88936e2 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3367685 Reviewed-by: Rong Chang <rongchang@chromium.org> Commit-Queue: Ting Shen <phoenixshen@chromium.org> Tested-by: Ting Shen <phoenixshen@chromium.org>
| * taeko: modify for G sensor second sourceamber.chen2022-01-101-3/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | modify for G sensor second source BRANCH=main BUG=b:212427391 TEST=make -j BOARD=taeko Signed-off-by: amber.chen <amber.chen@lcfc.corp-partner.google.com> Change-Id: Ideda0c4e41519ace1ce41cbbbd984b28ae1dfcbf Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3369844 Reviewed-by: YH Lin <yueherngl@chromium.org> Reviewed-by: Boris Mittelberg <bmbm@google.com>
| * nissa: Enable volume buttonsAndrew McRae2022-01-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Enable volume buttons in configuration. BUG=b:213574019 TEST=zmake configure -b nivviks BRANCH=none Signed-off-by: Andrew McRae <amcrae@google.com> Change-Id: I27fb1728cdb4944f02609cb56a4b23e24f856a40 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3374084 Reviewed-by: Peter Marheine <pmarheine@chromium.org> Commit-Queue: Peter Marheine <pmarheine@chromium.org>
| * nissa: Update nereid generated GPIOsAndrew McRae2022-01-101-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Update with pull-up options on GPIO. BUG=b:201000844 TEST=zmake configure -b nereid BRANCH=none Signed-off-by: Andrew McRae <amcrae@google.com> Change-Id: If64e7499902b7aa309f880b4bdddb46100220d63 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3372080 Reviewed-by: Peter Marheine <pmarheine@chromium.org> Commit-Queue: Peter Marheine <pmarheine@chromium.org>
| * bugzzy : Remove the bring-up featuresYongBeum.Ha2022-01-091-6/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove all the bring-up features. BUG=b:211884285 BRANCH=None TEST=make -j BOARD=bugzzy Signed-off-by: YongBeum.Ha <ybha@samsung.corp-partner.google.com> Change-Id: I04a438e9c75b30393ff970db8fd26a7a8db139b2 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3372129 Reviewed-by: Henry Sun <henrysun@google.com> Reviewed-by: Diana Z <dzigterman@chromium.org> Commit-Queue: Henry Sun <henrysun@google.com>
| * Quackingstick: fix hibernate behavior for rev1Sue Chen2022-01-083-9/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The power of hall sensor and the LID_OPEN_EC on rev1 are different, and it cause LID_OPEN_EC wake the EC immediately when EC enter hibernate. Remove GPIO_LID_OPEN from hibernate_wake_pins for board_id <= 1 to let rev1 dut can enter hibernate. Rev1 needs the workaround for ACOK can't go High to wake EC up. Set GPIO_HIBERNATE_L always open-drain. BUG=none BRANCH=trogdor TEST=Rev1 dut can enter hibernate Signed-off-by: Sue Chen <sue.chen@quanta.corp-partner.google.com> Change-Id: Idc533cb9e216b9e220bb9b2dcc5b2f98975c40d9 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3353051 Reviewed-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-by: Bob Moragues <moragues@chromium.org> Commit-Queue: Bob Moragues <moragues@chromium.org>
| * zephyr test: Check USB charging current, voltageAbe Levkoy2022-01-081-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use EC_CMD_CHARGE_STATE to check the charging current and voltage after attaching a USB charger. BUG=b:209907297 TEST=zmake configure --test zephyr/test/drivers BRANCH=none Change-Id: If4095da3ab3f3c7787fd56afe9e187ce77753196 Signed-off-by: Abe Levkoy <alevkoy@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3373633 Reviewed-by: Sam Hurst <shurst@google.com> Commit-Queue: Sam Hurst <shurst@google.com>
| * nissa: Enable smart battery configAndrew McRae2022-01-081-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | Turn on the smart battery config. BUG=b:213410761 TEST=zmake configure -b nivviks BRANCH=none Signed-off-by: Andrew McRae <amcrae@google.com> Change-Id: I6eb3302b57b8bafabc1cb363cb288a5266fa2151 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3372125 Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
| * zephyr test: PD charger integration test skeletonAbe Levkoy2022-01-071-0/+66
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The initial outline for an integration test: Emulate attaching a PD charger. Verify that PD negotiation completes and starts charging at the negotiated power. BUG=b:209907297 TEST=zmake configure --test zephyr/test/drivers BRANCH=none Change-Id: I47fdec548a6625a850ea4578353e572e5130ed55 Signed-off-by: Abe Levkoy <alevkoy@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3359842 Reviewed-by: Jack Rosenthal <jrosenth@chromium.org> Commit-Queue: Jack Rosenthal <jrosenth@chromium.org>
| * zephyr: Add trickle charging option for chargerAndrew McRae2022-01-072-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a trickle charging option that is enabled by selected chargers. BUG=b:213410761 TEST=zmake testall BRANCH=none Signed-off-by: Andrew McRae <amcrae@google.com> Change-Id: I607739fda0ef6fdd09143f84b7e734389fe2c66c Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3372124 Reviewed-by: Jack Rosenthal <jrosenth@chromium.org> Commit-Queue: Jack Rosenthal <jrosenth@chromium.org>
| * brya: Update console channel used for cbiDivya Sasidharan2022-01-072-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is needed to ensure the console print for cbi does not depend on chipset task to be enabled. BUG=b:203446068 BRANCH=main TEST=make buildall & zephyr testall, console prints verified. Signed-off-by: Divya Sasidharan <divya.s.sasidharan@intel.com> Change-Id: I221aff2c99fe708487907fdf49a3cf5bb92612c8 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3370941 Reviewed-by: Vijay P Hiremath <vijay.p.hiremath@intel.com> Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Keith Short <keithshort@chromium.org>
| * zephyr: Add project configuration documentationJack Rosenthal2022-01-071-0/+174
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add some initial documentation focused around the config formats (BUILD.py, CMakeLists.txt, and Kconfig), and how to use this configuration to add a new program or variant. BUG=b:193815337,b:180609783 BRANCH=none TEST=view in Gitiles Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Change-Id: I3a18793fbd2e3b15dd29119b407f71962eb87482 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3256037 Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Keith Short <keithshort@chromium.org>
| * adlrvp: Reconfigure battery to 2s based at runtimepoornima tom2022-01-075-56/+74
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Default battery configuration for ADL-P based sku is 3S based. Reconfiguration to 2s based battery configuration at runtime for ADL M/N based RVPs can help in enabling single binary for all ADL based skus, irrespective of it's differences. BUG=b:194163586 BRANCH=none TEST=verified on ADL-P,M&N to get correct battery info Signed-off-by: poornima tom <poornima.tom@intel.com> Change-Id: I94eb45dbae7ad8c67e2aa6f0142e166a22ad1a0b Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3220899 Reviewed-by: Vijay P Hiremath <vijay.p.hiremath@intel.com> Reviewed-by: Keith Short <keithshort@chromium.org>
| * config: Add CONFIG_BATTERY_NO_AUTO_DETECT optionpoornima tom2022-01-075-28/+112
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There are some battery types which cannot be identified by normal manufacturing name or device name. For devices, which uses this type of batteries can be configured with CONFIG_BATTERY_NO_AUTO_DETECT to indicate the same. Based on this config, the idea is to set the correct battery type at runtime and then use the manufacturing or device name to identify the battery later. The motivation of this change is to have a single binary for multiple platforms that have different battery configuration. BUG=b:194163586 BRANCH=none TEST=make buildall -j Signed-off-by: poornima tom <poornima.tom@intel.com> Change-Id: I488ca3d72250311630724381a8cfeb52d8dad657 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3216893 Reviewed-by: Keith Short <keithshort@chromium.org>
| * zephyr: brya: Enable mkbp protocolRajesh Kumar2022-01-071-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | This enables MKBP protocol based communication from EC to AP. BUG=b:212210652 BRANCH=none TEST=make configure -B ~/tmp/brya/ brya -b Signed-off-by: Rajesh Kumar <rajesh3.kumar@intel.com> Change-Id: Ie80da285f613b7c34f057e66a970450eeadc64f4 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3358855 Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
| * zephyr: it8xxx2: set default hook tick intervalKeith Short2022-01-071-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Set the default HOOK_TICK_INTERVAL for all projects based on the it8xxx2 zephyr board to match the cros-ec setting (500ms). This reduces power consumption. BUG=none BRANCH=b:192354255 TEST=zmake tesall Change-Id: I1d7fc8d046a6b307d7daa6c4f6289e04fc9df818 Signed-off-by: Keith Short <keithshort@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3373381 Reviewed-by: Denis Brockus <dbrockus@chromium.org> Commit-Queue: Denis Brockus <dbrockus@chromium.org>
| * zephyr: Add new config to log console msgsJeremy Bettis2022-01-073-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add new config CONFIG_PLATFORM_EC_CONSOLE_DEBUG, which if enabled will log all zephyr_print() messages (generally console logs), to printk also. Enable CONFIG_PLATFORM_EC_CONSOLE_DEBUG in drivers test. BRANCH=None BUG=None TEST=zmake -l DEBUG -j 1 configure --test zephyr/test/drivers Signed-off-by: Jeremy Bettis <jbettis@google.com> Change-Id: I18c179ecdb90998a57c67ff71ef7369015de623c Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3370950 Tested-by: Jeremy Bettis <jbettis@chromium.org> Auto-Submit: Jeremy Bettis <jbettis@chromium.org> Reviewed-by: Abe Levkoy <alevkoy@chromium.org> Commit-Queue: Abe Levkoy <alevkoy@chromium.org>
| * docs/navbar: Update issue tracker linkTom Hughes2022-01-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | BRANCH=none BUG=none TEST=view in gitiles Signed-off-by: Tom Hughes <tomhughes@chromium.org> Change-Id: Ic8d4544ae2de5321ec45597d66e9252d0748bf62 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3369649 Reviewed-by: Denis Brockus <dbrockus@chromium.org> Commit-Queue: Denis Brockus <dbrockus@chromium.org>
| * Duck: set up vivaldi keyboard layoutSue Chen2022-01-071-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | This CL implements vivaldi function row config for duck keyboard. BUG=none BRANCH=trogdor TEST=make sure that all top row keys work correctly. Signed-off-by: Sue Chen <sue.chen@quanta.corp-partner.google.com> Change-Id: I319b68c8758283bd3f0eef73888d48b19470226b Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3364060 Reviewed-by: Ting Shen <phoenixshen@chromium.org>
| * vell: Add keyboard LEDs enablingDevin Lu2022-01-072-1/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch re-allocating GPIO80 to turning on keyboard LEDs and turns on keyboard LEDs power on S0. Turn off on S5/G3. BUG=b:203664745 BRANCH=none TEST=Verify the pin is ON on S0 and OFF on S5/G3. Signed-off-by: Devin Lu <Devin.Lu@quantatw.com> Change-Id: If2c7bc5d92027578b1e1fa33fa92e3de9a11d6df Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3367360 Reviewed-by: caveh jalali <caveh@chromium.org>
| * bugzzy : change LCD MAX current setting on MP3372YongBeum.Ha2022-01-072-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In order to meet the specification of LCD brightness, it is necessary to set the current value of the LCD controller. BUG=b:202344727 BRANCH=None TEST=make -j BOARD=bugzzy Signed-off-by: YongBeum.Ha <ybha@samsung.corp-partner.google.com> Change-Id: I49a52c8cf813921bcf92580436dbb635aa9ee6ed Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3372130 Reviewed-by: Henry Sun <henrysun@google.com> Commit-Queue: Henry Sun <henrysun@google.com>
| * taniks: update chg profile for protectiontony.tang2022-01-071-1/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Refer b:210073795 comment#13. LCFC power team would like to update prochot setting to enhance protection policy because the battery's min. voltage is too closing PPVAR 5V. BRANCH=none BUG=b:210073795 TEST=make buildall -j Signed-off-by: tony.tang <tony.tang@lcfc.corp-partner.google.com> Change-Id: Id671696bd395e18f23ac885a9947c2150e94b58c Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3367733 Reviewed-by: caveh jalali <caveh@chromium.org> Commit-Queue: caveh jalali <caveh@chromium.org>
| * zephyr: kingler: enable host commandEric Yilun Lin2022-01-072-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | BUG=b:203739613 TEST=hostcommand is working at AP<->EC BRANCH=main Change-Id: I87e98dccb3156c5134c565cc7b8632b76f76cab0 Signed-off-by: Eric Yilun Lin <yllin@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3302220 Reviewed-by: Ting Shen <phoenixshen@chromium.org> Commit-Queue: Eric Yilun Lin <yllin@google.com> Tested-by: Eric Yilun Lin <yllin@google.com> Auto-Submit: Eric Yilun Lin <yllin@google.com>
| * zephyr: add TUSB1044 driver supportTing Shen2022-01-071-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add TUSB1044 support in makefile. (Kconfig already exists so it's not included in this CL) BUG=b:210972023 TEST=`typec 1` on krabby and verify mux state: `USB=1 DP=0 POLARITY=NORMAL` BRANCH=none Signed-off-by: Ting Shen <phoenixshen@google.com> Change-Id: Icc7f06f20fe086003bbae05344c82e6b35754137 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3359069 Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Ting Shen <phoenixshen@chromium.org> Tested-by: Ting Shen <phoenixshen@chromium.org>
| * corsola: enable mt8186 powerseqTing Shen2022-01-077-64/+82
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This CL enables mt8186 power sequence on Corsola devices. BUG=b:206338930, b:203739613 TEST=1) zmake krabby/kingler 2) See CL:3233783 for more detailed tests BRANCH=none Cq-Depend: chromium:3233783 Signed-off-by: Ting Shen <phoenixshen@google.com> Change-Id: I5c5e34034ca605797c6995769a888b4eb6ed201d Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3366102 Tested-by: Ting Shen <phoenixshen@chromium.org> Auto-Submit: Ting Shen <phoenixshen@chromium.org> Reviewed-by: Eric Yilun Lin <yllin@google.com> Commit-Queue: Ting Shen <phoenixshen@chromium.org>
| * power: add mt8186 power sequenceTing Shen2022-01-077-0/+463
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | MT8186 power sequence is a simplified version of 8192/95. EC does not lie between AP and PMIC, so there's no need to forward the signals. Other logics are almost the same. BUG=b:206338930 TEST=Test following items on krabby CL:3233784 * Cold reset: $ dut-control cold_reset:on sleep:0.2 cold_reset:off Result: G3 -> S0 * Long power press to shutdown: $ dut-control 'ec_uart_cmd:powerbtn 8200' Result: S0 -> S5 -> G3 * Long power press to power-on but then shutdown: $ dut-control 'ec_uart_cmd:powerbtn 8200' Result: G3 -> S0 -> S5 -> G3 * Short power press to power-on: $ dut-control 'ec_uart_cmd:powerbtn 200' Result: G3 -> S0 * Console command: apreset Result: S0 -> S5 -> S0, AP reboots * Console command: apshutdown Result: S0 -> S5 -> G3 * Lid open to power-on: $ dut-control lid_open:no sleep:0.2 lid_open:yes Result: G3 -> S0 BRANCH=none Cq-Depend: chromium:3366102 Signed-off-by: Ting Shen <phoenixshen@google.com> Change-Id: Iebfe77c8f6d127ee4d0685903b67afd215ca6682 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3233783 Reviewed-by: Eric Yilun Lin <yllin@google.com> Tested-by: Ting Shen <phoenixshen@chromium.org> Commit-Queue: Ting Shen <phoenixshen@chromium.org>
| * Scout: update fan_rpmSue Chen2022-01-071-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fan_rpm: rpm_min = 2400 rpm_start = 2400 rpm_max = 5300 BUG=b:195602767, b:210821390 BRANCH=puff TEST=thermal test pass Signed-off-by: Sue Chen <sue.chen@quanta.corp-partner.google.com> Change-Id: I7e46a08e2ad4ef0c759e3dfedb516246774967e4 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3367716 Reviewed-by: Joe Tessler <jrt@chromium.org>
| * Quackingstick: Detect pen input and charge itSue Chen2022-01-073-2/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use PEN_DETECT to detect if the pen input and pull PEN_PWR_EN to charge/discharge the pen. BUG=b:205163599 BRANCH=trogdor TEST="make BOARD=quackingstick" pass Signed-off-by: Sue Chen <sue.chen@quanta.corp-partner.google.com> Change-Id: I5a3392c8f88ad372fc8e043fb24eb5cac3adaa86 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3351428 Reviewed-by: Bob Moragues <moragues@chromium.org> Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
| * taniks: GPIO setting for KSIParth Malkan2022-01-071-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Configure GPIO pins for KSI KB module BUG=b:213505004 BRANCH=none TEST=make buildall -j Signed-off-by: Parth Malkan <parthmalkan@google.com> Change-Id: I3eb96013c6a5198e03d654c0f38829cafc822181 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3370578 Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org> Reviewed-by: Arthur Lin <arthur.lin@lcfc.corp-partner.google.com>
| * draco: remove unnecessary functionZick Wei2022-01-077-288/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove board id different, ioexpander, bb retimer related code, draco without those design. BUG=b:210970640 BRANCH=none TEST=make BOARD=draco Signed-off-by: Zick Wei <zick.wei@quanta.corp-partner.google.com> Change-Id: I337112bababc6196f8ff55a5a770a2646443dbf1 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3361057 Reviewed-by: Boris Mittelberg <bmbm@google.com> Reviewed-by: caveh jalali <caveh@chromium.org>
| * draco: remove imu and ALS sensorsZick Wei2022-01-075-263/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Draco is clamshell device without ALS, remove those code from EC. BUG=b:210970640 BRANCH=none TEST=make BOARD=draco Signed-off-by: Zick Wei <zick.wei@quanta.corp-partner.google.com> Change-Id: I395b0ccdddf5fe99697b98d1d2c7da0958f2b250 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3359155 Reviewed-by: caveh jalali <caveh@chromium.org>
| * draco: add battery supportZick Wei2022-01-072-29/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | BUG=b:212645255 BRANCH=none TEST=make BOARD=draco Signed-off-by: Zick Wei <zick.wei@quanta.corp-partner.google.com> Change-Id: I38fd9629beed91a342525fa2ef8162af21644144 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3357975 Reviewed-by: Devin Lu <Devin.Lu@quantatw.com> Reviewed-by: Boris Mittelberg <bmbm@google.com> Reviewed-by: caveh jalali <caveh@chromium.org>
| * zephyr: Add tests for fw_config support and normalize some names.Andrew McRae2022-01-074-24/+71
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add tests for fw_config support, and normalise some common names for matching "compatible" bindings to support tests. BUG=b:212490923 TEST=zmake configure --test zephyr/test/drivers; zmake testall BRANCH=none Signed-off-by: Andrew McRae <amcrae@google.com> Cq-Depend: chromium:3367729 Change-Id: I245207ce0674f40a81e9c9fdbe7c9c2d4105a4fb Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3367734 Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
| * zephyr: Simplify naming of fw_config fields and valuesAndrew McRae2022-01-071-38/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Do not construct enum names, but instead use just the name from the enum-name property directly. It is up to whoever is adding the DTS to ensure that the enum names are unique. BUG=b:212758472 TEST=zmake testall; zmake configure -b nivviks BRANCH=none Signed-off-by: Andrew McRae <amcrae@google.com> Change-Id: If6a54654d583fba33607e56db63ada92b6f8b74a Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3367729 Reviewed-by: Tristan Honscheid <honscheid@google.com>
| * zephyr: it8xxx2_evb: enable power management configurationTim Lin2022-01-061-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Enable power management configuration. BUG=b:192354255 BRANCH=none TEST=zmake testall TEST=measure the current value of it8xxx2_evb: Doze: ~5mA Deep doze: ~0.3mA Hibernate: ~0.05mA Note: To achieve this measurement current, the following configuration is required. 1. Enable CONFIG_PLATFORM_EC_KEYBOARD(KSO and KSI are internal pulled up in cros_kb_raw_ite_init). 2. The setting mentioned in CL:3367358 commit message is necessary. Signed-off-by: Tim Lin <tim2.lin@ite.corp-partner.google.com> Change-Id: If644af086cf1f9aafeec71518f725589f0a6b406 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3162475 Reviewed-by: Denis Brockus <dbrockus@chromium.org> Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Keith Short <keithshort@chromium.org>
| * guybrush: Correctly set IOEX_USB_C1_IN_HPDRob Barnes2022-01-063-4/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | IOEX_USB_C1_IN_HPD was not being correctly set in board_c1_ps8818_mux_set. Code from Zork was incorrectly copied and changed to set the HPD signal to the SOC instead of the HPD signal to the PS8818 retimer. According to the PS8818 datasheet, asserting IN_HPD will pull PS8818 out of DP Idle mode. BUG=b:212640973 BRANCH=None TEST=C1 to HDMI works on Nipperkin Change-Id: I477e2f534dbddc4fa8771d4c2bf830d5c9e89d9c Signed-off-by: Rob Barnes <robbarnes@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3368353 Reviewed-by: Diana Z <dzigterman@chromium.org>
| * draco: change charger to isl9241Zick Wei2022-01-064-8/+94
| | | | | | | | | | | | | | | | | | | | | | | | BUG=b:210970640 BRANCH=none TEST=make BOARD=draco Signed-off-by: Zick Wei <zick.wei@quanta.corp-partner.google.com> Change-Id: Id143746ffc47d95e6fd9715b76c26fa392a06ff0 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3354205 Reviewed-by: Boris Mittelberg <bmbm@google.com> Commit-Queue: Boris Mittelberg <bmbm@google.com>
| * zephyr: it8xxx2_evb: adjust hook tick intervalTim Lin2022-01-061-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The hook tick interval refers to the setting of it8xxx2 of CROS adjusted to 500ms(default:250ms). BUG=b:192354255 BRANCH=none TEST=zmake testall Signed-off-by: Tim Lin <tim2.lin@ite.corp-partner.google.com> Change-Id: I79bcfadca10dc550527aa40c7448479bade0d5bd Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3367359 Reviewed-by: Denis Brockus <dbrockus@chromium.org> Reviewed-by: Keith Short <keithshort@chromium.org> Commit-Queue: Keith Short <keithshort@chromium.org>