blob: 6e3ae7d8961b87a472d94e8b963806ce981fe055 [file] [log] [blame]
Norman Jamescc7ae122015-08-24 14:26:09 -05001#! /usr/bin/python
2
Norman Jamesbedbe582015-08-26 17:42:27 -05003def BarreleyeSensors():
Norman Jamescc7ae122015-08-24 14:26:09 -05004 config = {}
5
Norman Jamesbedbe582015-08-26 17:42:27 -05006 config['org.openbmc.sensors.Temperature.Ambient'] = {
Norman Jamescc7ae122015-08-24 14:26:09 -05007 'user_label': 'Ambient Temperature',
Norman Jamescc7ae122015-08-24 14:26:09 -05008 'parameters': ['/dev/i2c0','0xA0'],
9 'poll_interval': 5000,
10 'lower_critical': 5,
11 'lower_warning' : 10,
12 'upper_warning' : 15,
13 'upper_critical': 20
14 }
Norman Jamescc7ae122015-08-24 14:26:09 -050015 return config
16
Norman Jamesbedbe582015-08-26 17:42:27 -050017def BarreleyeGpios():
18 gpio = {}
19 gpio['FSI_CLK'] = { 'gpio_num': 23, 'direction': 'out' }
20 gpio['FSI_DATA'] = { 'gpio_num': 24, 'direction': 'out' }
21 gpio['FSI_ENABLE'] = { 'gpio_num': 25, 'direction': 'out' }
22 gpio['POWER_PIN'] = { 'gpio_num': 26, 'direction': 'out' }
23 gpio['CRONUS_SEL'] = { 'gpio_num': 27, 'direction': 'out' }
24 gpio['PGOOD'] = { 'gpio_num': 28, 'direction': 'in' }
25
26
27 return gpio
28