summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* keyboard: Use __override for keyboard_scan_configDaisuke Nojiri2021-07-23117-168/+128
| | | | | | | | | | | | | | | | | Currently keyboard_scan_config is defined by each board using CONFIG_KEYBOARD_BOARD_CONFIG. This patch makes it defined as __override hence removes CONFIG_KEYBOARD_BOARD_CONFIG. BUG=None BRANCH=None TEST=buildall Change-Id: I53a356741ba4d00e829ca59b74ee6dc704188728 Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3044403 Tested-by: Gwendal Grignou <gwendal@chromium.org> Commit-Queue: Gwendal Grignou <gwendal@chromium.org> Reviewed-by: Gwendal Grignou <gwendal@chromium.org>
* Homestar:BACKLIGHT:Remove CONFIG_BACKLIGHT_LIDtongjian2021-07-231-0/+8
| | | | | | | | | | | | | | | Because of the oled panel poweron timing, BL_DISABLE does not need to be controlled by ec. BUG=b:194197448 TEST=make -j BOARD=homestar Verify build on SIT board BRANCH=Trogdo Signed-off-by: tongjian <tongjian@huaqin.corp-partner.google.com> Change-Id: I1723f7def2c9358b137cfe813094b54a1a3974e6 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3045418 Reviewed-by: Wai-Hong Tam <waihong@google.com>
* dirinboz: remove imu sensorsZick Wei2021-07-234-132/+1
| | | | | | | | | | | | | | Dirinboz is a clamshell only device, not use imu sensors. BUG=b:174240357 BRANCH=zork TEST=can power on DUT normally. Signed-off-by: Zick Wei <zick.wei@quanta.corp-partner.google.com> Change-Id: I56202d92da86b5da2919d3e285ce953f568aad5f Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3017902 Reviewed-by: Peter Marheine <pmarheine@chromium.org> Reviewed-by: Devin Lu <Devin.Lu@quantatw.com>
* zephyr: Remove CONFIG options from allow listDino Li2021-07-231-2/+0
| | | | | | | | | | | | | | | | | | | | | | | Congratulations! The following options are now in Kconfig: CONFIG_HOSTCMD_REGULATOR CONFIG_SMBUS_PEC Config removed with './util/build_allowed.sh -u' Removing these CONFIG options from the allowed list: CONFIG_HOSTCMD_REGULATOR CONFIG_SMBUS_PEC BRANCH=none BUG=none TEST=buildall Signed-off-by: Dino Li <Dino.Li@ite.com.tw> Change-Id: Ib12637f9e9d25db3af951a7a12989d334e6a1c5d Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3045035 Reviewed-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-by: Denis Brockus <dbrockus@chromium.org>
* zephyr: asurada: enable voltage regulatorDino Li2021-07-234-1/+6
| | | | | | | | | | | | | | | Fixed error of host commands (0x12c~0x130) for controlling voltage regulator. BUG=b:189855648 BRANCH=none TEST=Verified that no error on regulator host commands. (verified on both cros-ec and zephyr fw image) Change-Id: Ib7c5782e80262a38be0517181afbd78160847040 Signed-off-by: Dino Li <Dino.Li@ite.com.tw> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3007380 Reviewed-by: Denis Brockus <dbrockus@chromium.org>
* zephyr: add support for CONFIG_SMBUS_PECDino Li2021-07-232-0/+17
| | | | | | | | | | | | | Add Kconfig option to enable packet error checking of SMBus. BUG=b:189855648 BRANCH=none TEST=zmake testall Signed-off-by: Dino Li <Dino.Li@ite.com.tw> Change-Id: Iec9f318aebed97f28e199054aae558bb8a500d52 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3045034 Reviewed-by: Denis Brockus <dbrockus@chromium.org>
* zephyr: add support for CONFIG_HOSTCMD_REGULATORDino Li2021-07-232-0/+12
| | | | | | | | | | | | | Add Kconfig option to enable host command of voltage regulator control. BRANCH=none BUG=b:189855648 TEST=zmake testall Signed-off-by: Dino Li <Dino.Li@ite.com.tw> Change-Id: I3cb8a875f8354f4223d31e2d54319f0fb2690b5b Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3045033 Reviewed-by: Denis Brockus <dbrockus@chromium.org>
* genesis: update usb-a gpios, remove dead codeJeff Chase2021-07-233-73/+19
| | | | | | | | | | | | | | | | Genesis only has three USB-A ports so update GPIOs and power handling. Also remove unused thermal table. BRANCH=puff BUG=b:192008266 TEST=boot; charge phone on each USB port, monitor GPIOs Change-Id: Ie3e5991f41caffa0b0a55adfd293e03befa80ce5 Signed-off-by: Jeff Chase <jnchase@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3045536 Reviewed-by: Joe Tessler <jrt@chromium.org> Commit-Queue: Joe Tessler <jrt@chromium.org>
* gimble: fix GPIOE1 gpio configurationScott Chao2021-07-221-1/+0
| | | | | | | | | | | BUG=b:194269211 BRANCH=none TEST=make -j BOARD=gimble Signed-off-by: Scott Chao <scott_chao@wistron.corp-partner.google.com> Change-Id: I8182d04cf283753dbf388a4fb30a3983fc0fe557 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3038421 Reviewed-by: Boris Mittelberg <bmbm@google.com>
* gimble: add tcpc0 resetScott Chao2021-07-222-9/+13
| | | | | | | | | | | BUG=b:194260437 BRANCH=none TEST=make -j BOARD=gimble Signed-off-by: Scott Chao <scott_chao@wistron.corp-partner.google.com> Change-Id: I35b8261aa486548f20a9d991f94008656c0c006b Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3034795 Reviewed-by: caveh jalali <caveh@chromium.org>
* gimble: enable CONFIG_BRINGUP during bringupScott Chao2021-07-221-0/+3
| | | | | | | | | | | BUG=b:192286098 BRANCH=none TEST=make -j BOARD=gimble Signed-off-by: Scott Chao <scott_chao@wistron.corp-partner.google.com> Change-Id: Ibcd487331e70644da2b0aeb635acc05098dd8a69 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3038081 Reviewed-by: Boris Mittelberg <bmbm@google.com>
* zephyr: i2c: protect physical portDino Li2021-07-225-0/+71
| | | | | | | | | | | | | | | | | | If i2c devices are connected to the same port, they should use the same mutex_lock() index. So the new transaction won't break the ongoing transaction. BRANCH=none BUG=b:189855648 TEST=Enable CONFIG_SMBUS_PEC and voltage regulator function on asurada. No i2c transaction is broken. Change-Id: Ib848e3c2e60b99ce66ad5fd2fc7095f90820a15d Signed-off-by: Dino Li <Dino.Li@ite.com.tw> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3010920 Reviewed-by: Jack Rosenthal <jrosenth@chromium.org> Reviewed-by: Denis Brockus <dbrockus@chromium.org> Commit-Queue: Denis Brockus <dbrockus@chromium.org>
* brya: Remove pd_snk_is_vbus_providedCaveh Jalali2021-07-221-5/+0
| | | | | | | | | | | | | | | | The pd_snk_is_vbus_provided() function is only used when CONFIG_USB_PD_VBUS_DETECT_PPC is enabled. brya uses CONFIG_USB_PD_VBUS_DETECT_TCPC instead. BRANCH=none BUG=none TEST=buildall passses Signed-off-by: Caveh Jalali <caveh@chromium.org> Change-Id: If5a93025d6e870deb46717863c61c3d34be0283a Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3044413 Reviewed-by: Boris Mittelberg <bmbm@google.com> Commit-Queue: Boris Mittelberg <bmbm@google.com>
* zephyr: Remove NPCX dependency from shim/src/espi.cYuval Peress2021-07-227-6/+153
| | | | | | | | | | | | | | | | Allow building the zephyr/shim/src/espi.c for other SOCs by adding inline functions to abstract away these concepts. Each SOC should then implement these under the zephyr/shim/chip/<soc> specific directory. BRANCH=none BUG=b:189954415 TEST=zmake testall Signed-off-by: Yuval Peress <peress@chromium.org> Change-Id: I776bd65326b509ada3b271177ae727a32d4f96da Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3044400 Reviewed-by: Denis Brockus <dbrockus@chromium.org>
* taeko: replace board name to "Taeko"stabilize-14106.B-mainamber.chen2021-07-2210-23/+23
| | | | | | | | | | | BUG=b:193377622 BRANCH=main TEST=make BOARD=taeko Signed-off-by: amber.chen <amber.chen@lcfc.corp-partner.google.com> Change-Id: Ic0fd57ed60ca6872adda3d626b2ca4012d840444 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3040938 Reviewed-by: Boris Mittelberg <bmbm@google.com>
* ppc/nx20p348x: Initialize device control regCaveh Jalali2021-07-221-0/+5
| | | | | | | | | | | | | | | | This initializes the Device Control Register (0x0b) to its power-on reset value. This chip is not connected to the system reset signal, so we need to explicitly set registers to their power-on reset value so we start from the same configuration when we reboot as we do on system power on. BRANCH=none BUG=b:193211352 TEST=charging from another chromebook is reliable now Signed-off-by: Caveh Jalali <caveh@chromium.org> Change-Id: I82ce3fd624091b89668a682cb8748af171552d72 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3044412
* ppc/nx20p348x: Disable VBUS discharge in sink modeCaveh Jalali2021-07-221-4/+26
| | | | | | | | | | | | | | | | | This explicitly disables VBUS discharge when entering sink mode. According to the vendor, keeping VBUS discharge enabled can cause some noise and that explains some of the instability we had observed when charging from another chromebook and 5V3A charger. BRANCH=none BUG=b:193211352 TEST=charging from another chromebook is reliable now Signed-off-by: Caveh Jalali <caveh@chromium.org> Change-Id: I117dd3f7f9efddce00f903c2b290fa85c6052c5d Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3044411 Reviewed-by: Denis Brockus <dbrockus@chromium.org> Commit-Queue: Denis Brockus <dbrockus@chromium.org>
* cappy2:initial ECwangganxiang2021-07-227-824/+259
| | | | | | | | | | | | | | | create Cappy2 BUG=b:191718716 BRANCH=Keeby TEST=make BOARD=cappy2 pass Signed-off-by: wangganxiang <wangganxiang@huaqin.corp-partner.google.com> Change-Id: Id374b76eb020d429c5281ed6e9b7d1d7050c62d0 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3020642 Reviewed-by: Mike Lee <mike5@huaqin.corp-partner.google.com> Reviewed-by: Aseda Aboagye <aaboagye@chromium.org> Commit-Queue: Aseda Aboagye <aaboagye@chromium.org>
* Homestar:LED:Modify the behavior of the LED to always be off in dischargingtongjian2021-07-221-15/+2
| | | | | | | | | | | | | BUG=b:187539586 TEST=make -j BOARD=homestar Verify build on DVT board BRANCH=Trogdor Signed-off-by: tongjian <tongjian@huaqin.corp-partner.google.com> Change-Id: I3063ca561726c9a33a1ecd1b5f69d96d94576f52 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3043762 Reviewed-by: Wenchao Han <hanwenchao@huaqin.corp-partner.google.com> Reviewed-by: Wai-Hong Tam <waihong@google.com>
* util: Add volteer relevant pathsAbe Levkoy2021-07-221-0/+15
| | | | | | | | | | | | | | | | List relevant commits when constructing volteer branch merge commit messages. BUG=none TEST=none BRANCH=none Signed-off-by: Abe Levkoy <alevkoy@chromium.org> Change-Id: Ibac403353a40055798323b20a9333c757ec305c9 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3044138 Reviewed-by: Zhuohao Lee <zhuohao@chromium.org> Commit-Queue: Zhuohao Lee <zhuohao@chromium.org> Tested-by: Zhuohao Lee <zhuohao@chromium.org>
* flash_fp_mcu: Fix nocturne/nami kernelnextCraig Hesling2021-07-221-11/+69
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Nocturne and Nami are legacy kernel v4.4 devices. The spidev char device naming changed between their v4.4 and newer v5.4. Since these devices have a kernelnext build+tests, we need an alternative configuration that uses the new spidev name. This is achieved by allowing for specific alt configs that match the full platform name, like "nami-kernelnext". If a config is not provided for the full platform name, it will fallback to using the normal base config name, like "nami". BRANCH=none BUG=b:194004525 TEST=# Run the following commands on a nocturne, nocturne-kernelnext, # nami, nami-kernelnext, and hatch setups. # # Note, you get a kernelnext setup by flashing the base platform # device with an xbuddy line similar to # xbuddy://remote/nami-kernelnext/latest-dev/test scp util/flash_fp_mcu ${DUT_HOSTNAME}:/usr/local/bin/flash_fp_mcu ssh ${DUT_HOSTNAME} flash_fp_mcu --hello # Check that full platform name and base name was identified # correctly. # Check that it succeeded. Signed-off-by: Craig Hesling <hesling@chromium.org> Change-Id: Ib2ad991291639ef33799abb4bc3379c1659f754d Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3035686 Reviewed-by: Jora Jacobi <jora@google.com>
* gimble: downspeed tcpc i2c speedScott Chao2021-07-221-1/+9
| | | | | | | | | | | BUG=b:194260437 BRANCH=none TEST=make -j BOARD=gimble Signed-off-by: Scott Chao <scott_chao@wistron.corp-partner.google.com> Change-Id: I6e5c34a5c2bc14316fa55c80c8c3de5140aa692e Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3034793 Reviewed-by: Boris Mittelberg <bmbm@google.com>
* gimble: correct i2c port assignmentScott Chao2021-07-221-2/+2
| | | | | | | | | | | BUG=b:194260437 BRANCH=none TEST=make -j BOARD=gimble Signed-off-by: Scott Chao <scott_chao@wistron.corp-partner.google.com> Change-Id: Idfb2ae1391de15e20a8731d13a6f79a3da8c3e18 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3034792 Reviewed-by: caveh jalali <caveh@chromium.org>
* Guybrush: Enable CONFIG_BACKLIGHT_LIDDiana Z2021-07-211-0/+5
| | | | | | | | | | | | | | | | | Guybrush has the GPIO set up for backlight disable, but doesn't have the config set and so we're not compiling in the code to actually disable backlight on lid close. BRANCH=None BUG=b:194326578 TEST=on guybrush, open and boot to confirm backlight is on. Close with the system in S0 and confirm it goes off Signed-off-by: Diana Z <dzigterman@chromium.org> Change-Id: If707525d9f4bb98a577f75e7017beae03638726c Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3044410 Reviewed-by: Rob Barnes <robbarnes@google.com> Commit-Queue: Rob Barnes <robbarnes@google.com>
* Guybrush: Add EC_ENTERING_RW signalDiana Z2021-07-212-1/+2
| | | | | | | | | | | | | | | | | Add this signal as it is present on more recent board versions. This should be fine on older board versions since it was a TP pin previously. BRANCH=None BUG=b:194320972 TEST=make -j buildall Signed-off-by: Diana Z <dzigterman@chromium.org> Change-Id: I839027fecaac8d47992ae262f334c88c8a7311a7 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3044406 Reviewed-by: Rob Barnes <robbarnes@google.com> Reviewed-by: Karthikeyan Ramasubramanian <kramasub@chromium.org> Commit-Queue: Rob Barnes <robbarnes@google.com> Commit-Queue: Karthikeyan Ramasubramanian <kramasub@chromium.org>
* guybrush: Use correct index for tmp112 SOCRob Barnes2021-07-213-3/+3
| | | | | | | | | | | | | | | This change fixes a bug where ADC_TEMP_SENSOR_SOC index was used in for the TMP112 SOC instead of TMP112_SOC BUG=b:176994331 BRANCH=None TEST=Check output of temps Change-Id: Ic27e38f5d4dfee3b270fe8490787575cf4cc7568 Signed-off-by: Rob Barnes <robbarnes@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3002883 Commit-Queue: Diana Z <dzigterman@chromium.org> Reviewed-by: Diana Z <dzigterman@chromium.org>
* zephyr: herobrine: Switch to use BMI260 sensor driverWai-Hong Tam2021-07-213-13/+13
| | | | | | | | | | | | | Switch the base accel/gyro sensor from BMI160 to BMI260. BRANCH=None BUG=b:194194887 TEST=Built the herobrine_npcx9 image successfully. Change-Id: I459e58a76acc9a5c986f08de711c0227adca63c3 Signed-off-by: Wai-Hong Tam <waihong@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3042987 Reviewed-by: Yuval Peress <peress@chromium.org>
* zephyr: motionsense: Add default value of default-rangeWai-Hong Tam2021-07-214-0/+12
| | | | | | | | | | | | | | | | The default range is a chip-specific property. The same motionsense chip use the same setting and rarely changes. Add the value as the default property. So the project dts can neglect this property. Easy to switch chip without bothering to change this property. BRANCH=None BUG=b:194194887 TEST=Built the delbin and hayato images successfully. Change-Id: I856f0b93af67974f29800551f7da779b43facc55 Signed-off-by: Wai-Hong Tam <waihong@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3042986 Reviewed-by: Yuval Peress <peress@chromium.org>
* zephyr: motionsense: Add default value of i2c-spi-addr-flagsWai-Hong Tam2021-07-213-3/+3
| | | | | | | | | | | | | | | Make the property consistent across different sensors: * not required * default to a common I2C address BRANCH=None BUG=b:194194887 TEST=Built the delbin and hayato images successfully. Change-Id: I7784176e6d09e883b9ef957311aba610d3e69597 Signed-off-by: Wai-Hong Tam <waihong@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3042985 Reviewed-by: Yuval Peress <peress@chromium.org>
* zephyr: test: drivers: Move headers to include/ directoryYuval Peress2021-07-213-1/+1
| | | | | | | | | | | | | | Declutter the test directory and follow existing established pattern of src/ and include/ directories. BRANCH=none BUG=none TEST=zmake configure --test zephyr/test/drivers Signed-off-by: Yuval Peress <peress@chromium.org> Change-Id: I5daf54a950d6fb830414da0b55a8d85732cffa4f Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3043364 Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
* it83xx: pwm: fix wrong index of pwm_channelsDino Li2021-07-211-3/+3
| | | | | | | | | | | | | BRANCH=none BUG=b:194047863 TEST=On spherion, no keyboard backlight blinking. Signed-off-by: Dino Li <Dino.Li@ite.com.tw> Change-Id: I847291268720bf12ca98b3e38e29a556ec038cd0 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3043075 Tested-by: Ben Chen <ben.chen2@quanta.corp-partner.google.com> Reviewed-by: Ting Shen <phoenixshen@chromium.org> Reviewed-by: Eric Yilun Lin <yllin@google.com>
* common/build.mk: drop duplicate rules.Eric Yilun Lin2021-07-211-4/+0
| | | | | | | | | | | | | | | | The rule has been added in the Makefile.rules already. BUG=none TEST=make don't complain BRANCH=none Change-Id: I7af66c23ff8cad775e89330d5d1849a4aa91069e Signed-off-by: Eric Yilun Lin <yllin@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2999361 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: Eric Yilun Lin <yllin@google.com>
* storo: add 2nd accel source KX022mike2021-07-212-0/+43
| | | | | | | | | | | | | | | | | Add 2nd lid accel source KX022 BUG=b:188373186 BRANCH=dedede TEST=make BOARD=storo 1. Set CBI SSFC 0x11 and use command "ectool motionsense" for sensor kx022 2. test factory test pass Signed-off-by: mike <mike5@huaqin.corp-partner.google.com> Change-Id: Ibba58d53cf6fbfa35ba0c8e7fe73d4ebfdb9e7c8 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3037288 Reviewed-by: Aseda Aboagye <aaboagye@chromium.org> Commit-Queue: Aseda Aboagye <aaboagye@chromium.org>
* storo: remove base sensor of clamshell boardMike Lee2021-07-212-12/+48
| | | | | | | | | | | | | | | according to OEM request, we will remove base sensor for clamshell baord in DVT2 state. BUG=b:193314277 BRANCH=dedede TEST=make BOARD=storo pass, and test rework board OK. Signed-off-by: Mike Lee <mike5@huaqin.corp-partner.google.com> Change-Id: Iefc965f468529e48c521c600f3edd98fabb1cdff Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3016494 Reviewed-by: Aseda Aboagye <aaboagye@chromium.org> Commit-Queue: Aseda Aboagye <aaboagye@chromium.org>
* herobrine_npcx9: Switch to use BMI260 sensor driverWai-Hong Tam2021-07-213-15/+15
| | | | | | | | | | | | | Switch the base accel/gyro sensor from BMI160 to BMI260. BRANCH=None BUG=b:194194887 TEST=Built the herobrine_npcx9 image successfully. Change-Id: I45b5ba072a787ae53f5f5158701dd61cb0c0410f Signed-off-by: Wai-Hong Tam <waihong@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3042984 Reviewed-by: Stephen Boyd <swboyd@chromium.org>
* cleanup: Fix Dynapack stringDevin Lu2021-07-2124-69/+69
| | | | | | | | | | | | | | | The naming string should be DYNAPACK. BUG=none BRANCH=none TEST=make buildall Signed-off-by: Devin Lu <Devin.Lu@quantatw.com> Change-Id: I32f2498d4e51a83bd323d313a862622b6e69967d Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3038017 Reviewed-by: Tommy Chung <tommy.chung@quanta.corp-partner.google.com> Reviewed-by: caveh jalali <caveh@chromium.org> Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
* redrix: Configure Motion SensorsDevin Lu2021-07-214-44/+33
| | | | | | | | | | | | | | | Regarding the lid accelerometer, change to Bosch BMA253 and remove the interrupt pin. And the base accelerometer changed to LSM6DSLU. BUG=b:193744971 BRANCH=none TEST=make buildall -j Signed-off-by: Devin Lu <Devin.Lu@quantatw.com> Change-Id: I2db5f981e86217ce1cf8e207c40040493071f5d5 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3037286 Reviewed-by: Boris Mittelberg <bmbm@google.com>
* redrix: Add FAN2 supportDevin Lu2021-07-214-48/+36
| | | | | | | | | | | BUG=b:193487913 BRANCH=none TEST=make BOARD=redrix Signed-off-by: Devin Lu <Devin.Lu@quantatw.com> Change-Id: I213e7f05783d784a138e908493fd1262e9b4fc3b Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3023744 Reviewed-by: Boris Mittelberg <bmbm@google.com>
* redrix: Add battery configurationDevin Lu2021-07-212-53/+20
| | | | | | | | | | | | | | | | [Simply copy from: https://crrev.com/c/1971511] Add Dynapack CosMX battery configuration. The battery was the same as Jinlon. BUG=b:190797341 BRANCH=none TEST=make buildall -j Signed-off-by: Devin Lu <Devin.Lu@quantatw.com> Change-Id: I6aedb010c2d3300ee12ebe0b4be5d99c874aac9d Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3023512 Reviewed-by: caveh jalali <caveh@chromium.org>
* redrix: Implement ledsDevin Lu2021-07-215-108/+217
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Simply copy from: https://chromium.googlesource.com/chromiumos/platform/ec/+/refs/heads/main/board/jinlon/led.c |1. Add some macro changes and change C0 charging led to left side.| |2. Add a LED task to replace the hook task.| 1. Redrix has the same design as Jinlon, there are two set charging leds on system (right side and left side), each side has two colors amber and white. 2. Redrix has a power led to indicate power state suspend/off. The led behavior define as following: 1. Charging led: led on with charging port active, other port is off. Charging: Amber. Discharging: Off. Battery Error: Blinking white (0.5 sec on, 0.5 sec off) Fuel < 10%: Blinking white on right side port (1 sec on, 1 sec off) Force idle for factory: Blinking amber (1 sec on, 1 sec off) 2. Power led: System is S0: White System is suspend/S0ix: Blinking white (1 sec on, 1 sec off) System is S5: Off BUG=b:193945754 BRANCH=none TEST=Cherry-picked this patch to Jinlon and Verified as following: make sure led behavior intended. make sure ectool led power white/off/auto work correctly. make sure ectool led left white/amber/off/auto work correctly. make sure ectool led right white/amber/off/auto work correctly. Signed-off-by: Devin Lu <Devin.Lu@quantatw.com> Change-Id: If05c9e2750ca3afcbcfaf51ce495d0f03d1fa756 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3023511 Reviewed-by: caveh jalali <caveh@chromium.org> Reviewed-by: Boris Mittelberg <bmbm@google.com>
* Homestar: add the support for ICM42607Siyu Qin2021-07-213-2/+101
| | | | | | | | | | | | | | | | BMI160 is going to EOL, so we intend to import ICM42607 to make 2 sources compatible for Homestar. BUG=b:189057043 BRANCH=trogdor TEST=1.make BOARD=homestar 2.ectool motionsense can get the sensor data Change-Id: I87faabf813b9ec1a5c21092b6796542dfbe2d06f Signed-off-by: Siyu Qin <qinsiyu@huaqin.corp-partner.google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3029801 Reviewed-by: Wai-Hong Tam <waihong@google.com>
* Pompom: Support the second source sensor LIS2DWLJosh Tsai2021-07-212-0/+54
| | | | | | | | | | | | | | Need cut-in 2nd source to secure that can keep production for shipment. BUG=b:193209502 BRANCH=trogdor TEST=Both BMA253 and LIS2DWL sensor can work Signed-off-by: Josh Tsai <josh_tsai@compal.corp-partner.google.com> Change-Id: Iaf860ea4158cb2e09ad1aed1c7baaf904579cde0 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3020126 Reviewed-by: Wai-Hong Tam <waihong@google.com>
* zephyr: herobrine_npcx9: Update I2C busesWai-Hong Tam2021-07-202-0/+12
| | | | | | | | | | | | | | | This CL is a Zephyr-equivalent of CL:2993218. Add the I2C bus for the RTC chip. The chip runs at 400KHz. BRANCH=None BUG=b:192253134 TEST=Built the herobrine_npcx9 image successfully. Change-Id: I399485706c66070464fcd9fe53bec35b4c0454a6 Signed-off-by: Wai-Hong Tam <waihong@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3039388 Reviewed-by: Yuval Peress <peress@chromium.org>
* zephyr: herobrine: Move I2C related dts from board to projectWai-Hong Tam2021-07-203-96/+105
| | | | | | | | | | | | | Make the board dts file simpler and easier to be merged to other boards which use the same chip. BRANCH=None BUG=b:192253134, b:193814903 TEST=Built the Zephyr herobrine_npcx9 image successfully. Change-Id: I53a15a47511eb875bbfd50906f5a11d3a69d48ea Signed-off-by: Wai-Hong Tam <waihong@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3039387
* zephyr: herobrine_npcx9: Update GPIOsWai-Hong Tam2021-07-203-87/+45
| | | | | | | | | | | | | | | | | This CL is a Zephyr-equivalent of CL:2993217. Update the GPIOs to match the schematic. Also update the hibnerate wake sources. Remove the AP_RST_L and WARM_RESET_L from the low voltage dts as their new GPIOs already operate at 1.8V, not configurable. BRANCH=None BUG=b:192253134, b:193583152 TEST=Built the Zephyr herobrine_npcx9 image successfully. Change-Id: I2fcb03acff7ac376a5627f66c800d2d8cade1998 Signed-off-by: Wai-Hong Tam <waihong@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3039386 Reviewed-by: Yuval Peress <peress@chromium.org>
* zephyr: herobrine_npcx9: Initial image which uses NPCX9Wai-Hong Tam2021-07-2014-0/+1140
| | | | | | | | | | | | | | | | | | | | | | | This CL copies the Zephyr board/trogdor to board/herobrine_npcx9. Modify the chip config to npcx9m3f and some related configs (simply rename) and dts (update the UART property). The board/herobrine_npcx9 and other NPCX9 boards, like board/brya will be merged to a single board. But the merge needs more work to remove the not-common configs and dts to the project directories. Leave it as a future work. This CL also copies the project trogdor/herobrine_npcx7 to herobrine/herobrine_npcx9. Remove the dead files power.c and hibernate.c, in the EC-OS directory. Remove the Zephyr 2.5 support and board.cmake (needed only for 2.5). BRANCH=None BUG=b:192253134 TEST=Built the herobrine_npcx9 image successfully. Change-Id: I9641768ee978920f6a8677f13ae14e0a26ad35f4 Signed-off-by: Wai-Hong Tam <waihong@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2993220 Reviewed-by: Yuval Peress <peress@chromium.org>
* raa489000: Wait 853us before checking VBUS at initwangganxiang2021-07-201-0/+2
| | | | | | | | | | | | | | | | | According to the RAA489000 manual, extend the time to read the vbus after the ADC initialization is completed. BUG=b:193402296 BRANCH=keeby TEST=make BOARD=cappy2 pass Signed-off-by: jesen <wangganxiang@huaqin.corp-partner.google.com> Change-Id: Ie326932a9a5d3849e31e15a090074ad1274a7266 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3023762 Reviewed-by: Mike Lee <mike5@huaqin.corp-partner.google.com> Reviewed-by: Aseda Aboagye <aaboagye@chromium.org> Commit-Queue: Aseda Aboagye <aaboagye@chromium.org>
* zephyr: Remove CONFIG_ARM to run make buildallGwendal Grignou2021-07-201-1/+0
| | | | | | | | | | | | | | | | | | | | Congratulations! The following options are now in Kconfig: CONFIG_ARM Config removed with './util/build_allowed.sh -u' BUG=none BRANCH=master TEST=make buildall passes. Signed-off-by: Gwendal Grignou <gwendal@google.com> Change-Id: Ia96c24db5489d9681ae0acf4da2a9133a8f2a3e8 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3041918 Reviewed-by: Yuval Peress <peress@chromium.org> Reviewed-by: Denis Brockus <dbrockus@chromium.org> Commit-Queue: Gwendal Grignou <gwendal@chromium.org> Tested-by: Gwendal Grignou <gwendal@chromium.org>
* zephyr: test: drivers: tick to zephyr v2.6Yuval Peress2021-07-201-1/+1
| | | | | | | | | | | | BRANCH=none BUG=none TEST=zmake configure --test zephyr/test/drivers Cq-Depend: chromium:3039315 Signed-off-by: Yuval Peress <peress@chromium.org> Change-Id: Ie5b10db6ab29c746bada8f5a8c062eae859a56fe Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3039389 Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
* Homestar: Remove on-body detection and gesture host detectionSiyu Qin2021-07-201-8/+0
| | | | | | | | | | | | | | | | | When import the second source sensor ICM42607, the on-body detection and gesture host detection functions will course proccess going to null pointer. Homestar does not require these features according to OEM, so just remove the related macro. BUG=b:194023320 BRANCH=trogdor TEST=make BOARD=homestar Change-Id: I7672fcc090d52e5a030a32ce86c19ff1cf6a0d54 Signed-off-by: Siyu Qin <qinsiyu@huaqin.corp-partner.google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3034508 Reviewed-by: Wai-Hong Tam <waihong@google.com> Commit-Queue: Wai-Hong Tam <waihong@google.com>