aboutsummaryrefslogtreecommitdiff
path: root/hw/occ.c
diff options
context:
space:
mode:
authorPridhiviraj Paidipeddi <ppaidipe@linux.vnet.ibm.com>2017-10-20 20:27:32 +0530
committerStewart Smith <stewart@linux.vnet.ibm.com>2017-11-30 23:52:40 -0600
commite8248d22600e421984b52f81c6da2c5a9e04a891 (patch)
treeff6e53c955c023ed5555f222b78f23480a6e7422 /hw/occ.c
parent3e808354c311e40925bf53ed5ce9a872a5750141 (diff)
downloadskiboot-e8248d22600e421984b52f81c6da2c5a9e04a891.zip
skiboot-e8248d22600e421984b52f81c6da2c5a9e04a891.tar.gz
skiboot-e8248d22600e421984b52f81c6da2c5a9e04a891.tar.bz2
sensors: Fix dtc warning for new occ inband sensors.
dtc complains about missing reg property when a DT node is having a unit name or address but no reg property. /ibm,opal/sensors/vrm-in@c00004 has a unit name, but no reg property /ibm,opal/sensors/gpu-in@c0001f has a unit name, but no reg property /ibm,opal/sensor-groups/occ-js@1c00040 has a unit name, but no reg property This patch fixes these warnings for new occ inband sensors and also for sensor-groups by adding necessary properties. Signed-off-by: Pridhiviraj Paidipeddi <ppaidipe@linux.vnet.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'hw/occ.c')
-rw-r--r--hw/occ.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/occ.c b/hw/occ.c
index 51e1bbb..f381106 100644
--- a/hw/occ.c
+++ b/hw/occ.c
@@ -1539,6 +1539,7 @@ void occ_add_sensor_groups(struct dt_node *sg, u32 *phandles, int nr_phandles,
dt_add_property_cells(node, "ibm,chip-id", chipid);
dt_add_property(node, "sensors", phandles, nr_phandles);
dt_add_property_cells(node, "ops", OPAL_SENSOR_GROUP_CLEAR);
+ dt_add_property_cells(node, "reg", handle);
}
}