summaryrefslogtreecommitdiff
path: root/board/redrix/gpio.inc
Commit message (Collapse)AuthorAgeFilesLines
* redrix: add PCHG supportZick Wei2021-08-051-0/+6
| | | | | | | | | | | | | This patch add PCHG:ctn730 support on redrix. BUG=none BRANCH=none TEST=verify PCHG work as intended. Signed-off-by: Zick Wei <zick.wei@quanta.corp-partner.google.com> Change-Id: I8bf0abc3df9e28e7a018ddeb4fb971d2ede46039 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3066828 Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
* redrix: Reverse keyboard backlight enableDevin Lu2021-08-031-1/+1
| | | | | | | | | | | | | | | Reverse the enabling signal to active high. BUG=none BRANCH=none TEST=Keyboard backlight works normally. Signed-off-by: Devin Lu <Devin.Lu@quantatw.com> Change-Id: I07c97d73a9ddd9d30303121d0e4be4afd45a5f07 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3068845 Reviewed-by: Zick Wei <zick.wei@quanta.corp-partner.google.com> Reviewed-by: caveh jalali <caveh@chromium.org> Commit-Queue: caveh jalali <caveh@chromium.org>
* redrix: Configure Motion SensorsDevin Lu2021-07-211-2/+1
| | | | | | | | | | | | | | | 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-211-1/+3
| | | | | | | | | | | 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: Implement ledsDevin Lu2021-07-211-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* redrix: follow up gpio changes from bryaZick Wei2021-07-131-9/+9
| | | | | | | | | | | | | | | | This CL follow up CL:2977478, CL:2977479, CL:2977480, CL:2977481, CL:2993548 to synchronize brya gpio changes. BUG=none BRANCH=none TEST=make BOARD=redrix Signed-off-by: Zick Wei <zick.wei@quanta.corp-partner.google.com> Change-Id: I336b2383854642afe02da4165f7aba40af87b706 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3000895 Reviewed-by: Devin Lu <Devin.Lu@quantatw.com> Reviewed-by: Boris Mittelberg <bmbm@google.com> Reviewed-by: caveh jalali <caveh@chromium.org>
* redrix: config USBC portZick Wei2021-07-131-23/+17
| | | | | | | | | | | | | | Remove USBC2 port and config USBC1 port to follow schematic, redrix use TCPC: NCT3807 on both USBC0 and USBC1 port. BUG=b:190822765 BRANCH=none TEST=make BOARD=redrix Signed-off-by: Zick Wei <zick.wei@quanta.corp-partner.google.com> Change-Id: I27cb5b1c33b1dca565a68e6d8f1e3dc20f542bb5 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3000305 Reviewed-by: caveh jalali <caveh@chromium.org>
* redrix: Remove board ID 1 supportDevin Lu2021-07-011-18/+0
| | | | | | | | | | | | | Redrix is now p2 schematic. Remove unused board ID configuration. BUG=none BRANCH=none TEST=make BOARD=redrix Signed-off-by: Devin Lu <Devin.Lu@quantatw.com> Change-Id: Iea2d824641ae35c135b45742fe1e34dd99931f42 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2995899 Reviewed-by: Boris Mittelberg <bmbm@google.com>
* redrix: Merge generated-gpio.incDevin Lu2021-07-011-12/+119
| | | | | | | | | | | | | | Redrix does not auto-generate their GPIO definitions. Merge generated-gpio.inc to gpio.inc to customize in future. BUG=none BRANCH=none TEST=make BOARD=redrix Signed-off-by: Devin Lu <Devin.Lu@quantatw.com> Change-Id: Icea3dd5237c0fca4bae96163cd2b2d20c74b34f3 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2995232 Reviewed-by: Boris Mittelberg <bmbm@google.com>
* redrix: Initial EC imageWisley Chen2021-06-291-0/+56
Create the initial EC image for the redrix variant by copying the brya reference board EC files into a new directory named for the variant. (Auto-Generated by create_initial_ec_image.sh version 1.5.0). BUG=b:192052098 BRANCH=None TEST=make BOARD=redrix Signed-off-by: Wisley Chen <wisley.chen@quanta.corp-partner.google.com> Change-Id: I63d1029ce4581f74bd061bbcc7b98fc41e375e4c Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2991396 Reviewed-by: Devin Lu <Devin.Lu@quantatw.com> Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org> Reviewed-by: Boris Mittelberg <bmbm@google.com>