From 405fb07849478a970afad238876ac917a501e118 Mon Sep 17 00:00:00 2001 From: Wyon Bi Date: Wed, 10 Jul 2019 14:13:10 +0800 Subject: [PATCH] drm/panel: simple: support transmit DSI packet Change-Id: I1a11ef4d914d161f354b783d833d5afb48bc3074 Signed-off-by: Wyon Bi --- .../bindings/display/panel/simple-panel.txt | 9 + drivers/gpu/drm/panel/panel-simple.c | 208 ++++++++++++++++-- 2 files changed, 193 insertions(+), 24 deletions(-) diff --git a/Documentation/devicetree/bindings/display/panel/simple-panel.txt b/Documentation/devicetree/bindings/display/panel/simple-panel.txt index b38cf8a4202f..4d7a7d29444e 100644 --- a/Documentation/devicetree/bindings/display/panel/simple-panel.txt +++ b/Documentation/devicetree/bindings/display/panel/simple-panel.txt @@ -27,6 +27,8 @@ Optional properties: to power itself down completely - reset-delay-ms: the time (in milliseconds) that it takes for the panel to reset itself completely +- init-delay-ms: the time (in milliseconds) that it takes for the panel to + send init command sequence after reset deassert - width-mm: width (in millimeters) of the panel's active display area - height-mm: height (in millimeters) of the panel's active display area - bpc: bits per color/component @@ -35,6 +37,13 @@ Optional properties: - dsi,lanes: number of active data lanes - dsi,format: pixel format for video mode - dsi,flags: DSI operation mode related flags +- panel-init-sequence: +- panel-exit-sequence: + A byte stream formed by simple multiple dcs packets. + byte 0: dcs data type + byte 1: wait number of specified ms after dcs command transmitted + byte 2: packet payload length + byte 3 and beyond: number byte of payload Example: diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c index 92c93055b0db..3981e9739cb6 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -34,9 +34,26 @@ #include #include