Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=52.101.127.85 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1796384620; b=jgPdGBLVerPsGEwaIWsij7wQ5OaVoCMJ3qOq3fJXwstIj6W8u2G1H8Twbo7ZJ5/PqCIh C0HzRXSDh5B0fjkdWh6BIUYk5k3T26mCtV0z03Ye24nIIT7jQ+17ZSsmsJ+K7dNImFdSY zGXY18EyE6fr+KajTmJH1qvFIotUcvUUsZDSMrnJOJqvrvt/wN3PRyLQLBqBl4tRQ1jGy ZRDVUPviKRRfedDPiUAITZ9ELH7itdUycqhLZXIRoXZiaE0ZpvvzvNnC8AeZNeZgnmuZR BwSw2Y4zoWV/hSI20ZGrxrbMbUW2kIJ9jAiGUODMReDTaTIKiDlvXKyXOl3meHvrCIg== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796384620; 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=UauXetDOdEbYbCURkLaPfD3gb9OCshM8m4PWKQXdf5w=; b=EnuCWJVWHJtu/kg2tVUOJjAmAKfTKZ/n/hg0wGnb8Awo3Iy4H+2TGn5ekGGhuV/aQ1/P ebLjcKoWCbf67sZFkLVdu8vZhAOHzLLHEut+Wh7zgIjDaZYP643YIH+ycHeJWXAPDSetT iZ8klhSpDntWf1JmORkJACQNTtYJi59ORLQBKjz6MuxCneCfuSYLdz7eZktHvZcvSfAVb BHjABnUKzYWuktY/ec7k0W7Q2UglM7pqx3eY098fboIJJ7q5bBtytUS8PBAurIDqvxGVA BPGoVaZHGUQrV4V7TNt3mQs5t7X00sgt3ml6JFE6/KaeAfujIlC9d5jVx8BKJ7EF3Tw== 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=52.101.127.85 Received: from TYDPR03CU002.outbound.protection.outlook.com (mail-japaneastazon11023085.outbound.protection.outlook.com [52.101.127.85]) (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 07839606A332 for ; Fri, 4 Dec 2026 11:43:39 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 07839606A332 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=yv+s+Oxm1aYD/ObTFceXackoWv+t8M6C42dkE+pYNvlGspfZ3C9hPEyReErotOmSa+cXfvvIXGmPQwOVfXXGE1skW2Wd3N/8CoelBi9FUiCl/Gte5T1ngymFjf61QKG2813+ox81s/PHnHHQ6j7PoLRvjb6UW3Vk2JJ/4dXlS2NxwCrQHOlL4LyFnGt2p3MRI3y4kv0/3jlJ2EHmmzMAClIq1KAqbZAx6JAHGSYyZG/B4AZV0qugOxJM4yNmIj2GBGKrdUvg3vJsNVKgDdLFtTynU2suy5j8VduAHAz/aoMVPhmuePFRF4m9HQ+RmPA18tIM2wJSWMvVlA0NHR3O8g== 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=UauXetDOdEbYbCURkLaPfD3gb9OCshM8m4PWKQXdf5w=; b=WSAaeAHwThV9Ahba/zAhVJZz2HQNyshdBYJxPRIQmQC3CESY1Y4I9W4PnKacTnD91VcKVotnWyhOrYohG5slZGAfLBGvQsK/HD1gOnTXTpNki4rAfXHIrGVev8VlvLVwuH6p/TrMaKWp+BGR3YV8hzRaceEsBv+We+k4WbrcmrMRg15hqaLanB8OLjUf8v7ny0A+LVHCI5GZ5oOjH9fwbcDamoh46OEZdv9uK9vMuHZ1CeL5iTEzexZZnlqIiwA9jxHf53GnpPm9bhzkSdDnzvb2r/yEqxC4zNcWQwVUUZdLzUwvzEpRuF8kyEiBzYApP4EXMjzfvco6Gmxma9B7qA== 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 SI3PR03CA0011.apcprd03.prod.outlook.com (2603:1096:4:297::6) by TYZPR06MB6993.apcprd06.prod.outlook.com (2603:1096:405:45::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.709.5; Fri, 4 Dec 2026 11:43:35 +0000 Received: from SG2PEPF000B66CD.apcprd03.prod.outlook.com (2603:1096:4:297:cafe::21) by SI3PR03CA0011.outlook.office365.com (2603:1096:4:297::6) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.709.7 via Frontend Transport; Fri, 4 Dec 2026 11:43:35 +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 SG2PEPF000B66CD.mail.protection.outlook.com (10.167.240.27) 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 11:43:33 +0000 Received: from localhost.localdomain (unknown [172.16.66.33]) by smtprelay.cixcomputing.com (Postfix) with ESMTPSA id E990A427EFC0; Fri, 4 Dec 2026 19:43:32 +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 v10 0/5] drm/bridge: trilinear: add the Sky1 DisplayPort transmitter Date: Fri, 4 Dec 2026 19:43:27 +0800 Message-Id: <20261204114332.280808-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: SG2PEPF000B66CD:EE_|TYZPR06MB6993:EE_ Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: e691db03-df60-47e1-d0cc-08df51fbd3a2 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|82310400026|42112799006|23010399003|36860700016|1800799024|7416014|376014|5023799004|261009223027099003|261009221227099003|261009220027099003|261009223327099003|261009221727099003|18002099003|3023799007|10067099003|56012099006|261021121427099003|261102123227099003|261022105027099003|261026140227099003|261026121527099003|261028144727099003; X-Microsoft-Antispam-Message-Info: OEz66SVXCzp15Y4McLLvciJL4tRYYx3oZJnc090L01XRfFmosZyF7l2CMCd/kNMJEexXCm7r9MGNhm5LtUxUTmbT7LdiOFsWDNYdHJevnsb07jH9Dxde5Y+v+2a55Yx+kIPtucD3ZofJyeqGP9gj7Gzy7Gm3QeU9zk/J7o8odomjEmt/KNIW8v6bZYbaICkb97lOK7G/QVtujVt9bSBZA/3K77JsvIBT/AP7Le3YdJdaNB1LarULtWq5uL/ZfpCdi47EVhHsh8fwMf/sQawK0t8tcO+rug00tJWT/1AYEsALbvKxun3FNP8GAHiygQteGHmG7b1/DjtEKkzNTh0tgKdZhwOhZPwnHpBvA+Rp9fwqyw/uxkZ8x3N7kulUq7O223SgMOtlDbBn+qY9wPWR+GV7/Oud4fCXc2k5ymef2OwBioUSe+DsJvE/hsOMPuODOpsba8e7e5pkW9vMKlEl0c6oIaLiQfn0PUX71jobbOfCms0EZfgSbs96B/vpAlLzWBKIv4aWDodcK6lPbBUVsqznRGjH5lUy4fBY+PDGrBMcgjIsqnQvYPpBa3hA9fABz5/Q6Yd6A3DMM9aepit5PyuVFOgtFTx2R4rbQkRrl4Gt0jHHI1L9abrRJcG/W+q2puHY9W14Ngg9EVpjYwCtbywDpp7059D+mdkPbm+FnGwr6bE2SBomXiGYGIaQ1JQyLS2+Cal7oHq2eHoOIYcIzQ== 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:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(82310400026)(42112799006)(23010399003)(36860700016)(1800799024)(7416014)(376014)(5023799004)(261009223027099003)(261009221227099003)(261009220027099003)(261009223327099003)(261009221727099003)(18002099003)(3023799007)(10067099003)(56012099006)(261021121427099003)(261102123227099003)(261022105027099003)(261026140227099003)(261026121527099003)(261028144727099003);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 6prcbGkhrMGxE5MQLKmlFTZO2ZrONgQCOiAm46sGTw/gpw1jsvYKF51LIR2psatDEk0M3OdsihyY6auNv6S/PUsy56DN4X4H6phZr+/9/1HXUoXOcWlrPa47pFOB8CtaEsU9UzjZsFhbEK5kRkNxgK24sAkI3Jm1mTezAaaCXUwsMygJ1klqvqCTexWx9G9LO1rfHEoMZIDmCahviWxvP1zLc/8xFF5EIMXVplic4ywQ1hxinNwAD3l3sfKSgD5SgK8mTiepx1CP1C/NlUEptPX+/bH2hQW9UmrulXrVE0ntP8yT79ENoXA2zt/OW7Xi7I+FtgvWfMH0OXws/EXV54FxYolyy2uTUdpKs5Pk6QmLuztpWMVtFDLDaP22iazyF128OeeraSsOuuuhWKXx+aBQwqjFlLkmMpbrEgBaL5Cdq58IxdEuAhQ96YOVPyiV X-OriginatorOrg: cixtech.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Dec 2026 11:43:33.6645 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e691db03-df60-47e1-d0cc-08df51fbd3a2 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: SG2PEPF000B66CD.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYZPR06MB6993 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 v10: - port@1 is resolved at probe: a remote endpoint means a converter bridge ahead of the connector, which the bridge chains and releases on destroy; without one the port feeds the native DP PHY. - Link training gives up when HPD drops, propagates failures other than -EIO, programs the PHY swing and pre-emphasis before the DPCD request, and clamps the pre-emphasis so swing plus pre-emphasis stays within 3.5 dB. - The PHY is configured with the lane count being trained, and the enhanced-frame flag no longer leaks into the caller's lane count. - The hotplug replay waits for the common PHY from the event work with a bounded retry instead of polling in interrupt context, and only the HPD interrupt sources are left unmasked. - The stream clock is divided by the pixel-per-cycle factor. - RGB tries 10 bpc first when BT.2020 or a deeper mode is requested, and the bpc is rounded down to a supported value. - VSC is refused for 4:2:0 when the sink lacks support, its dynamic range follows the pixel format, and BT.709/XVYCC/DCI-P3 colorspaces are mapped. - The secondary data window is computed in 64-bit arithmetic. - atomic_check returns early when the CRTC is off. - The platform glue stores the dptx_dev in drvdata. 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 | 1077 +++++++++++++ drivers/gpu/drm/bridge/trilinear/dptx_drm.c | 769 +++++++++ drivers/gpu/drm/bridge/trilinear/dptx_drm.h | 17 + drivers/gpu/drm/bridge/trilinear/dptx_hw.c | 1418 +++++++++++++++++ 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, 3950 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