From 12afe664606039c94b828b535b8cc557aeff2246 Mon Sep 17 00:00:00 2001 From: Adam Calabrigo Date: Wed, 24 Apr 2024 15:17:21 -0700 Subject: [PATCH] Meru800bfa: add DPM sensors --- .../configs/meru800bfa/platform_manager.json | 1 + .../configs/meru800bfa/sensor_service.json | 58 ++++++++++++++++++- 2 files changed, 57 insertions(+), 2 deletions(-) diff --git a/fboss/platform/configs/meru800bfa/platform_manager.json b/fboss/platform/configs/meru800bfa/platform_manager.json index ae3c8850df2fe..e7e42c6c0e1d0 100644 --- a/fboss/platform/configs/meru800bfa/platform_manager.json +++ b/fboss/platform/configs/meru800bfa/platform_manager.json @@ -4297,6 +4297,7 @@ "/run/devmap/sensors/SMB_ISL68226_OSFP_TR": "/SMB_SLOT@0/[SMB_ISL68226_OSFP_TR]", "/run/devmap/sensors/SMB_ISL68226_OSFP_BL": "/SMB_SLOT@0/[SMB_ISL68226_OSFP_BL]", "/run/devmap/sensors/SMB_ISL68226_OSFP_BR": "/SMB_SLOT@0/[SMB_ISL68226_OSFP_BR]", + "/run/devmap/sensors/SMB_UCD90320": "/SMB_SLOT@0/[SMB_UCD90320]", "/run/devmap/sensors/FAN0_TMP75": "/SMB_SLOT@0/[FAN0_TMP75]", "/run/devmap/cplds/FAN0_CPLD": "/SMB_SLOT@0/[FAN0_CPLD]", "/run/devmap/sensors/FAN_CPLD0": "/SMB_SLOT@0/[FAN0_CPLD]", diff --git a/fboss/platform/configs/meru800bfa/sensor_service.json b/fboss/platform/configs/meru800bfa/sensor_service.json index 7c0428eb1f3a1..ffe7231226dc1 100644 --- a/fboss/platform/configs/meru800bfa/sensor_service.json +++ b/fboss/platform/configs/meru800bfa/sensor_service.json @@ -530,7 +530,7 @@ "compute": "@/1000.0", "type": 3 }, - "SMB_VRM_R3R1_ANLG0_TEMP0V75": { + "SMB_VRM_R3R1_ANLG0_TEMP_0V75": { "path": "/run/devmap/sensors/SMB_ISL68226_R3R1_ANLG0/temp2_input", "thresholds": { "upperCriticalVal": 120.0, @@ -593,7 +593,7 @@ "compute": "@/1000.0", "type": 3 }, - "SMB_VRM_R3R1_ANLG1_TEMP0V75": { + "SMB_VRM_R3R1_ANLG1_TEMP_0V75": { "path": "/run/devmap/sensors/SMB_ISL68226_R3R1_ANLG1/temp2_input", "thresholds": { "upperCriticalVal": 120.0, @@ -719,6 +719,60 @@ "compute": "@/1000.0", "type": 3 }, + "SMB_DPM_12V": { + "path": "/run/devmap/sensors/SMB_UCD90320/in1_input", + "thresholds": { + "upperCriticalVal": 14.4, + "lowerCriticalVal": 9.6 + }, + "compute": "@/1000.0", + "type": 1 + }, + "SMB_DPM_3V3_DKR": { + "path": "/run/devmap/sensors/SMB_UCD90320/in2_input", + "thresholds": { + "upperCriticalVal": 3.96, + "lowerCriticalVal": 2.64 + }, + "compute": "@/1000.0", + "type": 1 + }, + "SMB_DPM_1V9_DKR": { + "path": "/run/devmap/sensors/SMB_UCD90320/in3_input", + "thresholds": { + "upperCriticalVal": 2.16, + "lowerCriticalVal": 1.44 + }, + "compute": "@/1000.0", + "type": 1 + }, + "SMB_DPM_1V2_DKR": { + "path": "/run/devmap/sensors/SMB_UCD90320/in4_input", + "thresholds": { + "upperCriticalVal": 1.44, + "lowerCriticalVal": 0.96 + }, + "compute": "@/1000.0", + "type": 1 + }, + "SMB_DPM_3V3": { + "path": "/run/devmap/sensors/SMB_UCD90320/in7_input", + "thresholds": { + "upperCriticalVal": 3.96, + "lowerCriticalVal": 2.64 + }, + "compute": "@/1000.0", + "type": 1 + }, + "SMB_DPM_5V0": { + "path": "/run/devmap/sensors/SMB_UCD90320/in8_input", + "thresholds": { + "upperCriticalVal": 6.0, + "lowerCriticalVal": 4.0 + }, + "compute": "@/1000.0", + "type": 1 + }, "FAN_BOARD0_TEMP": { "path": "/run/devmap/sensors/FAN0_TMP75/temp1_input", "thresholds": {