Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3432006imm; Tue, 29 May 2018 07:11:05 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpbCbGWu84J2Yt8C6gqo2XEsReLsOQjHsIVsTdC1sCio1M9olvqhrGPtsoUTL/k6sq/7SGM X-Received: by 2002:a63:85c8:: with SMTP id u191-v6mr13300704pgd.300.1527603065763; Tue, 29 May 2018 07:11:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527603065; cv=none; d=google.com; s=arc-20160816; b=w8YbgoqKAfXKqiF1JiNMmU60wjsgV+D6BUKv0+CZGNiN0y46nIJ5l4C5MCDKd4Fdpn p57ec74c+cVdX9tHz38QR6ThNhVxtjKEkeNAsrAzOllSTqdkK/CKkhb3BW9njFXPvq1L NLT9egZfxcDJGw/LdFmBD4yEZCrdUEdggdbrJRG+WjwXvShdDzhDtWgH1d/zuUFkQ+8x EC8+KmgTh9fnCVR+jjwxzo/to8cSvYiZ2N65IbRUxeaHr3PDfyL0kx7G1adOlliPaJgD VdJYTU848pGbww4Gf2tsZjgG4b1vxjMCU7hnsqauaVgDhpQymFZyz9JfpD5JI3yKLWe3 3iCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:organization:references :in-reply-to:message-id:subject:cc:to:from:date :arc-authentication-results; bh=8xlyK9az/nWLGdnwHTBI33KQr+/bHpgWSMtkAqXqM0c=; b=cBm6ULiJQmqJGqkoSs7LAAADFIA0gsBVGIpFjGqvzcUODb+mJubAMa+aRc+fTlpa2H BeoX9wYs5HFTHnEemmReaRbRMsz4ErMEZBYWS8kzE0JqPBvVm/FSmVR7cr8O5hunlY+f +BhSQAtx/pSmJrvP5nUrf2byzdtd3H36qJ8rVuzoS0SBctUhjdaDs6Nm6WqTzyNGWd9F x+enBGyHpkhugeu2dT65EpjYcZmnFhZx+0QHszSCn7ojXUOZhHMyJhq7jMxEc7LKx7NK GIt+rBXx9Agge8CkcPlahgUVIYd1PBGiGvcpwDstl4XCZ3akNC1lZgnJ53E4pnOMS5Z1 u/qQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p7-v6si31453935plk.293.2018.05.29.07.10.51; Tue, 29 May 2018 07:11:05 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934584AbeE2OKV (ORCPT + 99 others); Tue, 29 May 2018 10:10:21 -0400 Received: from mail-out.m-online.net ([212.18.0.10]:45102 "EHLO mail-out.m-online.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934175AbeE2OKT (ORCPT ); Tue, 29 May 2018 10:10:19 -0400 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 40wFx562qlz1r3b2; Tue, 29 May 2018 16:10:17 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 40wFx55HNPz1qvSx; Tue, 29 May 2018 16:10:17 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id 1Fv0s7u3aEkb; Tue, 29 May 2018 16:10:16 +0200 (CEST) X-Auth-Info: L4rxpjMDS63G9o2WxQxKZN/zgrjvD21VpCU/nNY/SCY= Received: from jawa (85-222-111-42.dynamic.chello.pl [85.222.111.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Tue, 29 May 2018 16:10:16 +0200 (CEST) Date: Tue, 29 May 2018 16:08:59 +0200 From: Lukasz Majewski To: Thierry Reding , Rob Herring Cc: Mark Rutland , David Airlie , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, Rob Herring , linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 RESEND] display: panel: Add AUO g070vvn01 display support (800x480) Message-ID: <20180529160859.2625eb6d@jawa> In-Reply-To: <20180519130657.4904c90f@jawa> References: <20180410102927.17787-1-lukma@denx.de> <20180514190849.18723-1-lukma@denx.de> <20180519130657.4904c90f@jawa> Organization: denx.de X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; boundary="Sig_/jGzXu0yovG2eCogYhXDqLiZ"; protocol="application/pgp-signature" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --Sig_/jGzXu0yovG2eCogYhXDqLiZ Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi, > Hi Thierry, >=20 > > This commit adds support for AUO's 7.0" display. > > =20 >=20 > Thierry, shall I perform some more work on this code, or is it > eligible for applying to your tree? If I may put a gentle remaining on this patch..... >=20 > Best regards, > =C5=81ukasz >=20 > > Signed-off-by: Lukasz Majewski > > Reviewed-by: Rob Herring > >=20 > > --- > > Changes for v3: > > - Remove not used 'bus-format-override =3D "rgb565";' property > >=20 > > Changes for v2: > > - Add *.txt suffix to the auo,g070wn01 file > > --- > > .../bindings/display/panel/auo,g070vvn01.txt | 29 > > ++++++++++++++++++++ > > drivers/gpu/drm/panel/panel-simple.c | 31 > > ++++++++++++++++++++++ 2 files changed, 60 insertions(+) create mode > > 100644 > > Documentation/devicetree/bindings/display/panel/auo,g070vvn01.txt > >=20 > > diff --git > > a/Documentation/devicetree/bindings/display/panel/auo,g070vvn01.txt > > b/Documentation/devicetree/bindings/display/panel/auo,g070vvn01.txt > > new file mode 100644 index 000000000000..49e4105378f6 --- /dev/null > > +++ > > b/Documentation/devicetree/bindings/display/panel/auo,g070vvn01.txt > > @@ -0,0 +1,29 @@ +AU Optronics Corporation 7.0" FHD (800 x 480) TFT > > LCD panel + > > +Required properties: > > +- compatible: should be "auo,g070vvn01" > > +- backlight: phandle of the backlight device attached to the panel > > +- power-supply: single regulator to provide the supply voltage > > + > > +Required nodes: > > +- port: Parallel port mapping to connect this display > > + > > +This panel needs single power supply voltage. Its backlight is > > conntrolled +via PWM signal. > > + > > +Example: > > +-------- > > + > > +Example device-tree definition when connected to iMX6Q based board > > + > > + lcd_panel: lcd-panel { > > + compatible =3D "auo,g070vvn01"; > > + backlight =3D <&backlight_lcd>; > > + power-supply =3D <®_display>; > > + > > + port { > > + lcd_panel_in: endpoint { > > + remote-endpoint =3D > > <&lcd_display_out>; > > + }; > > + }; > > + }; > > diff --git a/drivers/gpu/drm/panel/panel-simple.c > > b/drivers/gpu/drm/panel/panel-simple.c index > > cbf1ab404ee7..d9984bdb5bb5 100644 --- > > a/drivers/gpu/drm/panel/panel-simple.c +++ > > b/drivers/gpu/drm/panel/panel-simple.c @@ -581,6 +581,34 @@ static > > const struct panel_desc auo_b133htn01 =3D { }, > > }; > > =20 > > +static const struct display_timing auo_g070vvn01_timings =3D { > > + .pixelclock =3D { 33300000, 34209000, 45000000 }, > > + .hactive =3D { 800, 800, 800 }, > > + .hfront_porch =3D { 20, 40, 200 }, > > + .hback_porch =3D { 87, 40, 1 }, > > + .hsync_len =3D { 1, 48, 87 }, > > + .vactive =3D { 480, 480, 480 }, > > + .vfront_porch =3D { 5, 13, 200 }, > > + .vback_porch =3D { 31, 31, 29 }, > > + .vsync_len =3D { 1, 1, 3 }, > > +}; > > + > > +static const struct panel_desc auo_g070vvn01 =3D { > > + .timings =3D &auo_g070vvn01_timings, > > + .num_timings =3D 1, > > + .bpc =3D 8, > > + .size =3D { > > + .width =3D 152, > > + .height =3D 91, > > + }, > > + .delay =3D { > > + .prepare =3D 200, > > + .enable =3D 50, > > + .disable =3D 50, > > + .unprepare =3D 1000, > > + }, > > +}; > > + > > static const struct drm_display_mode auo_g104sn02_mode =3D { > > .clock =3D 40000, > > .hdisplay =3D 800, > > @@ -2095,6 +2123,9 @@ static const struct of_device_id > > platform_of_match[] =3D { .compatible =3D "auo,b133xtn01", > > .data =3D &auo_b133xtn01, > > }, { > > + .compatible =3D "auo,g070vvn01", > > + .data =3D &auo_g070vvn01, > > + }, { > > .compatible =3D "auo,g104sn02", > > .data =3D &auo_g104sn02, > > }, { =20 >=20 >=20 >=20 >=20 > Best regards, >=20 > Lukasz Majewski >=20 > -- >=20 > DENX Software Engineering GmbH, Managing Director: Wolfgang Denk > HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany > Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de Best regards, Lukasz Majewski -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de --Sig_/jGzXu0yovG2eCogYhXDqLiZ Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEgAyFJ+N6uu6+XupJAR8vZIA0zr0FAlsNXvsACgkQAR8vZIA0 zr0O1ggAt5glMaWJvPtd4KmVjsOzgMS8wS8USN7VUUNg3c9bECqQMUmO/EdV2AgJ 9u4rvJxMDTHFlwB0SwD2Hoye5nGlytL8EdDQ9KoTverPtJGchkx89z52b+nMwTZQ u2kQInAYPJx5CIc0iemiSCLV8ntHz0znuOordNmgvABEwy0vcfr7uRZrLm2AXmKm vutcYpPBwkWpEyARNuFj2umOyrf2bl5mt6q5oLuS6FRww1PFF0aX778N8jHyBMLK eyJ8aoAFBkkECYbZD+1ZLF6IkxUAYA3S542wZHAJn0i+w/Q6ySZq+F+cYol5jp+u 9uRI24WwudvOU5sUkfGgzPQNUQ7Deg== =psu0 -----END PGP SIGNATURE----- --Sig_/jGzXu0yovG2eCogYhXDqLiZ--