From patchwork Mon Mar 28 21:43:13 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Vasut X-Patchwork-Id: 12794269 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 AFFE5C433F5 for ; Mon, 28 Mar 2022 21:44:02 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 2CB5110E121; Mon, 28 Mar 2022 21:43:55 +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 4A0A010E107 for ; Mon, 28 Mar 2022 21:43:53 +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 E819D83F77; Mon, 28 Mar 2022 23:43:50 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1648503831; bh=noWGngQaCL+fRPb69kpTVZnMCRR5+5NmtvQwOQB+ezU=; h=From:To:Cc:Subject:Date:From; b=hTkh6J6PQwSWcoGGWoNZeAvHdLUSHH0uGOyF3z6w8rR95ARa3rEOPXGMVJuFDgo1Z PGmNkTlFLXML5yU9KtRDypen24vJh7oRkSCkRKTyi+rV/JOG0zEhfyM2pnh2Rt0I4Q ycyXEppVxnqexmMTHlwzvqztR4igDSi5vlvmoDDvmcRgbPMTj2lmhjjJppMRU4qMJl 7XgRh86XEO1aGcrd3RHkzwj2sb9XVwtieYjqTkKN2olTjbBBfwuQV3WxFGzHp3+ewR LpskMc1YuUNUoglOyeDPnyzUfD57GWq9n/ywDkuW8pFbJKDb2Arhseavcu5o/L3xKS zi51gvuf319bg== From: Marek Vasut To: dri-devel@lists.freedesktop.org Subject: [PATCH v4 00/11] drm/bridge: tc358767: Add DSI-to-DPI mode support Date: Mon, 28 Mar 2022 23:43:13 +0200 Message-Id: <20220328214324.252472-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 , 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 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 | 566 ++++++++++++++++-- 3 files changed, 529 insertions(+), 60 deletions(-)