Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1600151imm; Tue, 15 May 2018 23:43:57 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpEZfahC8zq5JfF3vap0gqmO/wVOrPw4o5WjYnfzTbEzwdM/mgL/+bWKCD0xH+WsJAU9kXU X-Received: by 2002:a17:902:ba87:: with SMTP id k7-v6mr17918194pls.193.1526453036956; Tue, 15 May 2018 23:43:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526453036; cv=none; d=google.com; s=arc-20160816; b=OxZY2VnOvhWWbstBgLwbcS8SeoVSEPmP76lqE8292O3Dlo0jNYoQ5BtIcCfyH3LOrP hBMaSPYod/fYWuqQZUtxdd83suX5dzDviWG/n9v9YKqNl+Fqmf9jurh64OfofPMYvW3Y cYJOsYTe7us0YVTrARIeM+w/LpesNA1WBVnugtrFzQWKNJ+9uHKbjGbXXmYlViTXDoXf pwc7fzZme/dPdudZIK24nuB2/9ZilkgPX4kOIcKrZdq7F2Oe0IHFQimppvC2lzTzsGUw RnqWeEhuuGpgLG0sMOYsKjNUrnupqmJQKQtKNdCdxI6/eQtWXF1QXYU+296dIr5cstJF NdjA== 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:arc-authentication-results; bh=7Xlqg77yU6CMBpwoMKgUNa4vMpK2idpkFuQ5zWE4Gfc=; b=VA3SxG++AkNxWvUQzIltRRmRgRMfkmq3ot5dyXj5/HcLP3cI8nnqvmZPfE9cfkwWe/ zlYJZzXtG3WP0c+0zAPC0D8Y9zpUTeYZrm56+pPN8hnjOU9w5xJFWV2oLQaSvXByyywk 6Q6FbMIlsz/54xy3dLrr5GI9Te74O7WeFNRpxMRHZrMGmAzCymk5OXfO/BGJJal3UKQt ZGhC7eTCE61LJAcTyvGl0dmv+KsWIvtNzRjQ4hJaWXWUASEX1FLLf+uyMbFqe6G8CjUv FsI0eot9swYRV8JE2Or9k9gYxaKeM3RzHPN0MyPCaPA4C6OCVhTKtAGBeaWdGa6wzXSg bRrg== 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 l14-v6si1533405pgc.447.2018.05.15.23.43.42; Tue, 15 May 2018 23:43:56 -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 S1752403AbeEPGm0 (ORCPT + 99 others); Wed, 16 May 2018 02:42:26 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:54573 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751550AbeEPGmY (ORCPT ); Wed, 16 May 2018 02:42:24 -0400 Received: by mail-wm0-f67.google.com with SMTP id f6-v6so4863199wmc.4; Tue, 15 May 2018 23:42:24 -0700 (PDT) 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=7Xlqg77yU6CMBpwoMKgUNa4vMpK2idpkFuQ5zWE4Gfc=; b=cMMcesWcMgOICR+S19Y2jTuPcL8TngLwbpGb/ofwAofGpbl3jgMiuydyvJRf7TiRJn IATGQfMMvSIQmvh/nvZ6cPZqY6LrHXyIdok4NdrwXiJgZt0n80882cgkvQlXTV1ZUPfR Ymhm6/AGpQozXsgWiciDwuXpjX+cHlWpAI+0R2yHPWUudmPjB3hhRwxZkX2Q283Qb0X8 ZHe/buPetpUw7XVtE/R/BmXgQqnRPsavg4VsvH0P9n38GrVqNqniAyRWr+RgnT2NLDdi x3OE5t8wc5cf5ixkoGQ4JPeVsL9HLOjJsL625OrJuraFwzbtwkSYRaAI43m3cAtg3wQl Dmsw== X-Gm-Message-State: ALKqPwe001KMdVjobhu/g/Aj71vfE1QVBvlh0iJwtyC6Nui5uoSGtsy6 Bfy67sEEmOl4Vb1R0TjhMrEecRme X-Received: by 2002:a50:8d59:: with SMTP id t25-v6mr21329245edt.238.1526452943195; Tue, 15 May 2018 23:42:23 -0700 (PDT) Received: from mail-wr0-f173.google.com (mail-wr0-f173.google.com. [209.85.128.173]) by smtp.gmail.com with ESMTPSA id l33-v6sm1020577edd.59.2018.05.15.23.42.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 15 May 2018 23:42:22 -0700 (PDT) Received: by mail-wr0-f173.google.com with SMTP id v5-v6so2491931wrf.9; Tue, 15 May 2018 23:42:22 -0700 (PDT) X-Received: by 2002:adf:b8b0:: with SMTP id i45-v6mr12707247wrf.105.1526452942241; Tue, 15 May 2018 23:42:22 -0700 (PDT) MIME-Version: 1.0 Received: by 10.223.142.19 with HTTP; Tue, 15 May 2018 23:42:01 -0700 (PDT) In-Reply-To: References: <20180419093225.614-1-wens@csie.org> <20180419093225.614-5-wens@csie.org> From: Chen-Yu Tsai Date: Tue, 15 May 2018 23:42:01 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 4/6] drm/panel: simple: Add support for Banana Pi 7" S070WV20-CT16 panel To: Jagan Teki 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 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. ChenYu