xref: /openbmc/skeleton/configs/Witherspoon.py (revision 75a18a23)
1e5fe522aSYi Li## System states
2e5fe522aSYi Li##   state can change to next state in 2 ways:
3e5fe522aSYi Li##   - a process emits a GotoSystemState signal with state name to goto
4e5fe522aSYi Li##   - objects specified in EXIT_STATE_DEPEND have started
5e5fe522aSYi LiSYSTEM_STATES = [
6e5fe522aSYi Li    'BASE_APPS',
7e5fe522aSYi Li    'BMC_STARTING',
8e5fe522aSYi Li    'BMC_READY',
9e5fe522aSYi Li    'HOST_POWERING_ON',
10e5fe522aSYi Li    'HOST_POWERED_ON',
11e5fe522aSYi Li    'HOST_BOOTING',
12e5fe522aSYi Li    'HOST_BOOTED',
13e5fe522aSYi Li    'HOST_POWERED_OFF',
14e5fe522aSYi Li]
15e5fe522aSYi Li
16e5fe522aSYi LiEXIT_STATE_DEPEND = {
17e5fe522aSYi Li    'BASE_APPS' : {
18e5fe522aSYi Li        '/org/openbmc/sensors': 0,
19e5fe522aSYi Li    },
20e5fe522aSYi Li    'BMC_STARTING' : {
21e5fe522aSYi Li        '/org/openbmc/control/chassis0': 0,
22e5fe522aSYi Li        '/org/openbmc/control/power0' : 0,
23e5fe522aSYi Li        '/org/openbmc/control/flash/bios' : 0,
24e5fe522aSYi Li    },
25e5fe522aSYi Li}
26e5fe522aSYi Li
27e5fe522aSYi LiFRU_INSTANCES = {
28e5fe522aSYi Li    '<inventory_root>/system' : { 'fru_type' : 'SYSTEM','is_fru' : True, 'present' : "True" },
29e5fe522aSYi Li    '<inventory_root>/system/bios' : { 'fru_type' : 'SYSTEM','is_fru' : True, 'present' : "True" },
30e5fe522aSYi Li    '<inventory_root>/system/misc' : { 'fru_type' : 'SYSTEM','is_fru' : False, },
31e5fe522aSYi Li
32e5fe522aSYi Li    '<inventory_root>/system/chassis' : { 'fru_type' : 'SYSTEM','is_fru' : True, 'present' : "True" },
33e5fe522aSYi Li
34e5fe522aSYi Li    '<inventory_root>/system/chassis/motherboard' : { 'fru_type' : 'MAIN_PLANAR','is_fru' : True, },
35e5fe522aSYi Li
36e5fe522aSYi Li    '<inventory_root>/system/systemevent'                  : { 'fru_type' : 'SYSTEM_EVENT', 'is_fru' : False, },
37e5fe522aSYi Li    '<inventory_root>/system/chassis/motherboard/refclock' : { 'fru_type' : 'MAIN_PLANAR', 'is_fru' : False, },
38e5fe522aSYi Li    '<inventory_root>/system/chassis/motherboard/pcieclock': { 'fru_type' : 'MAIN_PLANAR', 'is_fru' : False, },
39e5fe522aSYi Li    '<inventory_root>/system/chassis/motherboard/todclock' : { 'fru_type' : 'MAIN_PLANAR', 'is_fru' : False, },
40e5fe522aSYi Li    '<inventory_root>/system/chassis/motherboard/apss'     : { 'fru_type' : 'MAIN_PLANAR', 'is_fru' : False, },
41e5fe522aSYi Li
42e5fe522aSYi Li    '<inventory_root>/system/chassis/fan0' : { 'fru_type' : 'FAN','is_fru' : True, },
43e5fe522aSYi Li    '<inventory_root>/system/chassis/fan1' : { 'fru_type' : 'FAN','is_fru' : True, },
44e5fe522aSYi Li    '<inventory_root>/system/chassis/fan2' : { 'fru_type' : 'FAN','is_fru' : True, },
45e5fe522aSYi Li    '<inventory_root>/system/chassis/fan3' : { 'fru_type' : 'FAN','is_fru' : True, },
46e5fe522aSYi Li
47e5fe522aSYi Li    '<inventory_root>/system/chassis/motherboard/bmc' : { 'fru_type' : 'BMC','is_fru' : False, 'manufacturer' : 'ASPEED' },
48e5fe522aSYi Li
49e5fe522aSYi Li    '<inventory_root>/system/chassis/motherboard/cpu0' : { 'fru_type' : 'CPU', 'is_fru' : True, },
50e5fe522aSYi Li    '<inventory_root>/system/chassis/motherboard/cpu1' : { 'fru_type' : 'CPU', 'is_fru' : True, },
51e5fe522aSYi Li
52e5fe522aSYi Li    '<inventory_root>/system/chassis/motherboard/cpu0/core0' : { 'fru_type' : 'CORE', 'is_fru' : False, },
53e5fe522aSYi Li    '<inventory_root>/system/chassis/motherboard/cpu0/core1' : { 'fru_type' : 'CORE', 'is_fru' : False, },
54e5fe522aSYi Li    '<inventory_root>/system/chassis/motherboard/cpu0/core2' : { 'fru_type' : 'CORE', 'is_fru' : False, },
55e5fe522aSYi Li    '<inventory_root>/system/chassis/motherboard/cpu0/core3' : { 'fru_type' : 'CORE', 'is_fru' : False, },
56e5fe522aSYi Li    '<inventory_root>/system/chassis/motherboard/cpu0/core4' : { 'fru_type' : 'CORE', 'is_fru' : False, },
57e5fe522aSYi Li    '<inventory_root>/system/chassis/motherboard/cpu0/core5' : { 'fru_type' : 'CORE', 'is_fru' : False, },
58e5fe522aSYi Li    '<inventory_root>/system/chassis/motherboard/cpu0/core6' : { 'fru_type' : 'CORE', 'is_fru' : False, },
59e5fe522aSYi Li    '<inventory_root>/system/chassis/motherboard/cpu0/core7' : { 'fru_type' : 'CORE', 'is_fru' : False, },
60e5fe522aSYi Li    '<inventory_root>/system/chassis/motherboard/cpu0/core8' : { 'fru_type' : 'CORE', 'is_fru' : False, },
61e5fe522aSYi Li    '<inventory_root>/system/chassis/motherboard/cpu0/core9' : { 'fru_type' : 'CORE', 'is_fru' : False, },
62e5fe522aSYi Li    '<inventory_root>/system/chassis/motherboard/cpu0/core10': { 'fru_type' : 'CORE', 'is_fru' : False, },
63e5fe522aSYi Li    '<inventory_root>/system/chassis/motherboard/cpu0/core11': { 'fru_type' : 'CORE', 'is_fru' : False, },
64e5fe522aSYi Li
65e5fe522aSYi Li    '<inventory_root>/system/chassis/motherboard/cpu1/core0' : { 'fru_type' : 'CORE', 'is_fru' : False, },
66e5fe522aSYi Li    '<inventory_root>/system/chassis/motherboard/cpu1/core1' : { 'fru_type' : 'CORE', 'is_fru' : False, },
67e5fe522aSYi Li    '<inventory_root>/system/chassis/motherboard/cpu1/core2' : { 'fru_type' : 'CORE', 'is_fru' : False, },
68e5fe522aSYi Li    '<inventory_root>/system/chassis/motherboard/cpu1/core3' : { 'fru_type' : 'CORE', 'is_fru' : False, },
69e5fe522aSYi Li    '<inventory_root>/system/chassis/motherboard/cpu1/core4' : { 'fru_type' : 'CORE', 'is_fru' : False, },
70e5fe522aSYi Li    '<inventory_root>/system/chassis/motherboard/cpu1/core5' : { 'fru_type' : 'CORE', 'is_fru' : False, },
71e5fe522aSYi Li    '<inventory_root>/system/chassis/motherboard/cpu1/core6' : { 'fru_type' : 'CORE', 'is_fru' : False, },
72e5fe522aSYi Li    '<inventory_root>/system/chassis/motherboard/cpu1/core7' : { 'fru_type' : 'CORE', 'is_fru' : False, },
73e5fe522aSYi Li    '<inventory_root>/system/chassis/motherboard/cpu1/core8' : { 'fru_type' : 'CORE', 'is_fru' : False, },
74e5fe522aSYi Li    '<inventory_root>/system/chassis/motherboard/cpu1/core9' : { 'fru_type' : 'CORE', 'is_fru' : False, },
75e5fe522aSYi Li    '<inventory_root>/system/chassis/motherboard/cpu1/core10' : { 'fru_type' : 'CORE', 'is_fru' : False, },
76e5fe522aSYi Li    '<inventory_root>/system/chassis/motherboard/cpu1/core11' : { 'fru_type' : 'CORE', 'is_fru' : False, },
77e5fe522aSYi Li
78e5fe522aSYi Li    '<inventory_root>/system/chassis/motherboard/membuf0' : { 'fru_type' : 'MEMORY_BUFFER', 'is_fru' : False, },
79e5fe522aSYi Li    '<inventory_root>/system/chassis/motherboard/membuf1' : { 'fru_type' : 'MEMORY_BUFFER', 'is_fru' : False, },
80e5fe522aSYi Li    '<inventory_root>/system/chassis/motherboard/membuf2' : { 'fru_type' : 'MEMORY_BUFFER', 'is_fru' : False, },
81e5fe522aSYi Li    '<inventory_root>/system/chassis/motherboard/membuf3' : { 'fru_type' : 'MEMORY_BUFFER', 'is_fru' : False, },
82e5fe522aSYi Li    '<inventory_root>/system/chassis/motherboard/membuf4' : { 'fru_type' : 'MEMORY_BUFFER', 'is_fru' : False, },
83e5fe522aSYi Li    '<inventory_root>/system/chassis/motherboard/membuf5' : { 'fru_type' : 'MEMORY_BUFFER', 'is_fru' : False, },
84e5fe522aSYi Li    '<inventory_root>/system/chassis/motherboard/membuf6' : { 'fru_type' : 'MEMORY_BUFFER', 'is_fru' : False, },
85e5fe522aSYi Li    '<inventory_root>/system/chassis/motherboard/membuf7' : { 'fru_type' : 'MEMORY_BUFFER', 'is_fru' : False, },
86e5fe522aSYi Li
87e5fe522aSYi Li    '<inventory_root>/system/chassis/motherboard/dimm0' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
88e5fe522aSYi Li    '<inventory_root>/system/chassis/motherboard/dimm1' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
89e5fe522aSYi Li    '<inventory_root>/system/chassis/motherboard/dimm2' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
90e5fe522aSYi Li    '<inventory_root>/system/chassis/motherboard/dimm3' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
91e5fe522aSYi Li    '<inventory_root>/system/chassis/motherboard/dimm4' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
92e5fe522aSYi Li    '<inventory_root>/system/chassis/motherboard/dimm5' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
93e5fe522aSYi Li    '<inventory_root>/system/chassis/motherboard/dimm6' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
94e5fe522aSYi Li    '<inventory_root>/system/chassis/motherboard/dimm7' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
95e5fe522aSYi Li    '<inventory_root>/system/chassis/motherboard/dimm8' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
96e5fe522aSYi Li    '<inventory_root>/system/chassis/motherboard/dimm9' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
97e5fe522aSYi Li    '<inventory_root>/system/chassis/motherboard/dimm10' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
98e5fe522aSYi Li    '<inventory_root>/system/chassis/motherboard/dimm11' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
99e5fe522aSYi Li    '<inventory_root>/system/chassis/motherboard/dimm12' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
100e5fe522aSYi Li    '<inventory_root>/system/chassis/motherboard/dimm13' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
101e5fe522aSYi Li    '<inventory_root>/system/chassis/motherboard/dimm14' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
102e5fe522aSYi Li    '<inventory_root>/system/chassis/motherboard/dimm15' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
103e5fe522aSYi Li    '<inventory_root>/system/chassis/motherboard/dimm16' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
104e5fe522aSYi Li    '<inventory_root>/system/chassis/motherboard/dimm17' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
105e5fe522aSYi Li    '<inventory_root>/system/chassis/motherboard/dimm18' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
106e5fe522aSYi Li    '<inventory_root>/system/chassis/motherboard/dimm19' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
107e5fe522aSYi Li    '<inventory_root>/system/chassis/motherboard/dimm20' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
108e5fe522aSYi Li    '<inventory_root>/system/chassis/motherboard/dimm21' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
109e5fe522aSYi Li    '<inventory_root>/system/chassis/motherboard/dimm22' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
110e5fe522aSYi Li    '<inventory_root>/system/chassis/motherboard/dimm23' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
111e5fe522aSYi Li    '<inventory_root>/system/chassis/motherboard/dimm24' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
112e5fe522aSYi Li    '<inventory_root>/system/chassis/motherboard/dimm25' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
113e5fe522aSYi Li    '<inventory_root>/system/chassis/motherboard/dimm26' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
114e5fe522aSYi Li    '<inventory_root>/system/chassis/motherboard/dimm27' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
115e5fe522aSYi Li    '<inventory_root>/system/chassis/motherboard/dimm28' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
116e5fe522aSYi Li    '<inventory_root>/system/chassis/motherboard/dimm29' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
117e5fe522aSYi Li    '<inventory_root>/system/chassis/motherboard/dimm30' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
118e5fe522aSYi Li    '<inventory_root>/system/chassis/motherboard/dimm31' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
119e5fe522aSYi Li}
120e5fe522aSYi Li
121e5fe522aSYi LiID_LOOKUP = {
122e5fe522aSYi Li    'FRU' : {
123e5fe522aSYi Li        0x01 : '<inventory_root>/system/chassis/motherboard/cpu0',
124e5fe522aSYi Li        0x02 : '<inventory_root>/system/chassis/motherboard/cpu1',
125e5fe522aSYi Li        0x03 : '<inventory_root>/system/chassis/motherboard',
126e5fe522aSYi Li        0x04 : '<inventory_root>/system/chassis/motherboard/membuf0',
127e5fe522aSYi Li        0x05 : '<inventory_root>/system/chassis/motherboard/membuf1',
128e5fe522aSYi Li        0x06 : '<inventory_root>/system/chassis/motherboard/membuf2',
129e5fe522aSYi Li        0x07 : '<inventory_root>/system/chassis/motherboard/membuf3',
130e5fe522aSYi Li        0x08 : '<inventory_root>/system/chassis/motherboard/membuf4',
131e5fe522aSYi Li        0x09 : '<inventory_root>/system/chassis/motherboard/membuf5',
132e5fe522aSYi Li        0x0c : '<inventory_root>/system/chassis/motherboard/dimm0',
133e5fe522aSYi Li        0x0d : '<inventory_root>/system/chassis/motherboard/dimm1',
134e5fe522aSYi Li        0x0e : '<inventory_root>/system/chassis/motherboard/dimm2',
135e5fe522aSYi Li        0x0f : '<inventory_root>/system/chassis/motherboard/dimm3',
136e5fe522aSYi Li        0x10 : '<inventory_root>/system/chassis/motherboard/dimm4',
137e5fe522aSYi Li        0x11 : '<inventory_root>/system/chassis/motherboard/dimm5',
138e5fe522aSYi Li        0x12 : '<inventory_root>/system/chassis/motherboard/dimm6',
139e5fe522aSYi Li        0x13 : '<inventory_root>/system/chassis/motherboard/dimm7',
140e5fe522aSYi Li        0x14 : '<inventory_root>/system/chassis/motherboard/dimm8',
141e5fe522aSYi Li        0x15 : '<inventory_root>/system/chassis/motherboard/dimm9',
142e5fe522aSYi Li        0x16 : '<inventory_root>/system/chassis/motherboard/dimm10',
143e5fe522aSYi Li        0x17 : '<inventory_root>/system/chassis/motherboard/dimm11',
144e5fe522aSYi Li        0x18 : '<inventory_root>/system/chassis/motherboard/dimm12',
145e5fe522aSYi Li        0x19 : '<inventory_root>/system/chassis/motherboard/dimm13',
146e5fe522aSYi Li        0x1a : '<inventory_root>/system/chassis/motherboard/dimm14',
147e5fe522aSYi Li        0x1b : '<inventory_root>/system/chassis/motherboard/dimm15',
148e5fe522aSYi Li        0x1c : '<inventory_root>/system/chassis/motherboard/dimm16',
149e5fe522aSYi Li        0x1d : '<inventory_root>/system/chassis/motherboard/dimm17',
150e5fe522aSYi Li        0x1e : '<inventory_root>/system/chassis/motherboard/dimm18',
151e5fe522aSYi Li        0x1f : '<inventory_root>/system/chassis/motherboard/dimm19',
152e5fe522aSYi Li        0x20 : '<inventory_root>/system/chassis/motherboard/dimm20',
153e5fe522aSYi Li        0x21 : '<inventory_root>/system/chassis/motherboard/dimm21',
154e5fe522aSYi Li        0x22 : '<inventory_root>/system/chassis/motherboard/dimm22',
155e5fe522aSYi Li        0x23 : '<inventory_root>/system/chassis/motherboard/dimm23',
156e5fe522aSYi Li        0x24 : '<inventory_root>/system/chassis/motherboard/dimm24',
157e5fe522aSYi Li        0x25 : '<inventory_root>/system/chassis/motherboard/dimm25',
158e5fe522aSYi Li        0x26 : '<inventory_root>/system/chassis/motherboard/dimm26',
159e5fe522aSYi Li        0x27 : '<inventory_root>/system/chassis/motherboard/dimm27',
160e5fe522aSYi Li        0x28 : '<inventory_root>/system/chassis/motherboard/dimm28',
161e5fe522aSYi Li        0x29 : '<inventory_root>/system/chassis/motherboard/dimm29',
162e5fe522aSYi Li        0x2a : '<inventory_root>/system/chassis/motherboard/dimm30',
163e5fe522aSYi Li        0x2b : '<inventory_root>/system/chassis/motherboard/dimm31',
164e5fe522aSYi Li    },
165e5fe522aSYi Li    'FRU_STR' : {
166e5fe522aSYi Li        'PRODUCT_0'  : '<inventory_root>/system/bios',
167e5fe522aSYi Li        'BOARD_1'    : '<inventory_root>/system/chassis/motherboard/cpu0',
168e5fe522aSYi Li        'BOARD_2'    : '<inventory_root>/system/chassis/motherboard/cpu1',
169e5fe522aSYi Li        'CHASSIS_3'  : '<inventory_root>/system/chassis/motherboard',
170e5fe522aSYi Li        'BOARD_3'    : '<inventory_root>/system/misc',
171e5fe522aSYi Li        'BOARD_4'    : '<inventory_root>/system/chassis/motherboard/membuf0',
172e5fe522aSYi Li        'BOARD_5'    : '<inventory_root>/system/chassis/motherboard/membuf1',
173e5fe522aSYi Li        'BOARD_6'    : '<inventory_root>/system/chassis/motherboard/membuf2',
174e5fe522aSYi Li        'BOARD_7'    : '<inventory_root>/system/chassis/motherboard/membuf3',
175e5fe522aSYi Li        'BOARD_8'    : '<inventory_root>/system/chassis/motherboard/membuf4',
176e5fe522aSYi Li        'BOARD_9'    : '<inventory_root>/system/chassis/motherboard/membuf5',
177e5fe522aSYi Li        'BOARD_10'   : '<inventory_root>/system/chassis/motherboard/membuf6',
178e5fe522aSYi Li        'BOARD_11'   : '<inventory_root>/system/chassis/motherboard/membuf7',
179e5fe522aSYi Li        'PRODUCT_12'   : '<inventory_root>/system/chassis/motherboard/dimm0',
180e5fe522aSYi Li        'PRODUCT_13'   : '<inventory_root>/system/chassis/motherboard/dimm1',
181e5fe522aSYi Li        'PRODUCT_14'   : '<inventory_root>/system/chassis/motherboard/dimm2',
182e5fe522aSYi Li        'PRODUCT_15'   : '<inventory_root>/system/chassis/motherboard/dimm3',
183e5fe522aSYi Li        'PRODUCT_16'   : '<inventory_root>/system/chassis/motherboard/dimm4',
184e5fe522aSYi Li        'PRODUCT_17'   : '<inventory_root>/system/chassis/motherboard/dimm5',
185e5fe522aSYi Li        'PRODUCT_18'   : '<inventory_root>/system/chassis/motherboard/dimm6',
186e5fe522aSYi Li        'PRODUCT_19'   : '<inventory_root>/system/chassis/motherboard/dimm7',
187e5fe522aSYi Li        'PRODUCT_20'   : '<inventory_root>/system/chassis/motherboard/dimm8',
188e5fe522aSYi Li        'PRODUCT_21'   : '<inventory_root>/system/chassis/motherboard/dimm9',
189e5fe522aSYi Li        'PRODUCT_22'   : '<inventory_root>/system/chassis/motherboard/dimm10',
190e5fe522aSYi Li        'PRODUCT_23'   : '<inventory_root>/system/chassis/motherboard/dimm11',
191e5fe522aSYi Li        'PRODUCT_24'   : '<inventory_root>/system/chassis/motherboard/dimm12',
192e5fe522aSYi Li        'PRODUCT_25'   : '<inventory_root>/system/chassis/motherboard/dimm13',
193e5fe522aSYi Li        'PRODUCT_26'   : '<inventory_root>/system/chassis/motherboard/dimm14',
194e5fe522aSYi Li        'PRODUCT_27'   : '<inventory_root>/system/chassis/motherboard/dimm15',
195e5fe522aSYi Li        'PRODUCT_28'   : '<inventory_root>/system/chassis/motherboard/dimm16',
196e5fe522aSYi Li        'PRODUCT_29'   : '<inventory_root>/system/chassis/motherboard/dimm17',
197e5fe522aSYi Li        'PRODUCT_30'   : '<inventory_root>/system/chassis/motherboard/dimm18',
198e5fe522aSYi Li        'PRODUCT_31'   : '<inventory_root>/system/chassis/motherboard/dimm19',
199e5fe522aSYi Li        'PRODUCT_32'   : '<inventory_root>/system/chassis/motherboard/dimm20',
200e5fe522aSYi Li        'PRODUCT_33'   : '<inventory_root>/system/chassis/motherboard/dimm21',
201e5fe522aSYi Li        'PRODUCT_34'   : '<inventory_root>/system/chassis/motherboard/dimm22',
202e5fe522aSYi Li        'PRODUCT_35'   : '<inventory_root>/system/chassis/motherboard/dimm23',
203e5fe522aSYi Li        'PRODUCT_36'   : '<inventory_root>/system/chassis/motherboard/dimm24',
204e5fe522aSYi Li        'PRODUCT_37'   : '<inventory_root>/system/chassis/motherboard/dimm25',
205e5fe522aSYi Li        'PRODUCT_38'   : '<inventory_root>/system/chassis/motherboard/dimm26',
206e5fe522aSYi Li        'PRODUCT_39'   : '<inventory_root>/system/chassis/motherboard/dimm27',
207e5fe522aSYi Li        'PRODUCT_40'   : '<inventory_root>/system/chassis/motherboard/dimm28',
208e5fe522aSYi Li        'PRODUCT_41'   : '<inventory_root>/system/chassis/motherboard/dimm29',
209e5fe522aSYi Li        'PRODUCT_42'   : '<inventory_root>/system/chassis/motherboard/dimm30',
210e5fe522aSYi Li        'PRODUCT_43'   : '<inventory_root>/system/chassis/motherboard/dimm31',
211e5fe522aSYi Li        'PRODUCT_47'   : '<inventory_root>/system/misc',
212e5fe522aSYi Li    },
213e5fe522aSYi Li    'SENSOR' : {
214e5fe522aSYi Li        0x04 : '/org/openbmc/sensors/host/HostStatus',
215e5fe522aSYi Li        0x05 : '/org/openbmc/sensors/host/BootProgress',
216e5fe522aSYi Li        0x08 : '/org/openbmc/sensors/host/cpu0/OccStatus',
217e5fe522aSYi Li        0x09 : '/org/openbmc/sensors/host/cpu1/OccStatus',
218e5fe522aSYi Li        0x0c : '<inventory_root>/system/chassis/motherboard/cpu0',
219e5fe522aSYi Li        0x0e : '<inventory_root>/system/chassis/motherboard/cpu1',
220e5fe522aSYi Li        0x1e : '<inventory_root>/system/chassis/motherboard/dimm3',
221e5fe522aSYi Li        0x1f : '<inventory_root>/system/chassis/motherboard/dimm2',
222e5fe522aSYi Li        0x20 : '<inventory_root>/system/chassis/motherboard/dimm1',
223e5fe522aSYi Li        0x21 : '<inventory_root>/system/chassis/motherboard/dimm0',
224e5fe522aSYi Li        0x22 : '<inventory_root>/system/chassis/motherboard/dimm7',
225e5fe522aSYi Li        0x23 : '<inventory_root>/system/chassis/motherboard/dimm6',
226e5fe522aSYi Li        0x24 : '<inventory_root>/system/chassis/motherboard/dimm5',
227e5fe522aSYi Li        0x25 : '<inventory_root>/system/chassis/motherboard/dimm4',
228e5fe522aSYi Li        0x26 : '<inventory_root>/system/chassis/motherboard/dimm11',
229e5fe522aSYi Li        0x27 : '<inventory_root>/system/chassis/motherboard/dimm10',
230e5fe522aSYi Li        0x28 : '<inventory_root>/system/chassis/motherboard/dimm9',
231e5fe522aSYi Li        0x29 : '<inventory_root>/system/chassis/motherboard/dimm8',
232e5fe522aSYi Li        0x2a : '<inventory_root>/system/chassis/motherboard/dimm15',
233e5fe522aSYi Li        0x2b : '<inventory_root>/system/chassis/motherboard/dimm14',
234e5fe522aSYi Li        0x2c : '<inventory_root>/system/chassis/motherboard/dimm13',
235e5fe522aSYi Li        0x2d : '<inventory_root>/system/chassis/motherboard/dimm12',
236e5fe522aSYi Li        0x2e : '<inventory_root>/system/chassis/motherboard/dimm19',
237e5fe522aSYi Li        0x2f : '<inventory_root>/system/chassis/motherboard/dimm18',
238e5fe522aSYi Li        0x30 : '<inventory_root>/system/chassis/motherboard/dimm17',
239e5fe522aSYi Li        0x31 : '<inventory_root>/system/chassis/motherboard/dimm16',
240e5fe522aSYi Li        0x32 : '<inventory_root>/system/chassis/motherboard/dimm23',
241e5fe522aSYi Li        0x33 : '<inventory_root>/system/chassis/motherboard/dimm22',
242e5fe522aSYi Li        0x34 : '<inventory_root>/system/chassis/motherboard/dimm21',
243e5fe522aSYi Li        0x35 : '<inventory_root>/system/chassis/motherboard/dimm20',
244e5fe522aSYi Li        0x36 : '<inventory_root>/system/chassis/motherboard/dimm27',
245e5fe522aSYi Li        0x37 : '<inventory_root>/system/chassis/motherboard/dimm26',
246e5fe522aSYi Li        0x38 : '<inventory_root>/system/chassis/motherboard/dimm25',
247e5fe522aSYi Li        0x39 : '<inventory_root>/system/chassis/motherboard/dimm24',
248e5fe522aSYi Li        0x3a : '<inventory_root>/system/chassis/motherboard/dimm31',
249e5fe522aSYi Li        0x3b : '<inventory_root>/system/chassis/motherboard/dimm30',
250e5fe522aSYi Li        0x3c : '<inventory_root>/system/chassis/motherboard/dimm29',
251e5fe522aSYi Li        0x3d : '<inventory_root>/system/chassis/motherboard/dimm28',
252e5fe522aSYi Li        0x3e : '<inventory_root>/system/chassis/motherboard/cpu0/core0',
253e5fe522aSYi Li        0x3f : '<inventory_root>/system/chassis/motherboard/cpu0/core1',
254e5fe522aSYi Li        0x40 : '<inventory_root>/system/chassis/motherboard/cpu0/core2',
255e5fe522aSYi Li        0x41 : '<inventory_root>/system/chassis/motherboard/cpu0/core3',
256e5fe522aSYi Li        0x42 : '<inventory_root>/system/chassis/motherboard/cpu0/core4',
257e5fe522aSYi Li        0x43 : '<inventory_root>/system/chassis/motherboard/cpu0/core5',
258e5fe522aSYi Li        0x44 : '<inventory_root>/system/chassis/motherboard/cpu0/core6',
259e5fe522aSYi Li        0x45 : '<inventory_root>/system/chassis/motherboard/cpu0/core7',
260e5fe522aSYi Li        0x46 : '<inventory_root>/system/chassis/motherboard/cpu0/core8',
261e5fe522aSYi Li        0x47 : '<inventory_root>/system/chassis/motherboard/cpu0/core9',
262e5fe522aSYi Li        0x48 : '<inventory_root>/system/chassis/motherboard/cpu0/core10',
263e5fe522aSYi Li        0x49 : '<inventory_root>/system/chassis/motherboard/cpu0/core11',
264e5fe522aSYi Li        0x4a : '<inventory_root>/system/chassis/motherboard/cpu1/core0',
265e5fe522aSYi Li        0x4b : '<inventory_root>/system/chassis/motherboard/cpu1/core1',
266e5fe522aSYi Li        0x4c : '<inventory_root>/system/chassis/motherboard/cpu1/core2',
267e5fe522aSYi Li        0x4d : '<inventory_root>/system/chassis/motherboard/cpu1/core3',
268e5fe522aSYi Li        0x4e : '<inventory_root>/system/chassis/motherboard/cpu1/core4',
269e5fe522aSYi Li        0x4f : '<inventory_root>/system/chassis/motherboard/cpu1/core5',
270e5fe522aSYi Li        0x50 : '<inventory_root>/system/chassis/motherboard/cpu1/core6',
271e5fe522aSYi Li        0x51 : '<inventory_root>/system/chassis/motherboard/cpu1/core7',
272e5fe522aSYi Li        0x52 : '<inventory_root>/system/chassis/motherboard/cpu1/core8',
273e5fe522aSYi Li        0x53 : '<inventory_root>/system/chassis/motherboard/cpu1/core9',
274e5fe522aSYi Li        0x54 : '<inventory_root>/system/chassis/motherboard/cpu1/core10',
275e5fe522aSYi Li        0x55 : '<inventory_root>/system/chassis/motherboard/cpu1/core11',
276e5fe522aSYi Li        0x56 : '<inventory_root>/system/chassis/motherboard/membuf0',
277e5fe522aSYi Li        0x57 : '<inventory_root>/system/chassis/motherboard/membuf1',
278e5fe522aSYi Li        0x58 : '<inventory_root>/system/chassis/motherboard/membuf2',
279e5fe522aSYi Li        0x59 : '<inventory_root>/system/chassis/motherboard/membuf3',
280e5fe522aSYi Li        0x5a : '<inventory_root>/system/chassis/motherboard/membuf4',
281e5fe522aSYi Li        0x5b : '<inventory_root>/system/chassis/motherboard/membuf5',
282e5fe522aSYi Li        0x5c : '<inventory_root>/system/chassis/motherboard/membuf6',
283e5fe522aSYi Li        0x5d : '<inventory_root>/system/chassis/motherboard/membuf7',
284e5fe522aSYi Li        0x5f : '/org/openbmc/sensors/host/BootCount',
285e5fe522aSYi Li        0x60 : '<inventory_root>/system/chassis/motherboard',
286e5fe522aSYi Li        0x61 : '<inventory_root>/system/systemevent',
287e5fe522aSYi Li        0x62 : '<inventory_root>/system/powerlimit',
288e5fe522aSYi Li        0x63 : '<inventory_root>/system/chassis/motherboard/refclock',
289e5fe522aSYi Li        0x64 : '<inventory_root>/system/chassis/motherboard/pcieclock',
290e5fe522aSYi Li        0xb1 : '<inventory_root>/system/chassis/motherboard/todclock',
291e5fe522aSYi Li        0xb2 : '<inventory_root>/system/chassis/motherboard/apss',
292e5fe522aSYi Li        0xb3 : '/org/openbmc/sensors/host/powercap',
293e5fe522aSYi Li        0xb5 : '/org/openbmc/sensors/host/OperatingSystemStatus',
294e5fe522aSYi Li        0xb6 : '<inventory_root>/system/chassis/motherboard/pcielink',
295e5fe522aSYi Li    },
296e5fe522aSYi Li    'GPIO_PRESENT' : {}
297e5fe522aSYi Li}
298e5fe522aSYi Li
299e5fe522aSYi LiGPIO_CONFIG = {}
300e5fe522aSYi LiGPIO_CONFIG['BMC_POWER_UP'] = \
301e5fe522aSYi Li        {'gpio_pin': 'D1', 'direction': 'out'}
30212a26d27SYi LiGPIO_CONFIG['SOFTWARE_PGOOD'] = \
30312a26d27SYi Li        {'gpio_pin': 'R1', 'direction': 'out'}
304e5fe522aSYi LiGPIO_CONFIG['SYS_PWROK_BUFF'] = \
305e5fe522aSYi Li        {'gpio_pin': 'D2', 'direction': 'in'}
30612a26d27SYi Li
30712a26d27SYi Li# PV_CP_MD_JTAG_ATTENTION_N
308b4140b88SAdriana KobylakGPIO_CONFIG['CHECKSTOP'] = \
309b4140b88SAdriana Kobylak        {'gpio_pin': 'J2', 'direction': 'falling'}
310e5fe522aSYi Li
311e5fe522aSYi LiGPIO_CONFIG['BMC_CP0_RESET_N'] = \
312e5fe522aSYi Li        {'gpio_pin': 'A1', 'direction': 'out'}
31312a26d27SYi Li# pcie switch reset
314e5fe522aSYi LiGPIO_CONFIG['BMC_VS1_PERST_N'] = \
315e5fe522aSYi Li        {'gpio_pin': 'B7', 'direction': 'out'}
31612a26d27SYi Li# pcie slots reset - not connected?
317e5fe522aSYi LiGPIO_CONFIG['BMC_CP0_PERST_ENABLE_R'] = \
318e5fe522aSYi Li        {'gpio_pin': 'A3', 'direction': 'out'}
319e5fe522aSYi Li
32012a26d27SYi Li# SOFT_FSI_DAT
321e5fe522aSYi LiGPIO_CONFIG['FSI_DATA'] = \
322e5fe522aSYi Li        {'gpio_pin': 'E0', 'direction': 'out'}
32312a26d27SYi Li# SOFT_FSI_CLK
324e5fe522aSYi LiGPIO_CONFIG['FSI_CLK'] = \
325e5fe522aSYi Li        {'gpio_pin': 'AA0', 'direction': 'out'}
32612a26d27SYi Li# BMC_FSI_IN_ENA
327e5fe522aSYi LiGPIO_CONFIG['FSI_ENABLE'] = \
328e5fe522aSYi Li        {'gpio_pin': 'D0', 'direction': 'out'}
32912a26d27SYi Li# FSI_JMFG0_PRSNT_N
330e5fe522aSYi LiGPIO_CONFIG['CRONUS_SEL'] = \
331e5fe522aSYi Li        {'gpio_pin': 'A6', 'direction': 'out'}
332e5fe522aSYi Li
33312a26d27SYi Li# FP_PWR_BTN_N
334e5fe522aSYi LiGPIO_CONFIG['POWER_BUTTON'] = \
335e5fe522aSYi Li        {'gpio_pin': 'I3', 'direction': 'both'}
33612a26d27SYi Li# BMC_NMIBTN_IN_N
337e5fe522aSYi LiGPIO_CONFIG['RESET_BUTTON'] = \
338e5fe522aSYi Li        {'gpio_pin': 'J1', 'direction': 'both'}
339e5fe522aSYi Li
34012a26d27SYi Li# FIXME: needed for Witherspoon?
34112a26d27SYi Li# Tracked by openbmc/openbmc#814
34212a26d27SYi Li# FP_ID_BTN_N
34312a26d27SYi LiGPIO_CONFIG['IDBTN'] = \
34412a26d27SYi Li    {'gpio_pin': 'Q7', 'direction': 'out'}
345e5fe522aSYi Li
346e5fe522aSYi LiHWMON_CONFIG = {
347e5fe522aSYi Li    '4-0050' : {
348e5fe522aSYi Li        'names' : {
349e5fe522aSYi Li            'caps_curr_powercap' : { 'object_path' : 'powercap/curr_cap','poll_interval' : 10000,'scale' : 1,'units' : 'W' },
350e5fe522aSYi Li            'caps_curr_powerreading' : { 'object_path' : 'powercap/system_power','poll_interval' : 10000,'scale' : 1,'units' : 'W' },
351e5fe522aSYi Li            'caps_max_powercap' : { 'object_path' : 'powercap/max_cap','poll_interval' : 10000,'scale' : 1,'units' : 'W' },
352e5fe522aSYi Li            'caps_min_powercap' : { 'object_path' : 'powercap/min_cap','poll_interval' : 10000,'scale' : 1,'units' : 'W' },
353e5fe522aSYi Li            'caps_norm_powercap' : { 'object_path' : 'powercap/n_cap','poll_interval' : 10000,'scale' : 1,'units' : 'W' },
354e5fe522aSYi Li            'caps_user_powerlimit' : { 'object_path' : 'powercap/user_cap','poll_interval' : 10000,'scale' : 1,'units' : 'W' },
355e5fe522aSYi Li        },
356e5fe522aSYi Li        'labels' : {
357c14f6fecSEdward A. James        '176' :  { 'object_path' : 'temperature/cpu0/core0','poll_interval' : 5000,'scale' : -3,'units' : 'C',
358e5fe522aSYi Li            'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
359c14f6fecSEdward A. James        '177' :  { 'object_path' : 'temperature/cpu0/core1','poll_interval' : 5000,'scale' : -3,'units' : 'C',
360e5fe522aSYi Li            'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
361c14f6fecSEdward A. James        '178' :  { 'object_path' : 'temperature/cpu0/core2','poll_interval' : 5000,'scale' : -3,'units' : 'C',
362e5fe522aSYi Li            'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
363c14f6fecSEdward A. James        '179' :  { 'object_path' : 'temperature/cpu0/core3','poll_interval' : 5000,'scale' : -3,'units' : 'C',
364e5fe522aSYi Li            'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
365c14f6fecSEdward A. James        '180' :  { 'object_path' : 'temperature/cpu0/core4','poll_interval' : 5000,'scale' : -3,'units' : 'C',
366e5fe522aSYi Li            'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
367c14f6fecSEdward A. James        '181' :  { 'object_path' : 'temperature/cpu0/core5','poll_interval' : 5000,'scale' : -3,'units' : 'C',
368e5fe522aSYi Li            'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
369c14f6fecSEdward A. James        '182' :  { 'object_path' : 'temperature/cpu0/core6','poll_interval' : 5000,'scale' : -3,'units' : 'C',
370e5fe522aSYi Li            'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
371c14f6fecSEdward A. James        '183' :  { 'object_path' : 'temperature/cpu0/core7','poll_interval' : 5000,'scale' : -3,'units' : 'C',
372e5fe522aSYi Li            'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
373c14f6fecSEdward A. James        '184' :  { 'object_path' : 'temperature/cpu0/core8','poll_interval' : 5000,'scale' : -3,'units' : 'C',
374e5fe522aSYi Li            'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
375c14f6fecSEdward A. James        '185' :  { 'object_path' : 'temperature/cpu0/core9','poll_interval' : 5000,'scale' : -3,'units' : 'C',
376e5fe522aSYi Li            'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
377c14f6fecSEdward A. James        '186' :  { 'object_path' : 'temperature/cpu0/core10','poll_interval' : 5000,'scale' : -3,'units' : 'C',
378e5fe522aSYi Li            'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
379c14f6fecSEdward A. James        '187' :  { 'object_path' : 'temperature/cpu0/core11','poll_interval' : 5000,'scale' : -3,'units' : 'C',
380e5fe522aSYi Li            'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
381c14f6fecSEdward A. James        '102' :  { 'object_path' : 'temperature/dimm0','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
382c14f6fecSEdward A. James        '103' :  { 'object_path' : 'temperature/dimm1','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
383c14f6fecSEdward A. James        '104' :  { 'object_path' : 'temperature/dimm2','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
384c14f6fecSEdward A. James        '105' :  { 'object_path' : 'temperature/dimm3','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
385c14f6fecSEdward A. James        '106' :  { 'object_path' : 'temperature/dimm4','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
386c14f6fecSEdward A. James        '107' :  { 'object_path' : 'temperature/dimm5','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
387c14f6fecSEdward A. James        '108' :  { 'object_path' : 'temperature/dimm6','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
388c14f6fecSEdward A. James        '109' :  { 'object_path' : 'temperature/dimm7','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
389c14f6fecSEdward A. James        '110' :  { 'object_path' : 'temperature/dimm8','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
390c14f6fecSEdward A. James        '111' :  { 'object_path' : 'temperature/dimm9','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
391c14f6fecSEdward A. James        '112' :  { 'object_path' : 'temperature/dimm10','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
392c14f6fecSEdward A. James        '113' :  { 'object_path' : 'temperature/dimm11','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
393c14f6fecSEdward A. James        '114' :  { 'object_path' : 'temperature/dimm12','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
394c14f6fecSEdward A. James        '115' :  { 'object_path' : 'temperature/dimm13','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
395c14f6fecSEdward A. James        '116' :  { 'object_path' : 'temperature/dimm14','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
396c14f6fecSEdward A. James        '117' :  { 'object_path' : 'temperature/dimm15','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
397c14f6fecSEdward A. James        '94' :  { 'object_path' : 'temperature/membuf0','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
398c14f6fecSEdward A. James        '95' :  { 'object_path' : 'temperature/membuf1','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
399c14f6fecSEdward A. James        '96' :  { 'object_path' : 'temperature/membuf2','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
400c14f6fecSEdward A. James        '97' :  { 'object_path' : 'temperature/membuf3','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
401e5fe522aSYi Li        }
402e5fe522aSYi Li    },
403e5fe522aSYi Li    '5-0050' : {
404e5fe522aSYi Li        'labels' :  {
405c14f6fecSEdward A. James        '188' :  { 'object_path' : 'temperature/cpu1/core0','poll_interval' : 5000,'scale' : -3,'units' : 'C',
406e5fe522aSYi Li            'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
407c14f6fecSEdward A. James        '189' :  { 'object_path' : 'temperature/cpu1/core1','poll_interval' : 5000,'scale' : -3,'units' : 'C',
408e5fe522aSYi Li            'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
409c14f6fecSEdward A. James        '190' :  { 'object_path' : 'temperature/cpu1/core2','poll_interval' : 5000,'scale' : -3,'units' : 'C',
410e5fe522aSYi Li            'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
411c14f6fecSEdward A. James        '191' :  { 'object_path' : 'temperature/cpu1/core3','poll_interval' : 5000,'scale' : -3,'units' : 'C',
412e5fe522aSYi Li            'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
413c14f6fecSEdward A. James        '192' :  { 'object_path' : 'temperature/cpu1/core4','poll_interval' : 5000,'scale' : -3,'units' : 'C',
414e5fe522aSYi Li            'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
415c14f6fecSEdward A. James        '193' :  { 'object_path' : 'temperature/cpu1/core5','poll_interval' : 5000,'scale' : -3,'units' : 'C',
416e5fe522aSYi Li            'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
417c14f6fecSEdward A. James        '194' :  { 'object_path' : 'temperature/cpu1/core6','poll_interval' : 5000,'scale' : -3,'units' : 'C',
418e5fe522aSYi Li            'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
419c14f6fecSEdward A. James        '195' :  { 'object_path' : 'temperature/cpu1/core7','poll_interval' : 5000,'scale' : -3,'units' : 'C',
420e5fe522aSYi Li            'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
421c14f6fecSEdward A. James        '196' :  { 'object_path' : 'temperature/cpu1/core8','poll_interval' : 5000,'scale' : -3,'units' : 'C',
422e5fe522aSYi Li            'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
423c14f6fecSEdward A. James        '197' :  { 'object_path' : 'temperature/cpu1/core9','poll_interval' : 5000,'scale' : -3,'units' : 'C',
424e5fe522aSYi Li            'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
425c14f6fecSEdward A. James        '198' :  { 'object_path' : 'temperature/cpu1/core10','poll_interval' : 5000,'scale' : -3,'units' : 'C',
426e5fe522aSYi Li            'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
427c14f6fecSEdward A. James        '199' :  { 'object_path' : 'temperature/cpu1/core11','poll_interval' : 5000,'scale' : -3,'units' : 'C',
428e5fe522aSYi Li            'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
429c14f6fecSEdward A. James        '118' :  { 'object_path' : 'temperature/dimm16','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
430c14f6fecSEdward A. James        '119' :  { 'object_path' : 'temperature/dimm17','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
431c14f6fecSEdward A. James        '120' :  { 'object_path' : 'temperature/dimm18','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
432c14f6fecSEdward A. James        '121' :  { 'object_path' : 'temperature/dimm19','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
433c14f6fecSEdward A. James        '122' :  { 'object_path' : 'temperature/dimm20','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
434c14f6fecSEdward A. James        '123' :  { 'object_path' : 'temperature/dimm21','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
435c14f6fecSEdward A. James        '124' :  { 'object_path' : 'temperature/dimm22','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
436c14f6fecSEdward A. James        '125' :  { 'object_path' : 'temperature/dimm23','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
437c14f6fecSEdward A. James        '126' :  { 'object_path' : 'temperature/dimm24','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
438c14f6fecSEdward A. James        '127' :  { 'object_path' : 'temperature/dimm25','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
439c14f6fecSEdward A. James        '128' :  { 'object_path' : 'temperature/dimm26','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
440c14f6fecSEdward A. James        '129' :  { 'object_path' : 'temperature/dimm27','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
441c14f6fecSEdward A. James        '130' :  { 'object_path' : 'temperature/dimm28','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
442c14f6fecSEdward A. James        '131' :  { 'object_path' : 'temperature/dimm29','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
443c14f6fecSEdward A. James        '132' :  { 'object_path' : 'temperature/dimm30','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
444c14f6fecSEdward A. James        '133' :  { 'object_path' : 'temperature/dimm31','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
445c14f6fecSEdward A. James        '98' :  { 'object_path' : 'temperature/membuf4','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
446c14f6fecSEdward A. James        '99' :  { 'object_path' : 'temperature/membuf5','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
447c14f6fecSEdward A. James        '100' :  { 'object_path' : 'temperature/membuf6','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
448c14f6fecSEdward A. James        '101' :  { 'object_path' : 'temperature/membuf7','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
449e5fe522aSYi Li        }
450e5fe522aSYi Li    },
451e5fe522aSYi Li}
452e5fe522aSYi Li
4534088ec38SXo Wang
454*75a18a23SLei YUGPIO_CONFIGS = {
455*75a18a23SLei YU    'power_config' : {
4564088ec38SXo Wang        'power_good_in' : 'SYS_PWROK_BUFF',
4574088ec38SXo Wang        'power_up_outs' : [
45812a26d27SYi Li            ('SOFTWARE_PGOOD', True),
4594088ec38SXo Wang            ('BMC_POWER_UP', True),
4604088ec38SXo Wang        ],
4614088ec38SXo Wang        'reset_outs' : [
46212a26d27SYi Li            ('BMC_CP0_RESET_N', False),
46312a26d27SYi Li        ],
46412a26d27SYi Li        'pci_reset_outs': [
46512a26d27SYi Li            # net name, polarity, reset hold
46612a26d27SYi Li            ('BMC_VS1_PERST_N', False, False),
46712a26d27SYi Li            ('BMC_CP0_PERST_ENABLE_R', False, False),
4684088ec38SXo Wang        ],
469*75a18a23SLei YU    },
470*75a18a23SLei YU    'hostctl_config' : {
471*75a18a23SLei YU        'fsi_data' : 'FSI_DATA',
472*75a18a23SLei YU        'fsi_clk' : 'FSI_CLK',
473*75a18a23SLei YU        'fsi_enable' : 'FSI_ENABLE',
474*75a18a23SLei YU        'cronus_sel' : 'CRONUS_SEL',
475*75a18a23SLei YU        'optionals' : [
476*75a18a23SLei YU        ],
477*75a18a23SLei YU    },
4784088ec38SXo Wang}
4794088ec38SXo Wang
4804088ec38SXo Wang
481e5fe522aSYi Li# Miscellaneous non-poll sensor with system specific properties.
482e5fe522aSYi Li# The sensor id is the same as those defined in ID_LOOKUP['SENSOR'].
483e5fe522aSYi LiMISC_SENSORS = {
484e5fe522aSYi Li    0x5f : { 'class' : 'BootCountSensor' },
485e5fe522aSYi Li    0x05 : { 'class' : 'BootProgressSensor' },
486e5fe522aSYi Li    0x08 : { 'class' : 'OccStatusSensor',
487e5fe522aSYi Li        'os_path' : '/sys/class/i2c-adapter/i2c-3/3-0050/online' },
488e5fe522aSYi Li    0x09 : { 'class' : 'OccStatusSensor',
489e5fe522aSYi Li        'os_path' : '/sys/class/i2c-adapter/i2c-3/3-0051/online' },
490e5fe522aSYi Li    0xb5 : { 'class' : 'OperatingSystemStatusSensor' },
491e5fe522aSYi Li    0xb3 : { 'class' : 'PowerCap',
492e5fe522aSYi Li        'os_path' : '/sys/class/hwmon/hwmon3/user_powercap' },
493e5fe522aSYi Li}
49453066750SBrad Bishop
49553066750SBrad Bishop# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4
496