From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.3 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1B22EC10F27 for ; Tue, 10 Mar 2020 19:10:36 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id DA99D20727 for ; Tue, 10 Mar 2020 19:10:35 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="ANAETzIL" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org DA99D20727 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.intel.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=08VIQRoWxF/b4YF0RJR2GF6r+sWc0YZ1GmkeNplHFRM=; b=ANAETzILK8J5nf 0MqoWgi0JEExmzWKHFDMryRksHKZIwwXT5RbwPTqio6VAd58fEzu5yX0voK56/BPYQSVtQGIeOmZa On9QmDfIVRpJPSw+mmNBCCfvYU6k6Ic6VpKifMw6TXQHuzR8y7KT99/pGm/upjd6ryWViyD72sI/t YeHV0UJWXvvTJvuhCiQ8tyUVrdFMGeQ7Z3lwVSTsKEYZVERRXmhEkvW0ItOAQqaviULhUxn1fH9la pON8uco0hoiSc1roObtl1MT7XoWkXa9bR0zUx3K/jIHv5VzSxPvDzHhxDpHFCIxSRIZyztV28SVuw eQSf4eaiasjeVyG0j/4Q==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jBkGw-0001Ai-2f; Tue, 10 Mar 2020 19:10:34 +0000 Received: from mga06.intel.com ([134.134.136.31]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jBkGt-00019q-EZ for linux-arm-kernel@lists.infradead.org; Tue, 10 Mar 2020 19:10:32 +0000 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 orsmga104.jf.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 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-Disposition: inline In-Reply-To: <20200310185422.GA22095@ravnborg.org> X-Patchwork-Hint: comment User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200310_121031_542668_913DD919 X-CRM114-Status: GOOD ( 25.57 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , devicetree@vger.kernel.org, David Airlie , linux-sunxi@googlegroups.com, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Pascal Roeleven , Rob Herring , Thierry Reding , Chen-Yu Tsai , linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.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/sta= rry,kr070pe2t.txt > > = > > diff --git a/Documentation/devicetree/bindings/display/panel/starry,kr0= 70pe2t.txt b/Documentation/devicetree/bindings/display/panel/starry,kr070pe= 2t.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 spe= cified > > +in simple-panel.txt in this directory. > > diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/pan= el/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_b= fn_lnn =3D { > > .bus_format =3D MEDIA_BUS_FMT_RGB666_1X18, > > }; > > = > > +static const struct drm_display_mode starry_kr070pe2t_mode =3D { > > + .clock =3D 33000, > > + .hdisplay =3D 800, > > + .hsync_start =3D 800 + 209, > > + .hsync_end =3D 800 + 209 + 1, > > + .htotal =3D 800 + 209 + 1 + 45, > > + .vdisplay =3D 480, > > + .vsync_start =3D 480 + 22, > > + .vsync_end =3D 480 + 22 + 1, > > + .vtotal =3D 480 + 22 + 1 + 22, > > + .vrefresh =3D 60, > > +}; > = > Please adjust so: > vrefresh * htotal * vtotal =3D=3D 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=E4l=E4 Intel _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel