Received: by 10.192.165.156 with SMTP id m28csp658938imm; Thu, 19 Apr 2018 05:33:05 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+JuhwbrnnNT+yvoIeaVKGTw0Yv1mIS40Hha/78C3G0ygGECCBkqSEKI+a0b+ezn6jLGfi1 X-Received: by 10.99.114.78 with SMTP id c14mr4974047pgn.195.1524141185081; Thu, 19 Apr 2018 05:33:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524141185; cv=none; d=google.com; s=arc-20160816; b=TZo3usPaAuclcCGcAgmQxREAW39uLedyiB+gITAWLWWl7HGAhRtHOu0iuvGCAT8Q2s Q72Q2b+/QWQ46LUHLZAw2TBZ6kvXjsQWZ5kfSgWl4gE/LbkvQbhScuFzU8ATthXmCAOD kgy3ET+NtUvqetf0rwR38gIqqF/UKkUsUkuE+4Pfe82Tu5ut/NUx8YJt/U2RuZgNiYeL pqCEg1aDQGMfYIDBjD0emWkPYO2n3DtPpl5vahIr+15tJjXnMPcJnqYG59dyChKPiO1g LKgemrokyZR7qEgpSknJ9p0kYApTgxn9JHgQ05AzfJOZ8jblHQFVct4ZATx8XupmLFYe gMeQ== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=SolvbPe7CnWRYMsY0HZkjN9NSEBwZYHUVIq+mV/T72I=; b=QDRaHU57mkATryMpHSqtm9qIWM9v+vHehfbRgSczm9r7yzs+0IBe6MSLBbqiWJXnUS eZah3Ho9DoW0T90PCvjCauyGneIYQoPlMsbXvDB7hEJ65e05Czt8bFKY3lR9cGP7mQFh 8MSrkQFVe5/u7B3Y52tvqrb4R4Cj0eWHONVjfyZadZEXIiIGv6zvk2Si88csNZq5olzV 9y88W0/If8LfpI01tkwYG3hjDDgSDTHpB8py4c6SOmC5Wi13XgUy5qJN2LGM3OO4u8mB CITy3P5iiTmW18Ivhxvpx6Q846KLzh0soEw2ylWYNvKhvl+qDidZJOYO+YEMTNXvg4f6 CqKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=temperror (no key for signature) header.i=@micronovasrl.com header.s=dkim header.b=J6Laowvp; 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 t125si2820502pgc.6.2018.04.19.05.32.51; Thu, 19 Apr 2018 05:33:05 -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=temperror (no key for signature) header.i=@micronovasrl.com header.s=dkim header.b=J6Laowvp; 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 S1752805AbeDSMbY (ORCPT + 99 others); Thu, 19 Apr 2018 08:31:24 -0400 Received: from mail.micronovasrl.com ([212.103.203.10]:56618 "EHLO mail.micronovasrl.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752578AbeDSMbU (ORCPT ); Thu, 19 Apr 2018 08:31:20 -0400 Received: from mail.micronovasrl.com (mail.micronovasrl.com [127.0.0.1]) by mail.micronovasrl.com (Postfix) with ESMTP id 7E398B008F6 for ; Thu, 19 Apr 2018 14:31:18 +0200 (CEST) Authentication-Results: mail.micronovasrl.com (amavisd-new); dkim=pass reason="pass (just generated, assumed good)" header.d=micronovasrl.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=micronovasrl.com; h=content-transfer-encoding:content-language:content-type :content-type:in-reply-to:mime-version:user-agent:date:date :message-id:from:from:references:to:subject:subject; s=dkim; t= 1524141077; x=1525005078; bh=Ntc7yIAszYEfYTT4jQL83Vktv32weSa30w+ AROu1z20=; b=J6Laowvp4jmOtNFlQ1Yu4F8eTUPm/9Mqh4uOkPb2kheGTgI1Z+K tBkkelvbPGox7NuF2OTzJoJM4rSUbm7Jjwj0IZq+PdSoLjSRGFDrlUZIZDFRPKhF hHP4p1KdCc6a1Yzze50L6CtQlzs3FzmLnUj2bXzS3n2rX7f+pr8BCBQI= X-Virus-Scanned: Debian amavisd-new at mail.micronovasrl.com X-Spam-Flag: NO X-Spam-Score: -2.898 X-Spam-Level: X-Spam-Status: No, score=-2.898 tagged_above=-10 required=4.5 tests=[ALL_TRUSTED=-1, BAYES_00=-1.9, LOTS_OF_MONEY=0.001, URIBL_BLOCKED=0.001] autolearn=unavailable autolearn_force=no Received: from mail.micronovasrl.com ([127.0.0.1]) by mail.micronovasrl.com (mail.micronovasrl.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 9yoIJN7PwUpe for ; Thu, 19 Apr 2018 14:31:17 +0200 (CEST) Received: from [192.168.2.71] (62-11-51-166.dialup.tiscali.it [62.11.51.166]) by mail.micronovasrl.com (Postfix) with ESMTPSA id 69D97B002BB; Thu, 19 Apr 2018 14:31:12 +0200 (CEST) Subject: Re: [PATCH 4/6] drm/panel: simple: Add support for Banana Pi 7" S070WV20-CT16 panel To: Chen-Yu Tsai , Maxime Ripard , David Airlie , Thierry Reding , Rob Herring , Mark Rutland Cc: dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Jonathan Liu References: <20180419093225.614-1-wens@csie.org> <20180419093225.614-5-wens@csie.org> From: Giulio Benetti Message-ID: <58ce9e3b-00ee-87d2-f05b-b9f1414d1cfa@micronovasrl.com> Date: Thu, 19 Apr 2018 14:31:13 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <20180419093225.614-5-wens@csie.org> Content-Type: text/plain; charset=iso-8859-15; format=flowed Content-Language: it Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? -- 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, >