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.44.120 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1796005519; b=OJlb7xNPAg4IroeOWEy9UMXt/i9bzxnrAYj/YVxnTPYLY4OhTtkUdnNRiRu6qR/fyHgY dtQOkI+ySICcRhAeJOEy/Wh/zBcoTdO3iIggkd6uqrJJ2l+RwSVvUAlM4C4GFTUPAe3tf i2rooO20R/0VaGKWu/AvG9C3FTFvWWC7vM7GATs7w+i+VmPNVYI2lFU7y63N7xRXLQ2bS dMNWHBnxcvdLA8ftxj+h+vFNyD4W2hOtqAtXTv/PKypzYkaWtzRzFgf7wXMHmUQChTR6g v4d7HByGhJJXK2yS5Xaiys/N0l2TMwbNd/RhUr+MW1vYatiPsxWQhi9iOE2VCUb9EhQ== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796005519; 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=7Gy1yhcJNTKJjWEc880U/MK3iFOQKhVqQJAFCsQ7U34=; b=idAound9zGf5voDSD7rF6bNo6CEncDSikN1LlT/LRcEnmh16vpzdtOjwSPVJl4QoBHQf VWnLhcaio92FGY1VO/Fnw9eagkur28bQPXfEhHvzGPQanW+KqeAXfWAb4JK5a5cTGp4D/ dP0Ej0T5hfwAn4ztoe/AcGd+tj0Innp8vAi/JvoNfT8jliqJ0BSAxnOii9vbBBhUdoqBH TAh9z8wljRU9a2C7LyRRZCsDLH5C7gUg04S0g8vvXFxA5McEu2WEhDifuf18u5SjCk6xe SjHKa+svnKiH1tK8CSwaiGVCAsB4QkRa3KilAipeXBpy1GBCUZTns0Q3qZJEEftV0xg== 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.44.120 Received: from SEYPR02CU001.outbound.protection.outlook.com (mail-koreacentralazon11023120.outbound.protection.outlook.com [40.107.44.120]) (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 55756606A325 for ; Mon, 30 Nov 2026 02:25:18 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 55756606A325 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=GHJbZj4DSDMRLj5E3IzIb4eyFY4hb89Y3P2YMXC15cpaxnLRF7GFwEWi7PLxzlrf0zq+UyCc5f644Wn3TqQC2e9fqqkKSJNw4vJl+Zt1d+mwKs3lssC8AAJWSprbgQo3Qlgz0oOrk597xhWEN9/WhKnKK8hGooz4ZzVJCDoLg0KTRYg1Olbb3g/icvYhZVf+UWjZpw5kyBLHq/jS4nOv8NOyZuNeoMrYTrsPNVnLTIRPj53Oqx1bR92NfKxBxZgmJIu/ZEi+glr2nd4/C0MjA5o7wlzIONppuCv6NrU+ZegLHc41Fj3xUlpD+kpihUVlKMgpzO4+gN6vigbeSEkmDQ== 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=7Gy1yhcJNTKJjWEc880U/MK3iFOQKhVqQJAFCsQ7U34=; b=PmfrsCMOACg3Gv4hA1MupTELABWrgRnLCLEXzS20FlVN1zWMxV0KP9Sm9Ne46B4XgP+QbHYcsBF1uY5NmzBjsrWSfK5HGtYIapq8VrHhPmbbJ1Fkjr4DlT75axfsHqSTeG+6nq/TrFLRVpk/bWJEBkpydUh1nLlyCX3OykO6leBmpSF7aJRWLivSIU10iuuejG+vZZvts5gkXHgzBotp30Z8OQzgUnLoIEoVj/2YR+TBVVyLkefgC7itxy+Fdvcy6cqbfStnUPE19J+UGV9yR+3Zb+bQBnmUnOqNrtxDm+BT8T9dmuvVPsg2nTPYgTpFu7vbC066tZ5CF/EGyMHUJA== 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 SI3PR02CA0009.apcprd02.prod.outlook.com (2603:1096:4:295::14) by JH0PR06MB6656.apcprd06.prod.outlook.com (2603:1096:990:2f::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.688.9; Mon, 30 Nov 2026 02:25:14 +0000 Received: from SG2PEPF000B66CC.apcprd03.prod.outlook.com (2603:1096:4:295:cafe::62) by SI3PR02CA0009.outlook.office365.com (2603:1096:4:295::14) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.662.12 via Frontend Transport; Mon, 30 Nov 2026 02:25:14 +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 SG2PEPF000B66CC.mail.protection.outlook.com (10.167.240.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.688.5 via Frontend Transport; Mon, 30 Nov 2026 02:25:12 +0000 Received: from localhost.localdomain (unknown [172.16.66.33]) by smtprelay.cixcomputing.com (Postfix) with ESMTPSA id E4DDC427EFC0; Mon, 30 Nov 2026 10:25:11 +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 v8 0/5] drm/bridge: trilinear: add the Sky1 DisplayPort transmitter Date: Mon, 30 Nov 2026 10:25:05 +0800 Message-Id: <20261130022510.762141-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: SG2PEPF000B66CC:EE_|JH0PR06MB6656:EE_ Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 6d2ac5d4-dce1-46ec-2c4a-08df4e8929ed X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|82310400026|42112799006|376014|7416014|36860700016|23010399003|1800799024|18002099003|3023799007|5023799004|10067099003|56012099006|261026121527099003|261026140227099003|261028144727099003|261021123027099003|261021121427099003|261009223327099003|261009220027099003|261009223027099003|261009221727099003|261009221227099003|261022105027099003|261102123227099003; X-Microsoft-Antispam-Message-Info: WBKnoswgn2wmDwGmURbRyW8S1MIs4Ul7oAwE0jSFYSraIszrj2852urfvs+sk9HqEeyRv9wfQJ4vdvvMb/seLsK/tMC0Zt9B9fqw6aKvX4fST6aAyWuRtvckeQ+N7yF6nK0GNsfr4HC1omt8X6cE/bhOu7qnSmRYMbW4LKbGm384DceCDwFRsyIlo5J36ws5ljO/OCui0aAuyOWE8y8bUFoXQdmP4qB7jxbaJcMVV1xFIKgRXg7ZSL+Lt+29bpb0W6gSdQLkaz3SN/QTUKM0JuxvweYYyx3pjE0pFymb7LMq2pIFGU037Cbd4WsA5vTeX73isduYDXeWhwZxU+/uP/Cpmx2SEO96D7ZAoqfDS2xGIX2wXHDWFUuK8B8ezBCrwqTFCyl5cLt4eGw/MLKosWXHO4/wgrngm83oWlaF8rkc7cNUXIYizGQKRkH5vhnQaeMaMgSEoIvRDyUt5Bas/Mq/TISzAWclyI/i4EKjRUVHsAsEB/btUIUtebqDy07AmnXdV1vH70kuRIMGtMS+X3PyETUyzo/mCnuDWAZ8HJ8EwuhAP9MScasSxi3efks2qQxVkLhPfjDFBBfOkG+3+LjurAsu1pN/QE7e26+AhF6v33h0FUfrsaiviqVsU0+W666M76yPT78B7oz2FlUX9tBOSoMfWNDQXnDUA09Zy4LqtikEeiRH861iZxgzlWnBWXSgYYM2thScJUhiWuBOqw== 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)(376014)(7416014)(36860700016)(23010399003)(1800799024)(18002099003)(3023799007)(5023799004)(10067099003)(56012099006)(261026121527099003)(261026140227099003)(261028144727099003)(261021123027099003)(261021121427099003)(261009223327099003)(261009220027099003)(261009223027099003)(261009221727099003)(261009221227099003)(261022105027099003)(261102123227099003);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: hn3NM16Qtol0m156RmewpGXmqMVILvSwIC0hBl2rALIat7/ttjzv4us18Dw6bnYSTJBvRz+p4J98k210BWBLi3ca0LmWAgLGa5DfWbZUUF9E8/sEhF19DfYKZHNd54oaMTBTdvbXaUQHHnjTGvo9XAqW+TeAIM2iOuv2OstBzkjHpmiYuitLoiyfxGXNRhfRPfOnHlLSJ8A9GNaktNZ4atv5/58JyLpTy1IWpGF3XxSSxnhiaREvhCq0BPNQk0b4+spQlQy7nNz2ZE8CFC5irjDhJv/aTZ1Qtp7tXicS45YjuZJeWvPt94pw4RIX8mDDRIqDlhe0X6ymBSeRU3HpEJppivFFctQLn9EFO1U3KN/P7y+XyBBlGMXLs6aMLTbO/B0VpN5Zt/cwJ82yjJPCdNmBkGorsirQTvqBlCqXm28ncCO0HnSiiRPl+SYILGZh X-OriginatorOrg: cixtech.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Nov 2026 02:25:12.8909 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 6d2ac5d4-dce1-46ec-2c4a-08df4e8929ed 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: SG2PEPF000B66CC.apcprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: JH0PR06MB6656 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. Changes in v8: - DP_SET_POWER is only accessed on sinks whose DPCD revision implements the register, so a v1.0 sink is not sent a request it cannot answer. - A mode whose widened horizontal backporch would no longer fit the mode fields, or whose adjusted pixel clock would overflow, is rejected instead of reaching the hardware with wrapped timings. - dptx_deinit() reads the configured state under the lock that updates it. Changes in v7: - The link-rate downshift thresholds are compared against the real link rates, so a 1.62 or 2.7 Gbps link is not raised to 5.4 Gbps when training fails. - The bridge adds a device link to the controller, so the transmitter resumes before the controller's resume commit and suspends after its disable commit. An atomic enable that arrives while the transmitter is suspended is refused instead of re-initializing the host behind the system sleep callbacks. - The device link is created only while the transmitter is alive and is dropped from the platform remove callback, before the device is deleted, since device links cannot be released after device removal. - Every patch updates MAINTAINERS for the files it adds. 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 | 113 ++ drivers/gpu/drm/bridge/trilinear/dptx_core.c | 1061 +++++++++++++ drivers/gpu/drm/bridge/trilinear/dptx_drm.c | 746 +++++++++ drivers/gpu/drm/bridge/trilinear/dptx_drm.h | 17 + drivers/gpu/drm/bridge/trilinear/dptx_hw.c | 1386 +++++++++++++++++ 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 | 179 +++ include/drm/bridge/trilinear_dp.h | 84 + 20 files changed, 3876 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