From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=40.107.75.100 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1796389862; b=OgUgwewmvODtjvHjTjeKAWuc6zuLE/hjHcG2T3xZxiZyCmVtWjQ3i/A0wTRhygHpHG6k VTzleSehpx6yng2gW/DT/qfCrBeBfBld6aPL2BjcMw2z3hy6oVZmTevOOa/mD4EZkGxsZ uO7oJ412kLB5TrPCTh6aUkahxF/EfiScwaylAWbuGWxV1jZpnkcVFwMibKxWuldM2Q8sR omSNO/jJ3pTLOa6UZam3/qscADqJoA47oCLolM0A7uCI8gOGz/jirkpa8x3xo86338u1M BqJ4XUjZovW0ZpYIf/eO6+V2InK8J/8d5obISi5hZ+Md2D9UZhOk9ZHXXUzJCPhE3ng== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796389862; h=DMARC-Filter:Received:Received:X-MS-Exchange-Authentication-Results: Received-SPF:Received:Received:From:To:Cc:Subject:Date:Message-Id: X-Mailer:MIME-Version:Content-Transfer-Encoding: X-EOPAttributedMessage:X-MS-PublicTrafficType: X-MS-TrafficTypeDiagnostic:Content-Type: X-MS-Office365-Filtering-Correlation-Id:X-MS-Exchange-SenderADCheck: X-MS-Exchange-AntiSpam-Relay:X-Microsoft-Antispam: X-Microsoft-Antispam-Message-Info:X-Forefront-Antispam-Report: X-MS-Exchange-AntiSpam-MessageData-ChunkCount: X-MS-Exchange-AntiSpam-MessageData-0:X-OriginatorOrg: X-MS-Exchange-CrossTenant-OriginalArrivalTime: X-MS-Exchange-CrossTenant-Network-Message-Id: X-MS-Exchange-CrossTenant-Id: X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: X-MS-Exchange-CrossTenant-AuthSource:X-MS-Exchange-CrossTenant-AuthAs: X-MS-Exchange-CrossTenant-FromEntityHeader: X-MS-Exchange-Transport-CrossTenantHeadersStamped; bh=ZcVtKblGJI4Fo4TYSLwRAtUk1eScJR3AXqO6PwH7iDk=; b=un2R+srpRXrVQJKlY94kWHXw+OgoUvMmzpkEnQbgJDT2R8G4cUUpNVtfv91JixFLv9Os Vhm6ZoApHw0Bp2r64ajKqbM0D3Bkxj78GvGJyvx33PPwJQoibGTokNUheNPPkLM9PkHOQ B9PqfYUOrD2g4Pssb2DYi60jRTiDDCqcz72HPZV80C8JYTHVDbdhPfbVa5q1gVm4HqmWw oEsObJbEeCvtSjU0f61jE+C2AWnjm51I9UmyJXez6eobdZPuXUxdr2o4x5BEBvlu6AAV4 GG1iUcvicmrC735fj1NHxwjhtjFjJUA6FZiI/FDysRSEWg/AOZlxlrAhJpHJ7nqZflg== ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=none header.from=cixtech.com; spf=pass smtp.mailfrom=cixtech.com; arc=pass header.oldest-pass=0 smtp.remote-ip=40.107.75.100 Received: from OS8PR02CU002.outbound.protection.outlook.com (mail-japanwestazon11022100.outbound.protection.outlook.com [40.107.75.100]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (secp384r1) server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BDE3A606A333 for ; Fri, 4 Dec 2026 13:11:01 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org BDE3A606A333 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=cixtech.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=cixtech.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Njjxk8X2hNc6ugosmS0nSdN1uXNEJ1viUtArrL0fhHu8vJvdhA6xdWch3UP4RxXeXqMB2P2wVFrRAhb/ZbrySafD46FvGxprAcJPUeT7V/tTQuY6jBa3wnjZrTI606iTGb6H/0PDHyaj3uXalgHFb7GrvDQC9QdLJw0Eu+0U0/JcsC+N8ZabhS50DMeSUk4WK7q+6Mcr9mKnHNmtdBI1IobfUxh/5wpT/U7fDX9Xmf7Yt7pld3pCF4Ymbom4rzVHBfhMgAYQ4NNaF3v8KdJXRXislOCPv350s2KH7vAdRizbVv/vMHxwqlNbO6nkk3bQWC50XQWedwNyhnB//Zzs7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=ZcVtKblGJI4Fo4TYSLwRAtUk1eScJR3AXqO6PwH7iDk=; b=seR6PeCvJEEyA8LlPk8qe8f8zBY9KSzTKpL3w26GYRFe9HNr+FlHhWZHUaNjqS1zA0rhFMhF8RFANlIqH5hNfuIjRg6jHEAKafEABM4ZpjgWNXnRuFZ+IXoTWjvUIaUQ2h6kHChtidNGyJCgYQmW8jxrIRtfNnl4hTwm3HpnEsgr/iD4onIslXY2lparvbWRXuNINqae08ft6EWuskB5ZxCgrFr6ArA5ypcBnKnCUA02EYAOfAWIjIK1fI/mC+o8ernBLu4xlNz34jxGnP22T8BjkK75ngEIrw5tkCDGzjJq5ge4HFDEGtVojTY0tD+Zq1/iWC6h4rz6cu36yoP7pQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 222.71.101.198) smtp.rcpttodomain=bootlin.com smtp.mailfrom=cixtech.com; dmarc=bestguesspass action=none header.from=cixtech.com; dkim=none (message not signed); arc=none (0) Received: from SI2PR02CA0031.apcprd02.prod.outlook.com (2603:1096:4:195::16) by SEZPR06MB6763.apcprd06.prod.outlook.com (2603:1096:101:180::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.709.7; Fri, 4 Dec 2026 13:10:56 +0000 Received: from SG2PEPF000B66CE.apcprd03.prod.outlook.com (2603:1096:4:195:cafe::82) by SI2PR02CA0031.outlook.office365.com (2603:1096:4:195::16) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.688.13 via Frontend Transport; Fri, 4 Dec 2026 13:10:56 +0000 X-MS-Exchange-Authentication-Results: mx.microsoft.com 1; spf=pass (sender IP is 222.71.101.198) smtp.mailfrom=cixtech.com; dkim=none (message not signed) header.d=none;dmarc=bestguesspass action=none header.from=cixtech.com; Received-SPF: Pass (protection.outlook.com: domain of cixtech.com designates 222.71.101.198 as permitted sender) receiver=protection.outlook.com; client-ip=222.71.101.198; helo=smtprelay.cixcomputing.com; pr=C Received: from smtprelay.cixcomputing.com (222.71.101.198) by SG2PEPF000B66CE.mail.protection.outlook.com (10.167.240.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.709.6 via Frontend Transport; Fri, 4 Dec 2026 13:10:54 +0000 Received: from localhost.localdomain (unknown [172.16.66.33]) by smtprelay.cixcomputing.com (Postfix) with ESMTPSA id 6575F427EFC0; Fri, 4 Dec 2026 21:10:53 +0800 (CST) From: Luo Liu To: maarten.lankhorst@linux.intel.com, mripard@kernel.org, tzimmermann@suse.de, andrzej.hajda@intel.com, neil.armstrong@linaro.org, rfoss@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, laurent.pinchart@ideasonboard.com, jonas@kwiboo.se, jernej.skrabec@gmail.com, luca.ceresoli@bootlin.com, wuyi.shen@cixtech.com, cix-kernel-upstream@cixtech.com Subject: [PATCH v11 0/5] drm/bridge: trilinear: add the Sky1 DisplayPort transmitter Date: Fri, 4 Dec 2026 21:10:48 +0800 Message-Id: <20261204131053.351956-1-Luo.Liu@cixtech.com> X-Mailer: git-send-email 2.25.1 X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SG2PEPF000B66CE:EE_|SEZPR06MB6763:EE_ Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: a2ede998-7a57-446b-4a71-08df5208071e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|7416014|376014|36860700016|23010399003|1800799024|42112799006|82310400026|10067099003|56012099006|261022105027099003|261009221227099003|261009223027099003|261009220027099003|261009223327099003|261009221727099003|261102123227099003|261021121427099003|261028144727099003|261026121527099003|261026140227099003|18002099003|5023799004|3023799007; X-Microsoft-Antispam-Message-Info: e+Ad0U1yHdeUBzdRljRnxVTLXto7pEuVFwTMFrhAIYpxzmtp7ZQDDajbhmUwII6DLk5YuwuAwpiEMjs2s+zrBq8zACXgvJ0fBG5ljT9mrjBZ1IXMrk1rXlHgysemTR2WVca32bJR8PwuWNDmqEy9wLVu52qe5R3MYZJdVYn3CugXyR900aWw+lBoJi7kt+OmO2WeyVBa9Qs1iwsMNhv5qYLLYLzImuS9ikfWsNq9J8SvFA4hhQyEMC9HTX0Ab2RwRalYA4nIIpVwWy0r+7OlEbAu+Gq2Cu6kkCz0Yb2RHWqIAVjmdCbBXGLWflw/QXMJGn5GJ9To7jN8t0ZyOl2P4a4XobSRhRv1agbexMKq/9VvbOHYvA9OVijab2tK0nxYU3BeQhNb+qUAlAS5CZs9M1gGi1Yhz0+dJqe17cgEGC2LHCJunArfdhnzAnVm7/QgXcmJKtnO7fMxGrTmURHPtgrLg6lIZlkiMJksHtgProJZZmHrXzOyrg7WxWiWfn3NdwEDCeE4y7DrQTNChq1wyImDYWKVO0lN511I3N0pF9N3kB/o9bWD63v3LDsZVSxGk8UqIRRwXgqhTo2s+EcCVERb+W+yVrGGMhwqGQyPESvUPovwK2hUTUCr0tQrPtT69kL5jcrbM1sftEiNywwSwPA7fEVUPeUDjzVJ4NKC0vGQMsVsp3TF8dVt7aHwxPPUh4NRTYDJX2nGhR22Fh1X8w== X-Forefront-Antispam-Report: CIP:222.71.101.198;CTRY:CN;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:smtprelay.cixcomputing.com;PTR:ErrorRetry;CAT:NONE;SFS:(13230040)(7416014)(376014)(36860700016)(23010399003)(1800799024)(42112799006)(82310400026)(10067099003)(56012099006)(261022105027099003)(261009221227099003)(261009223027099003)(261009220027099003)(261009223327099003)(261009221727099003)(261102123227099003)(261021121427099003)(261028144727099003)(261026121527099003)(261026140227099003)(18002099003)(5023799004)(3023799007);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: je4uhBRFF4ShDVoSvi1HgsKRb8poSxuzwJQ4YnMjS53uw+bZZFaaexmmAYgRwa2QjHqb4VhrI2oyAML6OaANzd/WCg3GuqfqvJU3g1IjPfjQtiwoytk1U8iv5i9IIcvUgYt2DcsNRy6Png/CcyZ3Q0SLjGv27GC7z/bevbBwMMoFWmGzlUJp9VRUOB1BGt7qN0XALrInYlEE7EyC3dbX07S+lQXqonOzWQkXIz9/6btK0KAFR61Z14JpC3RL6gQD2miSBGd0aa0O5+pIz9QD0AZpHP92VHtioDLhRtKmcC6n4twQkb9aAjQxsNlAQ3/CzZcIL3ODcY4Y2uNxvhhfCb1A557MutV384mHVpSMQCbhtYi80pqNRlhsM8Plqrc90iQSrkoQ8u9sObI6Z08VqdPyJJ6UG3xo/w9eub3FTuQJKWR2y6D9xcJrGDdL2p+M X-OriginatorOrg: cixtech.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Dec 2026 13:10:54.0678 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a2ede998-7a57-446b-4a71-08df5208071e X-MS-Exchange-CrossTenant-Id: 0409f77a-e53d-4d23-943e-ccade7cb4811 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=0409f77a-e53d-4d23-943e-ccade7cb4811;Ip=[222.71.101.198];Helo=[smtprelay.cixcomputing.com] X-MS-Exchange-CrossTenant-AuthSource: SG2PEPF000B66CE.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEZPR06MB6763 Add the Trilinear DisplayPort transmitter as a DRM bridge, with the CIX Sky1 platform glue behind a platform data structure. The hardware layer, the DRM bridge and the core state machine live in drivers/gpu/drm/bridge/trilinear/, so other SoCs using the same transmitter can share them; the platform registers its own dptx_plat_data through include/drm/bridge/trilinear_dp.h. The transmitter drives up to four lanes at HBR3 and has two SST sources. MST is not implemented and stays disabled. The USB-C transmitters and the native DP/eDP transmitter use different RCSU video-adapter register offsets and bit layouts, so the binding has one compatible for each. The Sky1 devicetree nodes are not included in this posting. Scope: DPTX hardware, bridge and bindings only. Komeda (the Sky1 display controller that feeds these bridges) and the board DTS are separate series. Nothing in this posting wires a full display stack. Tested on a Radxa Orion O6 board; the USB-C DisplayPort output works with the connector created by drm_bridge_connector_init(). Connector handling in this driver: The bridge is meant to be attached with DRM_BRIDGE_ATTACH_NO_CONNECTOR and drm_bridge_connector_init() creates the connector from the bridge operations. The driver implements the bridge side only and never registers a connector of its own. A bridge wired in front of the connector is chained from port@1. Changes in v11: - port@1 is resolved with of_drm_find_and_get_bridge() after the remote endpoint is looked up; an endpoint that names the combo PHY is not a bridge, and the probe defers until a wired bridge registers. - The HPD operation is left to a downstream bridge that detects hotplug on its own, so the connector broadcast cannot queue another event and start a loop. - A connector probe performs the same AUX check as the hotplug replay, so a sink plugged in before attach is found even when another bridge owns hotplug reporting and the enable callback never reaches the transmitter. - Link clock recovery bounds the retry count by the DPCD revision, stops once every lane reports maximum voltage swing, and the power sequences use drm_dp_link_power_up() and drm_dp_link_power_down(). - The color depth comes from the current EDID data of the sink, not the cached value in the atomic connector state. - YCbCr 4:2:0 is only used when every bridge in the chain allows it, as reported by the connector, even if the sink advertises it. - atomic_check is skipped when the CRTC is not enabled, so a DPMS-only commit cannot fail for a mode that was already accepted. - The aux channel is unregistered on detach even when teardown has already started. - The probe error path clears IRQ_DISABLE_UNLAZY. Luo Liu (5): dt-bindings: display: add CIX Sky1 DisplayPort transmitter drm/bridge: trilinear: add the DPTX hardware layer drm/bridge: trilinear: add the DPTX DRM bridge drm/bridge: trilinear: add the DPTX core and build glue drm/cix: add the Sky1 DisplayPort platform glue .../bindings/display/cix,sky1-dp.yaml | 133 ++ MAINTAINERS | 11 + drivers/gpu/drm/Kconfig | 1 + drivers/gpu/drm/Makefile | 1 + drivers/gpu/drm/bridge/Kconfig | 2 + drivers/gpu/drm/bridge/Makefile | 1 + drivers/gpu/drm/bridge/trilinear/Kconfig | 9 + drivers/gpu/drm/bridge/trilinear/Makefile | 4 + drivers/gpu/drm/bridge/trilinear/dptx.h | 114 ++ drivers/gpu/drm/bridge/trilinear/dptx_core.c | 1076 +++++++++++++ drivers/gpu/drm/bridge/trilinear/dptx_drm.c | 779 +++++++++ drivers/gpu/drm/bridge/trilinear/dptx_drm.h | 17 + drivers/gpu/drm/bridge/trilinear/dptx_hw.c | 1425 +++++++++++++++++ drivers/gpu/drm/bridge/trilinear/dptx_hw.h | 103 ++ drivers/gpu/drm/cix/Kconfig | 3 + drivers/gpu/drm/cix/Makefile | 3 + drivers/gpu/drm/cix/dptx/Kconfig | 15 + drivers/gpu/drm/cix/dptx/Makefile | 4 + drivers/gpu/drm/cix/dptx/cix_dptx.c | 181 +++ include/drm/bridge/trilinear_dp.h | 84 + 20 files changed, 3966 insertions(+) create mode 100644 Documentation/devicetree/bindings/display/cix,sky1-dp.yaml create mode 100644 drivers/gpu/drm/bridge/trilinear/Kconfig create mode 100644 drivers/gpu/drm/bridge/trilinear/Makefile create mode 100644 drivers/gpu/drm/bridge/trilinear/dptx.h create mode 100644 drivers/gpu/drm/bridge/trilinear/dptx_core.c create mode 100644 drivers/gpu/drm/bridge/trilinear/dptx_drm.c create mode 100644 drivers/gpu/drm/bridge/trilinear/dptx_drm.h create mode 100644 drivers/gpu/drm/bridge/trilinear/dptx_hw.c create mode 100644 drivers/gpu/drm/bridge/trilinear/dptx_hw.h create mode 100644 drivers/gpu/drm/cix/Kconfig create mode 100644 drivers/gpu/drm/cix/Makefile create mode 100644 drivers/gpu/drm/cix/dptx/Kconfig create mode 100644 drivers/gpu/drm/cix/dptx/Makefile create mode 100644 drivers/gpu/drm/cix/dptx/cix_dptx.c create mode 100644 include/drm/bridge/trilinear_dp.h -- 2.25.1