meta-quanta: gbs: adjust max34451/p3v_bat_adc threshold/GAIN

max34451:

adjust pwrgd_pvpp/pwrgd_pvddio/pwrgd_cpuvr GAIN/threshold
to show normal value

p3v_bat_adc:

adjust GAIN to meet the deviation requirement

Signed-off-by: George Hung <george.hung@quantatw.com>
Change-Id: If839c3594e1a6d0ca874ee3cf1799200ea132c15
diff --git a/meta-gbs/recipes-phosphor/configuration/gbs-yaml-config/gbs-ipmi-sensors.yaml b/meta-gbs/recipes-phosphor/configuration/gbs-yaml-config/gbs-ipmi-sensors.yaml
index 0239923..b3e933f 100644
--- a/meta-gbs/recipes-phosphor/configuration/gbs-yaml-config/gbs-ipmi-sensors.yaml
+++ b/meta-gbs/recipes-phosphor/configuration/gbs-yaml-config/gbs-ipmi-sensors.yaml
@@ -216,21 +216,21 @@
   <<: *voltage
   entityInstance: 0x07
   path: /xyz/openbmc_project/sensors/voltage/pwrgd_pvpp
-  multiplierM: 157
+  multiplierM: 235
   rExp: -4
 
 0x38:
   <<: *voltage
   entityInstance: 0x08
   path: /xyz/openbmc_project/sensors/voltage/pwrgd_pvddio
-  multiplierM: 157
+  multiplierM: 235
   rExp: -4
 
 0x39:
   <<: *voltage
   entityInstance: 0x09
   path: /xyz/openbmc_project/sensors/voltage/pwrgd_cpuvr
-  multiplierM: 157
+  multiplierM: 235
   rExp: -4
 
 0x3A:
diff --git a/meta-gbs/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/ahb/apb/i2c@8c000/max34451@4e.conf b/meta-gbs/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/ahb/apb/i2c@8c000/max34451@4e.conf
index 5adb40c..353075a 100644
--- a/meta-gbs/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/ahb/apb/i2c@8c000/max34451@4e.conf
+++ b/meta-gbs/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/ahb/apb/i2c@8c000/max34451@4e.conf
@@ -62,31 +62,34 @@
 PWRONMON_in7 = "ON"
 
 LABEL_in8 = "pwrgd_pvpp"
-CRITHI_in8 = "3600"
-CRITLO_in8 = "1000"
-WARNHI_in8 = "3600"
-WARNLO_in8 = "1000"
+CRITHI_in8 = "5760"
+CRITLO_in8 = "1600"
+WARNHI_in8 = "5760"
+WARNLO_in8 = "1600"
 MINVALUE_in8 = "0"
-MAXVALUE_in8 = "4"
+MAXVALUE_in8 = "6"
 PWRONMON_in8 = "ON"
+GAIN_in8 = "1.60"
 
 LABEL_in9 = "pwrgd_pvddio"
-CRITHI_in9 = "3600"
-CRITLO_in9 = "1000"
-WARNHI_in9 = "3600"
-WARNLO_in9 = "1000"
+CRITHI_in9 = "5760"
+CRITLO_in9 = "1600"
+WARNHI_in9 = "5760"
+WARNLO_in9 = "1600"
 MINVALUE_in9 = "0"
-MAXVALUE_in9 = "4"
+MAXVALUE_in9 = "6"
 PWRONMON_in9 = "ON"
+GAIN_in9 = "1.60"
 
 LABEL_in10 = "pwrgd_cpuvr"
-CRITHI_in10 = "3600"
-CRITLO_in10 = "1000"
-WARNHI_in10 = "3600"
-WARNLO_in10 = "1000"
+CRITHI_in10 = "5760"
+CRITLO_in10 = "1600"
+WARNHI_in10 = "5760"
+WARNLO_in10 = "1600"
 MINVALUE_in10 = "0"
-MAXVALUE_in10 = "4"
+MAXVALUE_in10 = "6"
 PWRONMON_in10 = "ON"
+GAIN_in10 = "1.60"
 
 LABEL_in11 = "p3v3_stby"
 CRITHI_in11 = "3465"
diff --git a/meta-gbs/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/iio-hwmon-battery.conf b/meta-gbs/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/iio-hwmon-battery.conf
index 5b2833a..4ae5a24 100644
--- a/meta-gbs/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/iio-hwmon-battery.conf
+++ b/meta-gbs/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/iio-hwmon-battery.conf
@@ -9,7 +9,7 @@
 # The battery read is controlled by GPIO18
 GPIOCHIP_in1=0
 GPIO_in1=18
-GAIN_in1 = "3.35"
+GAIN_in1 = "3.14"
 
 # Sleep 24hrs per poll. Number is in microseconds.
 INTERVAL=86400000000