summaryrefslogtreecommitdiff
path: root/meta-facebook/meta-bletchley/recipes-phosphor/fans/phosphor-pid-control/config.json
blob: 049429f726cb27df178a5492b23295a9facf5327 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
{
    "version": "R06",
    "sensors": [
        {
            "name": "FAN0_TACH_IL",
            "type": "fan",
            "readPath": "/xyz/openbmc_project/sensors/fan_tach/FAN0_TACH_IL",
            "writePath": "/sys/devices/platform/ahb/ahb:apb/1e610000.pwm_tach/1e610000.pwm_tach:pwm/consumer:platform:pwm-fan0/consumer/hwmon/**/pwm1",
            "min": 0,
            "max": 255
        },
        {
            "name": "FAN0_TACH_OL",
            "type": "fan",
            "readPath": "/xyz/openbmc_project/sensors/fan_tach/FAN0_TACH_OL",
            "min": 0,
            "max": 255
        },
        {
            "name": "FAN1_TACH_IL",
            "type": "fan",
            "readPath": "/xyz/openbmc_project/sensors/fan_tach/FAN1_TACH_IL",
            "writePath": "/sys/devices/platform/ahb/ahb:apb/1e610000.pwm_tach/1e610000.pwm_tach:pwm/consumer:platform:pwm-fan1/consumer/hwmon/**/pwm1",
            "min": 0,
            "max": 255
        },
        {
            "name": "FAN1_TACH_OL",
            "type": "fan",
            "readPath": "/xyz/openbmc_project/sensors/fan_tach/FAN1_TACH_OL",
            "min": 0,
            "max": 255
        },
        {
            "name": "FAN2_TACH_IL",
            "type": "fan",
            "readPath": "/xyz/openbmc_project/sensors/fan_tach/FAN2_TACH_IL",
            "writePath": "/sys/devices/platform/ahb/ahb:apb/1e610000.pwm_tach/1e610000.pwm_tach:pwm/consumer:platform:pwm-fan2/consumer/hwmon/**/pwm1",
            "min": 0,
            "max": 255
        },
        {
            "name": "FAN2_TACH_OL",
            "type": "fan",
            "readPath": "/xyz/openbmc_project/sensors/fan_tach/FAN2_TACH_OL",
            "min": 0,
            "max": 255
        },
        {
            "name": "FAN3_TACH_IL",
            "type": "fan",
            "readPath": "/xyz/openbmc_project/sensors/fan_tach/FAN3_TACH_IL",
            "writePath": "/sys/devices/platform/ahb/ahb:apb/1e610000.pwm_tach/1e610000.pwm_tach:pwm/consumer:platform:pwm-fan3/consumer/hwmon/**/pwm1",
            "min": 0,
            "max": 255
        },
        {
            "name": "FAN3_TACH_OL",
            "type": "fan",
            "readPath": "/xyz/openbmc_project/sensors/fan_tach/FAN3_TACH_OL",
            "min": 0,
            "max": 255
        },
        {
            "name": "Virtual_Inlet_Temp",
            "type": "temp",
            "readPath": "/xyz/openbmc_project/sensors/temperature/Virtual_Inlet_Temp",
            "writePath": "",
            "min": 0,
            "max": 0,
            "ignoreDbusMinMax": true,
            "timeout": 0
        },
        {
            "name": "MB_U19_THERM_LOCAL",
            "type": "temp",
            "readPath": "/xyz/openbmc_project/sensors/temperature/MB_U19_THERM_LOCAL",
            "writePath": "",
            "min": 0,
            "max": 0,
            "ignoreDbusMinMax": true,
            "timeout": 0
        },
        {
            "name": "MB_U402_THERM_LOCAL",
            "type": "temp",
            "readPath": "/xyz/openbmc_project/sensors/temperature/MB_U402_THERM_LOCAL",
            "writePath": "",
            "min": 0,
            "max": 0,
            "ignoreDbusMinMax": true,
            "timeout": 0
        },
        {
            "name": "SLED1_THERM_LOCAL",
            "type": "temp",
            "readPath": "/xyz/openbmc_project/sensors/temperature/SLED1_THERM_LOCAL",
            "writePath": "",
            "min": 0,
            "max": 0,
            "ignoreDbusMinMax": true,
            "timeout": 0
        },
        {
            "name": "SLED2_THERM_LOCAL",
            "type": "temp",
            "readPath": "/xyz/openbmc_project/sensors/temperature/SLED2_THERM_LOCAL",
            "writePath": "",
            "min": 0,
            "max": 0,
            "ignoreDbusMinMax": true,
            "timeout": 0
        },
        {
            "name": "SLED3_THERM_LOCAL",
            "type": "temp",
            "readPath": "/xyz/openbmc_project/sensors/temperature/SLED3_THERM_LOCAL",
            "writePath": "",
            "min": 0,
            "max": 0,
            "ignoreDbusMinMax": true,
            "timeout": 0
        },
        {
            "name": "SLED4_THERM_LOCAL",
            "type": "temp",
            "readPath": "/xyz/openbmc_project/sensors/temperature/SLED4_THERM_LOCAL",
            "writePath": "",
            "min": 0,
            "max": 0,
            "ignoreDbusMinMax": true,
            "timeout": 0
        },
        {
            "name": "SLED5_THERM_LOCAL",
            "type": "temp",
            "readPath": "/xyz/openbmc_project/sensors/temperature/SLED5_THERM_LOCAL",
            "writePath": "",
            "min": 0,
            "max": 0,
            "ignoreDbusMinMax": true,
            "timeout": 0
        },
        {
            "name": "SLED6_THERM_LOCAL",
            "type": "temp",
            "readPath": "/xyz/openbmc_project/sensors/temperature/SLED6_THERM_LOCAL",
            "writePath": "",
            "min": 0,
            "max": 0,
            "ignoreDbusMinMax": true,
            "timeout": 0
        }
    ],
    "zones": [
        {
            "id": 1,
            "minThermalOutput": 20.0,
            "failsafePercent": 80.0,
            "pids": [
                {
                    "name": "fan_tachs",
                    "type": "fan",
                    "inputs": [
                        "FAN0_TACH_IL",
                        "FAN0_TACH_OL",
                        "FAN1_TACH_IL",
                        "FAN1_TACH_OL",
                        "FAN2_TACH_IL",
                        "FAN2_TACH_OL",
                        "FAN3_TACH_IL",
                        "FAN3_TACH_OL"
                    ],
                    "setpoint": 0.0,
                    "pid": {
                        "samplePeriod": 1.0,
                        "proportionalCoeff": 0.0,
                        "integralCoeff": 0.0,
                        "feedFwdOffsetCoeff": 0.0,
                        "feedFwdGainCoeff": 1.0,
                        "integralLimit_min": 0.0,
                        "integralLimit_max": 0.0,
                        "outLim_min": 0.0,
                        "outLim_max": 100.0,
                        "slewNeg": 0.0,
                        "slewPos": 0.0
                    }
                },
                {
                    "name": "inlet_Temp",
                    "type": "stepwise",
                    "inputs": [
                        "Virtual_Inlet_Temp"
                    ],
                    "setpoint": 10.0,
                    "pid": {
                        "samplePeriod": 1.0,
                        "positiveHysteresis": 0.0,
                        "negativeHysteresis": 0.0,
                        "isCeiling": false,
                        "reading": {
                            "0": 15.0,
                            "1": 20.0,
                            "2": 22.0,
                            "3": 24.0,
                            "4": 26.0,
                            "5": 28.0,
                            "6": 30.0,
                            "7": 31.0,
                            "8": 32.0,
                            "9": 33.0,
                            "10": 34.0,
                            "11": 35.0,
                            "12": 36.0,
                            "13": 37.0,
                            "14": 38.0,
                            "15": 39.0,
                            "16": 40.0
                        },
                        "output": {
                            "0": 20.0,
                            "1": 23.0,
                            "2": 28.0,
                            "3": 30.0,
                            "4": 31.0,
                            "5": 32.0,
                            "6": 35.0,
                            "7": 36.0,
                            "8": 37.0,
                            "9": 38.0,
                            "10": 39.0,
                            "11": 40.0,
                            "12": 43.0,
                            "13": 45.0,
                            "14": 47.0,
                            "15": 50.0,
                            "16": 80.0
                        }
                    }
                },
                {
                    "name": "switch_temp",
                    "type": "stepwise",
                    "inputs": [
                        "MB_U402_THERM_LOCAL"
                    ],
                    "setpoint": 45.0,
                    "pid": {
                        "samplePeriod": 1.0,
                        "positiveHysteresis": 0.0,
                        "negativeHysteresis": 0.0,
                        "isCeiling": false,
                        "reading": {
                            "0": 48.0,
                            "1": 49.0,
                            "2": 50.0,
                            "3": 51.0,
                            "4": 52.0
                        },
                        "output": {
                            "0": 0.0,
                            "1": 15.0,
                            "2": 20.0,
                            "3": 25.0,
                            "4": 40.0
                        }
                    }
                },
                {
                    "name": "retimer_temp",
                    "type": "stepwise",
                    "inputs": [
                        "MB_U19_THERM_LOCAL"
                    ],
                    "setpoint": 45.0,
                    "pid": {
                        "samplePeriod": 1.0,
                        "positiveHysteresis": 0.0,
                        "negativeHysteresis": 0.0,
                        "isCeiling": false,
                        "reading": {
                            "0": 39.0,
                            "1": 40.0,
                            "2": 43.0,
                            "3": 44.0,
                            "4": 45.0,
                            "5": 46.0,
                            "6": 47.0,
                            "7": 48.0,
                            "8": 49.0
                        },
                        "output": {
                            "0": 0.0,
                            "1": 20.0,
                            "2": 40.0,
                            "3": 42.0,
                            "4": 44.0,
                            "5": 46.0,
                            "6": 48.0,
                            "7": 50.0,
                            "8": 80.0
                        }
                    }
                },
                {
                    "name": "SLED_THERM_LOCAL",
                    "type": "stepwise",
                    "inputs": [
                        "SLED1_THERM_LOCAL",
                        "SLED2_THERM_LOCAL",
                        "SLED3_THERM_LOCAL",
                        "SLED4_THERM_LOCAL",
                        "SLED5_THERM_LOCAL",
                        "SLED6_THERM_LOCAL"
                    ],
                    "setpoint": 35.0,
                    "pid": {
                        "samplePeriod": 1.0,
                        "positiveHysteresis": 0.0,
                        "negativeHysteresis": 0.0,
                        "isCeiling": false,
                        "reading": {
                            "0": 29.0,
                            "1": 30.0,
                            "2": 35.0,
                            "3": 47.0,
                            "4": 48.0,
                            "5": 49.0,
                            "6": 50.0
                        },
                        "output": {
                            "0": 0.0,
                            "1": 20.0,
                            "2": 20.0,
                            "3": 45.0,
                            "4": 46.0,
                            "5": 47.0,
                            "6": 50.0
                        }
                    }
                }
            ]
        }
    ]
}