configurations: harma: Add GPIO bridge for battery reading
Change battery reading path from ADC sensor to PSU sensors
due to hardware design.
Tested:
xyz.openbmc_project.Sensor.Value interface - -
.MaxValue property d 255
.MinValue property d 0
.Unit property s "xyz.openbmc_project.
Sensor.Value.Unit.…
.Value property d 3.036
Change-Id: I82b983c38984a435f77913155880ef8936343d3c
Signed-off-by: Peter Yin <peter.yin@quantatw.com>
diff --git a/configurations/meta/harma_mb.json b/configurations/meta/harma_mb.json
index 52a138c..eb0e902 100644
--- a/configurations/meta/harma_mb.json
+++ b/configurations/meta/harma_mb.json
@@ -2,38 +2,18 @@
{
"Exposes": [
{
+ "Address": "0x1d",
"BridgeGpio": [
{
+ "Label": "in0",
"Name": "rtc-battery-voltage-read-enable",
"Polarity": "High",
"SetupTime": 1
}
],
- "Index": 7,
- "Name": "MB_P3V_BAT_VOLT_V",
- "ScaleFactor": 0.333333333,
- "Thresholds": [
- {
- "Direction": "less than",
- "Hysteresis": 0.04,
- "Name": "lower critical",
- "Severity": 1,
- "Value": 2.0
- },
- {
- "Direction": "greater than",
- "Hysteresis": 0.068,
- "Name": "upper critical",
- "Severity": 1,
- "Value": 3.4
- }
- ],
- "Type": "ADC"
- },
- {
- "Address": "0x1d",
"Bus": 29,
"Labels": [
+ "in0",
"in1",
"in2",
"in3",
@@ -44,6 +24,22 @@
"Thresholds": [
{
"Direction": "less than",
+ "Hysteresis": 0.04,
+ "Label": "in0",
+ "Name": "lower critical",
+ "Severity": 1,
+ "Value": 2.0
+ },
+ {
+ "Direction": "greater than",
+ "Hysteresis": 0.068,
+ "Label": "in0",
+ "Name": "upper critical",
+ "Severity": 1,
+ "Value": 3.4
+ },
+ {
+ "Direction": "less than",
"Hysteresis": 0.0209,
"Label": "in1",
"Name": "lower critical",
@@ -124,6 +120,8 @@
}
],
"Type": "ADC128D818",
+ "in0_Name": "MB_P3V_BAT_VOLT_V",
+ "in0_Scale": 333.333333,
"in1_Name": "MB_PVDD11_S3_VOLT_V",
"in1_PowerState": "On",
"in2_Name": "MB_P3V3_STBY_VOLT_V",