From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thierry Reding Subject: Re: [PATCH v3 4/6] drm/panel: simple: Add ability to override typical timing Date: Mon, 19 Feb 2018 16:25:55 +0100 Message-ID: <20180219152555.GN11455@ulmo> References: <20180208174855.55620-1-seanpaul@chromium.org> <20180208174855.55620-5-seanpaul@chromium.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1180069235==" Return-path: In-Reply-To: <20180208174855.55620-5-seanpaul@chromium.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: Sean Paul Cc: devicetree@vger.kernel.org, linux-rockchip@lists.infradead.org, Jeffy Chen , Doug Anderson , dri-devel@lists.freedesktop.org, Rob Herring , =?utf-8?B?U3TDqXBoYW5l?= Marchesin List-Id: devicetree@vger.kernel.org --===============1180069235== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="57SHPaztv6dlLu/a" Content-Disposition: inline --57SHPaztv6dlLu/a Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Feb 08, 2018 at 12:48:51PM -0500, Sean Paul wrote: > This patch adds the ability to override the typical display timing for a > given panel. This is useful for devices which have timing constraints > that do not apply across the entire display driver (eg: to avoid > crosstalk between panel and digitizer on certain laptops). The rules are > as follows: >=20 > - panel must not specify fixed mode (since the override mode will > either be the same as the fixed mode, or we'll be unable to > check the bounds of the overried) > - panel must specify at least one display_timing range which will be > used to ensure the override mode fits within its bounds >=20 > Changes in v2: > - Parse the full display-timings node (using the native-mode) (Rob) > Changes in v3: > - No longer parse display-timings subnode, use panel-timing (Rob) >=20 > Cc: Doug Anderson > Cc: Eric Anholt > Cc: Heiko Stuebner > Cc: Jeffy Chen > Cc: Rob Herring > Cc: St=C3=A9phane Marchesin > Cc: Thierry Reding > Cc: devicetree@vger.kernel.org > Cc: dri-devel@lists.freedesktop.org > Signed-off-by: Sean Paul > --- > drivers/gpu/drm/panel/panel-simple.c | 67 ++++++++++++++++++++++++++++++= +++++- > 1 file changed, 66 insertions(+), 1 deletion(-) >=20 > diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel= /panel-simple.c > index 5591984a392b..87488392bca1 100644 > --- a/drivers/gpu/drm/panel/panel-simple.c > +++ b/drivers/gpu/drm/panel/panel-simple.c > @@ -34,6 +34,7 @@ > #include > =20 > #include