summaryrefslogtreecommitdiff
path: root/board/cherry/gpio.inc
Commit message (Collapse)AuthorAgeFilesLines
* tomato: board rev2 gpio updateTing Shen2021-09-231-6/+6
| | | | | | | | | | | | | | | | | | | GPA4/GPA5: kb backlight -> Programming I2C GPA3: Test point -> KB_BL_PWM GPA6: Test point -> EN_KB_BL Since the PWM pin changed, this CL breaks kb backlight on old boards. BUG=b:199829459 TEST=pass factory test BRANCH=main Signed-off-by: Ting Shen <phoenixshen@google.com> Change-Id: I33c42708b7694aeb625ea5b0879b3ac08ec81f67 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3160457 Reviewed-by: Eric Yilun Lin <yllin@google.com> Tested-by: Sue Chen <sue.chen@quanta.corp-partner.google.com> Commit-Queue: Ting Shen <phoenixshen@chromium.org>
* cherry: enable CONFIG_USB_PORT_POWER_DUMB_CUSTOM_HOOKTing Shen2021-09-231-1/+1
| | | | | | | | | | | | | | | | | | | CL:3023017 does not work as expected because usb_port_power_dump module still controls the power power. This CL disables the hooks in usb_port_power_dump and enables the interrupt function usb_a0_interrupt instead. BUG=b:193499785 TEST=verify USB-A port works after this change BRANCH=main Signed-off-by: Ting Shen <phoenixshen@google.com> Change-Id: I56196f2a062d6b3358a9a4330e7f33ab546f5d1b Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3174606 Reviewed-by: Rong Chang <rongchang@chromium.org> Commit-Queue: Ting Shen <phoenixshen@chromium.org> Tested-by: Ting Shen <phoenixshen@chromium.org>
* cherry: enable usb pdTing Shen2021-07-291-3/+3
| | | | | | | | | | | | | BUG=b:177391887 TEST=verify pd works BRANCH=main Signed-off-by: Ting Shen <phoenixshen@google.com> Change-Id: Ied4516abef3d544b8b4bdf8355f0f9fc305629a3 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2793783 Commit-Queue: Ting Shen <phoenixshen@chromium.org> Tested-by: Ting Shen <phoenixshen@chromium.org> Reviewed-by: Eric Yilun Lin <yllin@google.com>
* tomato: gpio updateTing Shen2021-07-201-8/+13
| | | | | | | | | | | | | | | | update gpio assignment for upcoming build. BUG=b:193602585 TEST=boot tomato BRANCH=main Signed-off-by: Ting Shen <phoenixshen@google.com> Change-Id: Ic828eeb76c07e79451964c4c3e5f124056d15cc9 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3025873 Commit-Queue: Ting Shen <phoenixshen@chromium.org> Tested-by: Ting Shen <phoenixshen@chromium.org> Reviewed-by: Eric Yilun Lin <yllin@google.com> Reviewed-by: Parker Lin <parkerlin@google.com>
* cherry: implement USB-A port power controlTing Shen2021-07-201-1/+4
| | | | | | | | | | | | | BUG=b:193499785 TEST=manually BRANCH=main Signed-off-by: Ting Shen <phoenixshen@google.com> Change-Id: I1bda9b40bb8795837d25022f6f71661f7699d1cf Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3023017 Commit-Queue: Ting Shen <phoenixshen@chromium.org> Tested-by: Ting Shen <phoenixshen@chromium.org> Reviewed-by: Eric Yilun Lin <yllin@google.com>
* cherry: disable unused pwm pinsTing Shen2021-07-011-1/+6
| | | | | | | | | | | | | | | | Set unused pwm pins (PWM 3,6,7) to input BUG=b:192320391 TEST=make BRANCH=main Signed-off-by: Ting Shen <phoenixshen@google.com> Change-Id: I0e6983fe45a0ac35bfed2e7da7a9213cccfe9b58 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2991988 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>
* Cherry: change gyro snesor to ICM-42607-PSue Chen2021-05-211-1/+1
| | | | | | | | | | | | | Change base accelgyro driver to icm42607. BUG=b:187748640 BRANCH=none TEST=console "accelinfo on" and ectool motionsense show correctly. Signed-off-by: Sue Chen <sue.chen@quanta.corp-partner.google.com> Change-Id: Ib53f72ae283a7bf5a6193dcf3b656121af94c66f Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2909954 Reviewed-by: Ting Shen <phoenixshen@chromium.org>
* cherry: Add temp sensor for chargerSue Chen2021-05-211-1/+1
| | | | | | | | | | | | | Using ADC channel 7 to read charger temperature. BUG=b:187463588 BRANCH=none TEST=Console commad "temps" and ectool can read the temperature. Signed-off-by: Sue Chen <sue.chen@quanta.corp-partner.google.com> Change-Id: I031523859c0ff91f0041263ecf6a4a48048da819 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2891283 Reviewed-by: Ting Shen <phoenixshen@chromium.org>
* cherry: add pwm keyboard backlight controlTing Shen2021-04-221-1/+1
| | | | | | | | | | | | | | BUG=b:181838424 TEST=keyboard backlight works BRANCH=main Signed-off-by: Ting Shen <phoenixshen@google.com> Change-Id: I7fd20808c6e8e6a1e22c060bb14c145256201756 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2785511 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>
* cherry: enable sensorsTing Shen2021-04-201-4/+3
| | | | | | | | | | | | | BUG=b:178158810 TEST=`accelread 0/1/2` BRANCH=main Signed-off-by: Ting Shen <phoenixshen@google.com> Change-Id: Iad128e3c94e409da000d5f11952a526a73ad64d9 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2730519 Tested-by: Ting Shen <phoenixshen@chromium.org> Reviewed-by: Eric Yilun Lin <yllin@chromium.org> Commit-Queue: Ting Shen <phoenixshen@chromium.org>
* cherry: GPIO configurationTing Shen2021-04-201-53/+31
| | | | | | | | | | | | | BUG=b:180886390,b:178158810 TEST=make BRANCH=main Signed-off-by: Ting Shen <phoenixshen@google.com> Change-Id: I99631c73112a4123dc24bd25825f59a6ff948dca Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2731395 Reviewed-by: Eric Yilun Lin <yllin@chromium.org> Commit-Queue: Ting Shen <phoenixshen@chromium.org> Tested-by: Ting Shen <phoenixshen@chromium.org>
* cherry: initial EC imageTing Shen2021-03-031-0/+170
Copied from Asurada, with minimal changes to copyright header and makefile to make it compilable and let linter happy. BUG=b:178158810 TEST=make BOARD=cherry -j32 BRANCH=main Signed-off-by: Ting Shen <phoenixshen@google.com> Change-Id: Ibf75df48336203fd84885856f971fea24f4ea288 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2730642 Commit-Queue: Ting Shen <phoenixshen@chromium.org> Tested-by: Ting Shen <phoenixshen@chromium.org> Reviewed-by: Eric Yilun Lin <yllin@chromium.org>