summaryrefslogtreecommitdiff
path: root/board/eldrid/gpio.inc
diff options
context:
space:
mode:
authorlennon chen <lennon_chen@wistron.corp-partner.google.com>2020-08-29 00:29:08 +0800
committerCommit Bot <commit-bot@chromium.org>2020-09-12 03:22:16 +0000
commit100d6ae9ec1f637f61b414a14c4c9299ce341e09 (patch)
treebac1b401966d3b0b208b2019ebb179d2c196e9b7 /board/eldrid/gpio.inc
parent7269813d6e3d0e383abc915c1971deb2cccd45db (diff)
downloadchrome-ec-100d6ae9ec1f637f61b414a14c4c9299ce341e09.tar.gz
Eldrid: Implement LED function
Modify LED behavior to meet LED specification 1.Power led: System is S0: White System is suspend/S0ix: blinking white (1 sec on/off) System is S5: Off 2.charger led: Charging: amber on Full charged: white on Discharging: led Off Blinking white (0.4 sec on/off): battery error Blinking white (1 sec on/off): Fuel < 10%, blinking on right side port Blinking amber (1 sec on/off): Force idle for factory BUG=b:165875385 BRANCH=none TEST=Check behavior to meet LED specification TEST=make -j BOARD=eldrid TEST=make buildall Change-Id: I693137e5512e4c8a2f8cac39389bd23e0ca2f2c7 Signed-off-by: lennon chen <lennon_chen@wistron.corp-partner.google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2385023 Reviewed-by: Abe Levkoy <alevkoy@chromium.org> Tested-by: Scott Chao <scott_chao@wistron.corp-partner.google.com> Commit-Queue: caveh jalali <caveh@chromium.org>
Diffstat (limited to 'board/eldrid/gpio.inc')
-rw-r--r--board/eldrid/gpio.inc5
1 files changed, 4 insertions, 1 deletions
diff --git a/board/eldrid/gpio.inc b/board/eldrid/gpio.inc
index 4435934c74..84dc5de15f 100644
--- a/board/eldrid/gpio.inc
+++ b/board/eldrid/gpio.inc
@@ -96,6 +96,10 @@ UNIMPLEMENTED(USB_C1_LS_EN)
/* Misc Signals */
GPIO(EC_H1_PACKET_MODE, PIN(7, 5), GPIO_OUT_LOW) /* H1 Packet Mode */
+GPIO(LED_1_L, PIN(C, 4), GPIO_OUT_HIGH) /* Battery LED: Amber */
+GPIO(LED_2_L, PIN(C, 3), GPIO_OUT_HIGH) /* Battery LED: White */
+GPIO(POWER_LED_GATE, PIN(C, 2), GPIO_OUT_LOW) /* Power LED: White */
+
/*
* Despite their names, M2_SSD_PLN and M2_SSD_PLA are active-low, and M2_SSD_PLN
* is open-drain.
@@ -148,7 +152,6 @@ ALTERNATE(PIN_MASK(B, BIT(3) | BIT(2)), 0, MODULE_I2C, 0)
* board, to be controlled by LED_{1,2,3}_L. PWM allows driving both modules at
* the same time. */
ALTERNATE(PIN_MASK(6, BIT(0)), 0, MODULE_PWM, 0) /* LED_SIDESEL_4_L */
-ALTERNATE(PIN_MASK(C, BIT(2) | BIT(3) | BIT(4)), 0, MODULE_PWM, 0) /* LED_{3,2,1}_L */
/* Fan signals */
GPIO(EN_PP5000_FAN, PIN(6, 1), GPIO_OUT_LOW)