Received: by 10.213.65.68 with SMTP id h4csp3343192imn; Tue, 3 Apr 2018 03:17:10 -0700 (PDT) X-Google-Smtp-Source: AIpwx49h+/SUHRy7oKEywQDMhquMc7THcGnaJwLK/mXJ8X0YJcOjj5eShPKSeo12VVAXC0pZKlO7 X-Received: by 2002:a17:902:468:: with SMTP id 95-v6mr13677561ple.360.1522750630407; Tue, 03 Apr 2018 03:17:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522750630; cv=none; d=google.com; s=arc-20160816; b=aBdYdbQ7Zkyb5OITJY/QZwYiFSK2D0S07wxZINLg+gcbZNo6e599yH1TgeSeX1F4/x 3AiCbkrDrZu4Oxc+rVWwo066tpJItmnneTEb6Exf/X9iLRP+rVTtSnpOTZoADiAVF2sV o32BhtZ0XEPOXd40gtnOoGm7sWvAHzqqwki+umMCJA5LhI35INE3gxRu9dGlP3Ghk3LK 2hwgVJr3qBAuyw6eS2nBB/V64/65oOS8wX6L/KnZoLeEwyqYRKwAKute1MekEd3GBEio 8zwWvwMf8PlCWofms6XWmk31ngZlXw8xTfZEuclGuBKVETZPI5Az/10oeA2+VhlLt8x7 YBDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=eHqj+c+pJ9Jdqr8SUNLht6Vld1Uufn4hBElYdGXVg+Y=; b=vNQvCH3AN71GCTC5m7987H/nUvy+XfB6OsoN/9J14IsPZubS2evtbv8DV8irr3CrWo FoW4Zs3AY+j4vs1Par6kzAB2vJOQ0Ndy9FJv3AjP6lrvz5KTFoXrI9qRXiEE0Cf7Z8dS ThgOBNiGRZ7XtHoAwR5HDXK1DTalWf97hlczW+DoakJ9EwCJ/kTc1spCuwyZTTKHPLjO UjbLPiVcE/IVcKh0N1NIjrrUv13Toq6mRQAD7R9EMwS4q/t717JvtlvjTfYYnXYg2RxW MieuiztO1P5NtN3JUaIBftVOoMul9g36tnUbO1qGOH5aIP6NI9I28oxj652EN4zbhjAh 3BRw== 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 f22si1766071pga.497.2018.04.03.03.16.55; Tue, 03 Apr 2018 03:17:10 -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 S1755043AbeDCKPr (ORCPT + 99 others); Tue, 3 Apr 2018 06:15:47 -0400 Received: from mail-out.m-online.net ([212.18.0.10]:50149 "EHLO mail-out.m-online.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754838AbeDCKPq (ORCPT ); Tue, 3 Apr 2018 06:15:46 -0400 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 40FlNH60Pkz1qwHM; Tue, 3 Apr 2018 12:15:43 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 40FlNH56FHz1qqkH; Tue, 3 Apr 2018 12:15:43 +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 oFYfjIRyNMd0; Tue, 3 Apr 2018 12:15:41 +0200 (CEST) X-Auth-Info: jH421ovmOFdgEFnq8pedUc8JHXFodeH0kG3Gs4UJCWY= 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; Tue, 3 Apr 2018 12:15:41 +0200 (CEST) From: Lukasz Majewski To: Thierry Reding , David Airlie , Rob Herring , Mark Rutland , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Lukasz Majewski Subject: [PATCH] display: panel: Add AUO g070vvn01 display support (800x480) Date: Tue, 3 Apr 2018 12:15:25 +0200 Message-Id: <20180403101525.22369-1-lukma@denx.de> X-Mailer: git-send-email 2.11.0 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 --- .../bindings/display/panel/auo,g070vvn01 | 30 +++++++++++++++++++++ drivers/gpu/drm/panel/panel-simple.c | 31 ++++++++++++++++++++++ 2 files changed, 61 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/auo,g070vvn01 diff --git a/Documentation/devicetree/bindings/display/panel/auo,g070vvn01 b/Documentation/devicetree/bindings/display/panel/auo,g070vvn01 new file mode 100644 index 000000000000..bd4017362094 --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/auo,g070vvn01 @@ -0,0 +1,30 @@ +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>; + bus-format-override = "rgb565"; + 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 5591984a392b..62314085b635 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 display_timing auo_g133han01_timings = { .pixelclock = { 134000000, 141200000, 149000000 }, .hactive = { 1920, 1920, 1920 }, @@ -2049,6 +2077,9 @@ static const struct of_device_id platform_of_match[] = { .compatible = "auo,b133xtn01", .data = &auo_b133xtn01, }, { + .compatible = "auo,g070vvn01", + .data = &auo_g070vvn01, + }, { .compatible = "auo,g133han01", .data = &auo_g133han01, }, { -- 2.11.0