diff options
author | Cédric Le Goater <clg@fr.ibm.com> | 2015-03-09 21:56:17 +0100 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2015-03-24 18:22:55 +1100 |
commit | b9410dad08de7c91b9bb040f9bebee5c1a0c3bde (patch) | |
tree | af7437195c800e305e87cbd2575a434f0d9c0ae6 /hw | |
parent | 42345ef5c60108fc7d74009d73e8ed880e04072c (diff) | |
download | skiboot-b9410dad08de7c91b9bb040f9bebee5c1a0c3bde.zip skiboot-b9410dad08de7c91b9bb040f9bebee5c1a0c3bde.tar.gz skiboot-b9410dad08de7c91b9bb040f9bebee5c1a0c3bde.tar.bz2 |
dts: add some extra properties to improve the driver
This patch adds a couple of properties in the device tree for the core
temperatures nodes. It helps the Linux driver to identify the core and
have a "pretty" sensors output, something like the following :
Core 8: +46.0°C
Core 16: +47.0°C
Core 24: +45.0°C
...
Core 112: +42.0°C
Core 120: +44.0°C
Signed-off-by: Cédric Le Goater <clg@fr.ibm.com>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/dts.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -204,6 +204,8 @@ bool dts_sensor_create_nodes(struct dt_node *sensors) c->pir, SENSOR_DTS_ATTR_TEMP_TRIP); dt_add_property_cells(node, "sensor-status", handler); dt_add_property_string(node, "sensor-type", "temp"); + dt_add_property_cells(node, "ibm,pir", c->pir); + dt_add_property_string(node, "label", "Core"); } } |