Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp987274ybh; Tue, 10 Mar 2020 12:12:13 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtFmiYfJNosSLFbm6ezmdbrBjGvNIFh9JI3NEECTjJPpSdBL4DHk3cBpGoBlBeBagllH8Ua X-Received: by 2002:aca:a882:: with SMTP id r124mr2303902oie.53.1583867533124; Tue, 10 Mar 2020 12:12:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583867533; cv=none; d=google.com; s=arc-20160816; b=nMwT5KLwzoZFB+Vb3S/Nv596Ya2INTG4c0URc2vfn90yWfyhPc0EvZZ/9k4TqNUgBa jtwRhCoSVGrpJN2+E34tQUR7RBPq1Kv/P87d5hNFSe7fzPerlJHjfPoNIPEt2JIbHx5f ynQ3DEDw/XHPT1hajfov++S8qu8zsQQF4Fcxcdn2O95I1KN+628nuWeuYrdfE2/RTRFP MYEOKfCArhjh0lyMRfZU2/48Ok4HXUBXTTGGigyEICGR32Pc52CQtneZnEFtDd8KoXBd NuFEpwq6Sjd5I/ycGdfj01JTNYYJh8ed+4dQAG9bdlDTKIxX9iD9VsL0wDT0Giw1JatY SCwg== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=WyJQzGHeOjL0NbENixeh7Zw4j2jUDQWAqMRCDUKBvxk=; b=MEjAjI1rsmYvAMJUwDKHAYp+cFQDijztMdoiBJBNAU0v4I5CU24SMn0foxbFZJ1VbP j6CqjU6fOdNRYeCVnYHbYqNjPgcAfDljph1CWzGvVxXDD2rfh+2A2Yb6oJGD0tgYmVJ0 lyNa5ThjwT+fm9CeyQpOtdBEtZzTxJr1CeOAKnPc9XxQa+p9+r9gjh7cUkWUEH79VX1a 1i9K664VtpKLChK7r0jIKEVfJuD6Av7Cv32Ma4ScFM/I/vZiZdtCQ5VprUTPqXaAfUuS 6Q+yeJdE5OQNc1i/RQVuy41SAEAEJ38KLD5eUQru87CKZ119w+j36jHKjrrnV3zgSB9C utmA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g206si2323992oib.17.2020.03.10.12.11.58; Tue, 10 Mar 2020 12:12:13 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727138AbgCJTKa (ORCPT + 99 others); Tue, 10 Mar 2020 15:10:30 -0400 Received: from mga11.intel.com ([192.55.52.93]:27673 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726290AbgCJTKa (ORCPT ); Tue, 10 Mar 2020 15:10:30 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 10 Mar 2020 12:10:29 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,538,1574150400"; d="scan'208";a="353691156" Received: from stinkbox.fi.intel.com (HELO stinkbox) ([10.237.72.174]) by fmsmga001.fm.intel.com with SMTP; 10 Mar 2020 12:10:25 -0700 Received: by stinkbox (sSMTP sendmail emulation); Tue, 10 Mar 2020 21:10:24 +0200 Date: Tue, 10 Mar 2020 21:10:24 +0200 From: Ville =?iso-8859-1?Q?Syrj=E4l=E4?= To: Sam Ravnborg Cc: Pascal Roeleven , Mark Rutland , devicetree@vger.kernel.org, David Airlie , linux-sunxi@googlegroups.com, linux-kernel@vger.kernel.org, Chen-Yu Tsai , Rob Herring , Thierry Reding , dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH 1/2] drm/panel: Add Starry KR070PE2T Message-ID: <20200310191024.GQ13686@intel.com> References: <20200310102725.14591-1-dev@pascalroeleven.nl> <20200310102725.14591-2-dev@pascalroeleven.nl> <20200310185422.GA22095@ravnborg.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200310185422.GA22095@ravnborg.org> X-Patchwork-Hint: comment User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 10, 2020 at 07:54:23PM +0100, Sam Ravnborg wrote: > Hi Pascal. > > Thanks for submitting. > > On Tue, Mar 10, 2020 at 11:27:23AM +0100, Pascal Roeleven wrote: > > The KR070PE2T is a 7" panel with a resolution of 800x480. > > > > KR070PE2T is the marking present on the ribbon cable. As this panel is > > probably available under different brands, this marking will catch > > most devices. > > > > Signed-off-by: Pascal Roeleven > > A few things to improve. > > The binding should be a separate patch. > subject - shall start with dt-bindings: > Shall be sent to deveicetree mailing list. > > For panel we no longer accept .txt bindings. > But the good news is that since the panel is simple, > you only need to list your compatible in the file > bindings/display/panel/panel-simple.yaml > - must be en alphabetical order > - vendor prefix must be present in vendor-prefixes > > > > > --- > > .../display/panel/starry,kr070pe2t.txt | 7 +++++ > > drivers/gpu/drm/panel/panel-simple.c | 26 +++++++++++++++++++ > > 2 files changed, 33 insertions(+) > > create mode 100644 Documentation/devicetree/bindings/display/panel/starry,kr070pe2t.txt > > > > diff --git a/Documentation/devicetree/bindings/display/panel/starry,kr070pe2t.txt b/Documentation/devicetree/bindings/display/panel/starry,kr070pe2t.txt > > new file mode 100644 > > index 000000000..699ad5eb2 > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/display/panel/starry,kr070pe2t.txt > > @@ -0,0 +1,7 @@ > > +Starry 7" (800x480 pixels) LCD panel > > + > > +Required properties: > > +- compatible: should be "starry,kr070pe2t" > > + > > +This binding is compatible with the simple-panel binding, which is specified > > +in simple-panel.txt in this directory. > > diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c > > index e14c14ac6..027a2612b 100644 > > --- a/drivers/gpu/drm/panel/panel-simple.c > > +++ b/drivers/gpu/drm/panel/panel-simple.c > > @@ -2842,6 +2842,29 @@ static const struct panel_desc shelly_sca07010_bfn_lnn = { > > .bus_format = MEDIA_BUS_FMT_RGB666_1X18, > > }; > > > > +static const struct drm_display_mode starry_kr070pe2t_mode = { > > + .clock = 33000, > > + .hdisplay = 800, > > + .hsync_start = 800 + 209, > > + .hsync_end = 800 + 209 + 1, > > + .htotal = 800 + 209 + 1 + 45, > > + .vdisplay = 480, > > + .vsync_start = 480 + 22, > > + .vsync_end = 480 + 22 + 1, > > + .vtotal = 480 + 22 + 1 + 22, > > + .vrefresh = 60, > > +}; > > Please adjust so: > vrefresh * htotal * vtotal == clock. > I cannot say what needs to be adjusted. > But we are moving away from specifying vrefresh and want the > data to be OK. This one actually looks OK to me. Unless I typoed the numbers the timings give us a vrefresh of 59.58 which gets rounded to 60. So no change once .vrefresh disappears AFAICS. -- Ville Syrj?l? Intel