From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr2-f12.google.com (mail-wr2-f12.google.com [74.125.225.76]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EEA12472557 for ; Fri, 18 Sep 2026 17:57:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.225.76 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789754271; cv=none; b=jpirj2+9eCpwcR0rINyoKHz08sv2ytgQt6uvKi43yDDxcpP4kYwrEeo+CLFV3D/o+XBaWMMaZ/+6woYel7AT6bXYIroCwORGbE70RBRmM3U6BOQfIn35EDhogVwbRtAu3BHsIBaCgOt7zz/7j5XtVi0h2cQKLko+B6NzAO/IZjE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789754271; c=relaxed/simple; bh=1Uh1f3Z956wEmF2q3u2UHyLztLyaLozkuEdPettpALA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=p92agiuUKa3Sdnj2x1Tvt2B7mq3e8XC8jTmzKMG/OnZTdZtWM7/WaLRtUQlvipVCaX0JTTuGNZCLj4eDb0OUlEVJQmRScLYHzUlhEky3Y36cr5S9Da+gg6CorR5MrbU2JcYL0KciOlOHs1hCYzZv6XEs9I6yQrsV3AR/620cK9g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=p/EXPWRB; arc=none smtp.client-ip=74.125.225.76 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="p/EXPWRB" Received: by mail-wr2-f12.google.com with SMTP id ffacd0b85a97d-485933b24c3so585589f8f.0 for ; Fri, 18 Sep 2026 10:57:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1789754266; x=1790359066; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=SeIdKvGzh7s/Zod1za/yckFgL52L7iFEeDXKnd5/Wj4=; b=p/EXPWRB1gEJykv1aYDvIY2BdblMjduKbqtr+4Qdk0A2ODr36q5jqCU5QUP060jq35 1o6UnAgkVdUtT0lsjinVtCpvUB1lBkUHz+yzG0ETqf2fxKJmIy+XFhEtmUjvGScBn5nT CCaHCqBqYNrXWKmUiW42r0DGnfFnYARjkRqopvPBqvFxCTumvcS7RwgzDKDUQSrfgQ+b coPopBK+BpM6Q+criWUeilqN/tkvZcW/VrTEhMRhH6jDtLV9zllw2ypFotoI9gDnfrkd 3ZnJEPTdLP+9i/OM92cQd4ZZ7sU0EhOODKzRTbGfOV98T36/EYpsmPD3mZ4FrPbl4VHl jqxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1789754266; x=1790359066; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=SeIdKvGzh7s/Zod1za/yckFgL52L7iFEeDXKnd5/Wj4=; b=DV/B3p+jVifMvi66kzf2YilIh7xRETVuCIaNxiP3g/vUW+jn5zujM0LCZbRTw42qt6 6z/+9euI606kcPpG++6yH7sq9b700q/ibiff63cQjCXKRvSZ2yQJRnb73VTMGqwCNDmp c8NEuYFn/8Oc6pMLcBEB/hCsqt5Sdw96GsoYl8QYYq15FLm36lZ7UwveydXIPZbEvyJJ 8Pcm/A29YDfaJ261wsDeryyDQ35unBLVJjUKfROWXvFphipQIOqMV0JjrKodArN+0fr9 UxlDATaU9TBvKjyIjXcS7yryhtUnsaHF4D96qAPFiMjuqOovdksRtG1vopeBOvkeE9ur NgyQ== X-Forwarded-Encrypted: i=1; AKwUvBzxHJV+5dB7uJD9S6E86ImIhvE9FXdHhJRr2hsrztpaXNJN1+U/HqO1WzG6iIX+W5BADNMhQnpf7dit@vger.kernel.org X-Gm-Message-State: AFuF++l4J4cfFpuLx2Ltho0SJm7v2x8cORDp4xq4iuThEsI+X/YmxhoY Cz/ug3/DjXNnWc56qdO6Zq8HFlDJGMv7GLH0nO1G5P+t23l4N57Q8S/p X-Gm-Gg: AYBFou35e61V9IOE9NSKKWgCDUty/fWo99CUU4+YXuf3SlCxXZyPmQsw5Fuk1evpDeB L01tDRWFPcfnsiVMh6pfcOIfTTTBYaU48/7xGimvHmmgiKvPM0z2lwj67c7QtJkwz4hdzu14qVu L+fQn1mZ08PtXLqk0CiC3myVPZAs3mZ+sIvzFSBEL9IjadP1u/0JsyfwTvkMUOTZQURrzHbzEcx DxrDMmHyZ0SyBnuhhEJebWyuniFupmZOD0rAAvWJW9WXSj0ZEYyHF+ez5I5mTbQCSWeWjKi6gL1 CAEqA3wl5Ig8m+RUoDTr8OVJoPOeRnUsO1SydzMigYlJQxAaauo3uC+h8jp8Pg+uVrgwTDY+e5s 2gEVTbpRrOAUFC5l4d4Nwa1M/cQE2ggnHN1QNSMh6MsHMie6BtAjjBYbSYnslNDeUJQeTf9TTGe arSWIJuDPo9+lTMgUkyZh1tfod1fG8y3KNWY/3Y6LF5pF1T27PoZEU1WyZd71H85Gn7DY= X-Received: by 2002:a05:6000:610:b0:487:1681:2218 with SMTP id ffacd0b85a97d-4871e36bf5amr5507663f8f.45.1789754265990; Fri, 18 Sep 2026 10:57:45 -0700 (PDT) Received: from luca-vm.lan ([154.61.61.58]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-48724562aebsm268461f8f.14.2026.09.18.10.57.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 18 Sep 2026 10:57:45 -0700 (PDT) From: Luca Leonardo Scorcia To: linux-mediatek@lists.infradead.org Cc: Luca Leonardo Scorcia , Chun-Kuang Hu , Philipp Zabel , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno , CK Hu , Jitao shi , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 0/4] Add support for the mt8167 display pipeline Date: Fri, 18 Sep 2026 19:55:24 +0200 Message-ID: <20260918175736.355305-1-l.scorcia@gmail.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit This series adds support for (almost) all display blocks of mt8167. This SoC supports a DSI or DPI display and has HDMI output via a second DPI block wired to the HDMI phy. All the hard work was already upstreamed in the past, now all that's left is some glue. In the first two patches we add support for the DPI output blocks. In the third one we describe all the possible combinations of the SoC display pipeline and in the last one we add the required nodes to the SoC dtsi. The final outputs of the display pipeline in the SoC dtsi are intentionally left not connected to allow board dts to specify their own output node. I said almost all display blocks because HDMI output is not included in this patch. I have it tested and working at all supported resolutions, but since it needs some fixes in clocks and a new phy driver, I will send it in a separate series. The series has been tested on a Lenovo Smart Clock 2 (DSI), a Xiaomi Mi Smart Clock 2 (DSI), and a Sony Playstation Classic Mini (HDMI via DPI). Unfortunately I couldn't find an actual device using a DPI display, but since DPI1-HDMI works, I feel confident saying that the clocks divisors are correct. Luca Leonardo Scorcia (4): dt-bindings: display: mediatek: dpi: Add compatible for mt8167 drm/mediatek: Add support for mt8167 Digital Parallel Interface soc: mediatek: mt8167-mmsys: add routes for all display paths arm64: dts: mediatek: mt8167: Add DRM nodes .../display/mediatek/mediatek,dpi.yaml | 1 + arch/arm64/boot/dts/mediatek/mt8167.dtsi | 369 ++++++++++++++++++ drivers/gpu/drm/mediatek/mtk_dpi.c | 23 ++ drivers/gpu/drm/mediatek/mtk_drm_drv.c | 2 + drivers/soc/mediatek/mt8167-mmsys.h | 183 ++++++++- 5 files changed, 569 insertions(+), 9 deletions(-) -- 2.43.0