summaryrefslogtreecommitdiff
path: root/meta-nuvoton/meta-evb-npcm845/recipes-phosphor/fans/phosphor-pid-control/config-evb-npcm845.json
blob: 0c54ba6b51437ab220747aeff2fabda8fb138d83 (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
{
    "sensors" : [
        {
            "name": "Fan1",
            "type": "fan",
            "readPath": "/xyz/openbmc_project/sensors/fan_tach/Fan1",
            "writePath": "/sys/devices/platform/ahb/ahb:apb/f0103000.pwm-fan-controller/hwmon/**/pwm1",
            "min": 0,
            "max": 255
        },
        {
            "name": "Fan2",
            "type": "fan",
            "readPath": "/xyz/openbmc_project/sensors/fan_tach/Fan2",
            "writePath": "/sys/devices/platform/ahb/ahb:apb/f0103000.pwm-fan-controller/hwmon/**/pwm2",
            "min": 0,
            "max": 255
        },
        {
            "name": "Fan3",
            "type": "fan",
            "readPath": "/xyz/openbmc_project/sensors/fan_tach/Fan3",
            "writePath": "/sys/devices/platform/ahb/ahb:apb/f0103000.pwm-fan-controller/hwmon/**/pwm3",
            "min": 0,
            "max": 255
        },
        {
            "name": "Fan4",
            "type": "fan",
            "readPath": "/xyz/openbmc_project/sensors/fan_tach/Fan4",
            "writePath": "/sys/devices/platform/ahb/ahb:apb/f0103000.pwm-fan-controller/hwmon/**/pwm4",
            "min": 0,
            "max": 255
        },
        {
            "name": "EVB_Temp",
            "type": "temp",
            "readPath": "/xyz/openbmc_project/sensors/temperature/EVB_Temp",
            "writePath": "",
            "ignoreDbusMinMax": true,
            "timeout": 0
        }
    ],
    "zones" : [
        {
            "id": 0,
            "minThermalOutput": 0.0,
            "failsafePercent": 100.0,
            "pids": [
                {
                    "name": "Fan1",
                    "type": "fan",
                    "inputs": ["Fan1"],
                    "setpoint": 40.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": 10.0,
                        "outLim_max": 100.0,
                        "slewNeg": 0.0,
                        "slewPos": 0.0
                    }
                }
            ]
        },
        {
            "id": 1,
            "minThermalOutput": 0.0,
            "failsafePercent": 100.0,
            "pids": [
                {
                    "name": "Fan4",
                    "type": "fan",
                    "inputs": ["Fan4"],
                    "setpoint": 90.0,
                    "pid": {
                        "samplePeriod": 0.1,
                        "proportionalCoeff": 0.0,
                        "integralCoeff": 0.0,
                        "feedFwdOffsetCoeff": 0.0,
                        "feedFwdGainCoeff": 1.0,
                        "integralLimit_min": 0.0,
                        "integralLimit_max": 0.0,
                        "outLim_min": 10.0,
                        "outLim_max": 100.0,
                        "slewNeg": 0.0,
                        "slewPos": 0.0
                    }
                },
                 {
                    "name": "EVB_Temp",
                    "type": "stepwise",
                    "inputs": ["EVB_Temp"],
                    "setpoint": 30.0,
                    "pid": {
                        "samplePeriod": 1.0,
                        "positiveHysteresis": 0.0,
                        "negativeHysteresis": 0.0,
                        "isCeiling": false,
                        "reading": {
                            "0": 25,
                            "1": 28,
                            "2": 31,
                            "3": 34,
                            "4": 37,
                            "5": 40,
                            "6": 43,
                            "7": 46,
                            "8": 49,
                            "9": 52,
                            "10": 55,
                            "11": 58,
                            "12": 61,
                            "13": 64,
                            "14": 67,
                            "15": 70
                        },
                        "output": {
                            "0": 10,
                            "1": 10,
                            "2": 20,
                            "3": 20,
                            "4": 20,
                            "5": 30,
                            "6": 30,
                            "7": 30,
                            "8": 40,
                            "9": 50,
                            "10": 60,
                            "11": 70,
                            "12": 80,
                            "13": 90,
                            "14": 100,
                            "15": 100
                        }


                    }
                }

            ]
        }
    ]
}