Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1632952imm; Wed, 16 May 2018 00:21:27 -0700 (PDT) X-Google-Smtp-Source: AB8JxZo8z51CwyxAt4x6XBbt6fXCWQek7s8At/1LodkB5yRiZ1caaRKPsFN+YZJ9zdZSnhNhN77+ X-Received: by 2002:a62:ae13:: with SMTP id q19-v6mr18640022pff.155.1526455287024; Wed, 16 May 2018 00:21:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526455286; cv=none; d=google.com; s=arc-20160816; b=VdzQYUh5EtTRj+Sd64tG/Yh/wqxv3zwDNcNGoF5kMeVMA3aOWYSjjv+Xx9EJ5t4Gvp BMgOmVsSVtoBj1DbYHrYa/3LhWOwvDIvmKUhmnyWzh/0Bc/V+ltwfqU0TV3LkBxvFHLw /Z/x28HfUCYOf9cPUX89fMAhnTGVZKq3t3kqhFkwJMxhr2ZY0Bn2+IT+x2ec5kslZrdj cwgHdR/lq9uxtnCICsu7y34l78V9e4nw7KZO/6+sgXjZdGAGjHbnNzN+QFwY28MZM3C2 TJFliEYF3CILeC+Yeee3tnupP68SjP8Xd0w6Q0Cf1NLQeGHut1lNGsDahJb+8FXQClIz rdvA== 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=F859xI01fX3IDXV7YaA2h/y4jQocvJPaHvi7GBc5VgU=; b=FwWimmhtpmm4QFyW0HOcwKRGtKa631WqLkYkurtZvWNB7Zu8OHKfShwZDgOuhCbaEa aZE7fBZhKXwAO5ZZid6+SlDStKIWQjV/jt2yMOZ4p9NJTovxB7u0dPdKo79gbcBcnSe7 bWP9v9OB36mNg6+2yeC4HQSAjo+3xvTwjKZrS0LDY5DUr7gf3iuH6PV7geBcBKZbW9jI rHXyj2jwocd6Wvn1RcyXLx04PIUqlA6btR8K3x00/xiv3kAUcSj71Pz6zgX+SZGEE0SK eQMrhX19Gb6xUC4vkhcFTuOlYMtOBvq7tIlK6uLN4NHEGiH4lIJR+zsIHRE1a2a5CQmn MoVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Jk2pzrvX; 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 w2-v6si1611086pgs.676.2018.05.16.00.21.12; Wed, 16 May 2018 00:21:26 -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=Jk2pzrvX; 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 S1752146AbeEPHVB (ORCPT + 99 others); Wed, 16 May 2018 03:21:01 -0400 Received: from mail-it0-f65.google.com ([209.85.214.65]:33527 "EHLO mail-it0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750992AbeEPHU7 (ORCPT ); Wed, 16 May 2018 03:20:59 -0400 Received: by mail-it0-f65.google.com with SMTP id e185-v6so10745573ita.0 for ; Wed, 16 May 2018 00:20:59 -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=F859xI01fX3IDXV7YaA2h/y4jQocvJPaHvi7GBc5VgU=; b=Jk2pzrvX+hKOINadKLhKmVChimL9P+MPjCZsnOUC6Ca6IjRw5fVVvtFQjZhVANg1RU Zb5/7i9sWmwK1ix6WEq6TPAA5TGleD0gKQf+R9EerrJO+98GWhQi+I+H2xgLOpQIp85l sSiUK8fwyRN3D9E7VYGgkvwmS64Qc35w8FWd0= 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=F859xI01fX3IDXV7YaA2h/y4jQocvJPaHvi7GBc5VgU=; b=sikIzV4sPQ6H24UOik8Vz/euZ7nelkDVlYcWK09Zrkguzj3OJwhBjwj04qPt1XCHya o/D6F5XPna3TKJ0HUAkIDr9K5XC1hJ8Bt1YMPVKi+J+WTJkRAvw12UsHejJjaRaI9jHX bXZBZ/AF+9i3RdHnPFhPtTh5ovCy+UehUUusRJcCZKWp6s1dFYRacIHSuoxxEbSriq+Z ujldfw7viJo3BuVdCfWBiBBIs3gMhEtmzgI1FXjX0QMcW2bOL5BFOF2yaJx6brCkZPDq 5f3nNgqv4DAwHtTmgS8jHnEazQ8qSXc6M8boWAkKyuViQJ2KhMVEecQx66SHdXJI68rU ebuQ== X-Gm-Message-State: ALKqPwdz450TYxkXBFrww+eTRxJ482j3wpnoU86ASpMM/TkfUMdNWBq9 ku9C7W3M7yCNprOpJ873aLZpO8bIWDLQobCwWoHH6Hbl3lE= X-Received: by 2002:a6b:e411:: with SMTP id u17-v6mr19027943iog.102.1526455259198; Wed, 16 May 2018 00:20:59 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a02:918d:0:0:0:0:0 with HTTP; Wed, 16 May 2018 00:20:58 -0700 (PDT) In-Reply-To: References: <20180419093225.614-1-wens@csie.org> <20180419093225.614-5-wens@csie.org> From: Jagan Teki Date: Wed, 16 May 2018 12:50:58 +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 Wed, May 16, 2018 at 12:12 PM, Chen-Yu Tsai wrote: > On Mon, May 14, 2018 at 11:03 AM, Jagan Teki wrote: >> 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? > > AFAIK the DSI model is an RGB panel with a MIPI DSI bridge on the > connector board. The model I have is dual interface. Yes, this is what I have [1] where same strip can use for both RGB and MIPI DSI. can bananapi,s070wv20-ct16 work for DSI interface as well? [1] https://www.aliexpress.com/item/New-Arrival-Banana-Pro-Pi-7-inch-LCD-Display-Touch-Screen-Raspberry-Pi-Car-GPS-FreeShipping/32335608836.html Jagan.