Received: by 10.223.185.116 with SMTP id b49csp8450093wrg; Fri, 2 Mar 2018 01:54:33 -0800 (PST) X-Google-Smtp-Source: AG47ELsxaAo+uQG0paIoHVOEITRfwtqxI554O5ej8Rph07c76l7fOoOyPK7O1seW+mVPVRjvOZZC X-Received: by 2002:a17:902:a584:: with SMTP id az4-v6mr4942329plb.20.1519984473335; Fri, 02 Mar 2018 01:54:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519984473; cv=none; d=google.com; s=arc-20160816; b=GMILnXqfytVdQiPmGyggn87SbvDmdgLkUG2VBsTcT/0nqI2/cPG3hd/kUODNQUNXxM 4+hjEukZSANReaeCdyB9RybJXGfb2faL6eIh44A63hzQQnqOLv6PaXuBYHdANv+/FCjV t3YT65/gPFawnMmZBVLeeJXeQtuvqLt9TKBLGM4TNLaBRnfND9oo1uZqJPPMP5Rx/G8N pjc9XVqkI+K7OKBOUs5AK7pdxXBdgLA75YpQQ6dqqgyHjXlMqqeQK20bRKfMS4sabFLr q98/ctixzJTRBcowj6Ns63RYBBEHSYS6xZu1DS9YqAVEtqglP7yXksOO9K4fgNZWV78s q2bw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=wAqIK/WTdEVjki9XS8SIQ5WM0P1tBm17dpSqgh/0iQg=; b=s2oP1jGc1R1PxGSTu7i0oGBhx23igPfr5lW7N2IRMeYtI8MKX5odl28mKNsJfhdBGL mtPB4GW9Om5JS6UNRiBQsQ8SOa1zAXjbjC0uchtq2O6/VZGozr8YbrZt3o2rCvxUmexp RQJzEc0rVQ01aB5p1RrATQ6ZB9fbPmcvE850lV7jiffiwu6Dze6EThz2N5FWrKgMpuhu Y0IRFxef9XpWOYjQixgNsaHXTwWK11foN3Q25mxiMbq/JqfQ6qyRANEzdbOncJj9kd5/ 0A8kYFQcsDZfaCLSfNsxsGVVKnVq3NrfMFLNmLDtCYtso6xXFYgVqkfEHQuz5Eiu7lq1 q3gA== 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 t24-v6si4531841plo.340.2018.03.02.01.54.18; Fri, 02 Mar 2018 01:54:33 -0800 (PST) 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 S1425986AbeCBJwv (ORCPT + 99 others); Fri, 2 Mar 2018 04:52:51 -0500 Received: from mail.bootlin.com ([62.4.15.54]:51815 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1424798AbeCBJwl (ORCPT ); Fri, 2 Mar 2018 04:52:41 -0500 Received: by mail.bootlin.com (Postfix, from userid 110) id 9D6BC2046F; Fri, 2 Mar 2018 10:52:38 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.free-electrons.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.0 Received: from localhost (LStLambert-657-1-97-87.w90-63.abo.wanadoo.fr [90.63.216.87]) by mail.bootlin.com (Postfix) with ESMTPSA id F003420938; Fri, 2 Mar 2018 10:52:02 +0100 (CET) Date: Fri, 2 Mar 2018 10:52:04 +0100 From: Maxime Ripard To: Chen-Yu Tsai Cc: Mark Brown , Thierry Reding , Mark Rutland , Rob Herring , dri-devel , Gustavo Padovan , Daniel Vetter , Maarten Lankhorst , Sean Paul , devicetree , linux-arm-kernel , linux-kernel , Thomas Petazzoni Subject: Re: [PATCH v2 08/10] drm/panel: Add Huarui LHR050H41 panel driver Message-ID: <20180302095204.jskwptipqa6x42gn@flea.lan> References: <33efcb267bc513bb19551f1ffdcf578ebfb90369.1519204731.git-series.maxime.ripard@bootlin.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="ds3enghugvzc5jav" Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180223 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --ds3enghugvzc5jav Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, On Wed, Feb 21, 2018 at 11:36:10PM +0800, Chen-Yu Tsai wrote: > On Wed, Feb 21, 2018 at 5:20 PM, Maxime Ripard > wrote: > > From: Maxime Ripard > > > > The LHR050H41 panel is the panel shipped with the BananaPi M2-Magic. Ad= d a > > driver for it. >=20 > So I distinctly remember questioning the vendor name the first time. > I would just use Bananapi as the vendor name instead. Ack. > > +config DRM_PANEL_HUARUI_LHR050H41 > > + tristate "Huarui LHR050H41 panel" > > + depends on OF > > + depends on DRM_MIPI_DSI > > + depends on BACKLIGHT_CLASS_DEVICE > > + help > > + Say Y if you want to enable support for the Huarui Lighting > > + LHR05041 DSI panel. The panel has a 1280x720 resolution. > > + >=20 > And it seems this panel is driven by an ILI9881C from Ilitek. So > maybe you could make the panel driver more like the IL9322, as in > having common code for the driver IC, then a data structure tied > to actual panel compatible strings to handle any quirks. >=20 > The datasheet can be found simply by googling the part ID, or here: >=20 > http://en.startek-lcd.com/res/starteklcden/pdres/201706/20170617115241= 070.pdf >=20 > This should help with the init command sequence. >=20 > I also found this: >=20 > http://www.ampdisplay.com/documents/pdf/AM-7201280ETZQW-00H.pdf >=20 > which might or might not be the same panel. >=20 > Now the IL9332 driver simply uses the device model (Dlink DIR-685) > as part of the compatible string. I guess we can create an ili9881c driver then, with the lhr050h41 compatible. I'm not sure there's much more we can do at this point, since in order to know the set of quirks to associate to each compatible, we'd need to have a second panel. Thanks! Maxime --=20 Maxime Ripard, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com --ds3enghugvzc5jav Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEE0VqZU19dR2zEVaqr0rTAlCFNr3QFAlqZHsMACgkQ0rTAlCFN r3SH3Q/5AfVYCIONgIeWRUHZrG68dT8xGO2WVYGk/XjlE7ftsdrI5moyJAKb1oYv 5aAbavptdLw8S+/+M9mu8ell/uFAguvY4OkHrvwvkKf8Rzzlir6UQEDEMMIdHy1a fMoFuu2f/lvLw8tFvTJeF/AAVrcFVaxY23rv1L+vw0FyKuACiKkemEQDrGHoYFJu TSZfYcbEwcyMSIH0wZrw2cIf+Gpm4k4ccKf7BVFquD4+de+ORLHr3tCfLtPI57Cj D2VTBwPJ05HFAH28yVEoFXjw2UChPC48cIyoTIVgfLfJhY3gi+pCct1kHtoxhlZt W+dW1vRpA1ItYI6XsJLYTx9WZRnXrJHLgXzrajZ5wSZB9Us2LVyBjgqzW7cK8MhS tBRBzDRsTuN4qi9vroP9XAalji2SbIRkWl1FmwOnTdklGK7F38jjvsRAcC4OPoFf k805LOORVL98YSdnxD9rC7EUL7BArqG7eHBKPc0PZI9b+b4kWVVsQ562R+uffPW0 Dpo4hLchKB83Y2TwIvdkVkkDC88bKPXCEB3xuqDXRJ3TCzhRICaMYMXAcUwDnY/k XPa9vkdWlctF4BdEvuTMzAM9bFmL0kNkEJYo5a6Pr968IT5DmvE7ymxE935WmDV3 pLwtH2etAhOGddbaov4cfEsHbf9RQQrxQ0quBJGBWWQ3JLQru5w= =WxHl -----END PGP SIGNATURE----- --ds3enghugvzc5jav--