Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp722940ybg; Wed, 10 Jun 2020 11:57:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyFbylOu1axnlnGiX2lHlFKNUhifjaRuD6NdmhER7PRqwJABPEomzPd/fYc7NjtFjPSJZHc X-Received: by 2002:a17:906:f8c2:: with SMTP id lh2mr4674094ejb.112.1591815433580; Wed, 10 Jun 2020 11:57:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591815433; cv=none; d=google.com; s=arc-20160816; b=bQ0t/q2ayMfG9l8GplI1uosZl3p0439bedDWIY3clPZtESbBJV7FK8Kz8b/ylgCFDb kHMrbhZHIDmyOSfM1MJMpFDQl9x+98nqHG+/32tPcPNPf9iwSH94ammoeEwmQUqFu7BA WsMiSMVJrjqOYZ6Uq3FMb9V8nlBIUUE0gZWhTHb1e3BEzLQyolPSjzUlizQy3K32v34x cI7ru5xrv126TxGRBuMuBYh/0QCDG7/fHhqICj8BJBfHupIH42uM0pEr99RGyN6kN31x pSp111oZHu95SqDbeKT8CmCKPClHHwMPve9k9qyz3TCPkLiX0j80d6psBittCxVDRtWq uWfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=4yx+1bBTB3ZrpVJpvueQrkhIRHlGtcFUs+zuC87Ob8w=; b=y/ugzHXFI/fkEfSsUhbyNWI8VJfGP+Ydl7IsCThE//XG+QdDwTPUSUyoYpgWDpiQWa PDlwqS2T8AK0CZfTyNm7ibFjay7tNgw4TgaIXqffUIHTWnHVPHE7Rq9TZomsseaTiNfy kbQtpJ1EiNcflw4z2/eLiXMgqnpiUGY/vHr0o4fRosPlNmGBgVqTzUJUom/KFK+dfPhF yij0YHrgRvc/f2CnbeujYI6VvOwPNEd2DmCK8N8OQ6PAnA2rsONqPdaFURHdUWTbtFoH Mv95EcCWXCai79oDg7OytkvBMXCplrR0uKlzJn0mXw37L7F28ls+fHOcYZ3XYFb10gZf vjog== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y5si526957ejc.674.2020.06.10.11.56.51; Wed, 10 Jun 2020 11:57:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727887AbgFJPAB (ORCPT + 99 others); Wed, 10 Jun 2020 11:00:01 -0400 Received: from asavdk4.altibox.net ([109.247.116.15]:41956 "EHLO asavdk4.altibox.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726417AbgFJPAB (ORCPT ); Wed, 10 Jun 2020 11:00:01 -0400 Received: from ravnborg.org (unknown [188.228.123.71]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by asavdk4.altibox.net (Postfix) with ESMTPS id B8B1780615; Wed, 10 Jun 2020 16:59:55 +0200 (CEST) Date: Wed, 10 Jun 2020 16:59:54 +0200 From: Sam Ravnborg To: Matthias Schiffer Cc: Thierry Reding , David Airlie , Daniel Vetter , Rob Herring , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 3/4] drm/panel: simple: add CDTech S070PWS19HP-FC21 and S070SWV29HG-DC44 Message-ID: <20200610145954.GA135509@ravnborg.org> References: <20200610120131.3069-1-matthias.schiffer@ew.tq-group.com> <20200610120131.3069-4-matthias.schiffer@ew.tq-group.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200610120131.3069-4-matthias.schiffer@ew.tq-group.com> X-CMAE-Score: 0 X-CMAE-Analysis: v=2.3 cv=G88y7es5 c=1 sm=1 tr=0 a=S6zTFyMACwkrwXSdXUNehg==:117 a=S6zTFyMACwkrwXSdXUNehg==:17 a=kj9zAlcOel0A:10 a=8f9FM25-AAAA:8 a=_tJ-VA_NSDcjsCNOPhgA:9 a=INdImr_puP3_IQRK:21 a=8TxJKwd5zFIMyFNg:21 a=CjuIK1q_8ugA:10 a=uSNRK0Bqq4PXrUp6LDpb:22 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Matthias. Thanks, a few details you need to fix. See below. Sam On Wed, Jun 10, 2020 at 02:01:30PM +0200, Matthias Schiffer wrote: > From: Michael Krummsdorf > > Add support for the CDTech Electronics displays S070PWS19HP-FC21 > (7.0" WSVGA) and S070SWV29HG-DC44 (7.0" WVGA) to panel-simple. > > Signed-off-by: Michael Krummsdorf > Signed-off-by: Matthias Schiffer > --- > drivers/gpu/drm/panel/panel-simple.c | 60 ++++++++++++++++++++++++++++ > 1 file changed, 60 insertions(+) > > diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c > index b6ecd1552132..1673113e5a5a 100644 > --- a/drivers/gpu/drm/panel/panel-simple.c > +++ b/drivers/gpu/drm/panel/panel-simple.c > @@ -1315,6 +1315,60 @@ static const struct panel_desc cdtech_s043wq26h_ct7 = { > .bus_flags = DRM_BUS_FLAG_PIXDATA_DRIVE_POSEDGE, > }; > > +/* S070PWS19HP-FC21 2017/04/22 */ > +static const struct drm_display_mode cdtech_s070pws19hp_fc21_mode = { > + .clock = 51200, > + .hdisplay = 1024, > + .hsync_start = 1024 + 160, > + .hsync_end = 1024 + 160 + 20, > + .htotal = 1024 + 160 + 20 + 140, > + .vdisplay = 600, > + .vsync_start = 600 + 12, > + .vsync_end = 600 + 12 + 3, > + .vtotal = 600 + 12 + 3 + 20, > + .vrefresh = 60, .vrefresh is no longer present, please drop. > + .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC, > +}; > + > +static const struct panel_desc cdtech_s070pws19hp_fc21 = { > + .modes = &cdtech_s070pws19hp_fc21_mode, > + .num_modes = 1, > + .bpc = 6, > + .size = { > + .width = 154, > + .height = 86, > + }, > + .bus_format = MEDIA_BUS_FMT_RGB666_1X18, > + .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_POSEDGE, > +}; Please add .connector_type - it is mandatory. > + > +/* S070SWV29HG-DC44 2017/09/21 */ > +static const struct drm_display_mode cdtech_s070swv29hg_dc44_mode = { > + .clock = 33300, > + .hdisplay = 800, > + .hsync_start = 800 + 210, > + .hsync_end = 800 + 210 + 2, > + .htotal = 800 + 210 + 2 + 44, > + .vdisplay = 480, > + .vsync_start = 480 + 22, > + .vsync_end = 480 + 22 + 2, > + .vtotal = 480 + 22 + 2 + 21, > + .vrefresh = 60, .vrefresh is no longer present, please drop. > + .flags = DRM_MODE_FLAG_NHSYNC | DRM_MODE_FLAG_NVSYNC, > +}; > + > +static const struct panel_desc cdtech_s070swv29hg_dc44 = { > + .modes = &cdtech_s070swv29hg_dc44_mode, > + .num_modes = 1, > + .bpc = 6, > + .size = { > + .width = 154, > + .height = 86, > + }, > + .bus_format = MEDIA_BUS_FMT_RGB666_1X18, > + .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_POSEDGE, Please add .connector_type - it is mandatory. > +}; > + > static const struct drm_display_mode cdtech_s070wv95_ct16_mode = { > .clock = 35000, > .hdisplay = 800, > @@ -3723,6 +3777,12 @@ static const struct of_device_id platform_of_match[] = { > }, { > .compatible = "cdtech,s043wq26h-ct7", > .data = &cdtech_s043wq26h_ct7, > + }, { > + .compatible = "cdtech,s070pws19hp-fc21", > + .data = &cdtech_s070pws19hp_fc21, > + }, { > + .compatible = "cdtech,s070swv29hg-dc44", > + .data = &cdtech_s070swv29hg_dc44, > }, { > .compatible = "cdtech,s070wv95-ct16", > .data = &cdtech_s070wv95_ct16, > -- > 2.17.1