summaryrefslogtreecommitdiff
path: root/meta-ampere/meta-jade/recipes-phosphor/sensors/phosphor-nvme
diff options
context:
space:
mode:
authorThang Q. Nguyen <thang@os.amperecomputing.com>2021-12-22 10:53:52 +0300
committerThang Q. Nguyen <thang@os.amperecomputing.com>2021-12-22 11:41:17 +0300
commit54cfdab2070a7bf23b887286459cb6b8b10e14a4 (patch)
tree11ec82efcd64d00499139cb9f212c27f289ab79a /meta-ampere/meta-jade/recipes-phosphor/sensors/phosphor-nvme
parentf4b7cd1673cf336ed5bdf45afeb9da68692c08f3 (diff)
downloadopenbmc-54cfdab2070a7bf23b887286459cb6b8b10e14a4.tar.xz
meta-ampere: mtjade: support NVME Temperature
Enable phosphor-nvme with configuration for nvme_max sensor for FAN control support later. Tested: 1. Check NVME Temp: $ busctl get-property xyz.openbmc_project.nvme.manager \ /xyz/openbmc_project/sensors/temperature/nvme20 \ xyz.openbmc_project.Sensor.Value Value d 22 2. Check nvme_max has valid value $ busctl introspect xyz.openbmc_project.VirtualSensor \ /xyz/openbmc_project/sensors/temperature/nvme_max Signed-off-by: Thang Q. Nguyen <thang@os.amperecomputing.com> Change-Id: Ied609ba5b5d39877c09ed04faff5063c7882a689
Diffstat (limited to 'meta-ampere/meta-jade/recipes-phosphor/sensors/phosphor-nvme')
-rw-r--r--meta-ampere/meta-jade/recipes-phosphor/sensors/phosphor-nvme/nvme_config.json118
1 files changed, 118 insertions, 0 deletions
diff --git a/meta-ampere/meta-jade/recipes-phosphor/sensors/phosphor-nvme/nvme_config.json b/meta-ampere/meta-jade/recipes-phosphor/sensors/phosphor-nvme/nvme_config.json
new file mode 100644
index 000000000..9c2aade75
--- /dev/null
+++ b/meta-ampere/meta-jade/recipes-phosphor/sensors/phosphor-nvme/nvme_config.json
@@ -0,0 +1,118 @@
+{
+ "config": [
+ {
+ "NVMeDriveIndex": 0,
+ "NVMeDriveBusID": 50
+ },
+ {
+ "NVMeDriveIndex": 1,
+ "NVMeDriveBusID": 51
+ },
+ {
+ "NVMeDriveIndex": 2,
+ "NVMeDriveBusID": 52
+ },
+ {
+ "NVMeDriveIndex": 3,
+ "NVMeDriveBusID": 53
+ },
+ {
+ "NVMeDriveIndex": 4,
+ "NVMeDriveBusID": 54
+ },
+ {
+ "NVMeDriveIndex": 5,
+ "NVMeDriveBusID": 55
+ },
+ {
+ "NVMeDriveIndex": 6,
+ "NVMeDriveBusID": 56
+ },
+ {
+ "NVMeDriveIndex": 7,
+ "NVMeDriveBusID": 57
+ },
+ {
+ "NVMeDriveIndex": 8,
+ "NVMeDriveBusID": 60
+ },
+ {
+ "NVMeDriveIndex": 9,
+ "NVMeDriveBusID": 61
+ },
+ {
+ "NVMeDriveIndex": 10,
+ "NVMeDriveBusID": 62
+ },
+ {
+ "NVMeDriveIndex": 11,
+ "NVMeDriveBusID": 63
+ },
+ {
+ "NVMeDriveIndex": 12,
+ "NVMeDriveBusID": 64
+ },
+ {
+ "NVMeDriveIndex": 13,
+ "NVMeDriveBusID": 65
+ },
+ {
+ "NVMeDriveIndex": 14,
+ "NVMeDriveBusID": 66
+ },
+ {
+ "NVMeDriveIndex": 15,
+ "NVMeDriveBusID": 67
+ },
+ {
+ "NVMeDriveIndex": 16,
+ "NVMeDriveBusID": 70
+ },
+ {
+ "NVMeDriveIndex": 17,
+ "NVMeDriveBusID": 71
+ },
+ {
+ "NVMeDriveIndex": 18,
+ "NVMeDriveBusID": 72
+ },
+ {
+ "NVMeDriveIndex": 19,
+ "NVMeDriveBusID": 73
+ },
+ {
+ "NVMeDriveIndex": 20,
+ "NVMeDriveBusID": 74
+ },
+ {
+ "NVMeDriveIndex": 21,
+ "NVMeDriveBusID": 75
+ },
+ {
+ "NVMeDriveIndex": 22,
+ "NVMeDriveBusID": 76
+ },
+ {
+ "NVMeDriveIndex": 23,
+ "NVMeDriveBusID": 77
+ },
+ {
+ "NVMeDriveIndex": 24,
+ "NVMeDriveBusID": 80
+ },
+ {
+ "NVMeDriveIndex": 25,
+ "NVMeDriveBusID": 81
+ }
+ ],
+ "threshold": [
+ {
+ "criticalHigh": 80,
+ "criticalLow": 0,
+ "warningHigh": 70,
+ "warningLow": 5,
+ "maxValue": 127,
+ "minValue": -128
+ }
+ ]
+}