Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp4740419imm; Mon, 14 May 2018 12:10:09 -0700 (PDT) X-Google-Smtp-Source: AB8JxZq2eUq869BApC817AlzX3qgr+txE3vpLZuNY8kwPZt539N0uF0wyKx8Ey+JObQJBPc8gPaw X-Received: by 2002:a65:5008:: with SMTP id f8-v6mr5637080pgo.349.1526325009400; Mon, 14 May 2018 12:10:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526325009; cv=none; d=google.com; s=arc-20160816; b=cm/2YkdL3o26fzJyKng2YLK/DsckWn/elwoX3BYkNpHkk9c0E4TbaMeFUKj5DCOR30 Hya1Djk0MlTsk2BPkUQZWiqg9uWrdHfoVaN6OsKT2mCu8DTF0ZpQVNwVY+hMxj6S7v+F QA8DDc2tdtzzDX8Au/xLSGJQ0mmG0WGgw7CiCyMR0qWy4xxn5O5g55yPUfeVQ017yJE8 QWLjmBZ0Xml5auBH/jJhr+B8hWvCPuI2jrECl9Xb8Cibu7LiSFUdoYg8Tl3yk0sZL/hE Y+EylY7UsIkohJWGtZpchYhhwSxMCe5X3i0qHWO46Cc6thkGxvBqgXNWpXInIpxwLqvO z2mw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=9iHL4jj6f5ok029QqFUCHIMY52lQjAxbUs/1qrAqM6Y=; b=PjxMD/XrPXfNliimRfEructL/hkjnzA+GnHRwLFiIu1rD93jZ6Nim30QFUNGayl7lL hxtwY1FdofoqMBI8D+FrxV24/QWxNCEuam+MTQX/8KgOvxX0oUQh7NAXb3/EPYgC9zbF a7N34rB2OJpWyho3gw+1wE6DvhzouYQAsvO4FOu0RZPJPyVKfaOY5wLJcL06Vn+9JhOV 8148G72nQEcjDBWAgN+nLFCY0UZGdkVnQNAt4y1wIIfuQlHkYLIfotU+sdJDQSmwhXbb btyGyrlj4XtxfiKq4ktCLzA92UVvNuCkejJZk3ydJHazH8FEjEgvY4n1+9rp5MPpIfAt OWRQ== 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 y12-v6si10201815plt.233.2018.05.14.12.09.55; Mon, 14 May 2018 12:10: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; 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 S1752019AbeENTJn (ORCPT + 99 others); Mon, 14 May 2018 15:09:43 -0400 Received: from mail-out.m-online.net ([212.18.0.10]:35673 "EHLO mail-out.m-online.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751927AbeENTJm (ORCPT ); Mon, 14 May 2018 15:09:42 -0400 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 40l9HS1DT7z1qvNp; Mon, 14 May 2018 21:09:40 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 40l9HS0RNqz1qqkX; Mon, 14 May 2018 21:09:40 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id U56ptKjPPg8Z; Mon, 14 May 2018 21:09:37 +0200 (CEST) X-Auth-Info: sqZ0C4cLClHqteacMzKCeWtSukTJGX+f29tW+5JGSLw= Received: from localhost.localdomain (85-222-111-42.dynamic.chello.pl [85.222.111.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Mon, 14 May 2018 21:09:37 +0200 (CEST) From: Lukasz Majewski To: Rob Herring , Mark Rutland , Thierry Reding , David Airlie Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, Rob Herring , linux-kernel@vger.kernel.org, Lukasz Majewski Subject: [PATCH v3 RESEND] display: panel: Add AUO g070vvn01 display support (800x480) Date: Mon, 14 May 2018 21:08:49 +0200 Message-Id: <20180514190849.18723-1-lukma@denx.de> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180410102927.17787-1-lukma@denx.de> References: <20180410102927.17787-1-lukma@denx.de> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This commit adds support for AUO's 7.0" display. Signed-off-by: Lukasz Majewski Reviewed-by: Rob Herring --- Changes for v3: - Remove not used 'bus-format-override = "rgb565";' property Changes for v2: - Add *.txt suffix to the auo,g070wn01 file --- .../bindings/display/panel/auo,g070vvn01.txt | 29 ++++++++++++++++++++ drivers/gpu/drm/panel/panel-simple.c | 31 ++++++++++++++++++++++ 2 files changed, 60 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/auo,g070vvn01.txt diff --git a/Documentation/devicetree/bindings/display/panel/auo,g070vvn01.txt b/Documentation/devicetree/bindings/display/panel/auo,g070vvn01.txt new file mode 100644 index 000000000000..49e4105378f6 --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/auo,g070vvn01.txt @@ -0,0 +1,29 @@ +AU Optronics Corporation 7.0" FHD (800 x 480) TFT LCD panel + +Required properties: +- compatible: should be "auo,g070vvn01" +- backlight: phandle of the backlight device attached to the panel +- power-supply: single regulator to provide the supply voltage + +Required nodes: +- port: Parallel port mapping to connect this display + +This panel needs single power supply voltage. Its backlight is conntrolled +via PWM signal. + +Example: +-------- + +Example device-tree definition when connected to iMX6Q based board + + lcd_panel: lcd-panel { + compatible = "auo,g070vvn01"; + backlight = <&backlight_lcd>; + power-supply = <®_display>; + + port { + lcd_panel_in: endpoint { + remote-endpoint = <&lcd_display_out>; + }; + }; + }; diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c index cbf1ab404ee7..d9984bdb5bb5 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -581,6 +581,34 @@ static const struct panel_desc auo_b133htn01 = { }, }; +static const struct display_timing auo_g070vvn01_timings = { + .pixelclock = { 33300000, 34209000, 45000000 }, + .hactive = { 800, 800, 800 }, + .hfront_porch = { 20, 40, 200 }, + .hback_porch = { 87, 40, 1 }, + .hsync_len = { 1, 48, 87 }, + .vactive = { 480, 480, 480 }, + .vfront_porch = { 5, 13, 200 }, + .vback_porch = { 31, 31, 29 }, + .vsync_len = { 1, 1, 3 }, +}; + +static const struct panel_desc auo_g070vvn01 = { + .timings = &auo_g070vvn01_timings, + .num_timings = 1, + .bpc = 8, + .size = { + .width = 152, + .height = 91, + }, + .delay = { + .prepare = 200, + .enable = 50, + .disable = 50, + .unprepare = 1000, + }, +}; + static const struct drm_display_mode auo_g104sn02_mode = { .clock = 40000, .hdisplay = 800, @@ -2095,6 +2123,9 @@ static const struct of_device_id platform_of_match[] = { .compatible = "auo,b133xtn01", .data = &auo_b133xtn01, }, { + .compatible = "auo,g070vvn01", + .data = &auo_g070vvn01, + }, { .compatible = "auo,g104sn02", .data = &auo_g104sn02, }, { -- 2.11.0