Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp2008223ima; Thu, 25 Oct 2018 08:14:38 -0700 (PDT) X-Google-Smtp-Source: AJdET5ctwEqpXCLoDeuCRTDEosqAjmXTxSGTiPwWoh+AFtGQKPQNqsuwzYabff9Tlz0QPteE3c87 X-Received: by 2002:a17:902:5066:: with SMTP id f35-v6mr1865715plh.145.1540480478846; Thu, 25 Oct 2018 08:14:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540480478; cv=none; d=google.com; s=arc-20160816; b=p+jHHo/9gVPDOBJyu+8GDCHNbnVcKjVO1AUJVtdeXS/JJQP/cmsEKODyLD8BGdDGAP wOvEu3Xc3XQuem4pN7EiODjVMicvuzepauvKn22wTgM7n884MWTtNpubtWgKopkvbRIA 1wb2+oPJufd1D/Nf9gGhShmo3SSbs/cIVSAUlJeweYQ8HUqBG9BwSjC1WZ+aASfE/AZ/ O0I3yuWCyUFT5pZfRs3Iq09SZvtHRgv5hsjClo7B6hvqUkqhNp9BDwrxJPkemZicHcYv NU55W/mQ+YFvD6j+SIRKievuzskBXuJhGCNhNCksgA/bPOYiQTiBDmVgjaEtOvgCVVI+ 2ENQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=bz01CxU+O8iOs5cqk11kltzHZMISIekMfOeMTJq+eVI=; b=bEVnV7AzcClDPFJYJ6lVQSkIhnb+ySpZK66T+3T6h7bclNflj4oEq/k24gV+i/59dT 2QVWlcOKh+26ikjMf8uQ8nLNG/phm8M49nj+F2ECacvBbrQ3wC6mDx12gjKbMBWCrU+r Sc7dHqG0onyU/pZxHgU5j5Bn1zZ38n1ijC6CPkV9hXlwirIEY76g7VishXExk55P4Iv5 phlom9HiPpVvNmNacsMv4sLeuEtjEkb9oohK5tcxQ5BNKMIlw2k45k51fxooCdl7TtfY WnFDiOokfcnhu2OF62uqtsehd8KXRa9P9Cxpzb59ygjfgifJz+Bv6ywyK79udL6GKHky OFXg== 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 14-v6si285535pfw.217.2018.10.25.08.14.08; Thu, 25 Oct 2018 08:14:38 -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 S1727450AbeJYXnB (ORCPT + 99 others); Thu, 25 Oct 2018 19:43:01 -0400 Received: from mail1.bemta23.messagelabs.com ([67.219.246.211]:45709 "EHLO mail1.bemta23.messagelabs.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727357AbeJYXnA (ORCPT ); Thu, 25 Oct 2018 19:43:00 -0400 Received: from [67.219.247.53] (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256 bits)) by server-4.bemta.az-d.us-east-1.aws.symcld.net id 22/83-11391-ABCD1DB5; Thu, 25 Oct 2018 15:09:46 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprDKsWRWlGSWpSXmKPExsXi5LtOQHfXnYv RBv8WKVn0njvJZDH/yDlWiytf37NZbNx8m8Vi1dSdLBabHl9jtej6tZLZ4vKuOWwWS69fZLJo 3XuE3eLv9k0sFi+2iFv83DWPxYHXY828NYweO2fdZffYtKqTzWP7twesHve7jzN5bF5S77Hx3 Q4mj/6/Bh6fN8kFcEaxZuYl5VcksGbsPzuLqeCkUMXz9ZsZGxhv8ncxcnEICaxmlFg2cQkrhL OGUWL+ye1sEM4WRok7X++wdzFycrAJ6EhM2X+YBcQWEciV2P14B1gHs8AUJonT33axgSSEBbw lHj0/wwRiswioSsz5upgRxOYVcJNoejEDrFlCQE7i5rlOZhCbU8Bd4srU+awgthBQzYJL/9gh 6gUlTs58AlbPLCAhcfDFC2aIGmWJLSsuMELMUZBYe+A80wRGgVlIWmYhaVnAyLSK0TypKDM9o yQ3MTNH19DAQNfQ0AiIdY0MTfQSq3RT9EqLdVMTi0t0DfUSy4v1iitzk3NS9PJSSzYxAmMtpY D72g7GnV3phxglOZiURHkTUy5GC/El5adUZiQWZ8QXleakFh9ilOHgUJLgTboNlBMsSk1PrUj LzAFGPUxagoNHSYT3HEiat7ggMbc4Mx0idYpRUUqctx0kIQCSyCjNg2uDJZpLjLJSwryMDAwM QjwFqUW5mSWo8q8YxTkYlYR5NUGm8GTmlcBNfwW0mAlo8QyFCyCLSxIRUlINjAfTt9ZzXeZve q9lyZd6zXoyn/jaxKjIq52H1lxcnei+bX1htsq9nY0BSkpd9h1ctiaZAsdkw/QWLun3/S9mp7 jGpaW0pejCSe4wQ6npLydW/oz45O09wyBny7eCnQuKDvVy+zOWXfc+KKS3SOjYB2EV81XPl79 gT682lpulwbFscaJo+MISJZbijERDLeai4kQA0bdNjC8DAAA= X-Env-Sender: Alex.Gonzalez@digi.com X-Msg-Ref: server-28.tower-425.messagelabs.com!1540480185!1231612!2 X-Originating-IP: [66.77.174.16] X-SYMC-ESS-Client-Auth: outbound-route-from=pass X-StarScan-Received: X-StarScan-Version: 9.14.24; banners=-,-,- X-VirusChecked: Checked Received: (qmail 7606 invoked from network); 25 Oct 2018 15:09:46 -0000 Received: from owa.digi.com (HELO MCL-VMS-XCH01.digi.com) (66.77.174.16) by server-28.tower-425.messagelabs.com with DHE-RSA-AES256-GCM-SHA384 encrypted SMTP; 25 Oct 2018 15:09:46 -0000 Received: from MTK-SMS-XCH02.digi.com (10.10.8.196) by MCL-VMS-XCH01.digi.com (10.5.8.49) with Microsoft SMTP Server (TLS) id 14.3.408.0; Thu, 25 Oct 2018 10:09:45 -0500 Received: from DOR-SMS-XCH01.digi.com (10.49.8.99) by MTK-SMS-XCH02.digi.com (10.10.8.196) with Microsoft SMTP Server (TLS) id 14.3.408.0; Thu, 25 Oct 2018 10:09:45 -0500 Received: from log-linux-hp-agonzal.digi.com (10.101.2.214) by dor-sms-xch01.digi.com (10.49.8.99) with Microsoft SMTP Server (TLS) id 14.3.408.0; Thu, 25 Oct 2018 17:09:43 +0200 From: Alex Gonzalez To: , , , CC: , , , , , , , , , Subject: [PATCH v1 1/4] drm/panel: simple: Add AUO G101EVN010 panel support Date: Thu, 25 Oct 2018 17:09:30 +0200 Message-ID: <1540480173-12009-2-git-send-email-alex.gonzalez@digi.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1540480173-12009-1-git-send-email-alex.gonzalez@digi.com> References: <1540480173-12009-1-git-send-email-alex.gonzalez@digi.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.101.2.214] Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The change adds support for the AU Optronics G101EVN010 10.1" TFT LCD panel. Signed-off-by: Alex Gonzalez --- .../bindings/display/panel/auo,g101evn010 | 12 ++++++++++ drivers/gpu/drm/panel/panel-simple.c | 27 ++++++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/auo,g101evn010 diff --git a/Documentation/devicetree/bindings/display/panel/auo,g101evn010 b/Documentation/devicetree/bindings/display/panel/auo,g101evn010 new file mode 100644 index 000000000000..bc6a0c858e23 --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/auo,g101evn010 @@ -0,0 +1,12 @@ +AU Optronics Corporation 10.1" (1280x800) color TFT LCD panel + +Required properties: +- compatible: should be "auo,g101evn010" +- power-supply: as specified in the base binding + +Optional properties: +- backlight: as specified in the base binding +- enable-gpios: as specified in the base binding + +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 97964f7f2ace..65a0dd166637 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -631,6 +631,30 @@ static const struct panel_desc auo_g104sn02 = { }, }; +static const struct drm_display_mode auo_g101evn010_mode = { + .clock = 68930, + .hdisplay = 1280, + .hsync_start = 1280 + 82, + .hsync_end = 1280 + 82 + 2, + .htotal = 1280 + 82 + 2 + 84, + .vdisplay = 800, + .vsync_start = 800 + 8, + .vsync_end = 800 + 8 + 2, + .vtotal = 800 + 8 + 2 + 6, + .vrefresh = 60, +}; + +static const struct panel_desc auo_g101evn010 = { + .modes = &auo_g101evn010_mode, + .num_modes = 1, + .bpc = 6, + .size = { + .width = 216, + .height = 135, + }, + .bus_format = MEDIA_BUS_FMT_RGB666_1X18, +}; + static const struct display_timing auo_g133han01_timings = { .pixelclock = { 134000000, 141200000, 149000000 }, .hactive = { 1920, 1920, 1920 }, @@ -2355,6 +2379,9 @@ static const struct of_device_id platform_of_match[] = { .compatible = "auo,g104sn02", .data = &auo_g104sn02, }, { + .compatible = "auo,g101evn010", + .data = &auo_g101evn010, + }, { .compatible = "auo,g133han01", .data = &auo_g133han01, }, {