From patchwork Mon Jan 14 09:43:31 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eugen Hristev X-Patchwork-Id: 10761843 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 5FCBA13B4 for ; Mon, 14 Jan 2019 09:49:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4C33028AAE for ; Mon, 14 Jan 2019 09:49:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 404F728AB7; Mon, 14 Jan 2019 09:49:38 +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=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED 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 D8C6D28AAE for ; Mon, 14 Jan 2019 09:49:37 +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=finR72U2oZgPxdKvLr5HNlOhENVRJwNjc6R0t3BpIwg=; b=fzL3F0ahB5lT5M Q6dOe09KZ2ftHznyIMC99inc9s1EY6ciYcDgMvJRktggVhK2/4wstdiA2AX08DAoXI2wp/kKii0pe xU18sgM56f0ZoQZb5bPH76jh75/GUObG893nYtWOJuCQpSn41SVuXramSk4QaYdEwRZt/XgZ8wl7e dJAXp5REdZW0WkDC21VfwtiGM/3VYl+3oHrRcwZYLfk4xGI38anHqwvWOpLOeejmHeZXcjGnQCLXd M/UK+0kXWfPFZ9Mdat1LRSasibGK8SWJo+pzMzGjWVxebrNqNslC2aWgxkfYtSw6CJRM/rUZCB+Yz pmMxn+unwgxRstzhiIrw==; 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 1giysB-0005Yx-Ti; Mon, 14 Jan 2019 09:49:35 +0000 Received: from esa5.microchip.iphmx.com ([216.71.150.166]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1giymQ-0007a7-8D for linux-arm-kernel@lists.infradead.org; Mon, 14 Jan 2019 09:43:47 +0000 X-IronPort-AV: E=Sophos;i="5.56,477,1539673200"; d="scan'208";a="23351907" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa5.microchip.iphmx.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 14 Jan 2019 02:43:34 -0700 Received: from NAM01-SN1-obe.outbound.protection.outlook.com (10.10.215.89) by email.microchip.com (10.10.76.108) with Microsoft SMTP Server (TLS) id 14.3.352.0; Mon, 14 Jan 2019 02:43:33 -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=CjUC0Fh1aTOCEeAS0jT8fqnNFXHs4D1KCmlpqeO7WFM=; b=BCznmam7bzc1HLLJDc8iz2z07/6oSUQsCmEIT78qd7kFV70cajNAsTPd1XBvSWO0XCP0jbyOm0WEBi8kEjvluY7uDqBBttyIoQVfCuPDiQA6SrfNCFI9mzVCv+Pg1h36BM+9GlJFCUA2V/TWT64AiM16GdxRbF5oENryUR4bpP0= Received: from DM5PR11MB1242.namprd11.prod.outlook.com (10.168.108.8) by DM5PR11MB1675.namprd11.prod.outlook.com (10.172.38.136) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1516.14; Mon, 14 Jan 2019 09:43:31 +0000 Received: from DM5PR11MB1242.namprd11.prod.outlook.com ([fe80::4c19:f788:c2be:5e8f]) by DM5PR11MB1242.namprd11.prod.outlook.com ([fe80::4c19:f788:c2be:5e8f%4]) with mapi id 15.20.1516.019; Mon, 14 Jan 2019 09:43:31 +0000 From: To: , , , , , , , , Subject: [PATCH v2 3/3] drm/panel: simple: add support for PDA 91-00156-A0 panel Thread-Topic: [PATCH v2 3/3] drm/panel: simple: add support for PDA 91-00156-A0 panel Thread-Index: AQHUq+2crybztxbQ+0Gujmye0E0iaQ== Date: Mon, 14 Jan 2019 09:43:31 +0000 Message-ID: <1547458584-29548-4-git-send-email-eugen.hristev@microchip.com> References: <1547458584-29548-1-git-send-email-eugen.hristev@microchip.com> In-Reply-To: <1547458584-29548-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: VI1P190CA0017.EURP190.PROD.OUTLOOK.COM (2603:10a6:802:2b::30) 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; DM5PR11MB1675; 6:hSZzOwRW2ejxCCUjw/vtcTjeHtd+CNOFy++iBg5yWlEkzYKXAixPSclREKU83aN+fNLldU/dJw4gAOdtWr7B2juNksD/bLaGQu1XyzF+uCe3APSGUbRRgw8oUx3ViYNuo5M9zwVhrljh9Q/ko6PW7qyajwEBCd9dsNLM2FE3rJ6WbIIfWiTc3zpXoOlCoVLBTPBx4o4N9vTANPcYOvF/BcyixngmSgvKVxH1oLoPRk3cBKXK9fU4JAMr7mQ+todPk9tlLLc+kK8cIsIa84OIlf4PwrmFWm2iJp5JzGh+HE4oYECID9F5uy0VWuKXwOPSbUCySFtRUoP4NwK8wXQQa2+SXz1amWg2jg+TQcTCwNHlhXMztyTAAs+w+vqnGdmiaENckeJeeDxrg4dmX9+Djwzuo2g7p7+ebH/J3DmlwH5Zk6BOh9MKCsMkOOMBiZfuU17YOmw/zIggUswc5BSoTg==; 5:DNpxx6KdG/yziqNQp7R08XQjX5L7hNNL8tio6I6eOyf4SKrDhBX69sLLZRpmhQwSZacKA70uEcauHxpCDyRNRjCKsyI9NkCS/CthjEhJrpNrPpNat9zIQ+bmamuFfby6qPf1OmOQVHbX7CLI8gEcu8bfaAcRE63caRqUZLAYVzxWO8v/JxgyZuWqFP9Kg79PmmB7Z3NPtjH29wtOieaK1g==; 7:WFZFd0PYZMQVvQpC+TA0uhEQD/sMj7dKWLJ/dveWs35JPkav4q2hw/lVjdJI+hqZ7Lj4Tkzb/QYvtQSFMsUXYO7jRScRR5FW+N7vryDzEo78OpxiU+gXIT+xS75idWzc1iAjcRT3NS6OAHUgxAwwpA== x-ms-office365-filtering-correlation-id: 57f5b18f-34c0-4565-c068-08d67a04be9c x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600109)(711020)(2017052603328)(7153060)(7193020); SRVR:DM5PR11MB1675; x-ms-traffictypediagnostic: DM5PR11MB1675: x-microsoft-antispam-prvs: x-forefront-prvs: 0917DFAC67 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(979002)(366004)(396003)(346002)(376002)(39860400002)(136003)(189003)(199004)(6436002)(316002)(2616005)(186003)(54906003)(6512007)(476003)(6486002)(110136005)(76176011)(2501003)(99286004)(71200400001)(71190400001)(6636002)(6506007)(386003)(102836004)(107886003)(26005)(68736007)(478600001)(446003)(72206003)(86362001)(66066001)(8676002)(39060400002)(106356001)(36756003)(25786009)(486006)(105586002)(3846002)(2906002)(14454004)(4326008)(53936002)(52116002)(81166006)(2201001)(8936002)(5660300001)(6116002)(7736002)(11346002)(97736004)(81156014)(256004)(305945005)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1101; SCL:1; SRVR:DM5PR11MB1675; 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-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: vfEVuE53KWnjkNxjcluhtWeRgXAhgqQZvilCL6upmCHuLg+ySJFTJVu6VY8ZRtyuF8W55Vjua05ihaq4ediYifPVWQMhbEvjxhWxhxAY8cAAM5gOHrj8ehj6cJY2wNyHZeN1cTRnapRzNoPa8bur9unzwMUFUjAB7CPpAAwQaRaaJwvlOlIW0t4dFSs7swCK8uBd0TkJgFtb23b4nISK735dMwqALWTJbklaCrwv0Ft0DwQbW0D1Z/hayMnLq4j0Z6rzy4nS/d3cVE/zAu5qJCEZrWb/EUp14SyheY/HmtMWUo3qs3o8iTV4kouji+lKPtq4eXZrxeUdvdG98YPulwgHrsvwwXCo/3Ew59nl1bFqks5QBqUSOh6Q1K2chRM0ADwdrXqi5B+ofl5mknSGgBpM1eA3jkb3KrSHHWH/QqQ= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 57f5b18f-34c0-4565-c068-08d67a04be9c X-MS-Exchange-CrossTenant-originalarrivaltime: 14 Jan 2019 09:43:31.8093 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3f4057f3-b418-4d4e-ba84-d55b4e897d88 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR11MB1675 X-OriginatorOrg: microchip.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190114_014338_640261_97792D99 X-CRM114-Status: GOOD ( 10.14 ) 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 From: Eugen Hristev 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 9c69e73..61361ba 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -2008,6 +2008,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, @@ -2686,6 +2710,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, }, {