Patrick Venture | e620656 | 2018-03-08 15:36:53 -0800 | [diff] [blame] | 1 | |
| 2 | sensors = ( |
| 3 | { name = "fan1" |
| 4 | type = "fan" |
| 5 | readpath = "/xyz/openbmc_project/sensors/fan_tach/fan1" |
| 6 | writepath = "/sys/class/hwmon/hwmon0/pwm0" |
| 7 | min = 0 |
| 8 | { name = "fan2" |
| 9 | type = "fan" |
| 10 | readpath = "/xyz/openbmc_project/sensors/fan_tach/fan2" |
| 11 | writepath = "/sys/class/hwmon/hwmon0/pwm1" |
| 12 | min = 0 |
| 13 | max = 255 |
| 14 | timeout = 0 }, |
| 15 | { name = "fan3" |
| 16 | type = "fan" |
| 17 | readpath = "/xyz/openbmc_project/sensors/fan_tach/fan3" |
| 18 | writepath = "/sys/class/hwmon/hwmon0/pwm2" |
| 19 | min = 0 |
| 20 | max = 255 |
| 21 | timeout = 0 }, |
| 22 | { name = "fan4" |
| 23 | type = "fan" |
| 24 | readpath = "/xyz/openbmc_project/sensors/fan_tach/fan4" |
| 25 | writepath = "/sys/class/hwmon/hwmon0/pwm3" |
| 26 | min = 0 |
| 27 | max = 255 |
| 28 | timeout = 0 }, |
| 29 | { name = "fan5" |
| 30 | type = "fan" |
| 31 | readpath = "/xyz/openbmc_project/sensors/fan_tach/fan5" |
| 32 | writepath = "" |
| 33 | min = 0 |
| 34 | max = 0 |
| 35 | timeout = 0 }, |
| 36 | { name = "fan6" |
| 37 | type = "fan" |
| 38 | readpath = "/xyz/openbmc_project/sensors/fan_tach/fan6" |
| 39 | writepath = "" |
| 40 | min = 0 |
| 41 | max = 0 |
| 42 | timeout = 0 }, |
| 43 | { name = "fan7" |
| 44 | type = "fan" |
| 45 | readpath = "/xyz/openbmc_project/sensors/fan_tach/fan7" |
| 46 | writepath = "" |
| 47 | min = 0 |
| 48 | max = 0 |
| 49 | timeout = 0 }, |
| 50 | { name = "fan8" |
| 51 | type = "fan" |
| 52 | readpath = "/xyz/openbmc_project/sensors/fan_tach/fan8" |
| 53 | writepath = "" |
| 54 | min = 0 |
| 55 | max = 0 |
| 56 | timeout = 0 } |
| 57 | ); |
| 58 | |
| 59 | zones = ( |
| 60 | { id = 0x01 |
Patrick Venture | 8e2fdb3 | 2019-02-11 09:39:59 -0800 | [diff] [blame^] | 61 | minThermalRpm = 3000.0 |
Patrick Venture | e620656 | 2018-03-08 15:36:53 -0800 | [diff] [blame] | 62 | failsafepwm = 90.0 |
| 63 | pids = ( |
| 64 | { name = "allfans" |
| 65 | type = "fan" |
| 66 | inputs = ( |
| 67 | "fan1", |
| 68 | "fan2", |
| 69 | "fan3", |
| 70 | "fan4", |
| 71 | "fan5", |
| 72 | "fan6", |
| 73 | "fan7", |
| 74 | "fan8" |
| 75 | ) |
| 76 | set-point = 90.0 |
| 77 | pid = { |
| 78 | sampleperiod = 0.1 |
| 79 | p_coefficient = 0.01 |
| 80 | i_coefficient = 0.001 |
| 81 | ff_off_coefficient = 0.0 |
| 82 | ff_gain_coefficient = 0.0 |
| 83 | i_limit = { |
| 84 | min: 0.0 |
| 85 | max: 100.0 |
| 86 | } |
| 87 | out_limit = { |
| 88 | min: 0.0 |
| 89 | max: 100.0 |
| 90 | } |
| 91 | slew_neg = 0.0 |
| 92 | slew_pos = 0.0 |
| 93 | } |
| 94 | } |
| 95 | ) |
| 96 | } |
| 97 | ); |