From patchwork Wed Nov 21 08:48:02 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eugen Hristev X-Patchwork-Id: 10692153 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A83B614DE for ; Wed, 21 Nov 2018 08:48:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 963542B23F for ; Wed, 21 Nov 2018 08:48:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8A0DB2B243; Wed, 21 Nov 2018 08:48:50 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.6 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 30B622B23F for ; Wed, 21 Nov 2018 08:48:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:In-Reply-To:References: Message-ID:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=e51gDCeNaortY69qURd4Bg9lf/p1mYMDaORnOykuitc=; b=JaF4VSidrKTEKb WGoNRRjzInJ5ISc3s9ZfAH3YuxwCjDxXNj+tHGLzWUg/sSlJ2ARcaQNoWkkpvpqZL1lIvOmefBhHg IQHPMXW0SuncyL8oRZg/ho5ZIV1UVfwVVFMbEaXOaPlMYnJzEYaRCXRQoa+rbnDn2OSrSV4K/XAc6 8dZsz5kj8qDGeVB4OBkzZ9IWP1UTsiycKohz2qAUjvMyGWKVr/5H6O/2f8opOOMhHXOdEwsp3gUM+ VaajzpU0XpmaTUhK7A19fmhM/l5sLDE98zveQAZFc+nRX8YHcVeI9ICkKdC6S3anhPj4x2bLway7Z 6DQxtKWog9YaVPQKMRXw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gPOBk-0007vd-AX; Wed, 21 Nov 2018 08:48:48 +0000 Received: from esa4.microchip.iphmx.com ([68.232.154.123]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gPOBE-00074h-CP for linux-arm-kernel@lists.infradead.org; Wed, 21 Nov 2018 08:48:19 +0000 X-IronPort-AV: E=Sophos;i="5.56,260,1539673200"; d="scan'208";a="23076084" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa4.microchip.iphmx.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 21 Nov 2018 01:48:04 -0700 Received: from NAM04-CO1-obe.outbound.protection.outlook.com (10.10.215.89) by email.microchip.com (10.10.76.107) with Microsoft SMTP Server (TLS) id 14.3.352.0; Wed, 21 Nov 2018 01:48:04 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microchiptechnology.onmicrosoft.com; s=selector1-microchiptechnology-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=4pS4qmhByiUwDkUVgLjGLnwXLsRfsxBRrJ1Q0hYkjEk=; b=N4kSDmbV1xcNJHCJ0vs7XtOHv71rrJYmU7iLrzhVW0Jj7Zz2yIadcqyuXBcgI8DXaVxvIjOtzEiXzSg/Q/ml/awG1perDkfrctgKsozes0662sTGasuIF3PjblpzShdeEzztr2NzRr4YlpLCl8niFn7PQV044CLVtXkdCa/W900= Received: from DM5PR11MB1242.namprd11.prod.outlook.com (10.168.108.8) by DM5PR11MB0073.namprd11.prod.outlook.com (10.164.155.142) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1294.31; Wed, 21 Nov 2018 08:48:02 +0000 Received: from DM5PR11MB1242.namprd11.prod.outlook.com ([fe80::f46d:c17e:bb65:5e0f]) by DM5PR11MB1242.namprd11.prod.outlook.com ([fe80::f46d:c17e:bb65:5e0f%3]) with mapi id 15.20.1339.027; Wed, 21 Nov 2018 08:48:02 +0000 From: To: , , , , , , , , Subject: [PATCH 3/3] drm/panel: simple: add support for PDA 91-00156-A0 panel Thread-Topic: [PATCH 3/3] drm/panel: simple: add support for PDA 91-00156-A0 panel Thread-Index: AQHUgXbpALTSyb2E+k2kjADrWyV93Q== Date: Wed, 21 Nov 2018 08:48:02 +0000 Message-ID: <1542789804-4584-4-git-send-email-eugen.hristev@microchip.com> References: <1542789804-4584-1-git-send-email-eugen.hristev@microchip.com> In-Reply-To: <1542789804-4584-1-git-send-email-eugen.hristev@microchip.com> Accept-Language: ro-RO, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: VI1PR0101CA0063.eurprd01.prod.exchangelabs.com (2603:10a6:800:1f::31) To DM5PR11MB1242.namprd11.prod.outlook.com (2603:10b6:3:14::8) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Eugen.Hristev@microchip.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [94.177.32.154] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; DM5PR11MB0073; 6:H7/mzWE8IlT8uBVwXM0y+nr7I6PhpvfXOkxGfEDNjHqyB1eychp+rwncIsFAX3n6RXfreVk97ie6PdrU2+i0JmdXF/GW+iPxEPEwdgRpCByxG0MUfQJMi8n4BHH1FLeHzD8AaXzfbNaIwzB9T9Zc2AKXCgrlQ6yqYAjli7obHKp9rGegQMKopW5qm8xS/Jy1YVtE5fxdXPx5x08XY2Fn1//qv6H5dVqroa7mC0mJQNd+nMqKSoCYIE5Ada7Fzu6I42Cu8X+DAqXnjl7vcm1Jr23VijXtSxfA8sK9xoLape8+4b1ourzeciZs4Stt2LdVoN0kRd2sOvYdDXhLr/XZj5cZYvY6ep4c1/o2hPXMvVP3BTdnT/xhaxabqpeLT16qplhN0L87up4h9iaWwChcFDZPm7g5DdhBXbvong1Bg6nXIHBTHKqtXj4MuIqVfvpjeoMvA3Sl1DceFGsxTFS9ZA==; 5:tdXrpXSVBEVFLObhd+KMnDj74enZ1r2vbqeRUxf4LB8gKuDh43qL6pt4Hgbn06L80XuQR7nofnLpkWLGHZTme4CEwF5Cke3h9CViEli2Tz1opVx/8pGa3CfMikXMgRClr7ekd70A9VXejq4vBs9i8nXXCjCZLO+DnuTdQA9FMAk=; 7:95svYdYq7Vkxshficj7y3L5xqkcpDXG2aOkG1Zita5Up0eoi06jXUiOHMbxAkKgzoh06dFdW/DPJIc9tcBCaGtkWAxcekNFfsBvxhbsIwsqauh/SVeB2A8Ba/lpKrEugVy+RSUXJZyJ/QZSr/VYh9w== x-ms-office365-filtering-correlation-id: 85b21517-bdf1-4339-b5ec-08d64f8e0bde x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390098)(7020095)(4652040)(8989299)(5600074)(711020)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(7193020); SRVR:DM5PR11MB0073; x-ms-traffictypediagnostic: DM5PR11MB0073: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040522)(2401047)(8121501046)(5005006)(93006095)(93001095)(3002001)(3231442)(944501410)(52105112)(10201501046)(148016)(149066)(150057)(6041310)(20161123562045)(20161123564045)(20161123560045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699051)(76991095); SRVR:DM5PR11MB0073; BCL:0; PCL:0; RULEID:; SRVR:DM5PR11MB0073; x-forefront-prvs: 08635C03D4 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(396003)(346002)(39860400002)(376002)(136003)(366004)(189003)(199004)(52116002)(106356001)(186003)(99286004)(5660300001)(2906002)(26005)(14454004)(7736002)(2501003)(105586002)(102836004)(386003)(6506007)(81156014)(305945005)(76176011)(8936002)(8676002)(71190400001)(71200400001)(68736007)(3846002)(256004)(66066001)(36756003)(72206003)(6116002)(2616005)(81166006)(478600001)(476003)(6512007)(2201001)(6486002)(446003)(11346002)(486006)(6436002)(107886003)(97736004)(39060400002)(4326008)(53936002)(6636002)(2900100001)(316002)(25786009)(110136005)(54906003)(86362001)(575784001); DIR:OUT; SFP:1101; SCL:1; SRVR:DM5PR11MB0073; H:DM5PR11MB1242.namprd11.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: microchip.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: G/Trl1BP3ePM9A8ZG46rEhvAGV4co07nrq2Kxfq2DYacQJGybiE9YU4qNBNR5GiLgelhkljzEIbqMgN6PYdAxxXYA4cWs7dLplv99dU8FLmlMjGo5FColKDFDjFVj04vm8kwYdHDdLT2zg2EA//aviCAxSjGnkB4n3JJMCP3H9jouOiOfn6lRLXGIKoSmzGTHw3bfEalrS2zH6ygNXUO9tsCF8D5OYZpCgWAZHj6/hEYA+ttu1VbTF6Rah3jz09fyEJiRYA7Z3d0AdXnQ+90fMA8WKNi0jmvPoOEjaQqF0vfCkqOT4qGGWtr9FRHiEZD0TmS2Mc1IrVHl1/bFiMgZUkfavNl2HA4kEGoHZW4OYc= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 85b21517-bdf1-4339-b5ec-08d64f8e0bde X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Nov 2018 08:48:02.4900 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3f4057f3-b418-4d4e-ba84-d55b4e897d88 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR11MB0073 X-OriginatorOrg: microchip.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181121_004816_775005_125E576B X-CRM114-Status: GOOD ( 11.17 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Eugen.Hristev@microchip.com, Cristian.Birsan@microchip.com Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP PDA 91-00156-A0 5.0 is a 5.0" WVGA TFT LCD panel. This panel with backlight is found in PDA 5" LCD screen (TM5000 series or AC320005-5). Signed-off-by: Eugen Hristev --- drivers/gpu/drm/panel/panel-simple.c | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/panel-simple.c index 5fbee83..3fc9d0b 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -1984,6 +1984,30 @@ static const struct panel_desc ortustech_com43h4m85ulc = { .bus_flags = DRM_BUS_FLAG_DE_HIGH | DRM_BUS_FLAG_PIXDATA_POSEDGE, }; +static const struct drm_display_mode pda_91_00156_a0_mode = { + .clock = 33300, + .hdisplay = 800, + .hsync_start = 800 + 1, + .hsync_end = 800 + 1 + 64, + .htotal = 800 + 1 + 64 + 64, + .vdisplay = 480, + .vsync_start = 480 + 1, + .vsync_end = 480 + 1 + 23, + .vtotal = 480 + 1 + 23 + 22, + .vrefresh = 60, +}; + +static const struct panel_desc pda_91_00156_a0 = { + .modes = &pda_91_00156_a0_mode, + .num_modes = 1, + .size = { + .width = 152, + .height = 91, + }, + .bus_format = MEDIA_BUS_FMT_RGB888_1X24, +}; + + static const struct drm_display_mode qd43003c0_40_mode = { .clock = 9000, .hdisplay = 480, @@ -2659,6 +2683,9 @@ static const struct of_device_id platform_of_match[] = { .compatible = "ortustech,com43h4m85ulc", .data = &ortustech_com43h4m85ulc, }, { + .compatible = "pda,91-00156-a0", + .data = &pda_91_00156_a0, + }, { .compatible = "qiaodian,qd43003c0-40", .data = &qd43003c0_40, }, {