aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorCédric Le Goater <clg@fr.ibm.com>2015-03-09 21:56:17 +0100
committerStewart Smith <stewart@linux.vnet.ibm.com>2015-03-24 18:22:55 +1100
commitb9410dad08de7c91b9bb040f9bebee5c1a0c3bde (patch)
treeaf7437195c800e305e87cbd2575a434f0d9c0ae6 /hw
parent42345ef5c60108fc7d74009d73e8ed880e04072c (diff)
downloadskiboot-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.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/dts.c b/hw/dts.c
index 0ae6d23..de8a38b 100644
--- a/hw/dts.c
+++ b/hw/dts.c
@@ -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");
}
}