summaryrefslogtreecommitdiff
path: root/meta-quanta/meta-gbs/recipes-phosphor/sensors
AgeCommit message (Collapse)AuthorFilesLines
2021-06-23meta-quanta: gbs: remove the patch for phosphor-hwmonGeorge Hung2-272/+0
remove patch: - Add power on monitor mechanism patch Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: I932828d69948c3e0daa8fd428d620a75325e0ac9
2021-06-22meta-quanta: gbs: update the service and remove unused scriptGeorge Hung2-15/+2
- Add always restart to the service file ref: https://gerrit.openbmc-project.xyz/42451 - Add retry 10 times when the service failed - remove unused script Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: Ia3b027077d8cc9fae65013d38bf1ea730dbbbe42
2021-06-05meta-quanta: gbs: phosphor-hwmon: Fix missing boost dependencyWilliam A. Kennington III1-0/+2
The patch added an implicit boost dependency Change-Id: Ic990f59d46101684d4576bfbba89ea0f4c9015e1 Signed-off-by: William A. Kennington III <wak@google.com>
2021-06-02meta-quanta: gbs: update p12v_fan input/output current thresholdGeorge Hung1-4/+4
Since the VR may report negative current to BMC with light loading, fine tune p12v_fan input/output current lower threshold to -1 Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: I90c133d8ca5b9e399337fbe82472e5ed78e457a6
2021-05-17meta-quanta: gbs: Lower pwm-fan-controller CRITLOBrandon Kim1-5/+5
Lower CRITLO parameter to 1500. Signed-off-by: Brandon Kim <brandonkim@google.com> Change-Id: I34383068cf1a3469a4f946bac862a60398634f62
2021-05-11meta-quanta: gbs: Remove phosphor-hwmon ASYNC patchBrandon Kim2-335/+1
The 0001-sensor-Implement-sensor-ASYNC_READ_TIMEOUT.patch was merged: https://gerrit.openbmc-project.xyz/24337 And SRCREV bumped here: https://gerrit.openbmc-project.xyz/43005 Remove the patch to fix build failures. Change-Id: I38dcaa56a2d184ed9c65a8a653a4d34a80d8f83b Signed-off-by: Brandon Kim <brandonkim@google.com>
2021-05-07meta-quanta: gbs: update ASYNC_READ_TIMEOUT build method to mesonGeorge Hung1-164/+164
ref: https://gerrit.openbmc-project.xyz/24337 Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: Id02a797a515363f74fcff27fc6ce9fc88a4bd9cc
2021-05-04meta-quanta: gbs: Add Max/Min value setting in json configGeorge Hung3-8/+9
Add Max/Min value setting in json config, so sel-logger could show correct sensor value ref: https://gerrit.openbmc-project.xyz/42073 Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: Ieebb60fec73a83a17babd4a918645dd1a387d8b4
2021-04-29meta-quanta: gbs: fix mapper wait quit immediatelyGeorge Hung1-3/+3
Using mapper wait to ExecStartPre would quit immdiately while the D-Bus path is not active yet, so change to add to "After=" to make sure it would wait until the D-Bus path work Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: I86029f4eba6b34b5c313ec9cc1578ef173d5c2aa
2021-04-28meta-quanta: gbs: fix includes error and add flag explictlyGeorge Hung3-85/+135
1. Remake the patch to fix includes error: - Implement sensor "ASYNC_READ_TIMEOUT" https://gerrit.openbmc-project.xyz/24337 - Add power on monitor mechanism https://gerrit.openbmc-project.xyz/28181 2. Set negative-errno-on-fail flag as false explicitly, otherwise it would be true conflicts with update-functional-on-fail Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: Id550bc5261e6fa7218e2ff2731e1af51487ee376
2021-04-22build phosphor-hwmon with mesonMatt Spinler1-1/+1
The repository supports it, so switch it over in bitbake. Signed-off-by: Matt Spinler <spinler@us.ibm.com> Change-Id: I8d96c79b395ee2614ddd869091569f245426c5c7
2021-03-30meta-quanta: gbs: revert back the pwm/tach for fb_fan1 and fb_fan2George Hung1-2/+2
Change to work-round for the kernel dts, so revert back the following commit: https://gerrit.openbmc-project.xyz/c/openbmc/meta-quanta/+/38877 Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: I21af8da577f2554b55886fc0133f94be77bc3520
2021-03-23meta-quanta: gbs: set Max/Min value to i2cool sensorsGeorge Hung3-0/+22
Set the Max/Min value to i2cool sensors to avoid the abnormal current/thershold values in the SEL logs Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: Ie46e07a9a41f65b820258675f0e213e5434583cc
2021-02-18meta-quanta: gbs: change to set CRITILO fan speed to 1800 RPMGeorge Hung1-5/+5
Change to set CRITILO fan speed to 1800 RPM for fan failsafe consideration according to the thermal team suggestion Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: I2fef191d53b095bce6518583dea072700ff9a0e7
2021-01-27meta-quanta: gbs: set CRITILO fan speed to 600 RPMGeorge Hung1-5/+5
Set CRITILO fan speed to 600 RPM for host tool fan pwm calculation (From meta-quanta rev: 3bee1ba439c56ccb37ee1465a7d4209f757db015) Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: Ica5a0e030f32425f74c30ad5c2dd80b875227b87 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2021-01-22meta-quanta: gbs: add i2cool temperature calibrationGeorge Hung6-15/+157
Do i2cool temperature calibration by phosphor-virtual-sensor Also, as the phosphor-virtual-sensor generate the same D-Bus path, chage the sensor name in hwmon to avoid the duplicate D-Bus path (From meta-quanta rev: e1562d81de2b88bfee04cd2440133caa334b726f) Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: I31f000c8ab3cdcef100e95a2fd4de5ecb19ad14a Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2021-01-22meta-quanta: gbs: adjust the IOUT/POUT GAIN for ADM1272George Hung1-4/+4
Adjust the IOUT/POUT GAIN for ADM1272 since main source changed for DVT/PVT HW (From meta-quanta rev: 1c42eb58913bf5d2af803a774e623ebcc64ec252) Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: Iae21f6ff4b840019b1b3e6dbf470212d71ff2514 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-12-10meta-quanta: gbs: exchange the pwm/tach for fb_fan1 and fb_fan2George Hung1-2/+2
Since their pwm/tach are inverted physically, so work-round to exchange the pwm/tach for fb_fan1 and fb_fan2 (From meta-quanta rev: b673c1f821cf041b4cb178ea09cd0fdb5095d421) Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: If148239ed199000b20d1782579f344a3e3bd72ee Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-12-10meta-quanta: gbs: adjust VR/Hotswap sensors threshold and M valueGeorge Hung5-18/+18
1. adjust VR/Hotswap sensors threshold: hotswap_iout current vddcr_cpu_out voltage vddcr_cpu_in current vddcr_soc_out voltage vddio_abcd/efgh_out voltage 2. adjust M value in sensors.yaml: hotswap_iout current vddcr_cpu_in current (From meta-quanta rev: 2297095f43ad8bdff5bdfc2031acfa878ae4250b) Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: I46310ec035c8294ee7147bc2d6f4b8e3b14e2828 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-12-10meta-quanta: gbs: update thermal config to R03George Hung1-10/+10
1. Fan LCT = 3330 RPM 2. Minimum fan duty = 15% 3. NVMe Kp=1250,Ki=12 (From meta-quanta rev: b6ba0ea2d0007b1db640ea9d15d171ab7d79938e) Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: I541dce79aab0b6dc48964cfb0657c19f13f9520f Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-10-09meta-quanta: gbs: filter out vddcr_cpu_in/out current noise valueGeorge Hung1-4/+4
Set threshold to filter out the negative noise value reported from the VR sometimes (From meta-quanta rev: 6a7ec660d02d63631a71b0bb1a13f00a55e93603) Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: Id9f88bae0af56c99ab9528f7dd7d69cb4baa4a44 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-10-07meta-quanta: gbs: update thermal config to R01George Hung13-32/+32
1. update fine tuned PID parameters 2. update sensors threshold (From meta-quanta rev: 52b5953cf0c8c16d34bb8fa7b676316335dbf06e) Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: Icf6f74543552cf511d64fb6bb35bec279f7d0846 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-09-26meta-quanta: gbs: adjust max34451/p3v_bat_adc threshold/GAINGeorge Hung2-16/+19
max34451: adjust pwrgd_pvpp/pwrgd_pvddio/pwrgd_cpuvr GAIN/threshold to show normal value p3v_bat_adc: adjust GAIN to meet the deviation requirement (From meta-quanta rev: 47decce839819001140663ed8eed71ffb31efa2b) Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: Ia30c6abe2f95490d52d01052289ed86178b7cdce Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-09-23meta-quanta: gbs: add VR/adm1272 temperature sensorsGeorge Hung7-0/+62
VR temperature sensor names: vddcr_cpu vddcr_soc vddio_abcd vddio_efgh p12v_mobo p12v_fan adm1272 temperature sensor name: hotswap Note: Since adm1272 PMON_CONFIG didn't enable temperature monitoring by default, add the driver patch to support it (From meta-quanta rev: c680ebe0310ff72dd0811616830d22f5d5bfa108) Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: Icb39c0827fe66faaa91d24b3fc93e15f53d21782 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-09-04meta-gbs: update some sensors m value/threshold/GAIN/sensor typeGeorge Hung8-24/+32
1. update max31725 temperature threshold 2. add adm1272 power GAIN 3. update vddcr_cpu_in/out current threshold 4. update pwrgd_pvpp/pwrgd_pvddio/pwrgd_cpuvr voltage threshold 5. update p12v_fan_in/out current threshold 6. add p12v_mobo_in/p12v_fan_in current GAIN 7. update p1v8_stby voltage m value 8. update vddcr_cpu_in current m value 9. update hotswap_iout current m value 10.nvme pwr_dis/en sensor type 0x00 -> 0xC0 (From meta-quanta rev: 444a37116b4902b0efffc1c013fc5f6ebf60aa69) Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: Iac993f356a7b3fa8647973479477e5a5ce82655f Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-08-28meta-quanta: gbs: add updating nvme config scriptGeorge Hung4-0/+424
Update Present/Pwrgood GPIOs number to nvme json config and export them before running phosphor-nvme daemon (From meta-quanta rev: 30cafdc73528c95d7658feb060f2552b65afb16a) Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: I3662fa44b65883ec46d61e693ed4b8804059f927 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-08-27meta-quanta: gbs: change VR and NVMe presence sensors nameGeorge Hung4-16/+16
Change VR and NVMe presence sensors name to make them more readable VR: vddq_abcd_in => vddio_abcd_in vddq_abcd_out => vddio_abcd_out vddq_efgh_in => vddio_efgh_in vddq_efgh_out => vddio_efgh_out p12v_1_in => p12v_mobo_in p12v_1_out => p12v_mobo_out p12v_2_in => p12v_fan_in p12v_2_out => p12v_fan_out (From meta-quanta rev: dfef06ba145eb60e59de7d74310489a6c467a75a) Signed-off-by: George Hung <george.hung@quantatw.com> Signed-off-by: Brandon Kim <brandonkim@google.com> Change-Id: Ie40b6eda8eb72b29a015884ec7bfe4fdd5734979 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-08-07meta-quanta: gbs: fix p12v voltage GAIN and current thresholdGeorge Hung2-6/+10
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 <george.hung@quantatw.com> Change-Id: I3394a2d33e22068509818e36b9dfd89e553703c5 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-08-04meta-quanta: gbs: fix sensor value type and hwmon patch issuesGeorge Hung2-53/+65
Since the sensor value type had been changed to double, we have to modify the sensor value type to double and remove the scale in sensor YAML config and also update the patch for hwmon fix for this changing Change sensor type to double: https://gerrit.openbmc-project.xyz/c/openbmc/phosphor-dbus-interfaces/+/11739 hwmon fixes for the sensor type changing: https://gerrit.openbmc-project.xyz/c/openbmc/phosphor-hwmon/+/34481 https://gerrit.openbmc-project.xyz/c/openbmc/phosphor-hwmon/+/34983 (From meta-quanta rev: a661c1683e19abf70429fd263dde8f63f1b188b0) Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: Ifdfe45c1119e0cc5d0e0fb180a91aada87631405 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-07-18meta-quanta: gbs: rename fan2/3/4 to fb_fan0/1/2George Hung1-3/+3
Change the sensor name of fans: fan2 -> fb_fan0 fan3 -> fb_fan1 fan4 -> fb_fan2 (From meta-quanta rev: 43bbb292c0d151841db415802849df965f6151ce) Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: If81cf92c50da512986344b31ba20d93af6dcf061 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-07-10meta-quanta: gbs: add hwmon sensorsGeorge Hung17-0/+1036
Define the configuration files of the related sensors and test pass 0001-lev-add-poweron-monitor-feature.patch In-Review: https://gerrit.openbmc-project.xyz/c/openbmc/phosphor-hwmon/+/28181 0002-lev-add-sensors-slow-readings.patch In-Review: https://gerrit.openbmc-project.xyz/c/openbmc/phosphor-hwmon/+/24337 (From meta-quanta rev: a66f2b941cede5fc15fe0d6d56ca2ac9352fdf77) Signed-off-by: George Hung <george.hung@quantatw.com> Change-Id: If7f767cbd952cde593e03d30c45572a21cc7c960 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>