Received: by 2002:a05:6a10:6006:0:0:0:0 with SMTP id w6csp1384072pxa; Fri, 28 Aug 2020 11:06:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyWDs/SHkXrGGe265Y2stNBGwYypcaOq6MXVVJZu7dSN+JR27tHLf0NqlC+6iZ7gjh2UGbU X-Received: by 2002:a50:f398:: with SMTP id g24mr3082866edm.62.1598638018327; Fri, 28 Aug 2020 11:06:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598638018; cv=none; d=google.com; s=arc-20160816; b=NbC+OykmDEZ/NKuM4Sk9F/9Xnnj/Alre5txkpy6E0qhwsmTo9rSPblz+mZy/bHku/u /jliWaIO6wfbDMC3XDi2wqCdM1DHI8JmQ8ZKPZEnGKiUz+vLMhLo5JZkb9D+392DpXqY E04ByA+gX+iKc89/Vbiu3mf8cB65c3HWFZZPBlg3xGkPONfUzNTv+mPRz/tCGw2iGTfj PXwSZOzh844RmbnVyG9DYCYpaYBomq80ESj8e2jZMzaF4B+xcyRUg1ZFKtGNj1tvum/G LeJjAEqv8HehWbYPMmWcfMq0lW0D9HUtYxVH0vgn0vnSkhlKjfTGdUDM1cOScQuLa9Mj 62Ag== 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=lum0aPtNHbGdvxNmwD3hJIXHv/1PsJhHs07MGrd2GEg=; b=Gyp9u+TZxqA0nGNoxOe4uc5CyJAMlTQ6kqk1t+B6kZoKVH2w+Um7RE1hZefpw5zJNV MuKPRpOF7bSEfPHsBPdoXRm+KsAQHpfsfQR0QqDAkP+J1HK0UvdgckYzlfQu83DwUd8u 3YxhSdf2chCGHVsVRMi41h5I/P5cfGZiNyF1+D/cQgpc+gQrEBM+jn2XqKFnMUimuKHO +urtGuK1sbEXhrxtbgcjuTK3ByhzJK3VS0uXMOPQov9DOzKW5yV0Yty5x1BNYrQGrffy NG+lVtlpI6wEWU/SGhN4sSR+7VgHr9QiguMNKC8ooWfVNWxpWzsRcrNHcpAUdu2ymFFg ge4Q== 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 b3si1129439edv.572.2020.08.28.11.06.34; Fri, 28 Aug 2020 11:06:58 -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 S1727041AbgH1SDq (ORCPT + 99 others); Fri, 28 Aug 2020 14:03:46 -0400 Received: from asavdk3.altibox.net ([109.247.116.14]:47606 "EHLO asavdk3.altibox.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726010AbgH1SDq (ORCPT ); Fri, 28 Aug 2020 14:03:46 -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 asavdk3.altibox.net (Postfix) with ESMTPS id 1DAEB201C1; Fri, 28 Aug 2020 20:03:41 +0200 (CEST) Date: Fri, 28 Aug 2020 20:03:40 +0200 From: Sam Ravnborg To: Jagan Teki Cc: Thierry Reding , David Airlie , Daniel Vetter , Rob Herring , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-amarula@amarulasolutions.com Subject: Re: [PATCH 2/2] drm: panel: simple: Add AM-1280800N3TZQW-T00H Message-ID: <20200828180340.GA661644@ravnborg.org> References: <20200828155938.328982-1-jagan@amarulasolutions.com> <20200828155938.328982-2-jagan@amarulasolutions.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200828155938.328982-2-jagan@amarulasolutions.com> X-CMAE-Score: 0 X-CMAE-Analysis: v=2.3 cv=CaYmGojl c=1 sm=1 tr=0 a=S6zTFyMACwkrwXSdXUNehg==:117 a=S6zTFyMACwkrwXSdXUNehg==:17 a=kj9zAlcOel0A:10 a=iP-xVBlJAAAA:8 a=Zgqa_LbdGVfCA1qB94sA:9 a=CjuIK1q_8ugA:10 a=lHLH-nfn2y1bM_0xSXwp:22 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Jagan. On Fri, Aug 28, 2020 at 09:29:38PM +0530, Jagan Teki wrote: > Add Ampire, AM-1280800N3TZQW-T00H 10.1" TFT LCD panel timings. > > Signed-off-by: Jagan Teki > --- > drivers/gpu/drm/panel/panel-simple.c | 28 ++++++++++++++++++++++++++++ > 1 file changed, 28 insertions(+) > > diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c > index b6ecd1552132..c988fe8094f8 100644 > --- a/drivers/gpu/drm/panel/panel-simple.c > +++ b/drivers/gpu/drm/panel/panel-simple.c > @@ -592,6 +592,31 @@ static void panel_simple_shutdown(struct device *dev) > drm_panel_unprepare(&panel->base); > } > > +static const struct drm_display_mode ampire_am_1280800n3tzqw_t00h_mode = { > + .clock = 71100, > + .hdisplay = 1280, > + .hsync_start = 1280 + 40, > + .hsync_end = 1280 + 40 + 80, > + .htotal = 1280 + 40 + 80 + 40, > + .vdisplay = 800, > + .vsync_start = 800 + 3, > + .vsync_end = 800 + 3 + 10, > + .vtotal = 800 + 3 + 10 + 10, > + .vrefresh = 60, No longer preset - delete. > + .flags = DRM_MODE_FLAG_PHSYNC | DRM_MODE_FLAG_PVSYNC, > +}; > + > +static const struct panel_desc ampire_am_1280800n3tzqw_t00h = { > + .modes = &ire_am_1280800n3tzqw_t00h_mode, > + .num_modes = 1, > + .bpc = 6, > + .size = { > + .width = 217, > + .height = 136, > + }, > + .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG, > +}; .connector_type is mandatory today. And based on connector type you may need to specify .bus_flags. Sam > + > static const struct drm_display_mode ampire_am_480272h3tmqw_t01h_mode = { > .clock = 9000, > .hdisplay = 480, > @@ -3637,6 +3662,9 @@ static const struct panel_desc arm_rtsm = { > > static const struct of_device_id platform_of_match[] = { > { > + .compatible = "ampire,am-1280800n3tzqw-t00h", > + .data = &ire_am_1280800n3tzqw_t00h, > + }, { > .compatible = "ampire,am-480272h3tmqw-t01h", > .data = &ire_am_480272h3tmqw_t01h, > }, { > -- > 2.25.1