[Skiboot] [PATCH v3 05/11] dts: add a type property
Cédric Le Goater
clg at fr.ibm.com
Tue Mar 10 07:56:16 AEDT 2015
The hwmon framework in Linux needs a type for the sensors it exposes
in userspace through the sysfs interface. This patch gives Linux a hand
on what is dealing with when parsing the sensor device tree.
Signed-off-by: Cédric Le Goater <clg at fr.ibm.com>
---
Changes since v2 :
- removed the device tree modifications of the FSP sensors
hw/dts.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/hw/dts.c b/hw/dts.c
index 1ac3aad50905..a936ee1bb12b 100644
--- a/hw/dts.c
+++ b/hw/dts.c
@@ -203,6 +203,7 @@ bool dts_sensor_create_nodes(struct dt_node *sensors)
handler = sensor_make_handler(sensor_class,
c->pir, SENSOR_DTS_ATTR_TEMP_TRIP);
dt_add_property_cells(node, "sensor-status", handler);
+ dt_add_property_string(node, "sensor-type", "temp");
}
}
--
1.7.10.4
More information about the Skiboot
mailing list