Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1339411
| Path | csiph.com!weretis.net!feeder4.news.weretis.net!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | Thierry Reding <thierry.reding@gmail.com> |
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v2 2/2] drm/panel: Support for LG lp120up1 panel with eDP input |
| Date | Mon, 22 Feb 2016 12:50:02 +0100 |
| Message-ID | <r4Xa2-5ds-9@gated-at.bofh.it> (permalink) |
| References | <r4Wxk-4RK-35@gated-at.bofh.it> <r4Wxk-4RK-33@gated-at.bofh.it> <r4Xa2-5ds-11@gated-at.bofh.it> |
| Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=S6x17vAhBiH/LefDBUKdLobpCKa4saruBi0bATnbuOs=; b=xnOLvw+2aWqBwnDgZmArko2OWYUAhMtwIktrtIIfSvWDcVMeh8JeCyyv1/eLGU809j COexRxcTynTfvdJUiethUS8NqYMsqM7GZlfo9ZUoSe0JlrwNVgi/1eRgp64cMnnTPgzO CZvkgMNVNDqepMBtLI+dsoZIDNSoNM+9VvVUv0ez7z9l4kPfja76vsLyTADl1eO4tSbn h7EU5JMEqVjBHFdm9qU8+QX6giai2JG6HwRwEvMMztKUXp2P6nN4wWPcfyOWAp1fht6I 0HQtp9rYVLPT7kyMEWbZRT1RnCE4KSo2gNoD3rcOdGPdardxHaV8eoMkUgvZv8WRRsVL +vyQ== |
| X-Google-Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-type:content-disposition:in-reply-to :user-agent; bh=S6x17vAhBiH/LefDBUKdLobpCKa4saruBi0bATnbuOs=; b=IB+oE2ExGT2OLX7xpc4EjPLRnYVKPvBHxeCYGN0uLJQAMny85V+7rj3j7iz+ThCV98 qr0uH/CqSLyHwwR+60JlsLLLwIoY3f8oCMHaxaPhly9KusLejPEoUcYDG+noHYAf/7+W t7at1lP2Ru8D9gPQivYbqhfo+p+PG8vzHkPgQtVLcDKr99IWJ1S8FGobSwyBYCgiE9CT CYp5P2DjfMNlXepi5MsFZdUBoaOf/+rB8cS/7YluYCVOjRdFpMqIl608BZ3aUy4cws4a 0gdqTpXx4gnGfwxNZpeR5Xssepkk+LieBjlV1TCnBgS2t20jqjdaN/W56Lk83nk+FjzO IjJw== |
| X-Gm-Message-State | AG10YORqaiz9ACxYPOrj7yvNAAMqvRHuYE+hCDMAPdjzcP+o4ZV+KRfPrNHHu8ACpI5drA== |
| X-Received | by 10.194.77.167 with SMTP id t7mr26399280wjw.90.1456141390418; Mon, 22 Feb 2016 03:43:10 -0800 (PST) |
| MIME-Version | 1.0 |
| Content-Type | multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="M9NhX3UHpAaciwkO" |
| Content-Disposition | inline |
| User-Agent | Mutt/1.5.24 (2015-08-30) |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 117 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | Jitao Shi <jitao.shi@mediatek.com>, Mark Rutland <mark.rutland@arm.com>, David Airlie <airlied@linux.ie>, stonea168@163.com, "dri-devel@lists.freedesktop.org" <dri-devel@lists.freedesktop.org>, Ajay Kumar <ajaykumar.rs@samsung.com>, Vincent Palatin <vpalatin@chromium.org>, cawa.cheng@mediatek.com, bibby.hsieh@mediatek.com, ck.hu@mediatek.com, Russell King <rmk+kernel@arm.linux.org.uk>, Thierry Reding <treding@nvidia.com>, Sean Paul <seanpaul@chromium.org>, devicetree@vger.kernel.org, Sascha Hauer <kernel@pengutronix.de>, Pawel Moll <pawel.moll@arm.com>, Ian Campbell <ijc+devicetree@hellion.org.uk>, Inki Dae <inki.dae@samsung.com>, Rob Herring <robh+dt@kernel.org>, linux-mediatek@lists.infradead.org, yingjoe.chen@mediatek.com, Matthias Brugger <matthias.bgg@gmail.com>, eddie.huang@mediatek.com, "linux-arm-kernel@lists.infradead.org" <linux-arm-kernel@lists.infradead.org>, Rahul Sharma <rahul.sharma@samsung.com>, srv_heupstream@mediatek.com, linux-kernel <linux-kernel@vger.kernel.org>, Philipp Zabel <p.zabel@pengutronix.de>, Kumar Gala <galak@codeaurora.org>, Andy Yan <andy.yan@rock-chips.com> |
| X-Original-Date | Mon, 22 Feb 2016 12:43:08 +0100 |
| X-Original-Message-ID | <20160222114308.GA22505@ulmo> |
| X-Original-References | <1456138904-15258-1-git-send-email-jitao.shi@mediatek.com> <1456138904-15258-2-git-send-email-jitao.shi@mediatek.com> <CAGUYZuSsrneg8zQ0Ro8z5C469A2D-TOKpONECxWdoM6T+xNAeg@mail.gmail.com> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1339411 |
Show key headers only | View raw
[Multipart message — attachments visible in raw view] - view raw
On Mon, Feb 22, 2016 at 04:42:54PM +0530, sanjeev sharma wrote:
> Hello Jitao,
>
> Can't we add this panel information in device tree file instead inside the
> device driver ?
We could, but that would be redundant. Panels need to be represented by
a specific compatible string anyway, and that compatible string implies
the video timings, bits-per-color, width and height.
Also there's more to panels than just the timings or dimensions. Power
up and power down sequences are also implied by the compatible stirng.
Describing all of that in the device tree was at some point attempted,
but in the end it turned out too complicated and we ended up with what
we have now.
Thierry
> On Mon, Feb 22, 2016 at 4:31 PM, Jitao Shi <jitao.shi@mediatek.com> wrote:
>
> > The LG lp120up1 TFT LCD panel with eDP interface is a 12.0" 1920x1280
> > panel, which can be supported by the simple panel driver
> >
> > Signed-off-by: Jitao Shi <jitao.shi@mediatek.com>
> > ---
> > Changes since v1:
> > - Add eDP panel type in comment msg
> > - Fixed comment msg with 72 characters width
> > ---
> > drivers/gpu/drm/panel/panel-simple.c | 26 ++++++++++++++++++++++++++
> > 1 file changed, 26 insertions(+)
> >
> > diff --git a/drivers/gpu/drm/panel/panel-simple.c
> > b/drivers/gpu/drm/panel/panel-simple.c
> > index f88a631..2030c37 100644
> > --- a/drivers/gpu/drm/panel/panel-simple.c
> > +++ b/drivers/gpu/drm/panel/panel-simple.c
> > @@ -982,6 +982,29 @@ static const struct panel_desc lg_lb070wv8 = {
> > .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG,
> > };
> >
> > +static const struct drm_display_mode lg_lp120up1_mode = {
> > + .clock = 162300,
> > + .hdisplay = 1920,
> > + .hsync_start = 1920 + 40,
> > + .hsync_end = 1920 + 40 + 40,
> > + .htotal = 1920 + 40 + 40+ 80,
> > + .vdisplay = 1280,
> > + .vsync_start = 1280 + 4,
> > + .vsync_end = 1280 + 4 + 4,
> > + .vtotal = 1280 + 4 + 4 + 12,
> > + .vrefresh = 60,
> > +};
> > +
> > +static const struct panel_desc lg_lp120up1 = {
> > + .modes = &lg_lp120up1_mode,
> > + .num_modes = 1,
> > + .bpc = 8,
> > + .size = {
> > + .width = 267,
> > + .height = 183,
> > + },
> > +};
> > +
> > static const struct drm_display_mode lg_lp129qe_mode = {
> > .clock = 285250,
> > .hdisplay = 2560,
> > @@ -1256,6 +1279,9 @@ static const struct of_device_id platform_of_match[]
> > = {
> > .compatible = "lg,lb070wv8",
> > .data = &lg_lb070wv8,
> > }, {
> > + .compatible = "lg,lp120up1",
> > + .data = &lg_lp120up1,
> > + }, {
> > .compatible = "lg,lp129qe",
> > .data = &lg_lp129qe,
> > }, {
> > --
> > 1.7.9.5
> >
> >
> > _______________________________________________
> > linux-arm-kernel mailing list
> > linux-arm-kernel@lists.infradead.org
> > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
> >
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH v2 2/2] drm/panel: Support for LG lp120up1 panel with eDP input Jitao Shi <jitao.shi@mediatek.com> - 2016-02-22 12:10 +0100 Re: [PATCH v2 2/2] drm/panel: Support for LG lp120up1 panel with eDP input Thierry Reding <thierry.reding@gmail.com> - 2016-02-22 12:50 +0100
csiph-web