Norman James | cc7ae12 | 2015-08-24 14:26:09 -0500 | [diff] [blame] | 1 | #! /usr/bin/python |
| 2 | |
Norman James | bedbe58 | 2015-08-26 17:42:27 -0500 | [diff] [blame] | 3 | def BarreleyeSensors(): |
Norman James | cc7ae12 | 2015-08-24 14:26:09 -0500 | [diff] [blame] | 4 | config = {} |
| 5 | |
Norman James | bedbe58 | 2015-08-26 17:42:27 -0500 | [diff] [blame] | 6 | config['org.openbmc.sensors.Temperature.Ambient'] = { |
Norman James | cc7ae12 | 2015-08-24 14:26:09 -0500 | [diff] [blame] | 7 | 'user_label': 'Ambient Temperature', |
Norman James | cc7ae12 | 2015-08-24 14:26:09 -0500 | [diff] [blame] | 8 | '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 James | cc7ae12 | 2015-08-24 14:26:09 -0500 | [diff] [blame] | 15 | return config |
| 16 | |
Norman James | bedbe58 | 2015-08-26 17:42:27 -0500 | [diff] [blame] | 17 | def 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 | |