mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
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:
@@ -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
|
||||
|
||||
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user