From patchwork Tue Mar 19 10:40:53 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomi Valkeinen X-Patchwork-Id: 160539 Delivered-To: patch@linaro.org Received: by 2002:a02:5cc1:0:0:0:0:0 with SMTP id w62csp3711566jad; Tue, 19 Mar 2019 03:42:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqyy5zcnuKpU/l34umf9CqOdKv6RpA53O0G+EAQEpXRr5DKZ6TpQMqFLKKsBRFHdVH1J/EE7 X-Received: by 2002:a63:2c87:: with SMTP id s129mr1170802pgs.311.1552992136503; Tue, 19 Mar 2019 03:42:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552992136; cv=none; d=google.com; s=arc-20160816; b=cirrZ/I3RYpj6qqg49BqvZDkEEDv37p7AI7eRFMGwsSfbXg7CNk+naloSZAINRReyB izc7hYlJ1qZSCbhKBiyYd13RqprK/97icZWheev9A2it8BPOO+wjGTaAH27doARF0t1Z acQx/nCLRW939XoYwlcYuikiBGPM+rsGhf0aiHa1WKReLZiO8JZo5yV8OW4rRTQNj5Yb AciSV44U+v+gsy78I59Sg2+7E5Nk259dNwyXLCbNvDJ4jym5Y0+Fc93srm36GLF25Mst FhVjGv6YyvSVTcz/Wkvi84/yIFUmXXPT4/19n+Dd97wBwCnpXdR8a7aRT9l6ljnHNiPy c1lQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:message-id:date:subject:to:from :delivered-to; bh=Yl6HhOYPPfXSydMQonOjMq78zA/bThmRII5bvPD3FeM=; b=npLmclliXdOX4OOZkDzg0vXkksGUlF05Pr0EncBEcQWxNK2CIlwgj6CNof4mxG1FtS xWKYzYwOywUM/5d2r9QGQ/eQWZXXfmmat8gmLv6CF+TGt5cf+0ppm248Gv5qH607wGJh DxbES/lxNO6cvgzDC/5W8aXHXTFfGokDM3UronDIYrqEkM16IyrCtjlueFI7ufDFD56y CneUjARQ8wHi0uA8XbAoo3Ru6rMVRlz8Ou8DWHSDF++UD5FBXEeuf3poBducCSggq2C/ MkpexuC7FNUcZS0BSngctP00GZWjQDKl6yeXSFu65/gwpw+pS5wLPH4Y6YH7JJ29gFVj /bww== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id f26si8751903pge.226.2019.03.19.03.42.16 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 19 Mar 2019 03:42:16 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) client-ip=2610:10:20:722:a800:ff:fe36:1795; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C839889388; Tue, 19 Mar 2019 10:42:11 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) by gabe.freedesktop.org (Postfix) with ESMTPS id 39C8A89388 for ; Tue, 19 Mar 2019 10:42:10 +0000 (UTC) Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id x2JAg3pw068346; Tue, 19 Mar 2019 05:42:03 -0500 Received: from DFLE102.ent.ti.com (dfle102.ent.ti.com [10.64.6.23]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x2JAg2WV023155 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 19 Mar 2019 05:42:03 -0500 Received: from DFLE109.ent.ti.com (10.64.6.30) by DFLE102.ent.ti.com (10.64.6.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Tue, 19 Mar 2019 05:42:01 -0500 Received: from dflp32.itg.ti.com (10.64.6.15) by DFLE109.ent.ti.com (10.64.6.30) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1713.5 via Frontend Transport; Tue, 19 Mar 2019 05:42:01 -0500 Received: from deskari.lan (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp32.itg.ti.com (8.14.3/8.13.8) with ESMTP id x2JAfxlJ019091; Tue, 19 Mar 2019 05:41:59 -0500 From: Tomi Valkeinen To: Andrzej Hajda , Laurent Pinchart , , Lucas Stach , Andrey Gusakov , Philipp Zabel , Jyri Sarha , Peter Ujfalusi , Benoit Parrot Subject: [PATCH 00/21] drm/bridge: tc358767: DP support Date: Tue, 19 Mar 2019 12:40:53 +0200 Message-ID: <20190319104114.12077-1-tomi.valkeinen@ti.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1552992123; bh=dCxUO1cHYf7JHCLFScF1XOmycbfgj0XRakRLfj6rjaY=; h=From:To:CC:Subject:Date; b=NgHaFUZW+gtrrmslexPnXgfEBSaNzHam0lJWRaUDofFbTONgrmt28s+klFp5J3Lkh p7c4rZ8B2XY9FsXJFZ000O5Ex4F/TD/a5LIAL+oNWtUm1iFQxFXQQNEtOrKW3yAhGt PECXILYWkMhvvrgJyq9jkpaQ+7tsw2V09JEtBgqA= X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Tomi Valkeinen Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Hi, tc358767 bridge was originally implemented for eDP use with an embedded panel. I've been working to add DP support, and this series is the result. I did have a lot of issues with link training, but with these, it's been working reliably with my devices. A downside on my hardware is that there's no HPD interrupt, so this uses polling. I believe the polling support could be improved by using the INTSTS_G register to find out it there has been plug-ins/outs, but for now this does the HPD handling the naive way. Tomi Tomi Valkeinen (21): drm/bridge: tc358767: fix tc_aux_get_status error handling drm/bridge: tc358767: reset voltage-swing & pre-emphasis drm/bridge: tc358767: fix ansi 8b10b use drm/bridge: tc358767: cleanup spread & scrambler_dis drm/bridge: tc358767: remove unused swing & preemp drm/bridge: tc358767: cleanup aux_link_setup drm/bridge: tc358767: move video stream setup to tc_main_link_stream drm/bridge: tc358767: split stream enable/disable drm/bridge: tc358767: move PXL PLL enable/disable to stream enable/disable drm/bridge: tc358767: add link disable function drm/bridge: tc358767: ensure DP is disabled before LT drm/bridge: tc358767: remove unnecessary msleep drm/bridge: tc358767: use more reliable seq when finishing LT drm/bridge: tc358767: cleanup LT result check drm/bridge: tc358767: clean-up link training drm/bridge: tc358767: remove check for video mode in link enable drm/bridge: tc358767: use bridge mode_valid drm/bridge: tc358767: remove tc_connector_best_encoder drm/bridge: tc358767: copy the mode data, instead of storing the pointer drm/bridge: tc358767: add GPIO & interrupt registers drm/bridge: tc358767: implement naive HPD handling drivers/gpu/drm/bridge/tc358767.c | 457 ++++++++++++++++-------------- 1 file changed, 249 insertions(+), 208 deletions(-)