drm/panel: simple-panel: get bpc from DT when available

Change-Id: I04eb7af19f30383132c3bc465a8b6589f7e99592
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
This commit is contained in:
Wyon Bi
2018-05-07 17:37:11 +08:00
committed by Tao Huang
parent 7c1beeafdf
commit d046d136f2
2 changed files with 3 additions and 0 deletions

View File

@@ -19,6 +19,7 @@ Optional properties:
- unprepare-delay-ms: take for the panel to display off
- width-mm: physical panel width [mm]
- height-mm: physical panel height [mm]
- bpc: bits per color/component
Required properties when compatible is "simple-panel" or "simple-panel-dsi":
- display-timings: see display-timing.txt for information

View File

@@ -714,6 +714,8 @@ static int panel_simple_probe(struct device *dev, const struct panel_desc *desc)
if (!of_property_read_u32(dev->of_node, "bus-format", &val))
of_desc->bus_format = val;
if (!of_property_read_u32(dev->of_node, "bpc", &val))
of_desc->bpc = val;
if (!of_property_read_u32(dev->of_node, "prepare-delay-ms", &val))
of_desc->delay.prepare = val;
if (!of_property_read_u32(dev->of_node, "enable-delay-ms", &val))