configuration: bletchley: add PwmName
Add PwmName to match the naming rule for internal tool.
Test results:
- FanSensor works normal after PwmName changes.
```
root@bmc:~# busctl tree xyz.openbmc_project.FanSensor
└─ /xyz
└─ /xyz/openbmc_project
├─ /xyz/openbmc_project/control
│ └─ /xyz/openbmc_project/control/fanpwm
│ ├─ /xyz/openbmc_project/control/fanpwm/FAN0_PWM
│ ├─ /xyz/openbmc_project/control/fanpwm/FAN1_PWM
│ ├─ /xyz/openbmc_project/control/fanpwm/FAN2_PWM
│ └─ /xyz/openbmc_project/control/fanpwm/FAN3_PWM
├─ /xyz/openbmc_project/inventory
└─ /xyz/openbmc_project/sensors
├─ /xyz/openbmc_project/sensors/fan_pwm
│ ├─ /xyz/openbmc_project/sensors/fan_pwm/FAN0_PWM
│ ├─ /xyz/openbmc_project/sensors/fan_pwm/FAN1_PWM
│ ├─ /xyz/openbmc_project/sensors/fan_pwm/FAN2_PWM
│ └─ /xyz/openbmc_project/sensors/fan_pwm/FAN3_PWM
└─ /xyz/openbmc_project/sensors/fan_tach
├─ /xyz/openbmc_project/sensors/fan_tach/FAN0_TACH_IL
├─ /xyz/openbmc_project/sensors/fan_tach/FAN0_TACH_OL
├─ /xyz/openbmc_project/sensors/fan_tach/FAN1_TACH_IL
├─ /xyz/openbmc_project/sensors/fan_tach/FAN1_TACH_OL
├─ /xyz/openbmc_project/sensors/fan_tach/FAN2_TACH_IL
├─ /xyz/openbmc_project/sensors/fan_tach/FAN2_TACH_OL
├─ /xyz/openbmc_project/sensors/fan_tach/FAN3_TACH_IL
└─ /xyz/openbmc_project/sensors/fan_tach/FAN3_TACH_OL
```
- The test tool results
```
root@bmc:~# mfg-tool fan-speed 2>/dev/null
{
"FAN0": {
"pwm": {
"current": 36.86274509803922,
"target": 36.86274509803921
},
"tach_il": 2690.0,
"tach_ol": 2497.0
},
"FAN1": {
"pwm": {
"current": 36.86274509803922,
"target": 36.86274509803921
},
"tach_il": 2758.0,
"tach_ol": 2496.0
},
"FAN2": {
"pwm": {
"current": 36.86274509803922,
"target": 36.86274509803921
},
"tach_il": 2730.0,
"tach_ol": 2511.0
},
"FAN3": {
"pwm": {
"current": 36.86274509803922,
"target": 36.86274509803921
},
"tach_il": 2752.0,
"tach_ol": 2526.0
}
}
```
Signed-off-by: Potin Lai <potin.lai@quantatw.com>
Change-Id: Ie90da18154ce62dc4e79b63d5972a4dacb8606f5
diff --git a/configurations/bletchley_baseboard.json b/configurations/bletchley_baseboard.json
index 4e43ea6..bdca582 100644
--- a/configurations/bletchley_baseboard.json
+++ b/configurations/bletchley_baseboard.json
@@ -432,6 +432,7 @@
"LED": "fan0_fault",
"Name": "System Fan Connector 0",
"Pwm": 0,
+ "PwmName": "FAN0_PWM",
"Status": "disabled",
"Tachs": [
0,
@@ -443,6 +444,7 @@
"LED": "fan1_fault",
"Name": "System Fan Connector 1",
"Pwm": 1,
+ "PwmName": "FAN1_PWM",
"Status": "disabled",
"Tachs": [
2,
@@ -454,6 +456,7 @@
"LED": "fan2_fault",
"Name": "System Fan Connector 2",
"Pwm": 2,
+ "PwmName": "FAN2_PWM",
"Status": "disabled",
"Tachs": [
4,
@@ -465,6 +468,7 @@
"LED": "fan3_fault",
"Name": "System Fan Connector 3",
"Pwm": 3,
+ "PwmName": "FAN3_PWM",
"Status": "disabled",
"Tachs": [
6,
diff --git a/configurations/bletchley_chassis.json b/configurations/bletchley_chassis.json
index 253b032..d5eb88d 100644
--- a/configurations/bletchley_chassis.json
+++ b/configurations/bletchley_chassis.json
@@ -190,14 +190,14 @@
"OutLimitMax": 100.0,
"OutLimitMin": 0.0,
"Outputs": [
- "Pwm 1",
- "Pwm 1",
- "Pwm 2",
- "Pwm 2",
- "Pwm 3",
- "Pwm 3",
- "Pwm 4",
- "Pwm 4"
+ "FAN0_PWM",
+ "FAN0_PWM",
+ "FAN1_PWM",
+ "FAN1_PWM",
+ "FAN2_PWM",
+ "FAN2_PWM",
+ "FAN3_PWM",
+ "FAN3_PWM"
],
"PCoefficient": 0.0,
"PositiveHysteresis": 0.0,