1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
/* -*- mode:c -*-
*
* Copyright (c) 2014 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
GPIO(VBUS_WAKE, B, 5, GPIO_INT_BOTH, vbus_event)
GPIO(MASTER_I2C_INT_L, C, 13, GPIO_INT_FALLING, tsu_event)
/* PD RX/TX */
GPIO(USB_CC1_PD, A, 0, GPIO_ANALOG, NULL)
GPIO(PD_REF1, A, 1, GPIO_ANALOG, NULL)
GPIO(PD_REF2, A, 3, GPIO_ANALOG, NULL)
GPIO(USB_CC2_PD, A, 4, GPIO_ANALOG, NULL)
GPIO(PD_CLK_OUT, B, 9, GPIO_OUT_LOW, NULL)
GPIO(PD_TX_EN, B, 12, GPIO_OUT_LOW, NULL)
GPIO(PD_TX_DATA, B, 14, GPIO_OUT_LOW, NULL)
#if 0
GPIO(PD_CLK_IN, B, 13, GPIO_OUT_LOW, NULL)
#endif
/* Power and muxes control */
GPIO(PP5000_EN, A, 5, GPIO_OUT_HIGH, NULL)
GPIO(CC_HOST, A, 6, GPIO_OUT_LOW, NULL)
GPIO(CHARGE_EN_L, A, 8, GPIO_OUT_LOW, NULL)
GPIO(USB_C_5V_EN, A, 10, GPIO_OUT_LOW, NULL)
GPIO(VCONN1_EN, B, 15, GPIO_OUT_LOW, NULL)
GPIO(VCONN2_EN, C, 14, GPIO_OUT_LOW, NULL)
GPIO(SS1_EN_L, A, 9, GPIO_OUT_HIGH, NULL)
GPIO(SS2_EN_L, B, 4, GPIO_OUT_HIGH, NULL)
GPIO(SS2_USB_MODE_L, B, 3, GPIO_OUT_HIGH, NULL)
GPIO(SS1_USB_MODE_L, B, 8, GPIO_OUT_HIGH, NULL)
GPIO(DP_MODE, C, 15, GPIO_OUT_LOW, NULL)
GPIO(DP_POLARITY_L, A, 7, GPIO_OUT_HIGH, NULL)
/* Not used : no host on that bus */
GPIO(SLAVE_I2C_INT_L, B, 2, GPIO_ODR_HIGH, NULL)
/* Alternate functions */
#if 0
GPIO(USB_DM, A, 11, GPIO_ANALOG, NULL)
GPIO(USB_DP, A, 12, GPIO_ANALOG, NULL)
GPIO(UART_TX, A, 14, GPIO_OUT_LOW, NULL)
GPIO(UART_RX, A, 15, GPIO_OUT_LOW, NULL)
#endif
/*
* I2C pins should be configured as inputs until I2C module is
* initialized. This will avoid driving the lines unintentionally.
*/
GPIO(SLAVE_I2C_SCL, B, 6, GPIO_INPUT, NULL)
GPIO(SLAVE_I2C_SDA, B, 7, GPIO_INPUT, NULL)
GPIO(MASTER_I2C_SCL, B, 10, GPIO_INPUT, NULL)
GPIO(MASTER_I2C_SDA, B, 11, GPIO_INPUT, NULL)
/* Rohm BD92104 connections */
GPIO(ALERT_L, A, 2, GPIO_INT_FALLING, rohm_event)
GPIO(USBPD_RST, B, 0, GPIO_OUT_LOW, NULL)
GPIO(USBPD_FORCE_OTG, B, 1, GPIO_OUT_LOW, NULL)
GPIO(USBPD_VIN_EN_L, F, 0, GPIO_OUT_HIGH, NULL)
/* Test points */
GPIO(TP9, A, 13, GPIO_ODR_HIGH, NULL)
GPIO(TP11, F, 1, GPIO_ODR_HIGH, NULL)
/* Unimplemented signals which we need to emulate for now */
UNIMPLEMENTED(ENTERING_RW)
UNIMPLEMENTED(WP_L)
|