Received: by 10.192.165.156 with SMTP id m28csp704760imm; Thu, 19 Apr 2018 06:17:09 -0700 (PDT) X-Google-Smtp-Source: AIpwx49zOShl/MWgCBZWLE5HeGzKjt7ZoFR2cWQnJ5Sh0lo6sH6cLtfbqEWROavqEPViKOffJQLg X-Received: by 2002:a17:902:28e8:: with SMTP id f95-v6mr2813345plb.250.1524143829183; Thu, 19 Apr 2018 06:17:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524143829; cv=none; d=google.com; s=arc-20160816; b=Rup8nEybSnSAgEArPvYftaCHbpFIGUFfqGhoijN9ffpUMfIFW2/UHe4BV1w26MtGD/ 7DMNTL4hOMq42GeWmyQC6VVV973ByqOFUpVVSXibJbudBrOSl3N0nKG51267S2/XLeao zGWLNxJ/MZwF4aZvLKuCBCeZPPGdriMJ59eNWH64EsnxYG7AqFVVBB4WnAMBYr9re2Tv n5uxGJhu82u87O+8FrmeC7I1Lx5LTY+imFxeoJozwVqrwmQ5j41JQ4/sO0GDPrYJ/qrq xcSZYZUcwERsOR0qOlljAcRxnQvU4rRGg9yoO14QQGqhaWtTqLFQ1HRJLy9lZWdL7Gaj /+ag== 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=texZJvefcjfUv5DYxtDQ00DDvbeI5sY4cQMSjebt9ww=; b=fuOiuCmUW0PhbAf3lXydjpaxMUq8JozMuaHu2nZCUnA1LbLEv8jvwt5Uy3r7Ye5Oly nl9bYj7JnypRsB5GMqhOnc79gC5hrnbbS7HDbM2LSsI9h37+oucJxpjwIzASeWd93piw i/dJOqsO2ujps0YWoBjPKOPVqLXwFR1+lU07RS5q98cZuhpkzAIvZHPRdztw+Qo1sXvf TgtUMrQo7QnJjqGPHJzTul83fNcRIDuk6tOqpHXevk4MSUzryvcEpmbTxmk+tD+h/h/J R/oGVbIV7SgQx0PWcrxsnKaHhnvQty20o0XeOEH29mpMz4zr6l7/pGyBqzY+5CSAQVnE Fv2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=temperror (no key for signature) header.i=@micronovasrl.com header.s=dkim header.b=K83iW8oW; 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 k6-v6si3377118pla.509.2018.04.19.06.16.54; Thu, 19 Apr 2018 06:17:09 -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=K83iW8oW; 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 S1752924AbeDSNPV (ORCPT + 99 others); Thu, 19 Apr 2018 09:15:21 -0400 Received: from mail.micronovasrl.com ([212.103.203.10]:58918 "EHLO mail.micronovasrl.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752854AbeDSNPT (ORCPT ); Thu, 19 Apr 2018 09:15:19 -0400 Received: from mail.micronovasrl.com (mail.micronovasrl.com [127.0.0.1]) by mail.micronovasrl.com (Postfix) with ESMTP id 80073B008C7 for ; Thu, 19 Apr 2018 15:15: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= 1524143717; x=1525007718; bh=2135lPXJ7NUuGyL71C2dyoq5UtkPweEW9f0 Gub42s/g=; b=K83iW8oW8qQ7NO33BedRwKxQMMtX4WRbPMpJoWy1shScP55vSGb VmJ56EI06LjNqOUVLu6BxJNFGrjyRkJc9vnXNztFpCfeOyECnc3ePkJN425HWnkG hARyEAk+emGviDvKD4nPitRQUu6IHBuW4vZu63XbrMzD4uLloBVPjDYI= X-Virus-Scanned: Debian amavisd-new at mail.micronovasrl.com X-Spam-Flag: NO X-Spam-Score: -2.899 X-Spam-Level: X-Spam-Status: No, score=-2.899 tagged_above=-10 required=4.5 tests=[ALL_TRUSTED=-1, BAYES_00=-1.9, 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 A3Zgl1ZvFbsj for ; Thu, 19 Apr 2018 15:15:17 +0200 (CEST) Received: from [192.168.123.59] (unknown [192.168.123.59]) by mail.micronovasrl.com (Postfix) with ESMTPSA id E8585B000E3; Thu, 19 Apr 2018 15:15:12 +0200 (CEST) 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 References: <20180419093225.614-1-wens@csie.org> <20180419093225.614-5-wens@csie.org> <58ce9e3b-00ee-87d2-f05b-b9f1414d1cfa@micronovasrl.com> From: Giulio Benetti Message-ID: <3341fcae-2146-b3b4-be41-b7e5167c2147@micronovasrl.com> Date: Thu, 19 Apr 2018 15:15: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: Content-Type: text/plain; charset=utf-8; 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 14:45, Chen-Yu Tsai ha scritto: > 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. Ah ok, my fault, I didn't see it has a PCB attached with Banana Pi logo. Also it makes a lot of sense what you say about people looking for display. > > 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? :) that's right. Best regards -- 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 > > 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, >>> >> >> >> > -- > To unsubscribe from this list: send the line "unsubscribe devicetree" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html >