blob: 364a28008f65622f49332a65b452976486e3572c [file] [log] [blame]
Norman Jamescc7ae122015-08-24 14:26:09 -05001#! /usr/bin/python
2
Norman Jameseb6ed1b2015-08-27 14:25:54 -05003def BarreleyeProcesses():
Norman Jamescc7ae122015-08-24 14:26:09 -05004 config = {}
5
Norman James90caa3c2015-08-27 21:28:48 -05006 config['org.openbmc.control.Power'] = {
7 'exe_name' : 'bin/power_control.exe',
8 'heartbeat' : 'no',
9 'instances' : [
10 {
11 'name' : 'PowerControl1',
12 'user_label': 'Power control',
13 }
14 ]
15 }
16
Norman Jamesbedbe582015-08-26 17:42:27 -050017 config['org.openbmc.sensors.Temperature.Ambient'] = {
Norman Jameseb6ed1b2015-08-27 14:25:54 -050018 'exe_name' : 'bin/sensor_ambient.exe',
Norman James90caa3c2015-08-27 21:28:48 -050019 'heartbeat' : "yes",
Norman Jameseb6ed1b2015-08-27 14:25:54 -050020 'instances' : [
21 {
22 'name' : 'AmbientTemperature1',
23 'user_label': 'Ambient Temperature 1',
24 'parameters': ['/dev/i2c0','0xA0'],
25 'poll_interval': 5000,
26 'lower_critical': 5,
27 'lower_warning' : 10,
28 'upper_warning' : 15,
29 'upper_critical': 20
30 },
31 {
32 'name' : 'AmbientTemperature2',
33 'user_label': 'Ambient Temperature 2',
34 'parameters': ['/dev/i2c0','0xA2'],
35 'poll_interval': 5000,
36 'lower_critical': 5,
37 'lower_warning' : 10,
38 'upper_warning' : 15,
39 'upper_critical': 20
40 }
41 ]
Norman Jamescc7ae122015-08-24 14:26:09 -050042 }
Norman Jameseb6ed1b2015-08-27 14:25:54 -050043 config['org.openbmc.buttons.ButtonPower'] = {
44 'exe_name' : 'bin/button_power.exe',
Norman James90caa3c2015-08-27 21:28:48 -050045 'heartbeat' : 'no',
Norman Jameseb6ed1b2015-08-27 14:25:54 -050046 'instances' : [
47 {
48 'name' : 'PowerButton1',
49 'user_label': 'Main Power Button',
50 }
51 ]
52 }
Norman James90caa3c2015-08-27 21:28:48 -050053 config['org.openbmc.sensors.HostStatus'] = {
54 'exe_name' : 'bin/sensor_host_status.exe',
55 'heartbeat' : "no",
Norman Jameseb6ed1b2015-08-27 14:25:54 -050056 'instances' : [
57 {
Norman James90caa3c2015-08-27 21:28:48 -050058 'name' : 'HostStatus1',
59 'user_label': 'Host Status',
60 }
61 ]
62 }
63 config['org.openbmc.leds.ChassisIdentify'] = {
64 'exe_name' : 'bin/chassis_identify.exe',
65 'heartbeat' : "no",
66 'instances' : [
67 {
68 'name' : 'ChassisIdentify1',
Norman Jameseb6ed1b2015-08-27 14:25:54 -050069 'user_label': 'Chassis Identify LED',
70 }
71 ]
72 }
Norman James90caa3c2015-08-27 21:28:48 -050073 config['org.openbmc.flash.BIOS'] = {
74 'exe_name' : 'bin/flash_bios.exe',
75 'heartbeat' : "no",
76 'instances' : [
77 {
78 'name' : 'BIOS1',
79 'user_label': 'BIOS SPI Flash',
80 }
81 ]
82 }
83 config['org.openbmc.control.Host'] = {
84 'exe_name' : 'bin/control_host.exe',
85 'heartbeat' : "no",
86 'instances' : [
87 {
88 'name' : 'HostControl1',
89 'user_label': 'Host Control',
90 }
91 ]
92 }
93 config['org.openbmc.control.Chassis'] = {
94 'exe_name' : 'bin/chassis_control.py',
95 'heartbeat' : "no",
96 'instances' : [
97 {
98 'name' : 'Chassis',
99 'user_label': 'Chassis Control',
100 }
101 ]
102 }
Norman Jameseb6ed1b2015-08-27 14:25:54 -0500103
104
Norman Jamescc7ae122015-08-24 14:26:09 -0500105 return config
106
Norman Jamesbedbe582015-08-26 17:42:27 -0500107def BarreleyeGpios():
108 gpio = {}
109 gpio['FSI_CLK'] = { 'gpio_num': 23, 'direction': 'out' }
110 gpio['FSI_DATA'] = { 'gpio_num': 24, 'direction': 'out' }
111 gpio['FSI_ENABLE'] = { 'gpio_num': 25, 'direction': 'out' }
112 gpio['POWER_PIN'] = { 'gpio_num': 26, 'direction': 'out' }
113 gpio['CRONUS_SEL'] = { 'gpio_num': 27, 'direction': 'out' }
114 gpio['PGOOD'] = { 'gpio_num': 28, 'direction': 'in' }
Norman James90caa3c2015-08-27 21:28:48 -0500115 gpio['IDENTIFY'] = { 'gpio_num': 30, 'direction': 'out' }
116 gpio['POWER_BUTTON'] = { 'gpio_num': 31, 'direction': 'in' }
Norman Jamesbedbe582015-08-26 17:42:27 -0500117
118
119 return gpio
120