Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754823AbcLNDCQ (ORCPT ); Tue, 13 Dec 2016 22:02:16 -0500 Received: from regular1.263xmail.com ([211.150.99.135]:37826 "EHLO regular1.263xmail.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753016AbcLNDCO (ORCPT ); Tue, 13 Dec 2016 22:02:14 -0500 X-263anti-spam: KSV:0; X-MAIL-GRAY: 0 X-MAIL-DELIVERY: 1 X-KSVirus-check: 0 X-ABS-CHECKED: 4 X-RL-SENDER: wxt@rock-chips.com X-FST-TO: dri-devel@lists.freedesktop.org X-SENDER-IP: 47.89.33.70 X-LOGIN-NAME: wxt@rock-chips.com X-UNIQUE-TAG: X-ATTACHMENT-NUM: 0 X-DNS-TYPE: 0 Subject: Re: [PATCH v2 2/2] drm/panel: simple: Add support BOE nv101wxmn51 To: =?UTF-8?Q?St=c3=a9phane_Marchesin?= References: <1481181996-27922-1-git-send-email-wxt@rock-chips.com> <1481181996-27922-2-git-send-email-wxt@rock-chips.com> Cc: Caesar Wang , linux-rockchip@lists.infradead.org, Thierry Reding , Linux Kernel list , "dri-devel@lists.freedesktop.org" From: Caesar Wang Message-ID: <2985f6b8-04a5-efb3-6926-1645495efed6@rock-chips.com> Date: Wed, 14 Dec 2016 11:01:43 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3768 Lines: 118 在 2016年12月13日 04:22, Stéphane Marchesin 写道: > On Wed, Dec 7, 2016 at 11:26 PM, Caesar Wang wrote: >> 10.1WXGA is a color active matrix TFT LCD module using amorphous silicon >> TFT's as an active switching devices. It can be supported by the >> simple-panel driver. >> >> Read the panel edid information; >> >> EDID MODE DETAILS >> name = >> pixel_clock = 71900 >> lvds_dual_channel = 0 >> refresh = 0 >> ha = 1280 >> hbl = 160 >> hso = 48 >> hspw = 32 >> hborder = 0 >> va = 800 >> vbl = 32 >> vso = 3 >> vspw = 5 >> vborder = 0 >> phsync = + >> pvsync = - >> x_mm = 0 >> y_mm = 0 >> drm_display_mode >> .hdisplay = 1280 >> .hsync_start = 1328 >> .hsync_end = 1360 >> .htotal = 1440 >> .vdisplay = 800 >> .vsync_start = 803 >> .vsync_end = 808 >> .vtotal = 832 >> >> Signed-off-by: Caesar Wang >> --- >> >> Changes in v2: >> - fix the vsync_start and vsync_end from the edid. >> - change the commit. >> >> drivers/gpu/drm/panel/panel-simple.c | 31 +++++++++++++++++++++++++++++++ >> 1 file changed, 31 insertions(+) >> >> diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c >> index 06aaf79..7c90f16 100644 >> --- a/drivers/gpu/drm/panel/panel-simple.c >> +++ b/drivers/gpu/drm/panel/panel-simple.c >> @@ -668,6 +668,34 @@ static const struct panel_desc avic_tm070ddh03 = { >> }, >> }; >> >> +static const struct drm_display_mode boe_nv101wxmn51_mode = { >> + .clock = 71900, >> + .hdisplay = 1280, >> + .hsync_start = 1280 + 48, >> + .hsync_end = 1280 + 48 + 32, >> + .htotal = 1280 + 48 + 32 + 80, >> + .vdisplay = 800, >> + .vsync_start = 800 + 3, >> + .vsync_end = 800 + 3 + 5, >> + .vtotal = 800 + 3 + 5 + 24, >> + .vrefresh = 60, >> +}; >> + >> +static const struct panel_desc boe_nv101wxmn51 = { >> + .modes = &boe_nv101wxmn51_mode, >> + .num_modes = 1, > There are two modes in the EDID (there is a downclock one). Can you > add both modes? Yup, I will add them for next version. Thanks. -Caesar > > Stéphane > >> + .bpc = 8, >> + .size = { >> + .width = 217, >> + .height = 136, >> + }, >> + .delay = { >> + .prepare = 210, >> + .enable = 50, >> + .unprepare = 160, >> + }, >> +}; >> + >> static const struct drm_display_mode chunghwa_claa070wp03xg_mode = { >> .clock = 66770, >> .hdisplay = 800, >> @@ -1748,6 +1776,9 @@ static const struct of_device_id platform_of_match[] = { >> .compatible = "avic,tm070ddh03", >> .data = &avic_tm070ddh03, >> }, { >> + .compatible = "boe,nv101wxmn51", >> + .data = &boe_nv101wxmn51, >> + }, { >> .compatible = "chunghwa,claa070wp03xg", >> .data = &chunghwa_claa070wp03xg, >> }, { >> -- >> 2.7.4 >> >> _______________________________________________ >> dri-devel mailing list >> dri-devel@lists.freedesktop.org >> https://lists.freedesktop.org/mailman/listinfo/dri-devel > _______________________________________________ > Linux-rockchip mailing list > Linux-rockchip@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-rockchip