diff options
Diffstat (limited to 'meta-ingrasys/meta-zaius/recipes-phosphor')
3 files changed, 32 insertions, 0 deletions
diff --git a/meta-ingrasys/meta-zaius/recipes-phosphor/sensors/phosphor-hwmon%.bbappend b/meta-ingrasys/meta-zaius/recipes-phosphor/sensors/phosphor-hwmon%.bbappend index f7e8cd525..de6dff179 100644 --- a/meta-ingrasys/meta-zaius/recipes-phosphor/sensors/phosphor-hwmon%.bbappend +++ b/meta-ingrasys/meta-zaius/recipes-phosphor/sensors/phosphor-hwmon%.bbappend @@ -4,6 +4,7 @@ ZAIUS_CHIPS = "i2c@1e78a000/i2c-bus@40/ucd90160@64" ZAIUS_ITEMSFMT = "ahb/apb/{0}.conf" ZAIUS_ITEMS = "${@compose_list(d, 'ZAIUS_ITEMSFMT', 'ZAIUS_CHIPS')}" +ZAIUS_ITEMS += "iio-hwmon.conf iio-hwmon-battery.conf" ZAIUS_OCCS = " \ 00--00--00--06/sbefifo1-dev0/occ-hwmon.1 \ diff --git a/meta-ingrasys/meta-zaius/recipes-phosphor/sensors/phosphor-hwmon%/obmc/hwmon/iio-hwmon-battery.conf b/meta-ingrasys/meta-zaius/recipes-phosphor/sensors/phosphor-hwmon%/obmc/hwmon/iio-hwmon-battery.conf new file mode 100644 index 000000000..172fb20fd --- /dev/null +++ b/meta-ingrasys/meta-zaius/recipes-phosphor/sensors/phosphor-hwmon%/obmc/hwmon/iio-hwmon-battery.conf @@ -0,0 +1,7 @@ +LABEL_in1=vbat +GAIN_in1=2.30 +# The battery read is controlled by P2 +GPIOCHIP_in1=0 +GPIO_in1=122 +# Sleep in microseconds (stored into a uint64_t) +INTERVAL=86400000000 diff --git a/meta-ingrasys/meta-zaius/recipes-phosphor/sensors/phosphor-hwmon%/obmc/hwmon/iio-hwmon.conf b/meta-ingrasys/meta-zaius/recipes-phosphor/sensors/phosphor-hwmon%/obmc/hwmon/iio-hwmon.conf new file mode 100644 index 000000000..c7e2eed1d --- /dev/null +++ b/meta-ingrasys/meta-zaius/recipes-phosphor/sensors/phosphor-hwmon%/obmc/hwmon/iio-hwmon.conf @@ -0,0 +1,24 @@ +LABEL_in1=p5v_aux +GAIN_in1=4.30 +LABEL_in2=p2v5_aux +GAIN_in2=2.00 +LABEL_in3=p3v3_aux +GAIN_in3=2.47 +LABEL_in4=p1v1_aux +LABEL_in5=cpu0_vpp1 +GAIN_in5=2.00 +LABEL_in6=cpu0_vpp2 +GAIN_in6=2.00 +LABEL_in7=cpu1_vpp1 +GAIN_in7=2.00 +LABEL_in8=cpu1_vpp2 +GAIN_in8=2.00 +LABEL_in9=cpu0_vddq1 +LABEL_in10=cpu0_vddq2 +LABEL_in11=cpu1_vddq1 +LABEL_in12=cpu1_vddq2 +LABEL_in13=p1v2_aux +LABEL_in14=vendor_id +LABEL_in15=board_id +# Sleep in microseconds (stored into a uint64_t) +INTERVAL=86400000000 |