Received: by 10.192.165.156 with SMTP id m28csp671735imm; Thu, 19 Apr 2018 05:47:02 -0700 (PDT) X-Google-Smtp-Source: AIpwx49m57oOhfGt/ZEU+zz0mByhE4QEdIrph0NALiJNWnFMP28h6nBY+7K7FaTXYfUh6EgBXPlp X-Received: by 2002:a17:902:d20b:: with SMTP id t11-v6mr5967009ply.381.1524142022438; Thu, 19 Apr 2018 05:47:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524142022; cv=none; d=google.com; s=arc-20160816; b=zSW93nLtzGwrjCG4pW8NlJFr+UUludTbWdqBrNrfHdHStsLJe3B53DS52XYuimjpne BjuLR5JfsDDx2Kw0ZYctGbdj79oV0D+qyxUFvrZTmC4BmiqGxvZicXUdgdF3LvuD9oGU T5Q8384n8uHhHAvnJEz2T0EXYnazLzht0JbYo3OftE5bmaBvMhX3RY1r01HPDZXYx1r3 i0lQWlbL4Y3I2YSaRh5SQFUlqRE38GCcYJZMfDYcCwS3qruh+XCkpfgVJLeBcKGhcAiX l4owL4zJXA11XynZB/AfxFMrA8kGpZy0d4MyNTPLn+uznRjiWAlB5D3mAue+VXPw7/nD fgGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:references:in-reply-to:mime-version :arc-authentication-results; bh=2NitC0rxQuTDh8eQQw9T2B0KiSP5/LXKxxINPutWKO0=; b=nJiAPdMqaePffHPEfNhdtpaACe1yAAjnwNHTMNnsaxk0J2jDQVGJIKgPP/i88HFLV+ k67QYTtzmlWpgykchv+SK6abmx5r6urwwXK34PXcz0W4EAYXGIUvueZ42CbrJb6i0nBS QXaIsc2BuorY3v+jnuXAKJptiLe2Bdxeah7jEot+bscgisD2SmZpmYutSzYhPh5MyhqE EDLn8MfZTHELMN3XcEAlpCvbfm/otL5mzwzi31YehBxH3op1tzR2GHnmc61KGbjdHvGW 9I5/dT+98/uASc1WkIpw2LU29gp6EWgNhvrC3mDs9L/9TvyYcZBeEigDqBI0MXOeCqv+ R1hA== 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 d17si2769283pgo.183.2018.04.19.05.46.48; Thu, 19 Apr 2018 05:47:02 -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 S1753672AbeDSMpq convert rfc822-to-8bit (ORCPT + 99 others); Thu, 19 Apr 2018 08:45:46 -0400 Received: from mail-wr0-f193.google.com ([209.85.128.193]:44002 "EHLO mail-wr0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753569AbeDSMpi (ORCPT ); Thu, 19 Apr 2018 08:45:38 -0400 Received: by mail-wr0-f193.google.com with SMTP id u4-v6so13668481wrg.10; Thu, 19 Apr 2018 05:45:37 -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:content-transfer-encoding; bh=IhTGbRvNlV07ELZMLt0tnW7xx2xnxHdsRzfcxB+Gig8=; b=QFTq6YNrMEeXpkDJElrlV3FhGTV8mLQCAazSCdNwkfK2XCskkhRTU3TuIvaMK6dfKf JErrUFdpWU3Ukg1rLF5Vcjmb7KSlF601Ap/JRwlNjt55dtuvZzkI185XNQpGpjuU3N7B YOTinoIW0Zstgi+XrrVwvsg/ayplKDkGf0MmoM4ik+thFYU655DLoiT/h9LCeSLiHd7N /d/fBEL1W9ZpdJBJCZrLBtHetzbGocFyPsGvcVk2cZyaJKalH6lvGOs9zPqMArUqpaRW f9g5TOQx2CKZ/Ve+AQjReV5kudgRCYbhBC7zTF0XwqnnVm5OiV7q5xTuhE8jgEOXFnry 0rUA== X-Gm-Message-State: ALQs6tA+YlX1ysxlHXIJ0ytDVlEP00bzI8ffOJ2LGGYYrWWaxhiy9Ywc BZ8tHQ0iR0BSCRTn9xaelSmCdQiB X-Received: by 10.80.234.205 with SMTP id u13mr8231290edp.288.1524141935833; Thu, 19 Apr 2018 05:45:35 -0700 (PDT) Received: from mail-wr0-f174.google.com (mail-wr0-f174.google.com. [209.85.128.174]) by smtp.gmail.com with ESMTPSA id p5sm2083518edh.7.2018.04.19.05.45.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 Apr 2018 05:45:35 -0700 (PDT) Received: by mail-wr0-f174.google.com with SMTP id o15-v6so13669277wro.11; Thu, 19 Apr 2018 05:45:35 -0700 (PDT) X-Received: by 10.28.135.195 with SMTP id j186mr4588980wmd.143.1524141934770; Thu, 19 Apr 2018 05:45:34 -0700 (PDT) MIME-Version: 1.0 Received: by 10.223.142.19 with HTTP; Thu, 19 Apr 2018 05:45:14 -0700 (PDT) In-Reply-To: <58ce9e3b-00ee-87d2-f05b-b9f1414d1cfa@micronovasrl.com> References: <20180419093225.614-1-wens@csie.org> <20180419093225.614-5-wens@csie.org> <58ce9e3b-00ee-87d2-f05b-b9f1414d1cfa@micronovasrl.com> From: Chen-Yu Tsai Date: Thu, 19 Apr 2018 20:45:14 +0800 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: Giulio Benetti 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" Content-Transfer-Encoding: 8BIT 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 8:31 PM, Giulio Benetti wrote: > Hi, > > Il 19/04/2018 11:32, Chen-Yu Tsai ha scritto: >> >> This panel is marketed as Banana Pi 7" LCD display. On the back is >> a sticker denoting the model name S070WV20-CT16. > > > Judging from the code, the real vendor should be CDTech. > Take a look at their website: > http://www.cdtech-lcd.com/en/standardscreen.html > > I point you my patch for inserting another similar panel: > https://patchwork.freedesktop.org/patch/211914/ > > Maybe it would make sense to use CDTech as the vendor, > because maybe Bananapi resells only it. > Or maybe it is a custom panel done for them, > but the same is for other panels I've submitted patches. > Micronova srl custom, but vendor is CDTech. > > What do you think? That might be true. But for people without access to the vendors, this is horribly hard to figure out. People are only going to look at whatever marking there is on the LCD panel, and whatever the seller says. This panel has the model number stickered on, but the PCB attached to it only has the Banana Pi logo. And given it's a custom piece, probably OEM or ODM, the real manufacturer matters less. You don't mention "Foxconn" as the vendor of the iPhone, do you? ChenYu > > -- > Giulio Benetti > CTO > > MICRONOVA SRL > Sede: Via A. Niedda 3 - 35010 Vigonza (PD) > Tel. 049/8931563 - Fax 049/8931346 > Cod.Fiscale - P.IVA 02663420285 > Capitale Sociale € 26.000 i.v. > Iscritta al Reg. Imprese di Padova N. 02663420285 > Numero R.E.A. 258642 > > >> >> 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, >> + }, >> +}; >> + >> static const struct drm_display_mode boe_nv101wxmn51_modes[] = { >> { >> .clock = 71900, >> @@ -2112,6 +2134,9 @@ static const struct of_device_id platform_of_match[] >> = { >> }, { >> .compatible = "avic,tm070ddh03", >> .data = &avic_tm070ddh03, >> + }, { >> + .compatible = "bananapi,s070wv20-ct16", >> + .data = &bananapi_s070wv20_ct16, >> }, { >> .compatible = "boe,nv101wxmn51", >> .data = &boe_nv101wxmn51, >> > > >