From patchwork Fri Feb 18 01:00:43 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Vasut X-Patchwork-Id: 12750859 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 9E348C433F5 for ; Fri, 18 Feb 2022 01:01:21 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 5A93910E92A; Fri, 18 Feb 2022 01:01:20 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) by gabe.freedesktop.org (Postfix) with ESMTPS id B5C4D10E914 for ; Fri, 18 Feb 2022 01:01:18 +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 5A7E4836A6; Fri, 18 Feb 2022 02:01:14 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1645146076; bh=yeozoRy+uCMxcRnoIRLWuUWHc1b/4/HsCdHjy/U+IG8=; h=From:To:Cc:Subject:Date:From; b=kSHEN+/iPMtXSQwx3IobqQt183rb/m/9USxLY1bOXN3wdNpLwIulytm+YehOMNpi3 35uxvLsxoy2zQEi3HUgd3hXm0Yv2OG2F19333hbBx3v9dxb/g/uJKEclk8XUUrYkoY nwoPwIreB3HU+wcBVrIscqXAuZh7f09j8tNjcKe7CqIApjDpH3qdjqI5up6wKab0Cy c+0+gGKcmJRnAPk0eDxrNo8Mg9jUTAYAjCG6T1QsOc69buS+YAKwzHGAVOLGVIXShW 3sIvZ4iSQUCmNdY1+cM8/ZFEYWgPISq0EQw9XV0v5HOzwB9707W5JxEn8YnWI7GkB2 6kQkYFJHxUSKg== From: Marek Vasut To: dri-devel@lists.freedesktop.org Subject: [PATCH V2 00/11] drm/bridge: tc358767: Add DSI-to-DPI mode support Date: Fri, 18 Feb 2022 02:00:43 +0100 Message-Id: <20220218010054.315026-1-marex@denx.de> X-Mailer: git-send-email 2.34.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 , Neil Armstrong , Jonas Karlman , Laurent Pinchart , Sam Ravnborg , Maxime Ripard 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 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 hardware init to enable 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 | 4 +- drivers/gpu/drm/bridge/tc358767.c | 654 +++++++++++++++--- 2 files changed, 557 insertions(+), 101 deletions(-)