Received: by 10.223.176.5 with SMTP id f5csp408047wra; Tue, 6 Feb 2018 00:45:32 -0800 (PST) X-Google-Smtp-Source: AH8x226Id/xywV8zQtWNrxu99uXvrYBeo/eqioE6hHGznPV8kqkRPWuSJmvvOAm3g8GlxheA/y5y X-Received: by 10.99.115.16 with SMTP id o16mr1388594pgc.362.1517906732632; Tue, 06 Feb 2018 00:45:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517906732; cv=none; d=google.com; s=arc-20160816; b=rcUnL0FReoxKNxGG9z1B8N3uOVKfaLSuhqE0MM6yRywZ662AR4I9VkbLJ10nFwjK/+ AXCc1awIHitsKRGWeZxhBMIzqLSLB0LZt6Z6o+YE1dQK/rxqCv/2tmue5csAu33Qq2Q0 D4H9XrFQEUglfOVgK7n3J7k8jixsLY9BXDsFKASf2EkPVRrPfrH62kSzCJ3PdKmaQxCI fWmnFhNL1n4ieTmv2/gWvGhAb7ShZnYBr/F8KquV54hWNhUzoLAA/gz38aCJ6W50sJac 3A6pNzSBuQSL+hcjgqIG4xKwlylT9nSntbWdzFvDF61kg1IZ6hdypjtmiOGLUpYTXxKl trBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:arc-authentication-results; bh=0WdBb1IKNBjxpkyWRGAoA9nk6J00meqfC9+SjuXt5ko=; b=mWaHTlo33nWOC5pmpypDaXiXMWvPVtwr8HXI6OepeHwCZ6WhK+sy1Z+jai2i8+VeT9 ZJLCS6bobyqNsSldjTulRFDhBam9yFylI/SO/83A/0F0vMsS8jDDQqcMvqohx6aYayfs AD6dApx8VgfLc0jhH1Qb7nB/eMzaE4OdbEyoPJ+GPhjqSDpR/tgqy+vf2gnf5PaRB8d/ uOB3U/LDJZJtxyWiXz8G3aMTZbjJ2+sL1gCOgqaeRImMUnt94rZhENsxuRUC1ZwYvaZy v4r2dxBgBmZMXrI/CrmmTQ1PthrzvJv3ZS/nGs/DhNtqXZCIJQ8KZ64G8GE5KaCET6Tv 7FjQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 32-v6si446260pla.96.2018.02.06.00.45.17; Tue, 06 Feb 2018 00:45:32 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752489AbeBFIoE (ORCPT + 99 others); Tue, 6 Feb 2018 03:44:04 -0500 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:38242 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751835AbeBFIn6 (ORCPT ); Tue, 6 Feb 2018 03:43:58 -0500 Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx08-.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id w168dgSl029013; Tue, 6 Feb 2018 09:43:18 +0100 Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx08-00178001.pphosted.com with ESMTP id 2fw4uhp6yw-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 06 Feb 2018 09:43:18 +0100 Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id EEFF031; Tue, 6 Feb 2018 08:43:13 +0000 (GMT) Received: from Webmail-eu.st.com (Safex1hubcas23.st.com [10.75.90.46]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id C09602B66; Tue, 6 Feb 2018 08:43:13 +0000 (GMT) Received: from SAFEX1HUBCAS24.st.com (10.75.90.94) by SAFEX1HUBCAS23.st.com (10.75.90.46) with Microsoft SMTP Server (TLS) id 14.3.361.1; Tue, 6 Feb 2018 09:43:13 +0100 Received: from localhost (10.201.23.32) by webmail-ga.st.com (10.75.90.48) with Microsoft SMTP Server (TLS) id 14.3.361.1; Tue, 6 Feb 2018 09:43:13 +0100 From: Philippe Cornu To: Archit Taneja , Andrzej Hajda , Laurent Pinchart , David Airlie , Philippe Cornu , Brian Norris , Benjamin Gaignard , Bhumika Goyal , , , "Sandy Huang" , Heiko Stubner , , CC: Yannick Fertre , Vincent Abriou , Alexandre Torgue Subject: [PATCH v2] drm/bridge/synopsys: dsi: Add 1.31 version support Date: Tue, 6 Feb 2018 09:42:51 +0100 Message-ID: <20180206084251.303-1-philippe.cornu@st.com> X-Mailer: git-send-email 2.15.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.201.23.32] X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2018-02-06_04:,, signatures=0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add support for the Synopsys DesignWare MIPI DSI version 1.31 Two registers need to be updated/added for supporting 1.31: * PHY_TMR_CFG 0x9c (updated) 1.30 [31:24] phy_hs2lp_time [23:16] phy_lp2hs_time [14: 0] max_rd_time 1.31 [25:16] phy_hs2lp_time [ 9: 0] phy_lp2hs_time * PHY_TMR_RD_CFG 0xf4 (new) 1.31 [14: 0] max_rd_time Signed-off-by: Philippe Cornu --- Modified in v2: Simplify the code thanks to comments from Andrzej Hajda & Archit Taneja. drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c b/drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c index d2e5c026cd8c..4496687e6e67 100644 --- a/drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c +++ b/drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c @@ -25,7 +25,10 @@ #include #include