From patchwork Thu Apr 21 00:02:53 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "J.D. Schroeder" X-Patchwork-Id: 8895521 Return-Path: X-Original-To: patchwork-linux-fbdev@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 730C9BF440 for ; Thu, 21 Apr 2016 00:03:45 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 59294202EC for ; Thu, 21 Apr 2016 00:03:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D5BE0201FA for ; Thu, 21 Apr 2016 00:03:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751335AbcDUADk (ORCPT ); Wed, 20 Apr 2016 20:03:40 -0400 Received: from mail-bn1bon0119.outbound.protection.outlook.com ([157.56.111.119]:17501 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751285AbcDUADi (ORCPT ); Wed, 20 Apr 2016 20:03:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=garmin.onmicrosoft.com; s=selector1-garmin-com; h=From:To:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=IOoYQYAb8W8YTrsX4wmEcZRXHGigzu50V6PB91mRzrQ=; b=N2g2v0AeNTuwcKej2Qmv1wAv5aLAY6PH9YJjT/PhHY2XNH3cT+oCEK2OQWpH9HM+Znf5cZRnwyOwxRBMYh4EqhW2biHQi/IN4VdKY2/c6QUdbinU3dlIfsBXxDhZLQ5RggPnhAKhnTGzAI/NLBfFVzXkfG8QGJR6ewaZgHj+77U= Received: from CO2PR04CA030.namprd04.prod.outlook.com (10.141.240.158) by BN3PR0401MB1331.namprd04.prod.outlook.com (10.161.208.141) with Microsoft SMTP Server (TLS) id 15.1.466.19; Thu, 21 Apr 2016 00:03:36 +0000 Received: from BN1AFFO11FD026.protection.gbl (2a01:111:f400:7c10::173) by CO2PR04CA030.outlook.office365.com (2a01:111:e400:1428::30) with Microsoft SMTP Server (TLS) id 15.1.466.19 via Frontend Transport; Thu, 21 Apr 2016 00:03:36 +0000 Authentication-Results: spf=pass (sender IP is 204.77.163.247) smtp.mailfrom=garmin.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=bestguesspass action=none header.from=garmin.com; Received-SPF: Pass (protection.outlook.com: domain of garmin.com designates 204.77.163.247 as permitted sender) receiver=protection.outlook.com; client-ip=204.77.163.247; helo=garmin.com; Received: from garmin.com (204.77.163.247) by BN1AFFO11FD026.mail.protection.outlook.com (10.58.52.86) with Microsoft SMTP Server (TLS) id 15.1.472.8 via Frontend Transport; Thu, 21 Apr 2016 00:03:33 +0000 Received: from OLAWPA-EXHT05.ad.garmin.com (10.5.143.145) by edgetransport.garmin.com (192.168.18.224) with Microsoft SMTP Server (TLS) id 14.3.266.1; Wed, 20 Apr 2016 19:03:28 -0500 Received: from ola-5cc9c42.ad.garmin.com (10.5.143.129) by olawpa-exht05.ad.garmin.com (10.5.143.145) with Microsoft SMTP Server id 14.3.248.2; Wed, 20 Apr 2016 19:03:08 -0500 From: "J.D. Schroeder" To: , , , , CC: "Lodes, Jim" , "J.D. Schroeder" Subject: [PATCH] OMAPDSS: HDMI5: Change DDC timings Date: Wed, 20 Apr 2016 19:02:53 -0500 Message-ID: <1461196973-20370-1-git-send-email-Linux.HWI@garmin.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 X-TM-AS-Product-Ver: SMEX-11.0.0.4179-8.000.1202-22274.003 X-TM-AS-Result: No--6.695600-0.000000-31 X-TM-AS-User-Approved-Sender: Yes X-TM-AS-User-Blocked-Sender: No X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:204.77.163.247; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(2980300002)(438002)(199003)(189002)(1220700001)(50226001)(106466001)(5008740100001)(19580395003)(19580405001)(2201001)(40036005)(1096002)(87936001)(92566002)(5003940100001)(47776003)(5001770100001)(189998001)(107886002)(81166005)(6806005)(229853001)(48376002)(2906002)(5003600100002)(4326007)(77096005)(50466002)(4001430100002)(11100500001)(16796002)(36756003)(86362001)(50986999)(586003); DIR:OUT; SFP:1102; SCL:1; SRVR:BN3PR0401MB1331; H:garmin.com; FPR:; SPF:Pass; MLV:sfv; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD026; 1:ZtutQcGrqKASlO/HwoEpii7LHbsLjcyVFnX4a/NvH1wVLNs4DIVSjWCGUUIHKuVN+HdNf3SWNJoXeuj0MTjWVXOUU1h/fHb5qttKmgoYKHtzGsLvnQ0x1JENT70FRIVZjK07uBTCT2A77J1E6QX+Uhpnno/l/Py85bVrDw5uGIcDf2qz4TsSoCxHVLOxWxWDGIO8En2S8zvHzEPMkUq0cD67NEuvIbzJD7zilUnj4jvjNXXKz9PoP5kC7T8Evb0zGUBffomowEm/2YBy8XobF2cdUctCEUb3L8gIfuCZRjyxxiRFDOHDqmIkMmfFdLheBiz11YFwc3HDL2KhIhmrCJ5gm9WIUsAfMhVuH+mCxmp6o4qPXd8xtFIokHygywwFgG+egTmWSJ6MfSs8uECNXH/uFGbf9hRB2gS9H5XK0dg+SQQbEsSAWiv9WzSHvF1XaivOYHzV7I6xMNvHE8/M7jERgdXDsonwwr14yH+T7WqFcMhsr4UF1Y/3OvNuAS1o X-MS-Office365-Filtering-Correlation-Id: 651a7fb4-8ea9-4f9e-f156-08d3697861f5 X-Microsoft-Exchange-Diagnostics: 1; BN3PR0401MB1331; 2:hg6PS/VzHU0UxCRAfydFoLrV0pK3UWH15d6u+q72gR9hLDImGCGR8Kw/FPeNNhxjErS8NOz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Js2u3GiD1x/aj1znKPFlReQU9lg28Y1uQrfpyu3ubLGD3nrUCtq5OV+xtzTHVabX2XKuR8/LduqO12VwXnesgI+dgNwtzQA/eUeYc8cSZ22mhMTOA4FCGV9E6fd7u9yYE71e4Ry/BoNw X-Microsoft-Exchange-Diagnostics: 1; BN3PR0401MB1331; 20:3eWDrGzs+6eZA1kvW3Ik1KsrGJR+vhJFPXMSetqhi92Ia54+p8NUpLFLfT3gHf0zPM4RIJhP8Gf9moqH+ErYAPLsRhNzwQfsgez06q7Sxk2Q1uQkEo34d8qCfMB899fSZETyRm+vQ0Vmd9dQYwR4YQfdgpgE70lR6bzeaTBjk2SdLlorWBlkCrAZuE7g+zQoNLAL2mlpMy4RclLZmSAb+1gGA8Von3EpeK6Q2XdEyGHKuPTHYg/GGW+Kfv61AfrGLdroMgBwUzRlmkR7H0NEMHejgJpEC4766Pt3oO+C7yrdoNpS8uX6TascZpJqpPSW39HBaoPA1siscDt8cr4zTlnbPJCU9dBTGYu2XA4v8jHnrSItMZdo4BfUQBxxmhqs7Y4nX+IQROwOl7jrpcbG35VREO0EHHR8wdxvWgtrLD2qNONz4NzZaCiS9MvBzkoSQdmDMhwpVrpumahHbDIJRQ/p3TN7p8RGB6vvLpTA+h7811lQ2KQP0q3Mx4+Me7Ua X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(13018025)(13017025)(5005006)(13015025)(13024025)(8121501046)(13023025)(10201501046)(3002001)(6055026); SRVR:BN3PR0401MB1331; BCL:0; PCL:0; RULEID:; SRVR:BN3PR0401MB1331; X-Microsoft-Exchange-Diagnostics: 1; BN3PR0401MB1331; 4:wllRhCZNqqtCf5sk4OwJN2/JhC2f43ykE6t0Ya61IFdOwkPZTwlHQCRxRYTVChuatYBRBpk9YgWQv7PKw6UHceOybRKjS1db5WX+8skwIycRFwkrxpjMKDfQy/+HtpqDjyNm8nAfgyBtm1NcWOnVBkwM7LFzGmCBgbnsxFR5SzjGkSFACrO5RD13ILo6bVFaWFwCYqogUo/SI54X/NVXZgRLKBfqWuIOdH0GLfCDtfkGjOebjRibgsz2zMlj6ZefzEhz34u4jo4rwyfyJe6GZeR0xhLAXY9wFkhR1qCDI2PwNDrKzMs4nhozAWdFoePEc7v1BBWUbP7ebUy/1J9tzOUtaEUjd7qX7VFqU5RUeYw+pIGFHvn07OiO0x4gZESNGaJtaOxBXJff7+xefcprMMygrFj6mP7TOPMeUVPTqqZQn7nSt3N6VimCq23Fp4K3EBpifbRnK3Sh0y5EHCSrK8gskKuPui6PWbXHbgW1L/0= X-Forefront-PRVS: 091949432C X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN3PR0401MB1331; 23:I2rVsJPQhIBcSi8+uq9tQt8hEPJODwAfMvQuvw2?= =?us-ascii?Q?snmR3wCsWaTPHpST7QJhDlmZCBshx/NPIIFcHfI9vHDAdz97Y0O94T6V6qj7?= =?us-ascii?Q?fxAfL+89QPoc5xLNRs+pOQNl07tETCkKRWbiHi/TT+U1vOwO7dl2MVHPnlek?= =?us-ascii?Q?otIhqB8fhK8Y9iRt864GrGcqHsFr8JU0XyyWgaOxSduEeF29IEKg0tIorWi9?= =?us-ascii?Q?kSp5BJw/gKZ6xErkQ1Q0qpQBoRA4KxNKntS0Mve4/iNYCtubkOVpeoyQFLkQ?= =?us-ascii?Q?uhgqitS5aGUrzdS7GiF50ImoqYcQyfrz9Pa6e8egtoQOUhsd3SQ4GuY/D9ny?= =?us-ascii?Q?9U3VERph/tFeRnFYAudvnK/gFSggbi5YTXk1RPc9aCvmukJ9JoHoCu13OjMy?= =?us-ascii?Q?RqEF742nCQgMmaXOpQbdYgsen2I+8Nf2ivtpLrIuxauGQMOGH8YbFumjTyoq?= =?us-ascii?Q?OB2g1CSULTApiBuSgs16Z30ifbOy6aoRJPRfFUXPtZ4BoC3pDXgtSPNRIs9Q?= =?us-ascii?Q?pvqPP0Sj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+KSA9/zo6ChRTrhw6qQsK3KqWoDMVmoCZydekv40YlGyFj6K0ZLSFaoHOxoQh16aYsEJtBcVLurE8pcygbz02VeAJLBofM8Qv/EadLhsucDXkk2+bfHPK5ehD4YO8F2qq0+eNro= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: garmin.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Apr 2016 00:03:33.1620 (UTC) X-MS-Exchange-CrossTenant-Id: 38d0d425-ba52-4c0a-a03e-2a65c8e82e2d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=38d0d425-ba52-4c0a-a03e-2a65c8e82e2d; Ip=[204.77.163.247]; Helo=[garmin.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR0401MB1331 Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Spam-Status: No, score=-7.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,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 From: "Lodes, Jim" The DDC scl high and low times were set to the minimum values from the i2c specification, but the i2c specification takes into account the rise time and fall time to calculate the frequency. To pass HDMI certification DDC can not exceed 100kHz therefore in a system where the rise times and fall times are negligible the high and low times for scl need to be 10us. Signed-off-by: Lodes, Jim Signed-off-by: J.D. Schroeder --- drivers/gpu/drm/omapdrm/dss/hdmi5_core.c | 4 ++-- drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/omapdrm/dss/hdmi5_core.c b/drivers/gpu/drm/omapdrm/dss/hdmi5_core.c index 6a39752..d993f78 100644 --- a/drivers/gpu/drm/omapdrm/dss/hdmi5_core.c +++ b/drivers/gpu/drm/omapdrm/dss/hdmi5_core.c @@ -51,8 +51,8 @@ static void hdmi_core_ddc_init(struct hdmi_core_data *core) { void __iomem *base = core->base; const unsigned long long iclk = 266000000; /* DSS L3 ICLK */ - const unsigned ss_scl_high = 4000; /* ns */ - const unsigned ss_scl_low = 4700; /* ns */ + const unsigned ss_scl_high = 4600; /* ns */ + const unsigned ss_scl_low = 5400; /* ns */ const unsigned fs_scl_high = 600; /* ns */ const unsigned fs_scl_low = 1300; /* ns */ const unsigned sda_hold = 1000; /* ns */ diff --git a/drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c b/drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c index 8ea531d..f3e4b81 100644 --- a/drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c +++ b/drivers/video/fbdev/omap2/omapfb/dss/hdmi5_core.c @@ -51,8 +51,8 @@ static void hdmi_core_ddc_init(struct hdmi_core_data *core) { void __iomem *base = core->base; const unsigned long long iclk = 266000000; /* DSS L3 ICLK */ - const unsigned ss_scl_high = 4000; /* ns */ - const unsigned ss_scl_low = 4700; /* ns */ + const unsigned ss_scl_high = 4600; /* ns */ + const unsigned ss_scl_low = 5400; /* ns */ const unsigned fs_scl_high = 600; /* ns */ const unsigned fs_scl_low = 1300; /* ns */ const unsigned sda_hold = 1000; /* ns */