summaryrefslogtreecommitdiffstats
path: root/scripts/sensor-example.yaml
blob: 750da95203f33fcd69802a6edc9c985b224d13ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
#sample yaml with documentation
#Sensor Number
0xa6:
  #Sensor Type
  sensorType: 0x0C
  #There are two types of updates one with Set method and other with
  #Notify method for inventory updates. The path indicates Inventory path for
  #the Notify method and Dbus object path for Set method.
  path: /system/chassis/motherboard/dimm0
  #event reading type
  sensorReadingType: 0x6F
  #Dbus service interface to make a bus call to update or request value of a
  #property
  serviceInterface: xyz.openbmc_project.Inventory.Manager
  #command data has three fields, sensor reading value, assertion and
  #deassertion bits and event data, this indicates which data field should
  #be used. Possible value to be updated.
  readingType: assertion
  #List of dbus interfaces associated with the interested properties.
  interfaces:
    #Dbus interface implementing the interested property.
    xyz.openbmc_project.State.Decorator.OperationalStatus:
      #DBus property
      Functional:
        #Offset, for assertion it should be a bit mask to indicate which bit
        #indicates the property is true or false, in event or reading types
        #the value will get mapped to a Dbus enum, 0xFF need to give if the
        #reading or event value need to be updated as it is.
        0x04:
          #type of the property
          type: bool
          #mapping from event offset bit in the command to the property value.
          deassert: "true"
          assert: "false"
    xyz.openbmc_project.Inventory.Item:
      Present:
        0x06:
          type: bool
          assert: "true"
          deassert: "false"
0x07:
  sensorType: 0xC3
  path: /xyz/openbmc_project/control/host0
  sensorReadingType: 0x6F
  serviceInterface: org.freedesktop.DBus.Properties
  readingType: reading
  interfaces:
    xyz.openbmc_project.Control.Boot.RebootAttempts:
      AttemptsLeft:
          #A 0xFF indicates the value need to be send to dbus
          0xFF:
            type: uint32_t
0xa8:
  sensorType: 0x0C
  path: /system/chassis/motherboard/dimm1
  sensorReadingType: 0x6F
  serviceInterface: xyz.openbmc_project.Inventory.Manager
  readingType: assertion
  byteOffset: 0x00
  interfaces:
    xyz.openbmc_project.State.Decorator.OperationalStatus:
      Functional:
        0x04:
          type: bool
          deassert: "true"
          assert: "false"
    xyz.openbmc_project.Inventory.Item:
      Present:
        0x06:
          type: bool
          assert: "true"
          deassert: "false"
0xaa:
  sensorType: 0x0C
  path: /system/chassis/motherboard/dimm2
  sensorReadingType: 0x6F
  serviceInterface: xyz.openbmc_project.Inventory.Manager
  readingType: assertion
  byteOffset: 0x00
  interfaces:
    xyz.openbmc_project.State.Decorator.OperationalStatus:
      Functional:
        0x04:
          type: bool
          deassert: "true"
          assert: "false"
    xyz.openbmc_project.Inventory.Item:
      Present:
        0x06:
          type: bool
          assert: "true"
          deassert: "false"
0xac:
  sensorType: 0x0C
  path: /system/chassis/motherboard/dimm3
  sensorReadingType: 0x6F
  serviceInterface: xyz.openbmc_project.Inventory.Manager
  readingType: assertion
  byteOffset: 0x00
  interfaces:
    xyz.openbmc_project.State.Decorator.OperationalStatus:
      Functional:
        0x04:
          type: bool
          deassert: "true"
          assert: "false"
    xyz.openbmc_project.Inventory.Item:
      Present:
        0x06:
          type: bool
          assert: "true"
          deassert: "false"
OpenPOWER on IntegriCloud