From c12fe99d58b37278016567b245b154345a17a61f Mon Sep 17 00:00:00 2001 From: Mulin Chao Date: Thu, 7 Jun 2018 02:43:07 -0700 Subject: yorp: add internal PUs for unused pins to prevent leakage current. This CL adds internal PUs for unused pins on yorp in gpio.inc to prevent leakage current. Please notice the test platform is yorp proto 1. Beside PUs for strap-pins, the configuration of other pins might need to change on yorp proto 2. BRANCH=none BUG=b:110170824 TEST=No build errors for npcx7 series. Adding PUs on strap-pins saves ~0.4mA at S0ix. Adding PUs on the other unused pin saves ~0.2mA at S0ix. Change-Id: If2406f9fca12f7b3456301435f8ec25cb264ed3a Signed-off-by: Mulin Chao Reviewed-on: https://chromium-review.googlesource.com/1092391 Commit-Ready: Nicolas Boichat Reviewed-by: Furquan Shaikh Reviewed-by: Jett Rink --- board/yorp/gpio.inc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'board/yorp') diff --git a/board/yorp/gpio.inc b/board/yorp/gpio.inc index a616c48f88..042f623d6f 100644 --- a/board/yorp/gpio.inc +++ b/board/yorp/gpio.inc @@ -135,6 +135,13 @@ GPIO(C1_EN_SNK_V0, PIN(4, 0), GPIO_DEFAULT) /* C1: EN_SNK */ GPIO(SYS_RESET_L_V0, PIN(0, 2), GPIO_DEFAULT) /* SYS_RESET_L */ GPIO(ENTERING_RW_V0, PIN(8, 0), GPIO_DEFAULT) /* ENTERING_RW */ +/* Overcurrent event to host */ +GPIO(USB_C_OC, PIN(3, 6), GPIO_ODR_HIGH | GPIO_SEL_1P8V) + +/* Strap pins */ +GPIO(GPO66_NC, PIN(6, 6), GPIO_INPUT | GPIO_PULL_UP) +GPIO(GPOB6_NC, PIN(B, 6), GPIO_INPUT | GPIO_PULL_UP) + /* Keyboard pins */ ALTERNATE(PIN_MASK(3, 0x03), 0, MODULE_KEYBOARD_SCAN, GPIO_INPUT) /* KSI_00-01 */ ALTERNATE(PIN_MASK(2, 0xFC), 0, MODULE_KEYBOARD_SCAN, GPIO_INPUT) /* KSI_02-07 */ -- cgit v1.2.1