From patchwork Tue Jan 26 04:00:32 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Meng Yi X-Patchwork-Id: 8118851 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 811329F8AA for ; Tue, 26 Jan 2016 08:48:54 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 11DA1202EB for ; Tue, 26 Jan 2016 08:48:53 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 48C5720274 for ; Tue, 26 Jan 2016 08:48:51 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id A0C4B6E1EE; Tue, 26 Jan 2016 00:48:48 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from na01-bn1-obe.outbound.protection.outlook.com (mail-bn1on0080.outbound.protection.outlook.com [157.56.110.80]) by gabe.freedesktop.org (Postfix) with ESMTPS id 4077E6E1E2 for ; Mon, 25 Jan 2016 20:23:54 -0800 (PST) Received: from BN3PR0301CA0013.namprd03.prod.outlook.com (10.160.180.151) by BY2PR03MB363.namprd03.prod.outlook.com (10.242.237.16) with Microsoft SMTP Server (TLS) id 15.1.390.13; Tue, 26 Jan 2016 04:09:12 +0000 Received: from BN1AFFO11FD024.protection.gbl (2a01:111:f400:7c10::175) by BN3PR0301CA0013.outlook.office365.com (2a01:111:e400:4000::23) with Microsoft SMTP Server (TLS) id 15.1.390.13 via Frontend Transport; Tue, 26 Jan 2016 04:09:12 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; nxp.com; dkim=none (message not signed) header.d=none;nxp.com; dmarc=none action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BN1AFFO11FD024.mail.protection.outlook.com (10.58.52.84) with Microsoft SMTP Server (TLS) id 15.1.355.15 via Frontend Transport; Tue, 26 Jan 2016 04:09:11 +0000 Received: from titan.ap.freescale.net ([10.192.208.233]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id u0Q491B2003500; Mon, 25 Jan 2016 21:09:08 -0700 From: Meng Yi To: , , , Subject: [PATCH 3/4] drm/layerscape: Add sii9022a driver Date: Tue, 26 Jan 2016 12:00:32 +0800 Message-ID: <1453780833-32289-3-git-send-email-meng.yi@nxp.com> X-Mailer: git-send-email 2.1.0.27.g96db324 In-Reply-To: <1453780833-32289-1-git-send-email-meng.yi@nxp.com> References: <1453780833-32289-1-git-send-email-meng.yi@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 130982549515892670; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD024; 1:OGM68fWisfLbqcJ7kdCrLaXKvOdQvlm26sATqkJLXa8lzO8cazYYy7BrKCKL68BtI07ghHwRQY4xdNYnzSwf4ejkwphWQwxmCyjzOvg3zoEN9i630YequUjHo/T9haNLOrE/jibQ3bBpqPj7aS0XPHHzYlv7FD9eeveV+5031D0LrXu+48C4HIuHikC7FQL2EOlZfQqGhxQsuXHIzCwE+bD3EcRt2fuKIit+49Fhj/105ZSuZtszZqkIDIk0ImB/HF1+u45xtD8oTZmMUz9TqmIG9I5YBou3AlT7XjpLT5jJnIOyFE7FX9BZM94CxVSLPC13MlFxn014WVBpvzYp92mjCtikQ2MzpAeBKU2/VQzFfdXwQ5YzM64dPXgzEZ33SzyttvGcWXL29Gdh9sHIB6NCU2FXioCxoAhZ/qduOcfIYQn2yrM9Vs2DQEiPf3L3cbc/RLdOt9Qpon940JQg0pUjCY6WeO97UMGTb29UrB6QW2acpxT5M5T/5DOUuFjq8P8z+I+IJKTjEt5dn8t14dzEHDlSFoBlDCJfPZ5f8VBayY1nzLhHJgdWoGtC0hRQDmosiA/0UFrkfGB/MhVGvg== X-Forefront-Antispam-Report: CIP:192.88.168.50; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(2980300002)(1110001)(1109001)(339900001)(189002)(199003)(5001960100002)(106466001)(2950100001)(1096002)(104016004)(77096005)(1220700001)(229853001)(11100500001)(586003)(85426001)(189998001)(50986999)(76176999)(97736004)(5008740100001)(81156007)(48376002)(19580395003)(47776003)(105606002)(6806005)(5001770100001)(50466002)(87936001)(2201001)(2906002)(19580405001)(4326007)(5003940100001)(36756003)(50226001)(92566002)(575784001)(86362001)(33646002)(7059030)(2004002); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR03MB363; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: 195b1a43-f233-40e8-165d-08d326067220 X-Microsoft-Exchange-Diagnostics: 1; BY2PR03MB363; 2:S2qnzGls4hj2lzWOf/JXL1iqJtvNtZTH/pe80nHOKwtkuu9PhDK62ja/2I9pMoGYq4FNeTUac6L2HqBP18stctJTF/sBT5zLYvzw2F0Xa8uTNMkXuFfvCQFqrUvc8Tv4054upVyNre4UHlVJc6zlv12xpIGxLd0T/YUhkntP2tt+kNCX3mejU8WU03FcjjDe; 3:+kYlQCv9CLrfhrC8jlQCgygdDVZM1qXxWig/t5OGtaFG4YV/IxqyTV6RO+jBpSuNQMZx+0Lw2Ybl/majBd+KG4DIqwq5DE5F2AGfFJ7yC3qK7PlReeEETImbmqWriuhnoodN1l45Wffa8OzheLCriGrh12yldfyuXfKB1QRcq/MAeP9Uk+GksJD3IUyHFic7dIRBCHMg247WkcpbmERGn2H1H+E0uOIAlm4rz4kvBQE=; 25:dQZEpb4aZT1NcIyu+Y9ylFh9ltOQd0cc2YFuerQ1tFzshAeTX+yzbzBa6OjDjKSr4XJH0HZjJUEIEU29Xz7ITGAuq7stl+nti2W2dwRPrkn1eXuhq1Jr0TT8lX8K0IWcCBPnSuVD5+i5c29IOtS3enReWhJ6KW+WSlIxJmOD87NXlfqvMgpy4k815ExMq1V96tQLYFPp6GeYPmoL8tXIoV+9bvixBgPE8bhHwBhl/eQBAGzFHjwFxwnFvaOo6hlG X-Exchange-Antispam-Report-Test: UriScan:; BCL:0; PCL:0; RULEID:; SRVR:BY2PR03MB363; UriScan:(185117386973197); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(123027)(601004)(2401047)(8121501046)(520078)(13024025)(13017025)(13023025)(13018025)(13015025)(5005006)(3002001)(10201501046); SRVR:BY2PR03MB363; BCL:0; PCL:0; RULEID:(400006); SRVR:BY2PR03MB363; X-Microsoft-Exchange-Diagnostics: 1; BY2PR03MB363; 4:JCs1GPrPxxVG9vZDqGqrQqJZsORHZXPiotFzXBmipOedPSy7LxCLcj22hLZmh72UaazldjJGxSFQzA5fC8PeQJ+RagYuj/ubvUthg5PrZiuKQu42bvQXhFGRSAToyI0v8KxB6Bs4+DTllp+c75+yMTD8RCCgyXyqUS4Yv0hwgftRdZxUa+wQREh3WGYoQyvXnarIT5faBVFjgoY5vEwe4puIgug93qsGp3I+5JsAx4NuGR6+Ug2mzMjSc4l3FNckq59zVvaCUUnNZtpf98hnGYw7Fvjnr/wOdqYVM/wzZ72QnJCEQYXMNeF7S51L+Awy4S/+PYt5iu7U1a1xevidI4xjg5C76stTFxLHe4z6wwD64PkLunyVJEamCh0oXnTfnXeMcN9VUIuSWEzlQ7eK7Df5m0NDPIb3XwZMLFJ0EUuqDv7H4zqg4vgk/XbGfoFuA0gy+rrlCggk3PYd/cMve0i5Sva+v8X7t2lOiUjtSGNqdK28z9voA1fEiKqvVk+fCFTv1hnxjH2E+viSHt0o65ut//BWhSIhUd+gwPOoCBw= X-Forefront-PRVS: 08331F819E X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY2PR03MB363; 23:fs3BbevwUZ4H4GAkFBFzqz8c7KPk6mIqcQWgiFMz7d?= =?us-ascii?Q?pedjqtvT/ADqfeh37/qnz7r02BuupnijfZu2F2sirrynRv4Gkr2lPklOFCga?= =?us-ascii?Q?3PlrlxAYW/DxrXDEXPInVRc54R+VacDe+A/ULlypPOzL5LrotdiNpgUNfI0G?= =?us-ascii?Q?2mSmJKKeXUblV8/E9y1kY8p1jnjn8ZHoWXflDpDCY2EctEULWzWCsSr9SqI8?= =?us-ascii?Q?kQUQDZepu/FJwAaOzqNpm2mfSRMl5f7It9uSBEhd8VDsOAJYtgnrSZjyq21F?= =?us-ascii?Q?nofA26ykWfp8B+S9WIivlMDPFgqBnpw0CCBJtgqgv9AIagYMrePvSVTsXeOg?= =?us-ascii?Q?/AdQx/gHkU77tZeN6A9o85hCPjCeZQiQrSUCO0kLnfduEQj89gHueJ60ueya?= =?us-ascii?Q?7FARKBAd11uC5QuG1umA0XJBOYmf0E5r/Z5gcdJKdI64C1uF2/ogKJekpIYv?= =?us-ascii?Q?dgjoN7sN7wBp3VP1k8vwKsFdjEtpkpHdDSB6AKketokvXxTUeMf2J8fYs7Q7?= =?us-ascii?Q?4POMACEZuKxXydie2Um6JhM7ppNwXzeXbBhmLCdo1TNIla265RINih64ytN7?= =?us-ascii?Q?JM+La2QBG9qw+TGz6N+hKk1JpBP/z12Tys3Omk3kSUGLUMtWyi6YJGeYJJFe?= =?us-ascii?Q?h6aAYfFoyF6yr/6umiiBfaVDEbybqfcrvVW9Bpca307FhLF6+3QUXQaWtt3s?= =?us-ascii?Q?hWbDx8UD946oXikvoAhQjmWWPMDER+y1xI4PINjCiNsZ4NvHJdu5vGfsbisF?= =?us-ascii?Q?hS4370sZkhkphnxeMlVcG+7/QgrKimzRa1x29LeOZbp2Jk5eKSFUXzkManAW?= =?us-ascii?Q?BNxSMBEr+xtsutAQCBPEqr1bd2eykDDYjELdyTbM+uSqa/vGGGwg1CHFOMyw?= =?us-ascii?Q?3O4U3mlM8WwUVQAQWfiXt4DBh7VOIk+m6ma9+urBNzNGaQt57qFI+kiqaXcP?= =?us-ascii?Q?mypRinnU9MPiypMiuwCWq6d4tmJtXfVX36am1Ftyj+H7C5M6khL8EGK0ShQl?= =?us-ascii?Q?0Z/iFk1aoZuNgK3ixnTVWosn5Sq/jKEiB/f1reuiMB9z8AtTCISBAon6umW+?= =?us-ascii?Q?RGLgmN9H7dHFNXv0ki0e2iAKuUPou1WG6Hurmx/W1wuD3oG8kWFCI8zPvZEU?= =?us-ascii?Q?iD42XZcVNtaZY1QI9Zf07uMKqPWOqT6J6d8tTrf1lwGjWirD70nA=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; BY2PR03MB363; 5:ZkkoRw973UsZMyzP52nGviISQBA5KMSlxt5vnJqB0vWqq6+KwruHuIExHxEB/uISRCFtG7Wo1ztL79xsB3W74nM6tjdZGu+4ppExMhnYsKID5cpxHzJ5uvWgMJV5WFcq5mGe4PWHIAr/Smxlrq+nM3wLQTEGvYmoQef6oQC6vWw=; 24:rcUaOwH+6eF0v2aDCZojABcdOxDNtZq2qG1KPhzPJFXDzHjN4J++isBXSPtC2qgGOzVL0k6BDe0Z9EiM3HFLizrX3oZ5QXAmaGEHgALD3I8= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Jan 2016 04:09:11.3864 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR03MB363 X-Mailman-Approved-At: Tue, 26 Jan 2016 00:48:47 -0800 Cc: devicetree@vger.kernel.org, dri-devel@lists.freedesktop.org, Meng Yi 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-Spam-Status: No, score=-4.2 required=5.0 tests=BAD_ENC_HEADER,BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The SiI9022A is an ultra low-power HDMI transmitter. It supports resolutions from standard definition 480i/p and 576i/p all the way to high-definition 720p, 1080i, and 1080p, the highest resolution supported by HDTVs today. It also supports all PC resolutions up to UXGA for netbooks Signed-off-by: Meng Yi --- drivers/gpu/drm/i2c/Kconfig | 6 + drivers/gpu/drm/i2c/Makefile | 3 + drivers/gpu/drm/i2c/sii9022_drv.c | 449 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 458 insertions(+) create mode 100644 drivers/gpu/drm/i2c/sii9022_drv.c diff --git a/drivers/gpu/drm/i2c/Kconfig b/drivers/gpu/drm/i2c/Kconfig index 22c7ed6..8646729 100644 --- a/drivers/gpu/drm/i2c/Kconfig +++ b/drivers/gpu/drm/i2c/Kconfig @@ -31,4 +31,10 @@ config DRM_I2C_NXP_TDA998X help Support for NXP Semiconductors TDA998X HDMI encoders. +config DRM_I2C_SII9022 + tristate "Silicon Image sii9022 TMDS transmitter" + help + Support for sii9022 and similar single-link (or dual-link + when used in pairs) TMDS transmitters. + endmenu diff --git a/drivers/gpu/drm/i2c/Makefile b/drivers/gpu/drm/i2c/Makefile index 2c72eb5..cf2e8b9 100644 --- a/drivers/gpu/drm/i2c/Makefile +++ b/drivers/gpu/drm/i2c/Makefile @@ -10,3 +10,6 @@ obj-$(CONFIG_DRM_I2C_SIL164) += sil164.o tda998x-y := tda998x_drv.o obj-$(CONFIG_DRM_I2C_NXP_TDA998X) += tda998x.o + +sii9022-y := sii9022_drv.o +obj-$(CONFIG_DRM_I2C_SII9022) +=sii9022.o diff --git a/drivers/gpu/drm/i2c/sii9022_drv.c b/drivers/gpu/drm/i2c/sii9022_drv.c new file mode 100644 index 0000000..bc49cad --- /dev/null +++ b/drivers/gpu/drm/i2c/sii9022_drv.c @@ -0,0 +1,449 @@ +/* + * Copyright 2015 Freescale Semiconductor, Inc. + * + * Freescale DCU drm device driver + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + */ + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include