From b9410dad08de7c91b9bb040f9bebee5c1a0c3bde Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= Date: Mon, 9 Mar 2015 21:56:17 +0100 Subject: dts: add some extra properties to improve the driver MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Stewart Smith --- hw/dts.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'hw') 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"); } } -- cgit v1.1