blob: 750da95203f33fcd69802a6edc9c985b224d13ff [file] [log] [blame]
Dhruvaraj Subhashchandrane0af7202017-07-12 06:35:20 -05001#sample yaml with documentation
2#Sensor Number
Ratan Gupta47bf3ed2017-03-04 08:33:57 +053030xa6:
Dhruvaraj Subhashchandrane0af7202017-07-12 06:35:20 -05004 #Sensor Type
Ratan Gupta47bf3ed2017-03-04 08:33:57 +05305 sensorType: 0x0C
Dhruvaraj Subhashchandrane0af7202017-07-12 06:35:20 -05006 #There are two types of updates one with Set method and other with
7 #Notify method for inventory updates. The path indicates Inventory path for
8 #the Notify method and Dbus object path for Set method.
Ratan Gupta47bf3ed2017-03-04 08:33:57 +05309 path: /system/chassis/motherboard/dimm0
Dhruvaraj Subhashchandrane0af7202017-07-12 06:35:20 -050010 #event reading type
Ratan Gupta47bf3ed2017-03-04 08:33:57 +053011 sensorReadingType: 0x6F
Dhruvaraj Subhashchandrane0af7202017-07-12 06:35:20 -050012 #Dbus service interface to make a bus call to update or request value of a
13 #property
14 serviceInterface: xyz.openbmc_project.Inventory.Manager
15 #command data has three fields, sensor reading value, assertion and
16 #deassertion bits and event data, this indicates which data field should
17 #be used. Possible value to be updated.
18 readingType: assertion
19 #List of dbus interfaces associated with the interested properties.
Ratan Gupta47bf3ed2017-03-04 08:33:57 +053020 interfaces:
Dhruvaraj Subhashchandrane0af7202017-07-12 06:35:20 -050021 #Dbus interface implementing the interested property.
Ratan Gupta47bf3ed2017-03-04 08:33:57 +053022 xyz.openbmc_project.State.Decorator.OperationalStatus:
Dhruvaraj Subhashchandrane0af7202017-07-12 06:35:20 -050023 #DBus property
Ratan Gupta47bf3ed2017-03-04 08:33:57 +053024 Functional:
Dhruvaraj Subhashchandrane0af7202017-07-12 06:35:20 -050025 #Offset, for assertion it should be a bit mask to indicate which bit
26 #indicates the property is true or false, in event or reading types
27 #the value will get mapped to a Dbus enum, 0xFF need to give if the
28 #reading or event value need to be updated as it is.
Ratan Gupta47bf3ed2017-03-04 08:33:57 +053029 0x04:
Dhruvaraj Subhashchandrane0af7202017-07-12 06:35:20 -050030 #type of the property
Ratan Gupta47bf3ed2017-03-04 08:33:57 +053031 type: bool
Dhruvaraj Subhashchandrane0af7202017-07-12 06:35:20 -050032 #mapping from event offset bit in the command to the property value.
Ratan Gupta47bf3ed2017-03-04 08:33:57 +053033 deassert: "true"
34 assert: "false"
35 xyz.openbmc_project.Inventory.Item:
36 Present:
37 0x06:
38 type: bool
39 assert: "true"
40 deassert: "false"
Dhruvaraj Subhashchandrane0af7202017-07-12 06:35:20 -0500410x07:
42 sensorType: 0xC3
43 path: /xyz/openbmc_project/control/host0
44 sensorReadingType: 0x6F
45 serviceInterface: org.freedesktop.DBus.Properties
46 readingType: reading
47 interfaces:
48 xyz.openbmc_project.Control.Boot.RebootAttempts:
49 AttemptsLeft:
50 #A 0xFF indicates the value need to be send to dbus
51 0xFF:
52 type: uint32_t
Ratan Gupta47bf3ed2017-03-04 08:33:57 +0530530xa8:
54 sensorType: 0x0C
55 path: /system/chassis/motherboard/dimm1
56 sensorReadingType: 0x6F
Dhruvaraj Subhashchandrane0af7202017-07-12 06:35:20 -050057 serviceInterface: xyz.openbmc_project.Inventory.Manager
58 readingType: assertion
59 byteOffset: 0x00
Ratan Gupta47bf3ed2017-03-04 08:33:57 +053060 interfaces:
61 xyz.openbmc_project.State.Decorator.OperationalStatus:
62 Functional:
63 0x04:
64 type: bool
65 deassert: "true"
66 assert: "false"
67 xyz.openbmc_project.Inventory.Item:
68 Present:
69 0x06:
70 type: bool
71 assert: "true"
72 deassert: "false"
730xaa:
74 sensorType: 0x0C
75 path: /system/chassis/motherboard/dimm2
76 sensorReadingType: 0x6F
Dhruvaraj Subhashchandrane0af7202017-07-12 06:35:20 -050077 serviceInterface: xyz.openbmc_project.Inventory.Manager
78 readingType: assertion
79 byteOffset: 0x00
Ratan Gupta47bf3ed2017-03-04 08:33:57 +053080 interfaces:
81 xyz.openbmc_project.State.Decorator.OperationalStatus:
82 Functional:
83 0x04:
84 type: bool
85 deassert: "true"
86 assert: "false"
87 xyz.openbmc_project.Inventory.Item:
88 Present:
89 0x06:
90 type: bool
91 assert: "true"
92 deassert: "false"
930xac:
94 sensorType: 0x0C
95 path: /system/chassis/motherboard/dimm3
96 sensorReadingType: 0x6F
Dhruvaraj Subhashchandrane0af7202017-07-12 06:35:20 -050097 serviceInterface: xyz.openbmc_project.Inventory.Manager
98 readingType: assertion
99 byteOffset: 0x00
Ratan Gupta47bf3ed2017-03-04 08:33:57 +0530100 interfaces:
101 xyz.openbmc_project.State.Decorator.OperationalStatus:
102 Functional:
103 0x04:
104 type: bool
105 deassert: "true"
106 assert: "false"
107 xyz.openbmc_project.Inventory.Item:
108 Present:
109 0x06:
110 type: bool
111 assert: "true"
112 deassert: "false"