summaryrefslogtreecommitdiff
path: root/baseboard/nucleo-h743zi/base-gpio.inc
blob: ef224cbaf16e10a6b68c083ac5162f934a9eaf69 (plain)
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
/*
 * Copyright 2019 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.
 */

/*
 * Note that these pins map to the Nucleo-H743ZI V2 and are only slightly
 * compatible with the original version.
 *
 * The V2 is denoted by "Nucleo-H743ZI2" vs. "Nucleo-H743ZI".
 */

/* Inputs ands Interrupts */
GPIO_INT(SPI1_NSS,        PIN(A, 4),  GPIO_INPUT, spi_event)
GPIO_INT(BTN1,            PIN(C, 13), GPIO_INT_BOTH, button_event)
GPIO(WP,                  PIN(B, 7),  GPIO_INPUT)

/* Outputs */
GPIO(EC_INT_L,            PIN(A, 1),  GPIO_OUT_HIGH)
GPIO(LED1,                PIN(B, 0),  GPIO_OUT_LOW) /* Green */
GPIO(LED2,                PIN(E, 1),  GPIO_OUT_LOW) /* Yellow */
GPIO(LED3,                PIN(B, 14), GPIO_OUT_LOW) /* Red */

UNIMPLEMENTED(ENTERING_RW)

/* USART3: PD8/PD9 */
ALTERNATE(PIN_MASK(D, 0x0300), GPIO_ALT_USART,  MODULE_UART, GPIO_PULL_UP)
/* SPI1 slave from the AP: PA4/5/6/7 */
ALTERNATE(PIN_MASK(A, 0x00f0), GPIO_ALT_SPI, MODULE_SPI,  0)