From patchwork Tue Oct 4 15:29:21 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Peter Rosin X-Patchwork-Id: 9362421 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 955C4607D8 for ; Wed, 5 Oct 2016 00:50:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 85EEA27BFF for ; Wed, 5 Oct 2016 00:50:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7A7B7287B8; Wed, 5 Oct 2016 00:50:34 +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=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 3459527BFF for ; Wed, 5 Oct 2016 00:50:34 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id B1F416E7AA; Wed, 5 Oct 2016 00:50:24 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on0094.outbound.protection.outlook.com [104.47.2.94]) by gabe.freedesktop.org (Postfix) with ESMTPS id C2A1389FC8 for ; Tue, 4 Oct 2016 16:01:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axentiatech.onmicrosoft.com; s=selector1-axentia-se; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=OJ234r8TgyclBsMu/Z5cjobTLIiJFI2KZzgGArfcWKw=; b=dfIzcZdvrCo4Z5oNJI5oqhqt2CgO83RkdqeQaJAxv74dtZG31MwDW3zlKUQIPp28kj39RmBMNSIr5t8PGyd4pRX8Nu2FyuctrkaCj0QGA6cFwBKOWa6JamsnlTSSu5/yXWFtwSulPwIwlw3sxRJ7HCDyevLlLJokqscSM+nHRSo= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=peda@axentia.se; Received: from localhost.localdomain (217.210.101.82) by DB6PR0201MB2310.eurprd02.prod.outlook.com (10.169.222.149) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.649.16; Tue, 4 Oct 2016 15:29:39 +0000 From: Peter Rosin To: Subject: [PATCH v4 2/2] drm/panel: simple: add support for Sharp LQ150X1LG11 panels Date: Tue, 4 Oct 2016 17:29:21 +0200 Message-ID: <1475594961-5713-3-git-send-email-peda@axentia.se> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1475594961-5713-1-git-send-email-peda@axentia.se> References: <1475594961-5713-1-git-send-email-peda@axentia.se> MIME-Version: 1.0 X-Originating-IP: [217.210.101.82] X-ClientProxiedBy: DB5PR08CA0014.eurprd08.prod.outlook.com (10.163.102.152) To DB6PR0201MB2310.eurprd02.prod.outlook.com (10.169.222.149) X-MS-Office365-Filtering-Correlation-Id: e8574538-8be8-4ca8-13de-08d3ec6b4212 X-Microsoft-Exchange-Diagnostics: 1; DB6PR0201MB2310; 2:B2Sz6wLDv48J2CUtcCJ/07gRbDaK2zVRnuIetdCBib/lShhK/UBlmmPOVH7yf03O+Qi/u5oTtJ97GPhgYtaLPp6zdIj0MKQegVrZP2AAanuc0/YP6pwz0R0YfANCf8IEz5EaXEXixMPaB6N9FGutIVg7qOQ1cLx8anlMznGfwGPDcllu91glR7b8C4eAEcuhuIZ9Pgtt1XLVhIbrMO8zvQ==; 3:opNb3PruD6rCkHckAkDgCJFoGrszYelwqxYJnxVGpqmlTgW12cVqDPVBBOe2/CzwZRhCXPXT7rLR40lGDA8GixUm7VXiM3i0F2REK+VL9J++n7a1t9UDKd3teXT3UaXV81bvK/hdDaHPKfVpcURg+g== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:DB6PR0201MB2310; X-Microsoft-Exchange-Diagnostics: 1; DB6PR0201MB2310; 25:pJ8HupmdSjA0nuSwGD3aE1zINaIiLe9DoYTZvF6e4as+p2kNOGsMJ9bWqzvJMiv/Ct5zHGh5PrjNWmc5fEz9Dz+bMEURxFRfJgmBGeDCKuwi4hycj/QagrCh0DRABAd0J/H3m3Ia2XNR8WGp1Gte+4A3YbjyGoEgjFVs1VRuV58ELlJL8eSklRghew2l7/kfHGhKewEBx6/VPY0Uh7b5FdaPKP2lTHs8nunUCsIxuABkW2N+6UeydBZ852lZxefsxmsnfUxiddstsP++NB0HklBq26W3tzcFF3FlWZVjopWQXlsa8cxsQR/RQDXkXzpHaYggB3Thl9tWoGeXkg09/7KKPJvfp0q4b/LRC2qxpuCpJfXSePKP/ejVIuM4G0hPaDxpDlr/Bzui0ufVU8vBi/io20mY9v5LhGgiAiyq2D7F0Q0gDNtV2qwwzEDdljOuNG0RN1B3b1J3xYvgmcYz0TyXzrOtyocTjclrYa6+SDJz/5nSu4dKLcSsF1/Is3+WqLo0GkWoTYVwNRUHV7CR1JjoFko89fozbdGVhlNKMyli5dsv/8kKA1q8qzitFGNv2haXT+IuV3zk6d9kZXoPyjsYxriivngWCMW/ZSoGxyPzBC0MLq+T7R+kfgSq3hR5NZdBqpwwuLkGbiwAAuKzOEo0XnbLZLie8hu5GcnIahTQ6wN7CuUqUiNxKkivjJsk43/yiV/gO1mXIvBpgr0HDiA+4LbEzn/ffBU4oIjgHJg= X-Microsoft-Exchange-Diagnostics: 1; DB6PR0201MB2310; 31:osuXFTK8Z9bs7pADygTdmaQqJEG4qh6qDuLfVXBeBmNjYEIYMOfdFACgvExHipclsid6sIBo8ma/8l5rZh0LIMDdFcU7YwamurKW5s1gMg7+fyyqotKEBPkjwrEhEKIpORKHGNWFTvyMzmXXnyHLjN6L65t2oSjBDW3lKMRnmouh1evI5p+zlDaxXlEDsbtQ9gMjsvozAa9Q17mcUD95kIeeho1iXihnZP8/Ej3KjZbaVyOosaQNZbCziILwP6KSrWbg6H9ek8CWV1qDibTkfw==; 4:q96G0scvf33ZDxTAIe0b0f7lN06tZ+2TAakSQn67o2+UplmOqJTPk7GAzOBcd8sE7kXBrtpUNXikNQ9fVoeXyw9U5KRuZPMeeZyf9gLZoHwmFjXdlUdYEvzgHe97++FkiQ6jnRHCQ4u+oVnFTb64ot43M0AsBvLgvX5MUYWAR1MQ8K3rqbrq6iJ8Ql6X4iuTcsnvybE0h0CkJQH6vMIGe1BVL1c+JuvA1Ue9otBQttgjpBcVxmSfVqOn6edAq68SdOfKWeRuUbpxRxmVOliL5AvDTUT9l6NV1+vXgXTzEaXp+1h0jueuMeOs7nvpQ5B/ZPOmFLF5nyp6bN1p2bdxm6OMGCbXIu9tPkoSDlI0b8q/hmSK9PJTtAtnDwSlLTnVm6GLchCEk+LptawEij/2OnP4sTtgpLbCjbQmGCtzJfBOXD4GwpmecJD0J4E6jYkO X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040176)(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046)(6043046)(6042046); SRVR:DB6PR0201MB2310; BCL:0; PCL:0; RULEID:; SRVR:DB6PR0201MB2310; X-Forefront-PRVS: 00851CA28B X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(4630300001)(6069001)(6009001)(7916002)(199003)(189002)(92566002)(305945005)(36756003)(2906002)(110136003)(3846002)(4326007)(6916009)(575784001)(86362001)(6116002)(77096005)(2950100002)(586003)(50466002)(6666003)(42186005)(4001430100002)(7846002)(189998001)(105586002)(97736004)(81166006)(81156014)(19580405001)(8676002)(19580395003)(107886002)(101416001)(66066001)(23676002)(76176999)(50226002)(5820100001)(50986999)(5660300001)(68736007)(2351001)(2870700001)(229853001)(7736002)(106356001)(47776003)(74482002)(33646002)(42262002); DIR:OUT; SFP:1102; SCL:1; SRVR:DB6PR0201MB2310; H:localhost.localdomain; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: axentia.se does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtEQjZQUjAyMDFNQjIzMTA7MjM6NE1VcFF3MzF6OUVSUzQwdUs1Ry9Ja0dT?= =?utf-8?B?SUo1WUFvQ3RHdFVxeHVoZlAreitTQ3dkcTVDWGZsOVMwdXFVWmFaV3E5SHF6?= =?utf-8?B?L0JQN09jZmwxbU53azFBZ1IrNitRSGgxeVJ3SnZVNllEZ3ZZU01UcXM1dndR?= =?utf-8?B?dGZXZStCc0wzelgwVzlWSklWYktWYjlhQUVUWG9WV05MQnY1cjg2amU5TFhC?= =?utf-8?B?SzBjbHJZWHhZUlVhaGU1N3gzV3g3UUJVc1BSN0hUc2VrTG5jSE9OWXVyMWpX?= =?utf-8?B?OHVjdWN4Z0VqaVkzVjFZZmE1MGpmaFhqQVY3dmNrUDVZQTNCVEM4REx6WGRS?= =?utf-8?B?L05OVEFJL004S3RzR3FRVDZWMEQyR1REWFE2NkJ0TldXTzdjZHBvMUR3Q0F1?= =?utf-8?B?S0lPM20yVUJHZ1JMSUwxMlhvYndhYlpRQVU4ZEIyM1JkUDI0WlNxZkRRT0F0?= =?utf-8?B?SURnZWxWTTJweDRlSGFEZnhyVUoxZ1I3WXBQcURjakt6ano0cGhhckVVb3NF?= =?utf-8?B?WFZWNTAwbTk1NkpLZ1N2WFFkdDRIY0lnZmpSeDB5Sy83R0o0YkEwUko0WWwy?= =?utf-8?B?c2tlek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wKvzPPLBXi2DQV4tWM+OOK7kxgJe/EN0g3CwgghKTwVztCNQssR5alaLq8uxBCgaxtdJpx1wu03DY7tqkRMM+ibfUE4PsVuvH+TSvjVMFB9bnoYnbnacoaCpeil/XxmvdS/prpo4lFoLiLnlcf8BEpD6BYkDAAmBGn3IlRkRWRo3ZBP83CnkFGlBWli3FT53RMnegUVCQY1oTFmyzkZ/aGnnz0KZ16NSv6FJEqmpa3FHsUEdGVl6B0WdRJPuOprPnXPAgD7LdLLt7ZiWmQI6w== X-OriginatorOrg: axentia.se X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Oct 2016 15:29:39.2859 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0201MB2310 X-Mailman-Approved-At: Wed, 05 Oct 2016 00:50:21 +0000 Cc: Mark Rutland , devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org, =?UTF-8?q?Gustaf=20Lindstr=C3=B6m?= , Rob Herring , Peter Rosin X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: Gustaf Lindström The Sharp 15" LQ150X1LG11 panel is an XGA TFT LCD panel. The simple-panel driver is used to get support for essential functionality of the panel. Signed-off-by: Gustaf Lindström Signed-off-by: Peter Rosin --- 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 85143d1b9b31..58cfe0a7a9d6 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -1386,6 +1386,30 @@ static const struct panel_desc sharp_lq123p1jx31 = { }, }; +static const struct drm_display_mode sharp_lq150x1lg11_mode = { + .clock = 71100, + .hdisplay = 1024, + .hsync_start = 1024 + 168, + .hsync_end = 1024 + 168 + 64, + .htotal = 1024 + 168 + 64 + 88, + .vdisplay = 768, + .vsync_start = 768 + 37, + .vsync_end = 768 + 37 + 2, + .vtotal = 768 + 37 + 2 + 8, + .vrefresh = 60, +}; + +static const struct panel_desc sharp_lq150x1lg11 = { + .modes = &sharp_lq150x1lg11_mode, + .num_modes = 1, + .bpc = 8, + .size = { + .width = 304, + .height = 228, + }, + .bus_format = MEDIA_BUS_FMT_RGB565_1X16, +}; + static const struct drm_display_mode shelly_sca07010_bfn_lnn_mode = { .clock = 33300, .hdisplay = 800, @@ -1641,6 +1665,9 @@ static const struct of_device_id platform_of_match[] = { .compatible = "sharp,lq123p1jx31", .data = &sharp_lq123p1jx31, }, { + .compatible = "sharp,lq150x1lg11", + .data = &sharp_lq150x1lg11, + }, { .compatible = "shelly,sca07010-bfn-lnn", .data = &shelly_sca07010_bfn_lnn, }, {