configurations: catalina_pdb: add max/min value for vdrop sensor
We noticed that the vdrop sensor values were not updating correctly
and we discovered this was due to incorrect MaxValue and MinValue
settings.
The value of the vdrop sensor is usually between 1 and -1 volts. Add
in0_Max and in0_Mix definitions for the vdrop sensor.
Tested results:
```
root@bmc:~# busctl introspect xyz.openbmc_project.PSUSensor /xyz/openbmc_project/sensors/voltage/PDB_POSITIVE_VDROP_VOLT_V xyz.openbmc_project.Sensor.Value
NAME TYPE SIGNATURE RESULT/VALUE FLAGS
.MaxValue property d 1 emits-change
.MinValue property d -1 emits-change
.Unit property s "xyz.openbmc_project.Sensor.Value.Unit.… emits-change
.Value property d 0.104 emits-change writable
root@bmc:~# busctl introspect xyz.openbmc_project.PSUSensor /xyz/openbmc_project/sensors/voltage/PDB_RETURN_VDROP_VOLT_V xyz.openbmc_project.Sensor.Value
NAME TYPE SIGNATURE RESULT/VALUE FLAGS
.MaxValue property d 1 emits-change
.MinValue property d -1 emits-change
.Unit property s "xyz.openbmc_project.Sensor.Value.Unit.… emits-change
.Value property d 0.107 emits-change writable
```
Signed-off-by: Potin Lai <potin.lai@quantatw.com>
Change-Id: I37125808a772d0e12fcf93a56a161b573c09135a
diff --git a/configurations/catalina_pdb.json b/configurations/catalina_pdb.json
index 3aa5ace..1e4e589 100644
--- a/configurations/catalina_pdb.json
+++ b/configurations/catalina_pdb.json
@@ -388,6 +388,8 @@
],
"Name": "PDB_POSITIVE_VDROP_INA238",
"Type": "INA238",
+ "in0_Max": 1,
+ "in0_Min": -1,
"in0_Name": "PDB_POSITIVE_VDROP_VOLT_V"
},
{
@@ -398,6 +400,8 @@
],
"Name": "PDB_RETURN_VDROP_INA238",
"Type": "INA238",
+ "in0_Max": 1,
+ "in0_Min": -1,
"in0_Name": "PDB_RETURN_VDROP_VOLT_V"
},
{