xref: /openbmc/skeleton/configs/Zaius.py (revision 0475f65f)
1## System states
2##   state can change to next state in 2 ways:
3##   - a process emits a GotoSystemState signal with state name to goto
4##   - objects specified in EXIT_STATE_DEPEND have started
5SYSTEM_STATES = [
6    'BASE_APPS',
7    'BMC_STARTING',
8    'BMC_READY',
9    'HOST_POWERING_ON',
10    'HOST_POWERED_ON',
11    'HOST_BOOTING',
12    'HOST_BOOTED',
13    'HOST_POWERED_OFF',
14]
15
16EXIT_STATE_DEPEND = {
17    'BASE_APPS' : {
18        '/org/openbmc/sensors': 0,
19    },
20    'BMC_STARTING' : {
21        '/org/openbmc/control/chassis0': 0,
22        '/org/openbmc/control/power0' : 0,
23        '/org/openbmc/control/host0' : 0,
24        '/org/openbmc/control/flash/bios' : 0,
25    },
26}
27
28FRU_INSTANCES = {
29    '<inventory_root>/system' : { 'fru_type' : 'SYSTEM','is_fru' : True, 'present' : "True" },
30    '<inventory_root>/system/bios' : { 'fru_type' : 'SYSTEM','is_fru' : True, 'present' : "True" },
31    '<inventory_root>/system/misc' : { 'fru_type' : 'SYSTEM','is_fru' : False, },
32
33    '<inventory_root>/system/chassis' : { 'fru_type' : 'SYSTEM','is_fru' : True, 'present' : "True" },
34
35    '<inventory_root>/system/chassis/motherboard' : { 'fru_type' : 'MAIN_PLANAR','is_fru' : True, },
36
37    '<inventory_root>/system/systemevent'                  : { 'fru_type' : 'SYSTEM_EVENT', 'is_fru' : False, },
38    '<inventory_root>/system/chassis/motherboard/refclock' : { 'fru_type' : 'MAIN_PLANAR', 'is_fru' : False, },
39    '<inventory_root>/system/chassis/motherboard/pcieclock': { 'fru_type' : 'MAIN_PLANAR', 'is_fru' : False, },
40    '<inventory_root>/system/chassis/motherboard/todclock' : { 'fru_type' : 'MAIN_PLANAR', 'is_fru' : False, },
41
42    '<inventory_root>/system/chassis/fan0' : { 'fru_type' : 'FAN','is_fru' : True, },
43    '<inventory_root>/system/chassis/fan1' : { 'fru_type' : 'FAN','is_fru' : True, },
44    '<inventory_root>/system/chassis/fan2' : { 'fru_type' : 'FAN','is_fru' : True, },
45
46    '<inventory_root>/system/chassis/motherboard/bmc' : { 'fru_type' : 'BMC','is_fru' : False, 'manufacturer' : 'ASPEED' },
47
48    '<inventory_root>/system/chassis/motherboard/cpu0' : { 'fru_type' : 'CPU', 'is_fru' : True, },
49    '<inventory_root>/system/chassis/motherboard/cpu1' : { 'fru_type' : 'CPU', 'is_fru' : True, },
50
51    '<inventory_root>/system/chassis/motherboard/cpu0/core0' : { 'fru_type' : 'CORE', 'is_fru' : False, },
52    '<inventory_root>/system/chassis/motherboard/cpu0/core1' : { 'fru_type' : 'CORE', 'is_fru' : False, },
53    '<inventory_root>/system/chassis/motherboard/cpu0/core2' : { 'fru_type' : 'CORE', 'is_fru' : False, },
54    '<inventory_root>/system/chassis/motherboard/cpu0/core3' : { 'fru_type' : 'CORE', 'is_fru' : False, },
55    '<inventory_root>/system/chassis/motherboard/cpu0/core4' : { 'fru_type' : 'CORE', 'is_fru' : False, },
56    '<inventory_root>/system/chassis/motherboard/cpu0/core5' : { 'fru_type' : 'CORE', 'is_fru' : False, },
57    '<inventory_root>/system/chassis/motherboard/cpu0/core6' : { 'fru_type' : 'CORE', 'is_fru' : False, },
58    '<inventory_root>/system/chassis/motherboard/cpu0/core7' : { 'fru_type' : 'CORE', 'is_fru' : False, },
59    '<inventory_root>/system/chassis/motherboard/cpu0/core8' : { 'fru_type' : 'CORE', 'is_fru' : False, },
60    '<inventory_root>/system/chassis/motherboard/cpu0/core9' : { 'fru_type' : 'CORE', 'is_fru' : False, },
61    '<inventory_root>/system/chassis/motherboard/cpu0/core10': { 'fru_type' : 'CORE', 'is_fru' : False, },
62    '<inventory_root>/system/chassis/motherboard/cpu0/core11': { 'fru_type' : 'CORE', 'is_fru' : False, },
63
64    '<inventory_root>/system/chassis/motherboard/cpu1/core0' : { 'fru_type' : 'CORE', 'is_fru' : False, },
65    '<inventory_root>/system/chassis/motherboard/cpu1/core1' : { 'fru_type' : 'CORE', 'is_fru' : False, },
66    '<inventory_root>/system/chassis/motherboard/cpu1/core2' : { 'fru_type' : 'CORE', 'is_fru' : False, },
67    '<inventory_root>/system/chassis/motherboard/cpu1/core3' : { 'fru_type' : 'CORE', 'is_fru' : False, },
68    '<inventory_root>/system/chassis/motherboard/cpu1/core4' : { 'fru_type' : 'CORE', 'is_fru' : False, },
69    '<inventory_root>/system/chassis/motherboard/cpu1/core5' : { 'fru_type' : 'CORE', 'is_fru' : False, },
70    '<inventory_root>/system/chassis/motherboard/cpu1/core6' : { 'fru_type' : 'CORE', 'is_fru' : False, },
71    '<inventory_root>/system/chassis/motherboard/cpu1/core7' : { 'fru_type' : 'CORE', 'is_fru' : False, },
72    '<inventory_root>/system/chassis/motherboard/cpu1/core8' : { 'fru_type' : 'CORE', 'is_fru' : False, },
73    '<inventory_root>/system/chassis/motherboard/cpu1/core9' : { 'fru_type' : 'CORE', 'is_fru' : False, },
74    '<inventory_root>/system/chassis/motherboard/cpu1/core10' : { 'fru_type' : 'CORE', 'is_fru' : False, },
75    '<inventory_root>/system/chassis/motherboard/cpu1/core11' : { 'fru_type' : 'CORE', 'is_fru' : False, },
76
77    '<inventory_root>/system/chassis/motherboard/dimm0' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
78    '<inventory_root>/system/chassis/motherboard/dimm1' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
79    '<inventory_root>/system/chassis/motherboard/dimm2' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
80    '<inventory_root>/system/chassis/motherboard/dimm3' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
81    '<inventory_root>/system/chassis/motherboard/dimm4' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
82    '<inventory_root>/system/chassis/motherboard/dimm5' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
83    '<inventory_root>/system/chassis/motherboard/dimm6' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
84    '<inventory_root>/system/chassis/motherboard/dimm7' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
85    '<inventory_root>/system/chassis/motherboard/dimm8' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
86    '<inventory_root>/system/chassis/motherboard/dimm9' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
87    '<inventory_root>/system/chassis/motherboard/dimm10' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
88    '<inventory_root>/system/chassis/motherboard/dimm11' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
89    '<inventory_root>/system/chassis/motherboard/dimm12' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
90    '<inventory_root>/system/chassis/motherboard/dimm13' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
91    '<inventory_root>/system/chassis/motherboard/dimm14' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
92    '<inventory_root>/system/chassis/motherboard/dimm15' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
93    '<inventory_root>/system/chassis/motherboard/dimm16' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
94    '<inventory_root>/system/chassis/motherboard/dimm17' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
95    '<inventory_root>/system/chassis/motherboard/dimm18' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
96    '<inventory_root>/system/chassis/motherboard/dimm19' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
97    '<inventory_root>/system/chassis/motherboard/dimm20' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
98    '<inventory_root>/system/chassis/motherboard/dimm21' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
99    '<inventory_root>/system/chassis/motherboard/dimm22' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
100    '<inventory_root>/system/chassis/motherboard/dimm23' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
101    '<inventory_root>/system/chassis/motherboard/dimm24' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
102    '<inventory_root>/system/chassis/motherboard/dimm25' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
103    '<inventory_root>/system/chassis/motherboard/dimm26' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
104    '<inventory_root>/system/chassis/motherboard/dimm27' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
105    '<inventory_root>/system/chassis/motherboard/dimm28' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
106    '<inventory_root>/system/chassis/motherboard/dimm29' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
107    '<inventory_root>/system/chassis/motherboard/dimm30' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
108    '<inventory_root>/system/chassis/motherboard/dimm31' : { 'fru_type' : 'DIMM', 'is_fru' : True,},
109}
110
111ID_LOOKUP = {
112    'FRU' : {
113        0x01 : '<inventory_root>/system/chassis/motherboard/cpu0',
114        0x02 : '<inventory_root>/system/chassis/motherboard/cpu1',
115        0x03 : '<inventory_root>/system/chassis/motherboard',
116        0x04 : '<inventory_root>/system/chassis/motherboard/membuf0',
117        0x05 : '<inventory_root>/system/chassis/motherboard/membuf1',
118        0x06 : '<inventory_root>/system/chassis/motherboard/membuf2',
119        0x07 : '<inventory_root>/system/chassis/motherboard/membuf3',
120        0x08 : '<inventory_root>/system/chassis/motherboard/membuf4',
121        0x09 : '<inventory_root>/system/chassis/motherboard/membuf5',
122        0x0c : '<inventory_root>/system/chassis/motherboard/dimm0',
123        0x0d : '<inventory_root>/system/chassis/motherboard/dimm1',
124        0x0e : '<inventory_root>/system/chassis/motherboard/dimm2',
125        0x0f : '<inventory_root>/system/chassis/motherboard/dimm3',
126        0x10 : '<inventory_root>/system/chassis/motherboard/dimm4',
127        0x11 : '<inventory_root>/system/chassis/motherboard/dimm5',
128        0x12 : '<inventory_root>/system/chassis/motherboard/dimm6',
129        0x13 : '<inventory_root>/system/chassis/motherboard/dimm7',
130        0x14 : '<inventory_root>/system/chassis/motherboard/dimm8',
131        0x15 : '<inventory_root>/system/chassis/motherboard/dimm9',
132        0x16 : '<inventory_root>/system/chassis/motherboard/dimm10',
133        0x17 : '<inventory_root>/system/chassis/motherboard/dimm11',
134        0x18 : '<inventory_root>/system/chassis/motherboard/dimm12',
135        0x19 : '<inventory_root>/system/chassis/motherboard/dimm13',
136        0x1a : '<inventory_root>/system/chassis/motherboard/dimm14',
137        0x1b : '<inventory_root>/system/chassis/motherboard/dimm15',
138        0x1c : '<inventory_root>/system/chassis/motherboard/dimm16',
139        0x1d : '<inventory_root>/system/chassis/motherboard/dimm17',
140        0x1e : '<inventory_root>/system/chassis/motherboard/dimm18',
141        0x1f : '<inventory_root>/system/chassis/motherboard/dimm19',
142        0x20 : '<inventory_root>/system/chassis/motherboard/dimm20',
143        0x21 : '<inventory_root>/system/chassis/motherboard/dimm21',
144        0x22 : '<inventory_root>/system/chassis/motherboard/dimm22',
145        0x23 : '<inventory_root>/system/chassis/motherboard/dimm23',
146        0x24 : '<inventory_root>/system/chassis/motherboard/dimm24',
147        0x25 : '<inventory_root>/system/chassis/motherboard/dimm25',
148        0x26 : '<inventory_root>/system/chassis/motherboard/dimm26',
149        0x27 : '<inventory_root>/system/chassis/motherboard/dimm27',
150        0x28 : '<inventory_root>/system/chassis/motherboard/dimm28',
151        0x29 : '<inventory_root>/system/chassis/motherboard/dimm29',
152        0x2a : '<inventory_root>/system/chassis/motherboard/dimm30',
153        0x2b : '<inventory_root>/system/chassis/motherboard/dimm31',
154    },
155    'FRU_STR' : {
156        'PRODUCT_0'  : '<inventory_root>/system/bios',
157        'BOARD_1'    : '<inventory_root>/system/chassis/motherboard/cpu0',
158        'BOARD_2'    : '<inventory_root>/system/chassis/motherboard/cpu1',
159        'CHASSIS_3'  : '<inventory_root>/system/chassis/motherboard',
160        'BOARD_3'    : '<inventory_root>/system/misc',
161        'PRODUCT_12'   : '<inventory_root>/system/chassis/motherboard/dimm0',
162        'PRODUCT_13'   : '<inventory_root>/system/chassis/motherboard/dimm1',
163        'PRODUCT_14'   : '<inventory_root>/system/chassis/motherboard/dimm2',
164        'PRODUCT_15'   : '<inventory_root>/system/chassis/motherboard/dimm3',
165        'PRODUCT_16'   : '<inventory_root>/system/chassis/motherboard/dimm4',
166        'PRODUCT_17'   : '<inventory_root>/system/chassis/motherboard/dimm5',
167        'PRODUCT_18'   : '<inventory_root>/system/chassis/motherboard/dimm6',
168        'PRODUCT_19'   : '<inventory_root>/system/chassis/motherboard/dimm7',
169        'PRODUCT_20'   : '<inventory_root>/system/chassis/motherboard/dimm8',
170        'PRODUCT_21'   : '<inventory_root>/system/chassis/motherboard/dimm9',
171        'PRODUCT_22'   : '<inventory_root>/system/chassis/motherboard/dimm10',
172        'PRODUCT_23'   : '<inventory_root>/system/chassis/motherboard/dimm11',
173        'PRODUCT_24'   : '<inventory_root>/system/chassis/motherboard/dimm12',
174        'PRODUCT_25'   : '<inventory_root>/system/chassis/motherboard/dimm13',
175        'PRODUCT_26'   : '<inventory_root>/system/chassis/motherboard/dimm14',
176        'PRODUCT_27'   : '<inventory_root>/system/chassis/motherboard/dimm15',
177        'PRODUCT_28'   : '<inventory_root>/system/chassis/motherboard/dimm16',
178        'PRODUCT_29'   : '<inventory_root>/system/chassis/motherboard/dimm17',
179        'PRODUCT_30'   : '<inventory_root>/system/chassis/motherboard/dimm18',
180        'PRODUCT_31'   : '<inventory_root>/system/chassis/motherboard/dimm19',
181        'PRODUCT_32'   : '<inventory_root>/system/chassis/motherboard/dimm20',
182        'PRODUCT_33'   : '<inventory_root>/system/chassis/motherboard/dimm21',
183        'PRODUCT_34'   : '<inventory_root>/system/chassis/motherboard/dimm22',
184        'PRODUCT_35'   : '<inventory_root>/system/chassis/motherboard/dimm23',
185        'PRODUCT_36'   : '<inventory_root>/system/chassis/motherboard/dimm24',
186        'PRODUCT_37'   : '<inventory_root>/system/chassis/motherboard/dimm25',
187        'PRODUCT_38'   : '<inventory_root>/system/chassis/motherboard/dimm26',
188        'PRODUCT_39'   : '<inventory_root>/system/chassis/motherboard/dimm27',
189        'PRODUCT_40'   : '<inventory_root>/system/chassis/motherboard/dimm28',
190        'PRODUCT_41'   : '<inventory_root>/system/chassis/motherboard/dimm29',
191        'PRODUCT_42'   : '<inventory_root>/system/chassis/motherboard/dimm30',
192        'PRODUCT_43'   : '<inventory_root>/system/chassis/motherboard/dimm31',
193        'PRODUCT_47'   : '<inventory_root>/system/misc',
194    },
195    'SENSOR' : {
196        0x04 : '/org/openbmc/sensors/host/HostStatus',
197        0x05 : '/org/openbmc/sensors/host/BootProgress',
198        0x0c : '<inventory_root>/system/chassis/motherboard/cpu0',
199        0x0e : '<inventory_root>/system/chassis/motherboard/cpu1',
200        0x1e : '<inventory_root>/system/chassis/motherboard/dimm3',
201        0x1f : '<inventory_root>/system/chassis/motherboard/dimm2',
202        0x20 : '<inventory_root>/system/chassis/motherboard/dimm1',
203        0x21 : '<inventory_root>/system/chassis/motherboard/dimm0',
204        0x22 : '<inventory_root>/system/chassis/motherboard/dimm7',
205        0x23 : '<inventory_root>/system/chassis/motherboard/dimm6',
206        0x24 : '<inventory_root>/system/chassis/motherboard/dimm5',
207        0x25 : '<inventory_root>/system/chassis/motherboard/dimm4',
208        0x26 : '<inventory_root>/system/chassis/motherboard/dimm11',
209        0x27 : '<inventory_root>/system/chassis/motherboard/dimm10',
210        0x28 : '<inventory_root>/system/chassis/motherboard/dimm9',
211        0x29 : '<inventory_root>/system/chassis/motherboard/dimm8',
212        0x2a : '<inventory_root>/system/chassis/motherboard/dimm15',
213        0x2b : '<inventory_root>/system/chassis/motherboard/dimm14',
214        0x2c : '<inventory_root>/system/chassis/motherboard/dimm13',
215        0x2d : '<inventory_root>/system/chassis/motherboard/dimm12',
216        0x2e : '<inventory_root>/system/chassis/motherboard/dimm19',
217        0x2f : '<inventory_root>/system/chassis/motherboard/dimm18',
218        0x30 : '<inventory_root>/system/chassis/motherboard/dimm17',
219        0x31 : '<inventory_root>/system/chassis/motherboard/dimm16',
220        0x32 : '<inventory_root>/system/chassis/motherboard/dimm23',
221        0x33 : '<inventory_root>/system/chassis/motherboard/dimm22',
222        0x34 : '<inventory_root>/system/chassis/motherboard/dimm21',
223        0x35 : '<inventory_root>/system/chassis/motherboard/dimm20',
224        0x36 : '<inventory_root>/system/chassis/motherboard/dimm27',
225        0x37 : '<inventory_root>/system/chassis/motherboard/dimm26',
226        0x38 : '<inventory_root>/system/chassis/motherboard/dimm25',
227        0x39 : '<inventory_root>/system/chassis/motherboard/dimm24',
228        0x3a : '<inventory_root>/system/chassis/motherboard/dimm31',
229        0x3b : '<inventory_root>/system/chassis/motherboard/dimm30',
230        0x3c : '<inventory_root>/system/chassis/motherboard/dimm29',
231        0x3d : '<inventory_root>/system/chassis/motherboard/dimm28',
232        0x3e : '<inventory_root>/system/chassis/motherboard/cpu0/core0',
233        0x3f : '<inventory_root>/system/chassis/motherboard/cpu0/core1',
234        0x40 : '<inventory_root>/system/chassis/motherboard/cpu0/core2',
235        0x41 : '<inventory_root>/system/chassis/motherboard/cpu0/core3',
236        0x42 : '<inventory_root>/system/chassis/motherboard/cpu0/core4',
237        0x43 : '<inventory_root>/system/chassis/motherboard/cpu0/core5',
238        0x44 : '<inventory_root>/system/chassis/motherboard/cpu0/core6',
239        0x45 : '<inventory_root>/system/chassis/motherboard/cpu0/core7',
240        0x46 : '<inventory_root>/system/chassis/motherboard/cpu0/core8',
241        0x47 : '<inventory_root>/system/chassis/motherboard/cpu0/core9',
242        0x48 : '<inventory_root>/system/chassis/motherboard/cpu0/core10',
243        0x49 : '<inventory_root>/system/chassis/motherboard/cpu0/core11',
244        0x4a : '<inventory_root>/system/chassis/motherboard/cpu1/core0',
245        0x4b : '<inventory_root>/system/chassis/motherboard/cpu1/core1',
246        0x4c : '<inventory_root>/system/chassis/motherboard/cpu1/core2',
247        0x4d : '<inventory_root>/system/chassis/motherboard/cpu1/core3',
248        0x4e : '<inventory_root>/system/chassis/motherboard/cpu1/core4',
249        0x4f : '<inventory_root>/system/chassis/motherboard/cpu1/core5',
250        0x50 : '<inventory_root>/system/chassis/motherboard/cpu1/core6',
251        0x51 : '<inventory_root>/system/chassis/motherboard/cpu1/core7',
252        0x52 : '<inventory_root>/system/chassis/motherboard/cpu1/core8',
253        0x53 : '<inventory_root>/system/chassis/motherboard/cpu1/core9',
254        0x54 : '<inventory_root>/system/chassis/motherboard/cpu1/core10',
255        0x55 : '<inventory_root>/system/chassis/motherboard/cpu1/core11',
256        0x5f : '/org/openbmc/sensors/host/BootCount',
257        0x60 : '<inventory_root>/system/chassis/motherboard',
258        0x61 : '<inventory_root>/system/systemevent',
259        0x63 : '<inventory_root>/system/chassis/motherboard/refclock',
260        0x64 : '<inventory_root>/system/chassis/motherboard/pcieclock',
261        0xb1 : '<inventory_root>/system/chassis/motherboard/todclock',
262        0xb5 : '/org/openbmc/sensors/host/OperatingSystemStatus',
263        0xb6 : '<inventory_root>/system/chassis/motherboard/pcielink',
264    },
265    'GPIO_PRESENT' : {}
266}
267
268GPIO_CONFIG = {}
269GPIO_CONFIG['SOFTWARE_PGOOD'] = \
270        {'gpio_pin': 'R1', 'direction': 'out'}
271GPIO_CONFIG['BMC_POWER_UP'] = \
272        {'gpio_pin': 'D1', 'direction': 'out'}
273GPIO_CONFIG['SYS_PWROK_BUFF'] = \
274        {'gpio_pin': 'D2', 'direction': 'in'}
275GPIO_CONFIG['PHY_RST_N'] = \
276        {'gpio_pin': 'D3', 'direction': 'out'}
277GPIO_CONFIG['HDD_PWR_EN'] = \
278        {'gpio_pin': 'D4', 'direction': 'out'}
279GPIO_CONFIG['CP0_DEVICES_RESET_N'] = \
280        {'gpio_pin': 'A1', 'direction': 'out'}
281GPIO_CONFIG['BMC_CP0_PERST_ENABLE'] = \
282        {'gpio_pin': 'A3', 'direction': 'out'}
283GPIO_CONFIG['BMC_UCD_LATCH_LE'] = \
284        {'gpio_pin': 'B4', 'direction': 'out'}
285GPIO_CONFIG['FSI_DATA'] = \
286        {'gpio_pin': 'E0', 'direction': 'out'}
287GPIO_CONFIG['FSI_CLK'] = \
288        {'gpio_pin': 'AA0', 'direction': 'out'}
289GPIO_CONFIG['FSI_ENABLE'] = \
290        {'gpio_pin': 'D0', 'direction': 'out'}
291GPIO_CONFIG['CRONUS_SEL'] = \
292        {'gpio_pin': 'P6', 'direction': 'out'}
293# FIXME: net name is FP_PWR_BTN_N in schematic
294GPIO_CONFIG['POWER_BUTTON'] = \
295        {'gpio_pin': 'I3', 'direction': 'both'}
296# FIXME: net name is FP_RST_BTN_N in schematic
297GPIO_CONFIG['RESET_BUTTON'] = \
298        {'gpio_pin': 'G3', 'direction': 'both'}
299GPIO_CONFIG['PE_MEZZB_PRSNT_N'] = \
300        {'gpio_pin': 'P7', 'direction': 'in'}
301
302HWMON_CONFIG = {
303    '4-0050' : {
304        'names' : {
305        },
306        'labels' : {
307        '176' :  { 'object_path' : 'temperature/cpu0/core0','poll_interval' : 5000,'scale' : -3,'units' : 'C',
308            'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
309        '177' :  { 'object_path' : 'temperature/cpu0/core1','poll_interval' : 5000,'scale' : -3,'units' : 'C',
310            'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
311        '178' :  { 'object_path' : 'temperature/cpu0/core2','poll_interval' : 5000,'scale' : -3,'units' : 'C',
312            'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
313        '179' :  { 'object_path' : 'temperature/cpu0/core3','poll_interval' : 5000,'scale' : -3,'units' : 'C',
314            'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
315        '180' :  { 'object_path' : 'temperature/cpu0/core4','poll_interval' : 5000,'scale' : -3,'units' : 'C',
316            'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
317        '181' :  { 'object_path' : 'temperature/cpu0/core5','poll_interval' : 5000,'scale' : -3,'units' : 'C',
318            'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
319        '182' :  { 'object_path' : 'temperature/cpu0/core6','poll_interval' : 5000,'scale' : -3,'units' : 'C',
320            'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
321        '183' :  { 'object_path' : 'temperature/cpu0/core7','poll_interval' : 5000,'scale' : -3,'units' : 'C',
322            'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
323        '184' :  { 'object_path' : 'temperature/cpu0/core8','poll_interval' : 5000,'scale' : -3,'units' : 'C',
324            'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
325        '185' :  { 'object_path' : 'temperature/cpu0/core9','poll_interval' : 5000,'scale' : -3,'units' : 'C',
326            'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
327        '186' :  { 'object_path' : 'temperature/cpu0/core10','poll_interval' : 5000,'scale' : -3,'units' : 'C',
328            'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
329        '187' :  { 'object_path' : 'temperature/cpu0/core11','poll_interval' : 5000,'scale' : -3,'units' : 'C',
330            'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
331        '102' :  { 'object_path' : 'temperature/dimm0','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
332        '103' :  { 'object_path' : 'temperature/dimm1','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
333        '104' :  { 'object_path' : 'temperature/dimm2','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
334        '105' :  { 'object_path' : 'temperature/dimm3','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
335        '106' :  { 'object_path' : 'temperature/dimm4','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
336        '107' :  { 'object_path' : 'temperature/dimm5','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
337        '108' :  { 'object_path' : 'temperature/dimm6','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
338        '109' :  { 'object_path' : 'temperature/dimm7','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
339        '110' :  { 'object_path' : 'temperature/dimm8','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
340        '111' :  { 'object_path' : 'temperature/dimm9','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
341        '112' :  { 'object_path' : 'temperature/dimm10','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
342        '113' :  { 'object_path' : 'temperature/dimm11','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
343        '114' :  { 'object_path' : 'temperature/dimm12','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
344        '115' :  { 'object_path' : 'temperature/dimm13','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
345        '116' :  { 'object_path' : 'temperature/dimm14','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
346        '117' :  { 'object_path' : 'temperature/dimm15','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
347        }
348    },
349    '5-0050' : {
350        'labels' :  {
351        '188' :  { 'object_path' : 'temperature/cpu1/core0','poll_interval' : 5000,'scale' : -3,'units' : 'C',
352            'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
353        '189' :  { 'object_path' : 'temperature/cpu1/core1','poll_interval' : 5000,'scale' : -3,'units' : 'C',
354            'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
355        '190' :  { 'object_path' : 'temperature/cpu1/core2','poll_interval' : 5000,'scale' : -3,'units' : 'C',
356            'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
357        '191' :  { 'object_path' : 'temperature/cpu1/core3','poll_interval' : 5000,'scale' : -3,'units' : 'C',
358            'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
359        '192' :  { 'object_path' : 'temperature/cpu1/core4','poll_interval' : 5000,'scale' : -3,'units' : 'C',
360            'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
361        '193' :  { 'object_path' : 'temperature/cpu1/core5','poll_interval' : 5000,'scale' : -3,'units' : 'C',
362            'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
363        '194' :  { 'object_path' : 'temperature/cpu1/core6','poll_interval' : 5000,'scale' : -3,'units' : 'C',
364            'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
365        '195' :  { 'object_path' : 'temperature/cpu1/core7','poll_interval' : 5000,'scale' : -3,'units' : 'C',
366            'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
367        '196' :  { 'object_path' : 'temperature/cpu1/core8','poll_interval' : 5000,'scale' : -3,'units' : 'C',
368            'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
369        '197' :  { 'object_path' : 'temperature/cpu1/core9','poll_interval' : 5000,'scale' : -3,'units' : 'C',
370            'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
371        '198' :  { 'object_path' : 'temperature/cpu1/core10','poll_interval' : 5000,'scale' : -3,'units' : 'C',
372            'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
373        '199' :  { 'object_path' : 'temperature/cpu1/core11','poll_interval' : 5000,'scale' : -3,'units' : 'C',
374            'critical_upper' : 100, 'critical_lower' : -100, 'warning_upper' : 90, 'warning_lower' : -99, 'emergency_enabled' : True },
375        '118' :  { 'object_path' : 'temperature/dimm16','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
376        '119' :  { 'object_path' : 'temperature/dimm17','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
377        '120' :  { 'object_path' : 'temperature/dimm18','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
378        '121' :  { 'object_path' : 'temperature/dimm19','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
379        '122' :  { 'object_path' : 'temperature/dimm20','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
380        '123' :  { 'object_path' : 'temperature/dimm21','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
381        '124' :  { 'object_path' : 'temperature/dimm22','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
382        '125' :  { 'object_path' : 'temperature/dimm23','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
383        '126' :  { 'object_path' : 'temperature/dimm24','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
384        '127' :  { 'object_path' : 'temperature/dimm25','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
385        '128' :  { 'object_path' : 'temperature/dimm26','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
386        '129' :  { 'object_path' : 'temperature/dimm27','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
387        '130' :  { 'object_path' : 'temperature/dimm28','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
388        '131' :  { 'object_path' : 'temperature/dimm29','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
389        '132' :  { 'object_path' : 'temperature/dimm30','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
390        '133' :  { 'object_path' : 'temperature/dimm31','poll_interval' : 5000,'scale' : -3,'units' : 'C' },
391        }
392    },
393}
394
395POWER_CONFIG = {
396    'latch_out': 'BMC_UCD_LATCH_LE',
397    'power_good_in': 'SYS_PWROK_BUFF',
398    'power_up_outs': [
399        ('SOFTWARE_PGOOD', True),
400        ('BMC_POWER_UP', True),
401    ],
402    'reset_outs': [
403    ],
404}
405
406# Miscellaneous non-poll sensor with system specific properties.
407# The sensor id is the same as those defined in ID_LOOKUP['SENSOR'].
408MISC_SENSORS = {
409    0x5f : { 'class' : 'BootCountSensor' },
410    0x05 : { 'class' : 'BootProgressSensor' },
411    0xb5 : { 'class' : 'OperatingSystemStatusSensor' },
412}
413
414# vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4
415