Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp839040ima; Wed, 24 Oct 2018 09:58:49 -0700 (PDT) X-Google-Smtp-Source: AJdET5catWURrdT3FALBZeERgK5fSo5H14ZMlwpLjem3bBXZLZ1+onBdHeVu7UfI93XuauzJ0KUQ X-Received: by 2002:a65:5cc3:: with SMTP id b3-v6mr3251790pgt.277.1540400329216; Wed, 24 Oct 2018 09:58:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540400329; cv=none; d=google.com; s=arc-20160816; b=UTMHbYIKJmmhp+OFfi51MYpRYcYuGFsfqAf3MQfgrm0Nbq8VfjUhADxqzZxVD5/VJl uX6gNQN8ioOnMX710ALia2fl7+S9VKCivkRK+VcFjbno43ajJ06PzkrjdaGe97MwjqTL ygPonF9hK2VawfXXQ6t02750Gn1FMKCQWmrbozykiu3CsIAjGI9Q5i+CRU+9a1QQtN9V 47GUVU1ppdeuWe57HoVHGbNtKsM9xx8g/BUQM6Q9kdBg5VY4XT/AN/T8/mxmwMzbplLI 0Hg43Z8rYKgn+cZtjwF+68LHEJK6o0OXXcN+FWIWYdJFaSdEDFoNa0IF456X1Q32TxLu we7w== 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=oM7z2eiW49/GNArX4XpD+X0+hgXYRxEe+tuJAvmYQqM=; b=BdnE23pnpLSCIF4g+ECZFJxbVEuGmegksBBvOJERrjJ+P5CHCoonh1B2TT06hophnA y36GwO5usTaZXAiSOfN5wEA/CapBdeUIH3pIAg6CvBHU50GxOGqFO4Fdcd7pZy1edlMI GQAIT1fHvGSpVBDJMoB61VmSaBiudrxN91N1neosAWWItoMkHfdjcRTfOb1w8aOvu8x6 PJoacQ7YM754dYDt6dP6wdSGAoFX5ckCyGHmcHUIi1F1cZ5XaE45AUl44XH/6w6NktZ0 mVNhUxdMjlYfHY26sr3y1O1e1JQDgyRHKI79ylhkTAE6p5tiGKysj2f7lt+A3Hg7ky9f ub/w== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c2-v6si4942895pgp.451.2018.10.24.09.58.33; Wed, 24 Oct 2018 09:58:49 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726716AbeJYB1B convert rfc822-to-8bit (ORCPT + 99 others); Wed, 24 Oct 2018 21:27:01 -0400 Received: from mail.bootlin.com ([62.4.15.54]:50099 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726433AbeJYB1B (ORCPT ); Wed, 24 Oct 2018 21:27:01 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 2E1972079D; Wed, 24 Oct 2018 18:58:09 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.0 Received: from localhost (unknown [185.7.230.213]) by mail.bootlin.com (Postfix) with ESMTPSA id E4BD72075C; Wed, 24 Oct 2018 18:57:58 +0200 (CEST) Date: Wed, 24 Oct 2018 17:57:59 +0100 From: Maxime Ripard To: Paul Kocialkowski Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Rob Herring , Mark Rutland , Chen-Yu Tsai , Thierry Reding , David Airlie , linux-sunxi@googlegroups.com, Mark Van den Borre , Gerry Demaret , Luc Verhaegen Subject: Re: [PATCH 2/4] drm/panel: simple: Add support for the Lemaker BL035 3.5" LCD Message-ID: <20181024165759.k6cnxyzgpiiuaigs@flea> References: <20181010114134.8211-1-contact@paulk.fr> <20181010114134.8211-2-contact@paulk.fr> <20181010145850.krwe7wlqkbcpja33@flea> <30178c8b263656a9c285e45c78e1908927c99c48.camel@paulk.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8BIT In-Reply-To: <30178c8b263656a9c285e45c78e1908927c99c48.camel@paulk.fr> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 23, 2018 at 12:08:17PM +0200, Paul Kocialkowski wrote: > Hi, > > Le mercredi 10 octobre 2018 ? 16:58 +0200, Maxime Ripard a ?crit : > > On Wed, Oct 10, 2018 at 01:41:32PM +0200, Paul Kocialkowski wrote: > > > This adds support for the 3.5" LCD panel from Lemaker, sold for use with > > > BananaPi boards. It comes with a 24-bit RGB888 parallel interface and > > > requires an active-low DE signal > > > > > > Signed-off-by: Paul Kocialkowski > > > --- > > > drivers/gpu/drm/panel/panel-simple.c | 27 +++++++++++++++++++++++++++ > > > 1 file changed, 27 insertions(+) > > > > > > diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c > > > index 97964f7f2ace..229080fcf65e 100644 > > > --- a/drivers/gpu/drm/panel/panel-simple.c > > > +++ b/drivers/gpu/drm/panel/panel-simple.c > > > @@ -1461,6 +1461,30 @@ static const struct panel_desc kyo_tcg121xglp = { > > > .bus_format = MEDIA_BUS_FMT_RGB888_1X7X4_SPWG, > > > }; > > > > > > +static const struct drm_display_mode lemaker_bl035_mode = { > > > + .clock = 7000, > > > + .hdisplay = 320, > > > + .hsync_start = 320 + 20, > > > + .hsync_end = 320 + 20 + 30, > > > + .htotal = 320 + 20 + 30 + 38, > > > + .vdisplay = 240, > > > + .vsync_start = 240 + 4, > > > + .vsync_end = 240 + 4 + 3, > > > + .vtotal = 240 + 4 + 3 + 15, > > > + .vrefresh = 60, > > > +}; > > > + > > > +static const struct panel_desc lemaker_bl035 = { > > > + .modes = &lemaker_bl035_mode, > > > + .num_modes = 1, > > > + .size = { > > > + .width = 70, > > > + .height = 52, > > > + }, > > > + .bus_format = MEDIA_BUS_FMT_RGB888_1X24, > > > + .bus_flags = DRM_BUS_FLAG_DE_LOW, > > > +}; > > > + > > > static const struct drm_display_mode lg_lb070wv8_mode = { > > > .clock = 33246, > > > .hdisplay = 800, > > > @@ -2456,6 +2480,9 @@ static const struct of_device_id platform_of_match[] = { > > > }, { > > > .compatible = "kyo,tcg121xglp", > > > .data = &kyo_tcg121xglp, > > > + }, { > > > + .compatible = "lemaker,bl035", > > > + .data = &lemaker_bl035, > > > > You should document that new compatible. Also, where is this name > > coming from? Is it the name it's sold under? something you came up > > with? > > Oh right, I forgot to document the compatible (and add the new vendor). > > The name "BL035" comes from the PCB itself, where it reads "BL035-RGB- > 002" under the Lemaker logo. I went for "BL035" to keep it short. > > The latter part seems to be the PCB revision. According to the fex > files[0], the timings are the same for all the screens of the same size > (regardless of revision), so that revision probably shouldn't be in the > panel name. > > As for the "RGB" part, Lemaker only makes 3.5 and 5 inch LCDs with a > parallel RGB interface and 7 and 10.1 inch LCDs with LVDS, so there is > no ambiguity for now. > > Do you think it makes sense to keep that part in the panel name > nevertheless? I'd just put the full reference, to be on the safe side. Thanks! Maxime -- Maxime Ripard, Bootlin Embedded Linux and Kernel engineering https://bootlin.com