summaryrefslogtreecommitdiff
path: root/board/grunt/gpio.inc
diff options
context:
space:
mode:
authorBenjamin Gordon <bmgordon@chromium.org>2017-12-06 10:11:36 -0700
committerchrome-bot <chrome-bot@chromium.org>2017-12-11 12:47:47 -0800
commitb23fdca572d5078c3722616a37d76963b68e0f33 (patch)
tree30a83126e15bdbea14078c6fad67d169858e5649 /board/grunt/gpio.inc
parent48cb289e0cd1d78e600508b5f2e9ba0d250f7052 (diff)
downloadchrome-ec-b23fdca572d5078c3722616a37d76963b68e0f33.tar.gz
grunt: Add keyboard backlight
This gets the pins set up. Not yet sure if we may need additional support for the LM3630A or if it will use the generic PWM support. BUG=b:69379749 TEST=make -j buildall BRANCH=None Change-Id: I80a1a10818483666461bf47500e3956880dcc1fc Signed-off-by: Benjamin Gordon <bmgordon@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/812064 Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'board/grunt/gpio.inc')
-rw-r--r--board/grunt/gpio.inc7
1 files changed, 7 insertions, 0 deletions
diff --git a/board/grunt/gpio.inc b/board/grunt/gpio.inc
index 6fee3bce08..c525284588 100644
--- a/board/grunt/gpio.inc
+++ b/board/grunt/gpio.inc
@@ -38,6 +38,7 @@ GPIO(CPU_PROCHOT, PIN(3, 4), GPIO_INPUT | GPIO_SEL_1P8V) /* PROCHOT to SOC */
GPIO(APU_ALERT_L, PIN(A, 2), GPIO_INPUT) /* Alert to SOC */
GPIO(3AXIS_INT_L, PIN(5, 0), GPIO_INPUT | GPIO_SEL_1P8V) /* 3 Axis Accel */
GPIO(6AXIS_INT_L, PIN(8, 6), GPIO_INPUT | GPIO_SEL_1P8V) /* 6 Axis Accel */
+GPIO(KB_BL_EN, PIN(F, 2), GPIO_OUT_LOW) /* Enable KB Backlight */
/* We don't have 5V rail control but the BQ24392 driver expects the GPIO */
UNIMPLEMENTED(EN_PP5000)
@@ -51,6 +52,10 @@ GPIO(I2C2_SCL, PIN(9, 2), GPIO_INPUT) /* EC_I2C_USB_C1_PD_SCL */
GPIO(I2C2_SDA, PIN(9, 1), GPIO_INPUT) /* EC_I2C_USB_C1_PD_SDA */
GPIO(I2C3_SCL, PIN(D, 1), GPIO_INPUT | GPIO_SEL_1P8V) /* APU_SIC */
GPIO(I2C3_SDA, PIN(D, 0), GPIO_INPUT | GPIO_SEL_1P8V) /* APU_SID */
+GPIO(I2C5_SCL, PIN(3, 3), GPIO_INPUT) /* EC_I2C_EEPROM_SCL and
+ EC_I2C_KB_BL_SCL */
+GPIO(I2C5_SDA, PIN(3, 6), GPIO_INPUT) /* EC_I2C_EEPROM_SDA and
+ EC_I2C_KB_BL_SDA */
GPIO(I2C7_SCL, PIN(B, 3), GPIO_INPUT | GPIO_SEL_1P8V) /* EC_I2C_SENSOR_SCL */
GPIO(I2C7_SDA, PIN(B, 2), GPIO_INPUT | GPIO_SEL_1P8V) /* EC_I2C_SENSOR_SDA */
@@ -91,8 +96,10 @@ ALTERNATE(PIN_MASK(B, 0x30), 1, MODULE_I2C, 0) /* I2C0 */
ALTERNATE(PIN_MASK(9, 0x07), 1, MODULE_I2C, 0) /* I2C1 SCL / I2C2 */
ALTERNATE(PIN_MASK(8, 0x80), 1, MODULE_I2C, 0) /* I2C1 SDA */
ALTERNATE(PIN_MASK(D, 0x03), 1, MODULE_I2C, 0) /* I2C3 */
+ALTERNATE(PIN_MASK(3, 0x48), 1, MODULE_I2C, 0) /* I2C5 */
ALTERNATE(PIN_MASK(B, 0x0C), 1, MODULE_I2C, 0) /* I2C7 */
ALTERNATE(PIN_MASK(4, 0x30), 1, MODULE_ADC, 0) /* ADC0-1 */
+ALTERNATE(PIN_MASK(B, 0x80), 1, MODULE_PWM, 0) /* KB Backlight */
/* Keyboard Pins */
ALTERNATE(PIN_MASK(3, 0x03), 0, MODULE_KEYBOARD_SCAN, GPIO_INPUT) /* KSI_00-01 */