From patchwork Sat Sep 17 09:34:22 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Peter Rosin X-Patchwork-Id: 9340899 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 9BA306077A for ; Tue, 20 Sep 2016 02:44:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 891E928FF9 for ; Tue, 20 Sep 2016 02:44:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7C4FB29B7E; Tue, 20 Sep 2016 02:44:28 +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 46B3D28FF9 for ; Tue, 20 Sep 2016 02:44:27 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 3BE526E601; Tue, 20 Sep 2016 02:43:38 +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-db5eur01on0119.outbound.protection.outlook.com [104.47.2.119]) by gabe.freedesktop.org (Postfix) with ESMTPS id 630C66E28B for ; Sat, 17 Sep 2016 19:21: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=d5xAbiQNzE8x+MNhTPLKXF57HQWdX73QJcn/3K9uq9I=; b=MPPiEW20o0LL6JHHb+4gv4MBaofFQ382mT58miXzKCU9rW6xXKJFMJCvWy6E8C9ekS/jsxT0gsXNo4yjUHUErckwNdcMrfXBHoyE9zREKwP8aCgdV54dNrfisKNS9fynZWpT9i0bH298cOqoj5NebkRZVdI1eR+jFeHZl8ug/Qg= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=peda@axentia.se; Received: from localhost.localdomain (217.210.101.82) by DB6PR0201MB2312.eurprd02.prod.outlook.com (10.169.222.151) 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:34:31 +0000 From: Peter Rosin To: Subject: [PATCH v2] drm/panel: simple: add support for Sharp LQ150X1LG11 panels Date: Sat, 17 Sep 2016 11:34:22 +0200 Message-ID: <1474104862-16957-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: DB5PR03CA0053.eurprd03.prod.outlook.com (10.164.34.21) To DB6PR0201MB2312.eurprd02.prod.outlook.com (10.169.222.151) X-MS-Office365-Filtering-Correlation-Id: 2c5a2608-508d-4670-98f4-08d3deddd48d X-Microsoft-Exchange-Diagnostics: 1; DB6PR0201MB2312; 2:pEk1FNtn/xaPAVLn7pn/e0cJKeBB939EitpVuaBM6guvdJgmkfVpxIxlPnvLZwWs/0+IcXe6+Es30EJTBtg7qJIVHX/2yrA9Z3VDr2ILEGANSkfw49U4+fzWYinBTbPYIdq7YjdOlw8fCuxBw5GIT1POfbDfuHKbArBSU/AOmAuA/ubrziEd974M8lz6QWmw; 3:22OKX9Yb4r+pgiZdtZdgrWxEl2V5g6xT9dCHZbV6Vf6aXQC3g5Gkw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GSR/hL8NG9y9j7iAAPcRBDgrqdS8SXJ5thYpeh7RAZWbY87JAROVe5JzWmGuPkGFhT7Gm6RFB8= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040176)(601004)(2401047)(5005006)(8121501046)(10201501046)(3002001)(6043046)(6042046); SRVR:DB6PR0201MB2312; BCL:0; PCL:0; RULEID:; SRVR:DB6PR0201MB2312; X-Microsoft-Exchange-Diagnostics: 1; DB6PR0201MB2312; 4:lhR3oiLnMRZZs+AD/RKwOCxpNe+NUwbRZcg6casSCzqStUOGcQFd1QQeO1As6Sp2fikiezXG/ba6ILL1+KsN8KNGGW/UcZTsUipjkFZOMRRN7ia/bjW8UOxYZzZYIGMjmDB6ElXzNHYDoQ367dj2AOMpJTMvXbfR27N4JbXwjYslGXo4sEEvwW7wHv2R3WZ32WVazgd3CsTYy8PGFENPfbWgXyo3R92VBj6RmdNyVAoNRXXjuXPtt9q5ApxnkQXts1nv6Vv3b8edGzNs++JdPdg6hhWSOULBeZ3HailnrPS9Qf745T2og+JPVDgXRxLGmCEQ+Xmliz5Oo5tZppk8AsNZwCnrAiTIkUXjDs2Hxw5TnOCeRkoIyga24hlHYE2WqJEHHwMVTbp2IKAejqV4S/1omtpAIeB25UHxb6LytoE= X-Forefront-PRVS: 0068C7E410 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(4630300001)(6009001)(6069001)(7916002)(189002)(199003)(4001430100002)(2351001)(229853001)(110136003)(42186005)(2870700001)(105586002)(68736007)(586003)(97736004)(106356001)(77096005)(4326007)(7846002)(19580395003)(189998001)(8676002)(7736002)(33646002)(23676002)(92566002)(74482002)(19580405001)(47776003)(81156014)(50986999)(575784001)(66066001)(5660300001)(6116002)(86362001)(5820100001)(107886002)(3846002)(81166006)(36756003)(50466002)(50226002)(2906002)(305945005)(101416001)(42262002); DIR:OUT; SFP:1102; SCL:1; SRVR:DB6PR0201MB2312; 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?MTtEQjZQUjAyMDFNQjIzMTI7MjM6cHZyaTJDQXUvUHd3dVhLQjNNc001QkZF?= =?utf-8?B?RTE1Mk5WcWM0cjc5aEUwUGhZOEZOcVF6UjAydHdqRGljRmJrQUV4c3JrY3hm?= =?utf-8?B?eStxdlJMRVl4N2ZtdmU2NEhMc09WbnRDWFgzTG5lUzliTSs4di93cXB4VVl2?= =?utf-8?B?L1hhTVpqUW1Pa2J2dHRhZzlxZmdYampUT0hqU3NqUUxPVkllVEJySjhja2hD?= =?utf-8?B?VXBmeTNaZVZYTElBWWk2VndmV3QrUklSa1hsSW5POUpnRUtaZERxcGs3b2RR?= =?utf-8?B?SktNWG5zK01iNVRYUEZmZEt5QmduaUprbWloMStnWEhVMU9kdURjd2R1ZzJu?= =?utf-8?B?d2dPL0hKRVFHV25qLzJiTnhyZG1VM21LaU5yRG4zMEFtSTQ1K2FtMmw2SjRP?= =?utf-8?B?aCt6RFViZmVnbWpBWTl3aTZYVW9QaEpkdi9iREJIRklxdnNGV0tYWjNzT2tS?= =?utf-8?B?clU2Z2RhOVZKb0Y3NEhXWm5BZVVqaFVMQ2ZnYkliRk9yWW0rTGdoa1hWdWlN?= =?utf-8?B?U3ArYXc3QnJ5WDJHMXhBd2RKQUZFSFdJTjVvZUNqcGdPNlV6N3IzTFhRa3li?= =?utf-8?B?bmFKbms5VlY4aXhRdG84blZFbDNLaWt2dzkwaThDa25ndHJNYnRJSXUvZkVG?= =?utf-8?B?U3d6ZlVNemFndG1ZdzNCdEtLa1NCVHRmVFUxVFF3encrZ0xHbUpWQTM0S1Bn?= =?utf-8?B?T2dtOGdCdE5kd01nbW5TUko2a3Y0KzJGUGRNMnYwNFhzeXBPb2R0eEdOTnVZ?= =?utf-8?B?Nm1yM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zOfoXGHwoOWfx1g2WxM5wK+SxJ3gQCIPWKFM7MDt3LsfND1gViIKXu3DmkPRgpteGJ+S8PPofub1oxnU4Ykq2bxWZXbe91dYnJJcFv9CrfmeA0dTAWqpGPnD35MFtOgDx4bSaSlRQ37/ZLPwYLdQiLiWM1hPmXwXVUxLlzB+F3LbrGeOm0iiBw22eq1FKmmapMzarIH1tkmagVVOVXvxqizX1cdQqiBLnT8XPlL2JzSThcJEVb6Lll9ZKcDnMLBYEMqoCkYCJ; 5:VJAt9ySMeRJmCkNTjbjMarxEzmbgZlxF+BpY+BgJEC2uqiaP3t2zuPh5LIc3nGLZZszDeaokW79D90DPD2XWqkapjiNoYtH8Sjt4HCElwfeRpFf2IBoxG3zLgoaAh3O3jF3ErfS8IK6mox3TizAhRQ==; 24:khLMsfPqrPeTpYsCClAnxgAeoxrcG7M0uCYQ4SoHQWkpkWppzbkw9te2dL9U9hkWAWYNR08HL8KyC89LLQl4I/+tMD1wPMFEYOxEo7DAsIw=; 7:jZCnybtFu/prTiOblQAwj+sPH+42zXlbyG0Ut7AMOwCUcEc0S2xNjkH29PpMCPtsPaGjrDGmQLLicK5H7ApVrcUtnHex7J5FrGo6AVhaYMzEJ3fUafHOIAmx8J6Gh5Bi6NX4/IkutTMpCDj0M9jE+C+GS7DD82fFM49STqMcLKb/PYUBqLY5nTeUYG17IeiJhXsVzX0A7cBqBOzrwvN9xZh6Y/XKDRwhchYXoZVAiBKUheiSrIBWiN01AIlxb2WuhZ6aaSI6Nhyu/pbxLfS2lRn3C11bQcaJFXiAc9teEQztrkGWx3JWkaCO3R49wyXQ SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Sep 2016 09:34:31.4551 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0201MB2312 X-Microsoft-Exchange-Diagnostics: 1; DB6PR0201MB2312; 23:sc5Vd/Cp46EDk5z6pUHROBxCj1XWWK0/x5mAIq60DgbzUcJlrbvVty7oMxndExFriGQc+Af8uaPB4d7djn9oauBxICxh5U6gvgChN6jGoPLDZAi30u/mt1PdSCdiqFi3A9Md3M60ibCOyOpZulSRHw== 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 From: Gustaf Lindström 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 v1->v2: correct author 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, }, {