blob: 2f2a4d6703c21f4132128110e602a48b7897a167 [file] [log] [blame]
Thang Q. Nguyendde1fed2021-11-04 08:30:27 +00001#!/bin/sh
2
3# shellcheck disable=SC2034
ThuBaNguyenfb214782021-07-08 14:20:43 +07004# Index of GPIO device in gpioget/gpioset
5GPIO_CHIP0_IDX=0
6GPIO_CHIP1_IDX=1
7
8# Base of GPIO chip in /sys/class/gpio
9GPIO_CHIP0_BASE=792
10GPIO_CHIP1_BASE=780
11
12### Power control configuration
13# Power control gpios
14S0_SHD_REQ_L=49
15S0_SHD_ACK_L=50
16S0_REBOOT_ACK_L=75
17S0_SYSRESET_L=91
Thang Q. Nguyenbddca602022-07-29 14:45:33 +070018S1_SYSRESET_L=92
ThuBaNguyenfb214782021-07-08 14:20:43 +070019
20
21### Table 1: GPIO Assignments
chaul.ampere7b6d85f2022-07-23 04:28:42 +000022BMC_I2C_BACKUP_SEL=8
ThuBaNguyenfb214782021-07-08 14:20:43 +070023S0_CPU_FW_BOOT_OK=48
24CPU_BMC_OVERTEMP_L=51
25CPU_BMC_HIGHTEMP_L=72
26CPU_FAULT_ALERT=73
27S1_CPU_FW_BOOT_OK=202
Thang Q. Nguyenbddca602022-07-29 14:45:33 +070028S0_SPECIAL_BOOT=3
29S1_SPECIAL_BOOT=66
30RTC_LOCK=203
ThuBaNguyenfb214782021-07-08 14:20:43 +070031
32### Table 2: Alert and Additional Miscellaneous Signals
33S0_SCP_AUTH_FAILURE=74
34S1_SCP_AUTH_FAILURE=205
35BMC_OK=228
36SLAVE_PRESENT_L=230
37
38### Common GPIOs
39SYS_PSON_L=42
40BMC_READY=229
ThuBaNguyen33109172021-07-02 15:39:57 +070041
42### OCP power selection
43OCP_AUX_PWREN=139
44OCP_MAIN_PWREN=140
45
46### SPI0 Mode selection
47SPI0_PROGRAM_SEL=226
48SPI0_BACKUP_SEL=227
Thang Q. Nguyenbddca602022-07-29 14:45:33 +070049
50### Mt.Jade specific GPIOs
51S0_I2C9_ALERT_L=100
52S1_I2C9_ALERT_L=101
53GPIO_BMC_VGA_FRONT_PRES_L=135
54GPIO_S0_VRHOT_L=144
55GPIO_S1_VRHOT_L=145
56BMC_VGA_SEL=195
57BMC_GPIOR2_EXT_HIGHTEMP_L=138
58GPIO_BMC_VR_PMBUS_SEL_L=149
59GPIO_BMC_I2C6_RESET_L=63