Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp1020401imm; Wed, 10 Oct 2018 08:00:09 -0700 (PDT) X-Google-Smtp-Source: ACcGV61ufCZP6i3WxnEmABhiJwwSFztMlnX++RH7z9ArIRtUQrzC5+V9mfCZ8U3+HHt8ppfFcv54 X-Received: by 2002:a62:7a81:: with SMTP id v123-v6mr35829586pfc.240.1539183609012; Wed, 10 Oct 2018 08:00:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539183608; cv=none; d=google.com; s=arc-20160816; b=u3mOMEZ8S9k3W1V6ooVhw6FPSJTZxqJmUipnjjovfkr1VbpBjKsy5MEhUmooMczbq3 ITR8JCostjGVtYTHMFCylT0JuQr+HnBhZAltf2AEDl44bavxdTvrR3tXxIsfuEgFuQun 7lv2DMtyuYnVBTHE84W+bkM/SEP2M3/iY0WvkXeE35hHxNgYBSCrUz/FqqqYtPL2vSV6 2U+MceBeQvL+P2hRMx3OKcUNot+yZppiPX/kF7H7Y/0xeeOtjXNZc8ryfDcnEuYikMPM fmyjbx97iafWPjvzZSuA4TewbF3eqjlb/QC6W7rHbFLDKyCsqUsurAvnHGK6w4XdeNHG 7atA== 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=NUJWffIrrDLy4Ruko1JmqhTUHDrajyndnAdE0hihP78=; b=y1ZpzSvKUt5zLwhnYgOkgHvdK1EN2oLGTC4W7gReN6fhCSW98jrXr1jrdQZJtu0X0G lC0xZqi0rYi05PP8+lYxHx3mcCtoyXXoRq4LRyTLj3XIwwbFF67tuYMN6lwSCOiBZrtT W44aTG7O/QHxe1y7YT6b3vESFwrYYiLCi+zCwLGUsHUadMZUVvuX/+JxKmoGDW4SNeM8 sVIUMTRIw8Q27ME+kSDzQGZ5DjEQ23z1s7C8PfKz7Wku29KFjgHwifJWDx3nmg2tWt/g cxZf9NoMc4BBJMPaMwgd6cgzajkKEG0J7qnyQohiEVytW38zazK5Sd2jnKJHxrEPt5RR 8RyA== 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 r3-v6si24555684plb.221.2018.10.10.07.59.53; Wed, 10 Oct 2018 08:00:08 -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 S1727059AbeJJWVg convert rfc822-to-8bit (ORCPT + 99 others); Wed, 10 Oct 2018 18:21:36 -0400 Received: from mail.bootlin.com ([62.4.15.54]:56021 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726636AbeJJWVg (ORCPT ); Wed, 10 Oct 2018 18:21:36 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 27FD0207A3; Wed, 10 Oct 2018 16:59:00 +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 (AAubervilliers-681-1-28-153.w90-88.abo.wanadoo.fr [90.88.148.153]) by mail.bootlin.com (Postfix) with ESMTPSA id E49D7207C4; Wed, 10 Oct 2018 16:58:49 +0200 (CEST) Date: Wed, 10 Oct 2018 16:58:50 +0200 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: <20181010145850.krwe7wlqkbcpja33@flea> References: <20181010114134.8211-1-contact@paulk.fr> <20181010114134.8211-2-contact@paulk.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: 8BIT In-Reply-To: <20181010114134.8211-2-contact@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 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? Thanks, Maxime -- Maxime Ripard, Bootlin Embedded Linux and Kernel engineering https://bootlin.com