Received: by 10.192.165.156 with SMTP id m28csp353550imm; Tue, 10 Apr 2018 23:32:15 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/+dwkTJ4kmiO7Wt2dLaIkr6tNPrrl8C3yY5efyiMHcCs0l0LlYjfHtSNF8OFBv7FvLRzpd X-Received: by 2002:a17:902:aa0b:: with SMTP id be11-v6mr3647394plb.36.1523428334984; Tue, 10 Apr 2018 23:32:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523428334; cv=none; d=google.com; s=arc-20160816; b=cBPzemP6FBIk7u6VbDYkvJ4E+pUDYKxf+stKW8f5ibQxg07nvpC3Y62P/gaodI8/Wr yMGC70hRMR6FGsmsYePz1bFrAyE8TWmJehuOvtp716KiQWUC8ZizsvD7Fd2kvqphy4F1 vsd6SR7ww1Gg47SNEt0XUYWwPTT3iYSLoAkf1QDYng+acx5eewV5gowLpU0UnC1SgRU6 AEYWlLDRxvCkp2g4J9OQJSDRXY9zAZ/18GzRYP9phw1bO383UI/pSU/I86c99T5VMROd n4wKuWtFXVk8KwW2qZQYQH20FYrqY/8ESh+Mp31gvtXkyRRTIB/kKEFDqhEj98PvOqp/ aBfA== 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=losETMOSCUjhA2fcFnSaj5KXqvAz1LHH+N9d3APSIfI=; b=EuWWpDXDRr0puZhlyHd0ZF9YjhFhyh6Hf2yb6bIFFvN8RzhYcx5mtPb067hV1ho2em B6ApqSdcLubyfFVqmSQKv/v18LNd9fEBZbIytH0RqVl7G5C0gTuYYFnjXP1iBP+Wpndh zbzISK6wyb5X8QBMQ2FwbTRFeDYjUqamHMEqwM7uEUbiLyX5SKj+CighP9UgJMqfcQtB SAWyM7GL4cdEmhtGQEVMHCshT35zto2Z/2CA7I/RAN9pRlfSb8/0vvof3y6RZ2jCwbiI aOwfpn0jfmDFZZ62BxxUc4UUBosVP1RtiOBicmsDYNoKhlqZp8OPREDas1EU31JyJ6bP 8+rA== 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 q11-v6si461972pli.667.2018.04.10.23.31.38; Tue, 10 Apr 2018 23:32:14 -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 S1752412AbeDKG2j (ORCPT + 99 others); Wed, 11 Apr 2018 02:28:39 -0400 Received: from mail.bootlin.com ([62.4.15.54]:40178 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751872AbeDKG2h (ORCPT ); Wed, 11 Apr 2018 02:28:37 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 80D522075D; Wed, 11 Apr 2018 08:28:35 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.bootlin.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 51AA1203B0; Wed, 11 Apr 2018 08:28:35 +0200 (CEST) Date: Wed, 11 Apr 2018 08:28:35 +0200 From: Maxime Ripard To: Paul Kocialkowski Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-sunxi@googlegroups.com, Rob Herring , Mark Rutland , Russell King , Chen-Yu Tsai , Thierry Reding , David Airlie Subject: Re: [PATCH 1/3] drm/panel: Add RGB666 variant of Innolux AT070TN92 Message-ID: <20180411062835.oqzd34e2szrnv34b@flea> References: <20180410213129.24049-1-contact@paulk.fr> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="7tqqpg34pqzskzur" Content-Disposition: inline In-Reply-To: <20180410213129.24049-1-contact@paulk.fr> User-Agent: NeoMutt/20180323 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --7tqqpg34pqzskzur Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Apr 10, 2018 at 11:31:27PM +0200, Paul Kocialkowski wrote: > This adds timings for the RGB666 variant of the Innolux AT070TN92 panel, > as found on the Ainol AW1 tablet. >=20 > Signed-off-by: Paul Kocialkowski > --- > drivers/gpu/drm/panel/panel-simple.c | 26 ++++++++++++++++++++++++++ > 1 file changed, 26 insertions(+) >=20 > diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel= /panel-simple.c > index 5591984a392b..efeb2f2162bc 100644 > --- a/drivers/gpu/drm/panel/panel-simple.c > +++ b/drivers/gpu/drm/panel/panel-simple.c > @@ -1063,6 +1063,29 @@ static const struct panel_desc innolux_at070tn92 = =3D { > .bus_format =3D MEDIA_BUS_FMT_RGB888_1X24, > }; > =20 > +static const struct drm_display_mode innolux_at070tn92_rgb666_mode =3D { > + .clock =3D 40000, > + .hdisplay =3D 800, > + .hsync_start =3D 800 + 112, > + .hsync_end =3D 800 + 112 + 1, > + .htotal =3D 800 + 112 + 1 + 87, > + .vdisplay =3D 480, > + .vsync_start =3D 480 + 141, > + .vsync_end =3D 480 + 141 + 1, > + .vtotal =3D 480 + 141 + 1 + 38, > + .vrefresh =3D 60, > +}; I'm not sure why you'd need different timings if the only difference is the bus width. > +static const struct panel_desc innolux_at070tn92_rgb666 =3D { > + .modes =3D &innolux_at070tn92_rgb666_mode, > + .num_modes =3D 1, > + .size =3D { > + .width =3D 154, > + .height =3D 86, > + }, > + .bus_format =3D MEDIA_BUS_FMT_RGB666_1X18, > +}; > + > static const struct display_timing innolux_g101ice_l01_timing =3D { > .pixelclock =3D { 60400000, 71100000, 74700000 }, > .hactive =3D { 1280, 1280, 1280 }, > @@ -2105,6 +2128,9 @@ static const struct of_device_id platform_of_match[= ] =3D { > }, { > .compatible =3D "innolux,at070tn92", > .data =3D &innolux_at070tn92, > + }, { > + .compatible =3D "innolux,at070tn92-rgb666", > + .data =3D &innolux_at070tn92_rgb666, And this isn't a different device, it's just the integration in the board that is different, so you shouldn't have a different compatible here, but rather something like the bus-width property documented in the Documentation/devicetree/bindings/media/video-interfaces.txt file. Maxime --=20 Maxime Ripard, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com --7tqqpg34pqzskzur Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEE0VqZU19dR2zEVaqr0rTAlCFNr3QFAlrNqwUACgkQ0rTAlCFN r3QQWQ/+NWa87cWJjJ2jsBdu8HcxgKwidvfuf9dQIu9bLYU0Jd3y7BTcqbbR4XHP axE+EeI6M3V6q5VoTEJ2hlDKK8m2mLzFY7wIiDmYKICN1LQOI3S5xZGU8r5bDdUx 2byxBqtxVV0droDsi8ZEmWCmiKFLUh+fXpjAqQIQN75hosuFv2DpfFysoLw+9hD+ YUIhI7MQA2OfLg1fcfmXvsfU3Y/KXlw1gR/xRyQv7rBp/PEs0DqmPd+g6UMBHcgP FOgm4B3qPL32tBWraYNW2VASz8j55ZpVCqNHtfxeqkjC3Rcg9B6LlUeqmhonJ9jx QGKcojZrLkzhbQgb8NfuPEFuZD58twQr6aXfE1L06k1rbMxB1rrK6zU+Vozao2iX 3yotoFmL0fOu0mo97nXtfj4x4STVUplex9kuWAd8v3qTwtlnFyXxbaUharE6iC53 OS12+LYk5BQa7e+XU4Fhagqd6KDYnVomDMVE1VSB/rtBGZDWMOYv4F2x6v1u55Yu uX2JcYD5LlH0pOLldc8hKpVeAA6FsZ9aS7jFywCbDf30QQk5kTQpY5qqb7fRP3OB ZgUaQ6f6tYRdpGnUKKVMImEuYjIJ6U+I5LUsKJBrsuxl69wkeisxxOztIlfayZKv cKKzq5DaIDjtpsa7pG3YbQanq1wH4JWTlTznm+ukGPFoDXhP9bY= =3vBz -----END PGP SIGNATURE----- --7tqqpg34pqzskzur--