From patchwork Mon Nov 21 15:00:49 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Peter Rosin X-Patchwork-Id: 9440393 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 BC17F600BA for ; Tue, 22 Nov 2016 01:16:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BCFA828AD0 for ; Tue, 22 Nov 2016 01:16:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B1A7028B7A; Tue, 22 Nov 2016 01:16: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=-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 4715B28AD0 for ; Tue, 22 Nov 2016 01:16:38 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 42A0388E56; Tue, 22 Nov 2016 01:16:18 +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 EB7836E595 for ; Mon, 21 Nov 2016 18:33:41 +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=o7U8eSGJQv54hjRIuh3U1QctjT7Ry5DqEFaBEaQhxvQ=; b=qqDljnw/R+rsw6a1VEnuhvCJlM6s7xBtcgBYWwB4obcMnnrsHnQgAQyYI/JeLX5WLbMNp0/wKo3Mwyzd90sdhmodVF0T9NdZIOws9DyDwKRyTXBvYF1rQp9OMLOTCJYNnMrcE5jI3+5jHo+0t1AOzaRm5orQpPz/1gDEYfmorhM= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=peda@axentia.se; Received: from localhost.localdomain (217.210.101.82) by AM5PR0201MB2308.eurprd02.prod.outlook.com (10.169.243.7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.734.8; Mon, 21 Nov 2016 15:01:40 +0000 From: Peter Rosin To: Subject: [PATCH v5 2/2] drm/panel: simple: add support for Sharp LQ150X1LG11 panels Date: Mon, 21 Nov 2016 16:00:49 +0100 Message-ID: <1479740449-20201-3-git-send-email-peda@axentia.se> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1479740449-20201-1-git-send-email-peda@axentia.se> References: <1479740449-20201-1-git-send-email-peda@axentia.se> MIME-Version: 1.0 X-Originating-IP: [217.210.101.82] X-ClientProxiedBy: HE1PR0701CA0046.eurprd07.prod.outlook.com (10.168.191.14) To AM5PR0201MB2308.eurprd02.prod.outlook.com (10.169.243.7) X-Microsoft-Exchange-Diagnostics: 1; AM5PR0201MB2308; 2:u0ENH13HnpWltEJ3Sa5YXGbvrs5gpU6aNX7GTpgTZFLLwrsdu/SDXOLbJ/CFlwcHlhoiOKj+bYmhVkzK/D7a/LOshxR350kS3uS6BQVsjyIiyFCdpZBOEvjoJTua3C/WnWR4rWbXQz30mstow1v0oTw3qt+CEShSlSwfkqBk8mU=; 3:kTZlq25+uIU3JB7nxFBeB2zyVKrom+c36avLD23QRtUnD/YXWXCL+/mM4+opRhYP8AGRCTw7BvbmI12oRB2JSlIYu9r355O/rxKsTcAFRUSCLKu7ZAzGTtruKqMCjNIFrUlmfLuxz70Y+brU5XnACC/LGZOikssdOLi2bJFaGVo=; 25:UaxPh0mM68GAQvbyGj1eSSm3nWUiAnDJNpFyAe1U6f304VCWvBqzac9PTvWxAcqwV0GraFzNnwdSCaNkrb0rIa7BO1rdpb6PDUgc33euStXMq5r02dCUAFqzXDxpgwUqwjdgVyYZWjC7OLhmJCVBAbCNScoWl5szMLH7bUB0S2umQ6N4LTrxLeSHlJgYnJP/BLjw9V4gKmT8qi3Mbmkli7OHjTnGnOux8sxrO9mkf6F3ebVdJU7MK0ndvT+sOqNns1e0VVoIOJeESngyGJNE/aiaaApP6rinqN7WtQP77+j/4GFC1C43nX4ahMRAhVS8TtUinZ3yw5+oW45O6/GA2sV10Erz5wF0RtFCj6+1+W78hQaKpGgWNQSy6ooXOAtwKpaXtDfayIqj6hNw6OW+a3/2U2VRAgFA68aw+gzWUxMkbvcT3KKKxBAnvo1mLkZ+cMbjbWucVyd9MUT88ZufXw== X-MS-Office365-Filtering-Correlation-Id: 4793ed36-3511-456e-d43f-08d4121f4d55 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:AM5PR0201MB2308; X-Microsoft-Exchange-Diagnostics: 1; AM5PR0201MB2308; 31:a+KM63k0osN/VUW385rfVbpaYZDVV8RELfbmBNm02vDo3/uTuJvKqMFulNoaIDHi9krE/UG6BSK+NVEIVzC+PRbJOGRzyZxmB0O2WdwkY+MdZmvpis8o1D+0PzDUUwwL9L/EDpjJWQBJpSiDRrb88InI4a+21vwfZtHLkyhduWHDeh5FvJkBZVD8570rw1QKRP2y8/DAdBW2uropo69DG8lwxyfYQTIWA5PdniEsLA1fErgJiNJxaS3+vjbVGHhyFoNEWrFUxSUfnk3VAEeAIA==; 4:mCGYoKhzXJzLMUbbPIRKfchYt1TchADS9zg7LBJSIiXITxe8ihLStZ6z+eSqhjQfWOky9Tzr+x4MyagZ3hUzUCEGmd3W+yqy6026i3v1c1PggCy3bMyAqBDR3CJTv+5ggUxJLjZDiYBQVeuc8vDLzLHHXj97ytfCK9REJDg8maf5NReJ00wNQzE3x/M92qUsBNQpDKeArC1gnm/F0BtbgVTBE7VlWk30iwHcK8MZWD5QX31hGDtDp9FWQErQgLR1caO7C3TFxy+jnvhIz03x2pRH5oKNd9eC3/psGVGS4PkK8CYdaP4+3nOa62YUCZf4faQYY4MphqPGwESz5dw/Lo2Bt7e4JNETn48aXwpLIOfT9x/mCgnf82UI0Vg6Unhw2Ch8rGQXBw2Gr1rOhSohhdSDwus4bAXz4R9aaqWy637e/jNxNdlwaqlX8H0J/4ofg58PUa8j3hh+aTPse070Tnw2aPDPFQnfTefb96SjyKuubyrtv9q+ifG3j7QY+3MHZMwPDzsr35LD0l/UE2LT5Q== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040307)(6060326)(6045199)(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001)(6041248)(6061324)(2016111802025)(6043046); SRVR:AM5PR0201MB2308; BCL:0; PCL:0; RULEID:; SRVR:AM5PR0201MB2308; X-Forefront-PRVS: 01334458E5 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(4630300001)(6009001)(6069001)(7916002)(199003)(189002)(6116002)(50226002)(68736007)(3846002)(92566002)(50466002)(4001430100002)(2870700001)(189998001)(81156014)(107886002)(4326007)(2906002)(97736004)(81166006)(5660300001)(77096005)(33646002)(8676002)(23676002)(6916009)(101416001)(2950100002)(36756003)(5820100001)(86362001)(74482002)(42186005)(575784001)(106356001)(66066001)(47776003)(50986999)(2351001)(305945005)(76176999)(38730400001)(7846002)(110136003)(7736002)(105586002)(42262002); DIR:OUT; SFP:1102; SCL:1; SRVR:AM5PR0201MB2308; 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?MTtBTTVQUjAyMDFNQjIzMDg7MjM6THo4bmFVSExGbUlEY3gwdTh6Nm4ySFJa?= =?utf-8?B?QitIc2RlUGhvUWVVMTJ0dUJHRk1RSDYwY2R4VlVVcWRPTk1xendCemN1Tjd5?= =?utf-8?B?dkFRcTBmRkFVSTBxb200MEo2dkpaQjNGRmwvaTFCamx3Y3JzRDlzUHpVZTJy?= =?utf-8?B?TlhlMHk0Ynp3dEdud0Z1YkcremlmZk5IL3laRTJQNXFiZmFQV1ZOaHdzeFNr?= =?utf-8?B?R285YStiVUZ5SmtmWmJ0emQrT0xpcG4rUHdXODFFcGl5K3BMQWVEaU1ieHJx?= =?utf-8?B?LzVZQm84L013UndUREZ3UU1VS2IrektzeWRYZ2g5NDVyTGh1MitXd2lHUkFl?= =?utf-8?B?RGY4TW1RUzRUOFZHN24wYTBKRld4RlgrUDFvL25FZGZLN3hsdzlWcGkwa0t6?= =?utf-8?B?NFBaWWRHanNSand2ZmRCd21nWk43bWo1VHYrUWhkbFNJU3V3V1YvckZxajNi?= =?utf-8?B?dzludUdaN0lvUGZEU1hrUFlVQ1hVN292MEFLWXpZVmsxczRCV1YzREFORlpn?= =?utf-8?B?NEEraGlBQXVZMDhKcFJGdkpuQTN3dEdaM0dRT1ZuemM1V3NLcXJsNWg5c2ZO?= =?utf-8?B?SXRUOEp1ZVdneFg2K0VqS243VVU5b0taOUwrbUZHa1E4Mi8vVjVOWEZMYzBL?= =?utf-8?B?dEF4SjhRQVI5NnlyMjU4U1B0emNUYVVZMW5xSVhhRjhYWEpPRmY5VFVneWtU?= =?utf-8?B?WlJMUnd5TTVRbmFKaVRPTWZOQkF6SnlCT2FrSWRWQzVycGtFSWpleWFDN20w?= =?utf-8?B?S3ZhVjZjODlmYmlFRVljUDJ3MUZMZUdFZ2dxVVZMUmtpb2svdUNDSVlXTHd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gpodWrtT+Eam9pOmMcLSODSGd1ZirBZ9TB6jNy1IiwitwajGDtllITxq/xIBTi4lQkrav+yt+R34olhqtOGibIWVBuq2Esud7iZ7B+Dzz9LCx/OKmPOaPyGlNzgQkh9a2YxshRm+h4IKX4aGVPte7sW6cUlffo2b/SQT4Cd9rtDzPRfmKC9nUKtwuoy96kxaswSmbg1i6+hGh6n00fuNbe3nIZsTdXqcrjkFhQM0z+Me6EzPfEH+Gx+uQfPPvbNuqGPH/w79h; 5:J6cxdj1inEhBqS/yPQ+KolbQGkdkyVh+JJ8aQzyOidL38C108peyPCFY3npDO+fAb/MYDcjYZ/p1cxUhXWJtanlniKiWPf6W245acqMrsxdh+V2eRTef0ofEvYdQN006c2EyUxJAbxCIzOqzPbl1ZeAbUR+vajZHcLcb+8ada3Q=; 24:mMx+Y67hwVj/6sNPFAsW6NNAZBs60a5/PrUevu5JDJ8LJO3xJ90nN9J8Yw2qd65fZF5i6JbEZxTqfABtgRiumK3qb2Tgea3hUccDUYJmCj4= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; AM5PR0201MB2308; 7:ru9AWH7sgPZ+3V8S99B5NZzyMnFCG6MvFP2QH8S9jsRjlYOk2cA8MWwKg1zLJcViBuiMyi/c/pfNEj5I4nQRnlwcUcVVrFO4PMbgFbf8mKZss/bl57XysgIIjzZXmcHyk+a4JmIOysoeFzOWQ1mz+1mlsH6xs6fcUv+s2bnKo3s56FQmHIU9UIdmmFJT2AV4Fr4/k6wrq5NaITpQxgCVTapXqy/+1+nWG+JhjmzYUbyNWMTorobL3yChKxNF99Vj4YAoqg2LKhL8J70VlqzERgi//nYqO3F1R9RpN+ErgyMpziVV7Zjdx5X35ZrCIY4Id+70L/TxLvi29veh51sUlyMEYVcRGz93aF8s/jMsmUw= X-OriginatorOrg: axentia.se X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Nov 2016 15:01:40.5719 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR0201MB2308 X-Mailman-Approved-At: Tue, 22 Nov 2016 01:15:40 +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 113db3c4a633..76f0ef7e5b7c 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -1420,6 +1420,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 = 6, + .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, @@ -1683,6 +1707,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, }, {