diff options
author | Tom Joseph <tomjoseph@in.ibm.com> | 2018-01-24 16:10:09 +0530 |
---|---|---|
committer | Tom Joseph <tomjoseph@in.ibm.com> | 2018-01-30 08:33:47 +0000 |
commit | 31ff6e6f4a8f7bac3214e48974a2b0d38b5e0bbb (patch) | |
tree | 117f92d6d3ecdeb40f6a1d94f393616d5bdef1af /scripts/sensor-example.yaml | |
parent | b0adbcdd5a854702c8eab02a63ff08936103540e (diff) | |
download | phosphor-host-ipmid-31ff6e6f4a8f7bac3214e48974a2b0d38b5e0bbb.tar.gz phosphor-host-ipmid-31ff6e6f4a8f7bac3214e48974a2b0d38b5e0bbb.zip |
sensor: Populate entity id, instance and sensor name callback
Change-Id: Ie7bf403ae15d9b1a70216aab0c57362c3d4240e7
Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
Diffstat (limited to 'scripts/sensor-example.yaml')
-rwxr-xr-x | scripts/sensor-example.yaml | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/sensor-example.yaml b/scripts/sensor-example.yaml index c4ff4d5..db0e694 100755 --- a/scripts/sensor-example.yaml +++ b/scripts/sensor-example.yaml @@ -11,6 +11,8 @@ serviceInterface: org.freedesktop.DBus.Properties # Where the sensor value is represented - assertion bits/reading/event data readingType: assertion + # Sensor name would be occ0 + sensorNamePattern: nameLeaf eventType: 0x6F # All the d-bus interfaces : properties that must be updated for this path interfaces: @@ -35,6 +37,7 @@ path: /system/chassis/motherboard/dimm1 serviceInterface: xyz.openbmc_project.Inventory.Manager readingType: assertion + sensorNamePattern: nameLeaf interfaces: xyz.openbmc_project.State.Decorator.OperationalStatus: Functional: @@ -70,6 +73,8 @@ # serves as the value, or reading. Hence, the offset above is intentionally # 0xFF, to indicate not to check any specific bits in the assertion. readingType: readingAssertion + # Sensor name would be AttemptsLeft + sensorNamePattern: nameProperty sensorReadingType: 0x6F sensorType: 0xC3 serviceInterface: org.freedesktop.DBus.Properties @@ -83,6 +88,7 @@ type: uint32_t path: /xyz/openbmc_project/state/host1 readingType: readingAssertion + sensorNamePattern: nameProperty sensorReadingType: 0x6F sensorType: 0xC3 serviceInterface: org.freedesktop.DBus.Properties @@ -97,6 +103,7 @@ mutability: Mutability::Write|Mutability::Read serviceInterface: org.freedesktop.DBus.Properties readingType: readingData + sensorNamePattern: nameLeaf interfaces: xyz.openbmc_project.Sensor.Value: Value: @@ -110,6 +117,8 @@ sensorReadingType: 0x6F serviceInterface: xyz.openbmc_project.Inventory.Manager readingType: assertion + # Sensor name would be cpu0_core22 + sensorNamePattern: nameParentLeaf interfaces: xyz.openbmc_project.State.Decorator.OperationalStatus: Functional: |