From patchwork Thu Mar 31 15:19:41 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Vasut X-Patchwork-Id: 12797238 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D0E53C433FE for ; Thu, 31 Mar 2022 15:20:35 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id E573510EA69; Thu, 31 Mar 2022 15:20:30 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) by gabe.freedesktop.org (Postfix) with ESMTPS id 3584710E596 for ; Thu, 31 Mar 2022 15:20:29 +0000 (UTC) Received: from tr.lan (ip-89-176-112-137.net.upcbroadband.cz [89.176.112.137]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: marex@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id 3E493841F3; Thu, 31 Mar 2022 17:20:27 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1648740027; bh=w9cR4M5/uruA/pw3hEW93Q+NpXi167hv413IPQwgXhg=; h=From:To:Cc:Subject:Date:From; b=kAam0SPCp6BnYOWPd+bkVQ+9F2F8NmnkdRr/BegKlPyMKl+BTPnilC1iilAPqBmVg d+JwQyYQvchR1ZNYVm8d635uPFogX0Y1KqBtMxCDnNmhE2hix96SUB+ztrOKlQQojl X6KOB7eN7kRDUrD4sH096H4GI4z9gaZp5FEBJL2ZsnBLt0fimB5LqoO8b7tx8C2UXt PrepxzBpmmRZJ2vqaZrlMxgnwiMp6bmYeKkyFdFobV1N21Or2JKLIrDmX+FWDXITnk AclNmKtA41iD6bDW9xJ3GJ5fOMP6mnLMdPOqHBlHkyYk+E025PZF2f6N26KkCbPK22 k9LqVNwnOQ3vA== From: Marek Vasut To: dri-devel@lists.freedesktop.org Subject: [PATCH v6 00/11] drm/bridge: tc358767: Add DSI-to-DPI mode support Date: Thu, 31 Mar 2022 17:19:41 +0200 Message-Id: <20220331151952.13221-1-marex@denx.de> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Marek Vasut , Jonas Karlman , Neil Armstrong , robert.foss@linaro.org, Maxime Ripard , Sam Ravnborg , Laurent Pinchart Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" The TC358767/TC358867/TC9595 are all capable of operating in multiple modes, DPI-to-(e)DP, DSI-to-(e)DP, DSI-to-DPI. Clean up the driver, switch to atomic ops, and add support for the DSI-to-DPI mode in addition to already supported DPI-to-(e)DP mode. Cc: Jonas Karlman Cc: Laurent Pinchart Cc: Maxime Ripard Cc: Neil Armstrong Cc: Sam Ravnborg To: dri-devel@lists.freedesktop.org Marek Vasut (11): dt-bindings: display: bridge: tc358867: Document DPI output support dt-bindings: display: bridge: tc358867: Document DSI data-lanes property drm/bridge: tc358767: Change tc_ prefix to tc_edp_ for (e)DP specific functions drm/bridge: tc358767: Convert to atomic ops drm/bridge: tc358767: Implement atomic_check callback drm/bridge: tc358767: Move (e)DP bridge endpoint parsing into dedicated function drm/bridge: tc358767: Wrap (e)DP aux I2C registration into tc_aux_link_setup() drm/bridge: tc358767: Move bridge ops setup into tc_probe_edp_bridge_endpoint() drm/bridge: tc358767: Detect bridge mode from connected endpoints in DT drm/bridge: tc358767: Split tc_set_video_mode() into common and (e)DP part drm/bridge: tc358767: Add DSI-to-DPI mode support .../display/bridge/toshiba,tc358767.yaml | 22 +- drivers/gpu/drm/bridge/Kconfig | 1 + drivers/gpu/drm/bridge/tc358767.c | 583 +++++++++++++++--- 3 files changed, 530 insertions(+), 76 deletions(-)