diff options
author | Cédric Le Goater <clg@kaod.org> | 2016-09-13 19:39:22 +0200 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2016-12-08 13:03:23 +1100 |
commit | 33fada1a6f4b1f5fcf131765f37fcb76c079bfb2 (patch) | |
tree | 2b4f11fee2f8d812b77c22b21cdce7fce102e188 /doc/device-tree | |
parent | aed1fbe848ec7dcfef5c2831ab779ae9c21b41f6 (diff) | |
download | talos-skiboot-33fada1a6f4b1f5fcf131765f37fcb76c079bfb2.tar.gz talos-skiboot-33fada1a6f4b1f5fcf131765f37fcb76c079bfb2.zip |
sensor: add a family field in the handler
Currently, we are hijacking the last bit of the resource field of the
sensor handler to differentiate the sensor families and route the
opal_sensor_read() call to the appropriate component.
Let's reserve the last 3bits and provide an API to set the sensor
family for current use and future use. This gives us a maximum of 8
families and 32 resource classes. The FSP uses 15, so we should be
fine for a while.
Signed-off-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'doc/device-tree')
-rw-r--r-- | doc/device-tree/ibm,opal/sensors.rst | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/doc/device-tree/ibm,opal/sensors.rst b/doc/device-tree/ibm,opal/sensors.rst index cd30ffc4..c29b88f8 100644 --- a/doc/device-tree/ibm,opal/sensors.rst +++ b/doc/device-tree/ibm,opal/sensors.rst @@ -24,9 +24,12 @@ Each node has a minimum set of properties describing the sensor : OPAL_SENSOR_READ call to be used by Linux to get the value of a sensor attribute. A sensor handler has the following encoding : :: - | Attr. | Res. | Resource | - | Number | Class | Id | - |--------|--------|----------------| + | Attr. |Fam|Res. | Resource | + | Number |ily|Class| Id | + |--------|---|-----|----------------| + + The sensor family (FSP, DTS, etc) is used to dispatch the call to + the appriopriate skiboot component. - a "sensor-status" property giving the state of the sensor. The status bits have the slightly meanings depending on the resource |