Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp4680162imm; Mon, 14 May 2018 11:04:17 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrDscFY1bA7eD9AoFI9PfUnQIvKyn6y1XqttkTSBfOdpmf9YnjzRj02g4v1g+HjTkmO4AHn X-Received: by 2002:a17:902:710f:: with SMTP id a15-v6mr11136765pll.171.1526321057380; Mon, 14 May 2018 11:04:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526321057; cv=none; d=google.com; s=arc-20160816; b=ocubKOyVuymNdH4IxSu00c+9md3I/BPt0+avRBrjwqkyeW+0Ju4gYknRZla2n1AyDQ LbvltTVreUpRWx9u4XGPozOFYlJjMCR1zd6HzOWIMDHASwszJCBmKCXQOTk8jtmOVXLM +BZ07BcELsMaTw3cHJoesSMYUTd+0LukBLiKhupSIsJvmf3F/RucZ7iMkAVHByaFYERA q8ObEn7LtU8Hv1u2a685BIpRsA/TIDiJjcv1S/HcTiCzKYDk4QGrT8WrJw3v9cTOj5Tt JC5zJPR3FzyEd4k96FreZLHAOcVdHo8STYtIHOOmcsdwKzm9o50jx5Tpkaam9b0md8x/ Yzbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=EC28sVYyJkqFrodgW/JipRCPIYnE9do8XmD8CEaIKBw=; b=nuWh544F7QyQB3jb+VMfhpufkfFd9Yi9rO+7ubXv5JHVyWjJXr/D9lKkhpqqHsiUSS 3dvVaQbTpPKesqsa+2QOOP0hABTVKUoWuDsPLsgRqbCQFe7FvMyNsC200XeVSudVYxtC bcDbJW/5iUqNwJ1zMTcieipiFqIj1hVfSYBbyd6Xk461YR415sLUE3JAHhcztr4jS29+ LJ/zvNNK2pfX5gFLZuqeV+dJ8HbOunVa6QfRLAsUdenDp8UjCZBHoKXFFnOhE5rn1WpF 3cxM/QVorKz5zLDkuPOoMWeOKfeKW1JsDrRCxG7rR+KI/f2wWwRSJop3FbALethh2Pby 6W/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=hp5M9ZOE; 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 z9-v6si11079041pll.423.2018.05.14.11.04.02; Mon, 14 May 2018 11:04:17 -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; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=hp5M9ZOE; 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 S1752098AbeENSDn (ORCPT + 99 others); Mon, 14 May 2018 14:03:43 -0400 Received: from mail-it0-f65.google.com ([209.85.214.65]:39496 "EHLO mail-it0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752078AbeENSDl (ORCPT ); Mon, 14 May 2018 14:03:41 -0400 Received: by mail-it0-f65.google.com with SMTP id c3-v6so13168812itj.4 for ; Mon, 14 May 2018 11:03:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=EC28sVYyJkqFrodgW/JipRCPIYnE9do8XmD8CEaIKBw=; b=hp5M9ZOEA2qNbctskRiy5Bn39chiNvJINaeQA3XQHz1lvcnoqcPCXibYUj11LxJxYw 3Q3HggplPDqjbCVqXU/SmpGKzFWdQEGJmBFzzDlopF3NMzVkXBa7k7qHEf0Bw4iwX1iK /Z7fTsexsjf52c4ngfCTOS23npgVZo6mpRSpo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=EC28sVYyJkqFrodgW/JipRCPIYnE9do8XmD8CEaIKBw=; b=DE6ILrjngrcobeQOqIsp+FnJ3qfi2xI9MoxuuHkzBe164aVdcHsok5u36rU/ijMKHZ L/u4fZPToOvylHQ13BISf7eyitbErZGONX2Q6TalkXWi0y39TpswQxGQMdtI1+0uUW1G hratnKzdFRae4m7qsQFwOZi9j5H2twDcw650qvFk1PKnkCu/UzLd7vWTU56PjJrwQGgG L5Ptdh+5j6lj0lZa0aiurISnQKCNEBqeJi6Nu1xYT4w23gzm1RkVOTf349A4pCT5pXTf XPQO72Wsa5OaaV6zjPyd7O2EWq0yfWmIxDrIb9INgoCGRPqwgy7rTU6FfDqn0Z2hK8KR c05w== X-Gm-Message-State: ALKqPwdrK+EhJiJtOtIq3BXCj0WrZD6fJuyK8zrMLUxc5C16PDLYS5AW 0Vn4M1iQb3YKq9LAUI/Nbj+nV0HEIt12isqNh8jt7Q== X-Received: by 2002:a24:2b12:: with SMTP id h18-v6mr7055915ita.141.1526321020962; Mon, 14 May 2018 11:03:40 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a02:918d:0:0:0:0:0 with HTTP; Mon, 14 May 2018 11:03:40 -0700 (PDT) In-Reply-To: <20180419093225.614-5-wens@csie.org> References: <20180419093225.614-1-wens@csie.org> <20180419093225.614-5-wens@csie.org> From: Jagan Teki Date: Mon, 14 May 2018 23:33:40 +0530 Message-ID: Subject: Re: [PATCH 4/6] drm/panel: simple: Add support for Banana Pi 7" S070WV20-CT16 panel To: Chen-Yu Tsai Cc: Maxime Ripard , David Airlie , Thierry Reding , Rob Herring , Mark Rutland , dri-devel , linux-arm-kernel , linux-kernel , devicetree , Jonathan Liu Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 19, 2018 at 3:02 PM, Chen-Yu Tsai wrote: > This panel is marketed as Banana Pi 7" LCD display. On the back is > a sticker denoting the model name S070WV20-CT16. > > This is a 7" 800x480 panel connected through a 24-bit RGB interface. > However the panel only does 262k colors. > > Signed-off-by: Chen-Yu Tsai > --- > .../display/panel/bananapi,s070wv20-ct16.txt | 7 ++++++ > drivers/gpu/drm/panel/panel-simple.c | 25 +++++++++++++++++++ > 2 files changed, 32 insertions(+) > create mode 100644 Documentation/devicetree/bindings/display/panel/bananapi,s070wv20-ct16.txt > > diff --git a/Documentation/devicetree/bindings/display/panel/bananapi,s070wv20-ct16.txt b/Documentation/devicetree/bindings/display/panel/bananapi,s070wv20-ct16.txt > new file mode 100644 > index 000000000000..2ec35ce36e9a > --- /dev/null > +++ b/Documentation/devicetree/bindings/display/panel/bananapi,s070wv20-ct16.txt > @@ -0,0 +1,7 @@ > +Banana Pi 7" (S070WV20-CT16) TFT LCD Panel > + > +Required properties: > +- compatible: should be "bananapi,s070wv20-ct16" > + > +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 cbf1ab404ee7..9bc037f74d6c 100644 > --- a/drivers/gpu/drm/panel/panel-simple.c > +++ b/drivers/gpu/drm/panel/panel-simple.c > @@ -745,6 +745,28 @@ static const struct panel_desc avic_tm070ddh03 = { > }, > }; > > +static const struct drm_display_mode bananapi_s070wv20_ct16_mode = { > + .clock = 30000, > + .hdisplay = 800, > + .hsync_start = 800 + 40, > + .hsync_end = 800 + 40 + 48, > + .htotal = 800 + 40 + 48 + 40, > + .vdisplay = 480, > + .vsync_start = 480 + 13, > + .vsync_end = 480 + 13 + 3, > + .vtotal = 480 + 13 + 3 + 29, > +}; > + > +static const struct panel_desc bananapi_s070wv20_ct16 = { > + .modes = &bananapi_s070wv20_ct16_mode, > + .num_modes = 1, > + .bpc = 6, > + .size = { > + .width = 154, > + .height = 86, > + }, > +}; I think this parallel RGB interface right? I too have same display with DSI I'm sure these setting will not useful right? do we need to write separate panel driver for that?