From patchwork Tue Feb 16 01:52:45 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Meng Yi X-Patchwork-Id: 8322831 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 C666B9F372 for ; Tue, 16 Feb 2016 08:44:58 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4594620340 for ; Tue, 16 Feb 2016 08:44:57 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 275C0202F8 for ; Tue, 16 Feb 2016 08:44:55 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 9A4696E760; Tue, 16 Feb 2016 08:44:53 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from na01-by2-obe.outbound.protection.outlook.com (mail-by2on0072.outbound.protection.outlook.com [207.46.100.72]) by gabe.freedesktop.org (Postfix) with ESMTPS id C7D1E6E212 for ; Tue, 16 Feb 2016 02:01:44 +0000 (UTC) Received: from CH1PR03CA009.namprd03.prod.outlook.com (10.255.156.154) by BLUPR03MB1490.namprd03.prod.outlook.com (10.163.81.20) with Microsoft SMTP Server (TLS) id 15.1.396.15; Tue, 16 Feb 2016 02:01:42 +0000 Received: from BY2FFO11FD022.protection.gbl (10.255.156.132) by CH1PR03CA009.outlook.office365.com (10.255.156.154) with Microsoft SMTP Server (TLS) id 15.1.409.15 via Frontend Transport; Tue, 16 Feb 2016 02:01:42 +0000 Authentication-Results: spf=fail (sender IP is 192.88.158.2) smtp.mailfrom=nxp.com; gmail.com; dkim=none (message not signed) header.d=none; gmail.com; dmarc=none action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.158.2 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.158.2; helo=az84smr01.freescale.net; Received: from az84smr01.freescale.net (192.88.158.2) by BY2FFO11FD022.mail.protection.outlook.com (10.1.15.211) with Microsoft SMTP Server (TLS) id 15.1.415.6 via Frontend Transport; Tue, 16 Feb 2016 02:01:41 +0000 Received: from titan.ap.freescale.net ([10.192.208.233]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id u1G21aE5016008; Mon, 15 Feb 2016 19:01:37 -0700 From: Meng Yi To: Subject: [PATCH v2 1/3] drm/layerscape: Add sii9022a driver Date: Tue, 16 Feb 2016 09:52:45 +0800 Message-ID: <1455587567-14606-1-git-send-email-meng.yi@nxp.com> X-Mailer: git-send-email 2.1.0.27.g96db324 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131000617019818675; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD022; 1:1gsAWs3vcwT2e52lAygpniBzX57kxW0LBDdBqpM4BsMzGu+8n4/jzxl7sl5b5RWg/ayHHsy3eYOn/N00HESmdGvrUAagIZ4i9SY+jt+KGz5xrCuaXTdrVsV2yqTpIhlb5CEvzUGCC2ACTnTF2d7nvGReTiTJAJCEPmC3oCTYE5+jUHS16u2xT7s0ankl0HVDU5vO1JwfRBDBHtnnulL4o1swX8L0DDw54lVkaNRvoAPw07J8lnMiCBJ9up35FTTIFfASG1txvxJlvk3JL7zvPSUz6ss1lIdQYbV868QRUEO7X1Wwh3R0Jhh+HoNh1JRNKTUA016WhGsqDAXBv/Yx2OpgprAuo70TDGPyKYLa/gbZy+ADlE1rmDOPvbeVdKJzQu2OC6cH6pEJaMnMZ3/cXaeuzYYB3CJ0KgqOC1EKt51L8iELSu99iHEHA+1maq8ZIaHefU9pBwgrb3TOXNeMeBKgVoYaqihxd6rEFgNX9kk= X-Forefront-Antispam-Report: CIP:192.88.158.2; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(2980300002)(1110001)(1109001)(339900001)(199003)(189002)(5001960100002)(1096002)(110136002)(19580395003)(1220700001)(5003940100001)(50226001)(575784001)(86362001)(33646002)(85426001)(50986999)(19580405001)(77096005)(6806005)(104016004)(36756003)(11100500001)(47776003)(5008740100001)(105606002)(87936001)(48376002)(2351001)(50466002)(189998001)(92566002)(229853001)(106466001)(586003)(4326007)(2906002)(7059030); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR03MB1490; H:az84smr01.freescale.net; FPR:; SPF:Fail; MLV:sfv; A:1; MX:1; LANG:en; MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: c57d7275-d25f-4f97-c2b3-08d336751d49 X-Microsoft-Exchange-Diagnostics: 1; BLUPR03MB1490; 2:Dl+YEEO7fc78N5TgVRqPclynnyxu8Jm7o24IIbmZSrkExzyz0cJFYOLBxUO4wbi6R/XCFdZw+p0e/sZuZG4xje0P1KMVHgxaYS1U01d+Hn7DQqsl4pXlDLkYeESqCegDc8o+Aj10Obg/q4EDut8fpdhM1HR9sR0pIOA79G2LSo0u9RFcAIZYoq2jsFBCK55Y; 3:Yw8pCMQujcUkK+XH8jn8xEVR9QBVLLu/7PDqbzFSxcmYD1C5EU8Xkq+IlRord2JBBxF2KU9GuQWlAeKDicsQgVEYXGsozWjPgMRVLSvdfj4S2Qmce/xbP0z+UorwDhp0AaWc5oLqtbX7OJ8SETzSq7lZmtt069HOq3eUSAuETxtKemBwcE963nuKqzVR++fmLJ6o0bUSGAuNPvsdp8U0MBMQgNR8Mh3Bq5gK+BAI/6I=; 25:eTHN4UHMrKQ4GFzR0YlhWkaz/csaUcaX33JSZncfuADXRJ+FrCeu5KP61wGwVMrdWtW2aksLYRhVjJQmfcErbvHP+M10d73iYXiGgMht2eZL/3SJYfWC+i/zuJzaatuU4e4XDGFEdzQc40brb/Xy6mdEKR2MuvDMKM6oR1KFTWdLVDLso0UNd0IeGwpxcl6jx42Y7XY1UE5zkaAbzR5YNZw9Ica3MJBsZNXHA1EZuxcDujpXImTzqpRw9F2Z+TlnVQteHaMu8r1plqsxINWON3dYZUpnAPwat2wQx5Uf1x/4LsU95unIUygAI+bw440f X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BLUPR03MB1490; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(5005006)(13018025)(13017025)(13015025)(13023025)(13024025)(8121501046)(3002001)(10201501046); SRVR:BLUPR03MB1490; BCL:0; PCL:0; RULEID:(400006); SRVR:BLUPR03MB1490; X-Microsoft-Exchange-Diagnostics: 1; BLUPR03MB1490; 4:xAnNVUVpxgvuubrjyjel7ekglEgs8R+vIBqSWLIk4dD2HCZ6F4iiHlQ7g4cHm1pmY7CdV8M5GYzmwUV+yOEsDorzgLUKn9xBX5LWbiEAK/Y8nA/uf9J5vqkBVQAQSYGqnmy7GulDl1BPqPqG5S89D9DXnddJd5bD7h8USYifU1Tmz6MJ1LMuDzB1BzwzjJ4+FFnuVPwIPf4Q1ieFNjSEVQeLMF7fM35y8ua2BrEi44OI/TqAPU8PeqkdlbzJrv3CEIY5fvB32XnJFqgeQbcR+AzG1z8PExmdR6kmKyJTReDf0y1BPOKF2Tvybk/sopH2GZX13bxPQ9GjjsHWp8HZjLAkP46MPrhTQoDIDHdTn6pLFf+49wbaJPhH3EPfIw+MBPTCw39y5aITb9FdUCu6Y/CXhd0Vqhs0LpDPLxbDMbzoA9ErZIi3yDp3A4N2pvyoPvpJqo4g5LL0d09xuuzouLhGz15Y6HIOLogzMyaLNEmkiUqIcpIp3o52BIknzyEX X-Forefront-PRVS: 0854128AF0 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR03MB1490; 23:5K8yK7uuC2gYvCR6iMquIK4EQ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WEDphDv7kL05L466JN7jO4XDpPrYxy?= =?us-ascii?Q?ZbhwUVQVD75JO1nKVfaSitsZVhNeIaMK5zvCm696BIJydYfI3a4Da/ssPYof?= =?us-ascii?Q?T/vzD5dUavDycvGbukGHpo7m0cXfSH3Vm1w1J/ysI3LNDKNWOGN/p31nzcA7?= =?us-ascii?Q?DkeBrc=3D?= X-Microsoft-Exchange-Diagnostics: 1; BLUPR03MB1490; 5:Zio/lkixVh9F5eObXa9T/lnpi4PqbQIIHveA9xVSzdJrJ4ay/nXP59eWuk5XiGDi9K6Pb1AkkfFT8/PndM7ynTj6w2ryKTKsxWKGUyNYYtBMSqSxeQXwQx/AjkFn/1xGqIxvLD/mWoB196gPK66mQVWEESL1Xb15ovpVmxfD7oA=; 24:pKIZ+0+1c6JAY1olaPdLW7c44TDMbgLSSwkVHyCxVxhJ/5avnXrykdPnKHGQV0cvDxbSFrWSrSpwfQG48Ge3dyk4nRHVPgAxiO5aVLoPe4c= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Feb 2016 02:01:41.5294 (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.158.2]; Helo=[az84smr01.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR03MB1490 X-Mailman-Approved-At: Tue, 16 Feb 2016 08:44:50 +0000 Cc: Meng Yi , Xiubo Li , Alison Wang , dri-devel@lists.freedesktop.org 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 Signed-off-by: Alison Wang Signed-off-by: Xiubo Li Signed-off-by: Jianwei Wang --- 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