From patchwork Wed Mar 9 08:31:00 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Meng Yi X-Patchwork-Id: 8544311 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 B72CE9F46A for ; Wed, 9 Mar 2016 09:44:38 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4C1A32026F for ; Wed, 9 Mar 2016 09:44:37 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id D81B0200E7 for ; Wed, 9 Mar 2016 09:44:35 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D0E996E882; Wed, 9 Mar 2016 09:44:32 +0000 (UTC) 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-bn1on0087.outbound.protection.outlook.com [157.56.110.87]) by gabe.freedesktop.org (Postfix) with ESMTPS id 19EDC6E866 for ; Wed, 9 Mar 2016 08:56:12 +0000 (UTC) Received: from BLUPR03CA003.namprd03.prod.outlook.com (10.255.124.20) by BN1PR03MB170.namprd03.prod.outlook.com (10.255.200.147) with Microsoft SMTP Server (TLS) id 15.1.427.16; Wed, 9 Mar 2016 08:40:15 +0000 Received: from BN1BFFO11FD030.protection.gbl (10.255.124.4) by BLUPR03CA003.outlook.office365.com (10.255.124.20) with Microsoft SMTP Server (TLS) id 15.1.427.16 via Frontend Transport; Wed, 9 Mar 2016 08:40:15 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; cmss.chinamobile.com; dkim=none (message not signed) header.d=none;cmss.chinamobile.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 BN1BFFO11FD030.mail.protection.outlook.com (10.58.144.93) with Microsoft SMTP Server (TLS) id 15.1.434.11 via Frontend Transport; Wed, 9 Mar 2016 08:40:13 +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 u298e8P8005427; Wed, 9 Mar 2016 01:40:10 -0700 From: Meng Yi To: , , Subject: [PATCH v3 1/3] drm/layerscape: Add sii9022a driver Date: Wed, 9 Mar 2016 16:31:00 +0800 Message-ID: <1457512262-45984-1-git-send-email-meng.yi@nxp.com> X-Mailer: git-send-email 2.1.0.27.g96db324 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131019864141319287; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(2980300002)(1109001)(1110001)(339900001)(199003)(189002)(50986999)(5003940100001)(19580395003)(5008740100001)(19580405001)(4326007)(50226001)(106466001)(33646002)(229853001)(6806005)(2201001)(586003)(104016004)(87936001)(575784001)(1096002)(1220700001)(5001770100001)(47776003)(86362001)(189998001)(105606002)(2906002)(48376002)(85426001)(77096005)(11100500001)(50466002)(81166005)(92566002)(36756003)(7059030)(2004002); DIR:OUT; SFP:1101; SCL:1; SRVR:BN1PR03MB170; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; MLV:sfv; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD030; 1:x1wAIouDo+BOTvo6CHXx7eHiXE4zI9hMp2wQYz6lHySq+gGjayRGogTk8qS56Pes+pd4omsurdWZmterEIJ7b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gHbcTJUbSaB70w7T1nRBUfdRb/FzxUhUW1ylkvuQc4nWrdkYEMQXL18MZ4UJWeSji1tLBKZn4SJ/+EsBPwdQjPEptn7umvUDeUQU5TGypFI8BAsva5W2XJCeaOADJf8JI3pALFqemJ/kX0OxnJxhEfkb7zD9azciVFqgLYt71TUexwPw0NrUMslZfTjcox5klsn26AffAgOA5iD63VGHe55U+F+F2yjNuDkkObLhMiewVt6nQ== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BN1PR03MB170; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(13015025)(13017025)(13018025)(13024025)(13023025)(5005006)(8121501046)(10201501046)(3002001); SRVR:BN1PR03MB170; BCL:0; PCL:0; RULEID:(400006); SRVR:BN1PR03MB170; X-Microsoft-Exchange-Diagnostics: 1; BN1PR03MB170; 4:l79p5qx242yMsBOP4kGLyqpdolN2o/VzXu9UoHgBRkVKwu2XwHkD3irFXeouzKSwuiVnGL/557S+KN4MpI2jGd8PrT/v1UItjbn7ru8tc5p1UQJzVMWahkb1t8SRieaR8DLuISFBn1jW2kEDJ3YA3y5BGHgKjoOwOe+Tpn6+r/LbfWD9jZOBlMggyjtMv3B85DKVbkARXAq6zeV7OsMKe64yxHRuvWmYHU7UneQaP/ImMd0/pWQYzPuCvaQk/sjuui9O77/U+eTKKTe/4PGxqRiO1eTZDZphXKn58cPkCwXIoetb07tRrG4JcoK1HSn0oBsqxWhQ6hDSqtdNQnpXBiRzKVqB2WN6vjRArwMeryqIzBS4eIex7Xtdmt7F4gxYegreMqbyYJmWcIFhjKFFmrmHUXHZH6PiQYhHd02mfk7oYfKHINVXu26l3dW+vMQGjIvnfxeEKKEAzaliWYAcxA== X-Forefront-PRVS: 0876988AF0 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN1PR03MB170; 23:ajWte8SNCt5W/8+jg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7CtU+QgShBup067o9KKF9GJ3AjjdiowM0GmNKIU22DR2s/Yx+WqvjSSrv?= =?us-ascii?Q?URyiw8edxvB7XCHiFAw3uwrBeHCaKuohbecYPGpFp56Cp/M4Ob4fJfVogZFR?= =?us-ascii?Q?JY8G+Ygx6rfB0EmdFoIQIQwdTvwbHXt+/mGcb3pVNLo3d8Wl9vKxtlmIPtWy?= =?us-ascii?Q?i6pTrdqkL1avQNnC0Gh1XClyVC?= X-Microsoft-Exchange-Diagnostics: 1; BN1PR03MB170; 5:iC3EL+cRMFQAPNJpkBVbibAZ0T7kPZgm5ZvwtmOV6BXPdqV+OKl4x/8S0v5g+n6dFE+LiVhihH64pTuIpAuSK9woSZ5b9Z1zZMGmfmyR6H3DXoDUw3eqMegTMxIQ9sf/a+Vthp1kSEZHQRn/xXvP505o3+MqrBmYnJ/C6jmOg2s=; 24:d1ChS+cNUqzqmjuO1KMzmjon4/Er/kkMhehi0gk2SbMAtyjuu+KatfrR2S5lcf6vpBSR++67twkwaoCxU/78BHD8GWZHqocuvS9d9TW+J5c= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Mar 2016 08:40:13.9447 (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: BN1PR03MB170 X-Mailman-Approved-At: Wed, 09 Mar 2016 09:44:31 +0000 Cc: Meng Yi , Xiubo Li , Alison Wang 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 4K 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