From patchwork Sat Sep 17 09:28:37 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Peter Rosin X-Patchwork-Id: 9340921 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 1A11B6077A for ; Tue, 20 Sep 2016 02:45:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 08EC928FF9 for ; Tue, 20 Sep 2016 02:45:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F161E29B7E; Tue, 20 Sep 2016 02:45:09 +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 7618728FF9 for ; Tue, 20 Sep 2016 02:45:09 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 623E86E5F6; Tue, 20 Sep 2016 02:44:02 +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-db5eur01on0109.outbound.protection.outlook.com [104.47.2.109]) by gabe.freedesktop.org (Postfix) with ESMTPS id 37F9C6E382 for ; Sat, 17 Sep 2016 12:16:34 +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=VcdaFvONwV9vyHcR3hJdT/qpo89+fv1sDCWfeq5fqec=; b=GON5D9tT5l6kmjkLnWHSbuYr3w0lq0pBE66rocdp4XC/dhMPjnJT8KtqKxmYJwhZ/z+PpaOwtw/Pa2o+1lJhU+gv6cIGzPGrO/zmSY9AwfoF4QNHnYCdFMugYw+QTHDcBh9ihGOZf1ZmgTyl06OGg4V4r0w6lFcUbiHZClH4RDs= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=peda@axentia.se; Received: from localhost.localdomain (217.210.101.82) by VI1PR0201MB2319.eurprd02.prod.outlook.com (10.168.63.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.619.10; Sat, 17 Sep 2016 09:28:47 +0000 From: Peter Rosin To: Subject: [PATCH] drm/panel: simple: add support for Sharp LQ150X1LG11 panels Date: Sat, 17 Sep 2016 11:28:37 +0200 Message-ID: <1474104517-16874-1-git-send-email-peda@axentia.se> X-Mailer: git-send-email 2.1.4 MIME-Version: 1.0 X-Originating-IP: [217.210.101.82] X-ClientProxiedBy: DB6PR0801CA0013.eurprd08.prod.outlook.com (10.165.173.151) To VI1PR0201MB2319.eurprd02.prod.outlook.com (10.168.63.21) X-MS-Office365-Filtering-Correlation-Id: 5ab45326-7cf2-4acd-4a06-08d3dedd07a9 X-Microsoft-Exchange-Diagnostics: 1; VI1PR0201MB2319; 2:w0ZCYyhSBJfpLI4PSDgob2pxY5bkgL7IJ3cQqIvIixV2byS+PxSO1fOGP9DB58lZPk4TalHgE3VhBlSkqgR2BOEe2VfxFD+jz/zB0WWQEgZNPi7ejqofpfJWRpDU2cNuCKBh4j5Wdus8hHOs8GRTvmmiM6MCAnAKZ5eEZQw9jFDVw+iHpeDxMMAyDXUrlsGE; 3:yTImT5HPnSyRw43tqy8Vrzslp/6Ssu5rhIx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QNkPTDbhR4IFYpBtZV2lMn0x6YKVxsgOXFe5VDCq3qMUwmuIcdC9KuvePMnciFM6PbCtHbkKYQoGIIQQ= 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)(10201501046)(3002001)(6043046)(6042046); SRVR:VI1PR0201MB2319; BCL:0; PCL:0; RULEID:; SRVR:VI1PR0201MB2319; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0201MB2319; 4:Ts6HcbVRaig9zrmjZ/tQYcbHV5Hsbb+2WulKl0j7XV5vaB+RncI6tdvhEd188Acgpgdhy14gC0HRipYJ4N3FvWyfTNXFETtBbg4DaDNYzMzhyuNoZ5d2PRsBsK5+QRQkv//dz56QPGpw4AhuqoQMl72W5o9YfcsCOCPDeZ+TE5epBKyipYOLmNd7hqjnwp+Txh+PtHqberV855X6eDml+W9PYwyQa62x1UENwzZ9Fpmho8z0rbku7VeqwCCkQ6ZQu4Lq8eYUtF44oYahNrU4Tm27GGfB/A0XgoiRndkJf12vMBNlU/HsGmdr7L+OudsDkcKQqfLJ9GH8a51AWSigPY/vHXgkgTbWNHwnBLmAxT7lrfh60/86MszV0y7FsI77bLNI5TekNz2oCmzP4t5FYsRiuvubxonFmxyiDbuwMTo= X-Forefront-PRVS: 0068C7E410 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(4630300001)(6009001)(6069001)(7916002)(189002)(199003)(2870700001)(66066001)(8676002)(42186005)(23676002)(81156014)(36756003)(50466002)(110136003)(7846002)(81166006)(4001430100002)(5660300001)(92566002)(7736002)(47776003)(305945005)(2906002)(19580395003)(575784001)(105586002)(5820100001)(106356001)(19580405001)(77096005)(86362001)(229853001)(2351001)(6116002)(101416001)(3846002)(107886002)(33646002)(4326007)(68736007)(189998001)(97736004)(50986999)(586003)(50226002)(74482002)(42262002); DIR:OUT; SFP:1102; SCL:1; SRVR:VI1PR0201MB2319; H:localhost.localdomain; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: axentia.se does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtWSTFQUjAyMDFNQjIzMTk7MjM6czhsUDFBS09FTUVQT2pSc2Z4dEtpZGpj?= =?utf-8?B?WjBuV1M3WWd2bERFdFJZRDBNZmpqZTRtVnFpb01MTEF1NjZDWGJROC9oZ28r?= =?utf-8?B?dHVab3lmMzVaMTQ0SDN3b2x3b05RWmhaaGx1K2drdkJoaUVXSGJuUzhPbk5V?= =?utf-8?B?YWJGbnFHTzFWUFpNdHViWGVmT0ZWV3FVMTdnQzlWNVpyUWpOejBYa29GV2pJ?= =?utf-8?B?WDBhWFBtRTVqVXhnbHJrZXkrU2dFdnIwMWVqK0pkYWNKUUhzcGs5emhDR0tP?= =?utf-8?B?WWY4SjhpRjByN25pVkdFcmljMVMzcTRid2wvNmRwQjF2M1gyR2REcWJRNlQv?= =?utf-8?B?YlpBWVAyZGNEL29lczJFQ1RmVkpZQ3RiS3hpLzNvK2NXOVBLQU5tT2VZbFRE?= =?utf-8?B?NFZocW1tak5zaXM3ay9uOG94dDBKbDZ3L0hjMmVLZzlIc0ltbEtFRlBmUU1t?= =?utf-8?B?aW8wYnFmRk4yZnpLWTE3RC9rUThMaFlOZ0FsMENPai96NEJKMkZRU2NJT21z?= =?utf-8?B?T3NKV3piMWZjUVdqR0JXQUcyLzdRL3ZkekhqUUpZdThnUzhoRGlyK3lhdUhY?= =?utf-8?B?SFRlKzlTNEx6TWpoaGJFbGhiai9lcU9Zb1JoTVc2dnlpcGlHZlhMWTRkaTFL?= =?utf-8?B?cnQvZzg5S3hsRjA2K1pmRHpBNUZaN00wSnkxVHpWeWF4WnZSd2ZVWXNpTTJs?= =?utf-8?B?ZE4zU0pqQVhVb3VYclJhZVFpYnE5cllDSlhDTW02dlorQW1PMmJVM1VndnRH?= =?utf-8?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RNIlfsdMCcZOillkB/6VExVQJbEkmdseXfcNulVP4CGyv4STzfeVqz8VMwt5Wiw5Je06qg0SlWEQlEmzysakvGviypCFBgbPS0Hfqkd0XPQ0uBlE4XDKbZJvjRvYp1XQt0JjrtxhCqx+69t0kUwERdxQXMoIx/AbkLNSfAsbmGhoYmERUNBfol6suLOghvZGw/zudmvfxS7ohoRhqZHqDwSmWAp73ZafDh5OOoGM80pgbC6y6uNEzy5fFufyz/jgsmyYgblS5szOyhRlckM0G03WjNi1/; 5:wKJB0EzyzHbZovWl9IoRomPpGuWawmN6bWTgdhgfhMpDer/VNbylmQBsHHsUl5BNK6vYAmstDAonTlKYRwKCLTiWLduYA6KH2FCyJvT1lEFgHrOYmH1WByiPEaHtjZoN+81V9ZmRalewn7zreDPfdQ==; 24:J/ufgB9LxRIGH8JNxAQapCcjP9niu6L4mELwvLHR12CljYzwgwXKp2DTrf9VRDjN1TPuAxUOD88Clqf3NoyYFIp3vCZY9YQEch+D/n1qWJ8=; 7:nCzFeIdproT4/CYosmWLfopsikhd1VBnijsIeKM+kGXQcVyn3QYAftiW82oIzAKmO66V38PLddQxjx2kommdwrtxUJe31Drj6dtD2uK8Rt6Pubqu3hdtWLXXfJUKAvfH7zlIDSazFLvNfyAfHj2ML+J7fNOVSAbeyF8uczR7ze68h48/6G3GU03Lg0R+UqRyvlFMsmMu2hcBzQghqCcV33TiIdg26GVs2FfnbvbzKGjOy+eTB56a9F+ABFkwcw8BOjZrdfXCC17npNgjn8TDZlfFWCvWBsjX75mI+T1psZY5sJsTDPMFy75nZAVVCICX SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Sep 2016 09:28:47.2693 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0201MB2319 X-Microsoft-Exchange-Diagnostics: 1; VI1PR0201MB2319; 23:AfX2NUp2ghDJrLJ21rhxPJXlQTPu2KZwNe7hGix23lLlJF5nP2oWX1jveICAOj35GbG9nbVjjIMOUW0zIw0Y6vV6c7z/6FgiAxasLdoT7WqPkC2M63Rhl8pzDWCcPBG9hzoKx0YnoRpodhgIV1yNhw== X-OriginatorOrg: axentia.se X-Mailman-Approved-At: Tue, 20 Sep 2016 02:42: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 The Sharp 15" LQ150X1LG11 panel is an XGA TFT LCD panel. Signed-off-by: Gustaf Lindström Signed-off-by: Peter Rosin --- .../bindings/display/panel/sharp,lq150x1lg11.txt | 7 ++++++ drivers/gpu/drm/panel/panel-simple.c | 27 ++++++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/panel/sharp,lq150x1lg11.txt diff --git a/Documentation/devicetree/bindings/display/panel/sharp,lq150x1lg11.txt b/Documentation/devicetree/bindings/display/panel/sharp,lq150x1lg11.txt new file mode 100644 index 000000000000..014428c984c8 --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/sharp,lq150x1lg11.txt @@ -0,0 +1,7 @@ +Sharp 15" LQ150X1LG11 XGA TFT LCD panel + +Required properties: +- compatible: should be "sharp,lq150x1lg11" + +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 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, }, {