From 1f2e7000903ae47283405d537af914d49337fc4d Mon Sep 17 00:00:00 2001 From: George Hung Date: Wed, 5 Aug 2020 20:50:42 +0800 Subject: meta-quanta: gbs: fix p12v voltage GAIN and current threshold 1. fix p12v_1/2 input/output voltages GAIN to get the correct value 2. fix p12v_1 output current threshold (From meta-quanta rev: 58c91e5e8ad4e3c916bebbe76c958eafe0254e9e) Signed-off-by: George Hung Change-Id: I3394a2d33e22068509818e36b9dfd89e553703c5 Signed-off-by: Andrew Geissler --- .../phosphor-hwmon/obmc/hwmon/ahb/apb/i2c@8c000/vrm@5d.conf | 6 ++++-- .../phosphor-hwmon/obmc/hwmon/ahb/apb/i2c@8c000/vrm@5e.conf | 10 ++++++---- 2 files changed, 10 insertions(+), 6 deletions(-) (limited to 'meta-quanta') diff --git a/meta-quanta/meta-gbs/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/ahb/apb/i2c@8c000/vrm@5d.conf b/meta-quanta/meta-gbs/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/ahb/apb/i2c@8c000/vrm@5d.conf index 9ccd60219..530d36f1a 100644 --- a/meta-quanta/meta-gbs/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/ahb/apb/i2c@8c000/vrm@5d.conf +++ b/meta-quanta/meta-gbs/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/ahb/apb/i2c@8c000/vrm@5d.conf @@ -5,8 +5,8 @@ WARNHI_in1 = "60000" WARNLO_in1 = "40000" MINVALUE_in1 = "0" MAXVALUE_in1 = "65" -# READ_VIN is direct value *10 -GAIN_in1 = "10.0" +# READ_VIN is direct value*100 +GAIN_in1 = "100.0" PWRONMON_in1 = "ON" LABEL_in2 = "p12v_2_out" @@ -16,6 +16,8 @@ WARNHI_in2 = "12600" WARNLO_in2 = "11400" MINVALUE_in2 = "0" MAXVALUE_in2 = "14" +# READ_VOUT is direct value*5.02 +GAIN_in2 = "5.02" PWRONMON_in2 = "ON" LABEL_curr1 = "p12v_2_in" diff --git a/meta-quanta/meta-gbs/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/ahb/apb/i2c@8c000/vrm@5e.conf b/meta-quanta/meta-gbs/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/ahb/apb/i2c@8c000/vrm@5e.conf index aac47ac1a..59bf25511 100644 --- a/meta-quanta/meta-gbs/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/ahb/apb/i2c@8c000/vrm@5e.conf +++ b/meta-quanta/meta-gbs/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/ahb/apb/i2c@8c000/vrm@5e.conf @@ -5,8 +5,8 @@ WARNHI_in1 = "60000" WARNLO_in1 = "40000" MINVALUE_in1 = "0" MAXVALUE_in1 = "65" -# READ_VIN is direct value *10 -GAIN_in1 = "10.0" +# READ_VIN is direct value*100 +GAIN_in1 = "100.0" PWRONMON_in1 = "ON" LABEL_in2 = "p12v_1_out" @@ -16,6 +16,8 @@ WARNHI_in2 = "12600" WARNLO_in2 = "11400" MINVALUE_in2 = "0" MAXVALUE_in2 = "14" +# READ_VOUT is direct value*5.02 +GAIN_in2 = "5.02" PWRONMON_in2 = "ON" LABEL_curr1 = "p12v_1_in" @@ -28,9 +30,9 @@ MAXVALUE_curr1 = "35" PWRONMON_curr1 = "ON" LABEL_curr2 = "p12v_1_out" -CRITHI_curr2 = "10000" +CRITHI_curr2 = "100000" CRITLO_curr2 = "0" -WARNHI_curr2 = "10000" +WARNHI_curr2 = "100000" WARNLO_curr2 = "0" MINVALUE_curr2 = "0" MAXVALUE_curr2 = "150" -- cgit v1.2.3