| Message ID | 20261002-add-genio-510-and-genio-700-hdmi-v8-0-2a6de7cf2a88@baylibre.com |
|---|---|
| Headers | show
Return-Path: <u-boot-bounces@lists.u-boot-project.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.u-boot-project.org header.i=@lists.u-boot-project.org header.a=rsa-sha256 header.s=default header.b=fJpjUe2m; dkim=pass (2048-bit key; secure) header.d=baylibre.com header.i=@baylibre.com header.a=rsa-sha256 header.s=google header.b=Ook9KYiJ; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.u-boot-project.org (client-ip=2605:bc80:3010::137; helo=smtp4.osuosl.org; envelope-from=u-boot-bounces@lists.u-boot-project.org; receiver=patchwork.ozlabs.org) Received: from smtp4.osuosl.org (smtp4.osuosl.org [IPv6:2605:bc80:3010::137]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4hx8bm3Vx1z1yFp for <incoming@patchwork.ozlabs.org>; Fri, 02 Oct 2026 23:23:00 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 83DCA40DB1; Fri, 2 Oct 2026 13:22:58 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id wPvFXU39S56M; Fri, 2 Oct 2026 13:22:56 +0000 (UTC) ARC-Filter: OpenARC Filter v1.3.0 smtp4.osuosl.org 9D6D540B53 Authentication-Results: smtp4.osuosl.org; arc=pass header.oldest-pass=0 smtp.remote-ip=140.211.166.142 ARC-Seal: i=2; d=osuosl.org; s=arc; a=rsa-sha256; cv=pass; t=1790947376; b=hyMAietG2V1hhm7x0QqVKmzFxFknQjnEWSa0bI8nhz/LnDBu++3EoEhRgQ2qiLwqm5/+ qRo7n6RDvflyC5lCVmRU9FV7yxPTmkf9KAvfJ1LHev8971hbVqH9tz11c54Y/2buVs00x 3MtjGKPAQJDaw+1Ky68ILDV1ELieCfZUnOe/OyjbJUpBu3sAjklrkji1AwROXToW1l1pv qhIvZ0StRDbeITa48qy1ycyp9kJIQn/VVJuI9XiLMip/BtImZB6FMFfbgWaTpLeQnM4vj dcRmXDvy8YRg2aVA3dku3UAGHZof4D2TPH5K7kzdV6PkiEMXp9lXt2z7XOBYVVFxjtg== ARC-Message-Signature: i=2; d=osuosl.org; s=arc; a=rsa-sha256; c=relaxed/relaxed; t=1790947376; h=X-Comment:DKIM-Signature:X-Original-To:Delivered-To:Received: Received:X-Virus-Scanned:X-Spam-Flag:X-Spam-Score:X-Spam-Level: X-Spam-Status:Received:ARC-Filter:Received-SPF:Received:Received: DKIM-Signature:X-Google-DKIM-Signature:X-Gm-Message-State:X-Gm-Gg: X-Received:Received:From:Subject:Date:Message-Id:MIME-Version: Content-Type:Content-Transfer-Encoding:X-B4-Tracking:X-Change-ID:To: Cc:X-Mailer:X-Developer-Signature:X-Developer-Key:X-BeenThere: X-Mailman-Version:Precedence:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:Errors-To; bh=6Wz+MLJs+bZF0sFbIYYHRAO9ypcYyZ21hdoQcIUM2WQ=; b=dlvH7nG3HFaqPMeFlR4jwJY4ykNGsq7pjMbLQOwF5rSP4ieyD7zjakZfe2dVKtYV9zQK Tx70ckM0GCdkfFg9Psx6H7ZYrTUpJ1rStFBve5fscq3hArCEtgTR3QhpiM5O4+JnuGmpy 3yE1Frus4z5UFFAxC6qkbeGSZK7dgAMFzTms4yrRqzgjermAcuacYtaj8aruCxVaVNhch yBu9XNp/Tm1u6woncP8kYR7HRp6ptEO9w87pedK72Kr1kr7yfQptf+RIOuIC2H9VNJxtG vhHuKYY8p36/V3cuADCyB+jakiXPmnUb7GaazpE2Y1kLKxesbk+FpHGqjUnJBxy4L7A== ARC-Authentication-Results: i=2; smtp4.osuosl.org; arc=pass header.oldest-pass=0 smtp.remote-ip=140.211.166.142 X-Comment: SPF check N/A for local connections - client-ip=140.211.166.142; helo=lists1.osuosl.org; envelope-from=u-boot-bounces@lists.u-boot-project.org; receiver=<UNKNOWN> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lists.u-boot-project.org; s=default; t=1790947376; bh=6Wz+MLJs+bZF0sFbIYYHRAO9ypcYyZ21hdoQcIUM2WQ=; h=From:Subject:Date:To:Cc:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=fJpjUe2mMUI2sTSc/Y5jkrgQPoNyVNUaHrzGxHhWq5X0E7hICaXsbiUbyUkhmlN1S S0HKB13uT2+7tmjv9Ley0mbDUH18aY3BY8YKa0ytWtSTP0uviCXSIoOkzsL2VlbASy Pk7D/SjtXQb3+Dtx0GMK78VdT3WuaZ881ggiFpAgGP1rMMoqQP2CeYNhHLrZFsbfp/ ClWTan/olPwjnJrBaDRoRt+N2+ViBEHt/k2IR8qEc63YYIPRa4D2xwlzlkFB3BGuLZ qXUaAZX0PwzSpTHI8rlGv+wHjfLvCKFo4vacBPBiI/RXyudvLlfVyqDgdjDQukQGwK OlzTMwdSoreJw== Received: from lists1.osuosl.org (lists1.osuosl.org [140.211.166.142]) by smtp4.osuosl.org (Postfix) with ESMTP id 9D6D540B53; Fri, 2 Oct 2026 13:22:56 +0000 (UTC) X-Original-To: u-boot@lists.u-boot-project.org Delivered-To: u-boot@lists.u-boot-project.org Received: from smtp3.osuosl.org (smtp3.osuosl.org [IPv6:2605:bc80:3010::136]) by lists1.osuosl.org (Postfix) with ESMTP id F141C34D for <u-boot@lists.u-boot-project.org>; Fri, 2 Oct 2026 13:22:53 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id D71AC60851 for <u-boot@lists.u-boot-project.org>; Fri, 2 Oct 2026 13:22:53 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id mK3PvjqXsvmJ for <u-boot@lists.u-boot-project.org>; Fri, 2 Oct 2026 13:22:52 +0000 (UTC) ARC-Filter: OpenARC Filter v1.3.0 smtp3.osuosl.org 6FE076069A Authentication-Results: smtp3.osuosl.org; arc=none smtp.remote-ip="2a00:1450:4864:30::f" ARC-Seal: i=1; d=osuosl.org; s=arc; a=rsa-sha256; cv=none; t=1790947372; b=DOBBwPZxzdxgXf63RpA26gyAwe17Trmb595Xe3wdQN+kp6nlvtZTcZsboSMSRKuXxdme WXOsUuIPmvEfNFCG2nslsd+DYLkg4eKrsw4eCEwIkiv4Hm4xVc9aRD4m6QnuSlGUFNbAY H0tKE3AR4aqEvkJ2gtxq5GeeHbFL2Yxklf8MDHpmr4qlfGw/JqsdsjKlbYUVJVTIaxsWt Zr3g0qPcJpisp8On0KvoIqTl4X79GehNJk8CHg347XeNzqdgNT0Aa10/SCn72SmbYCU+L sc61AV27qlyIzAbK/dSUTq5Jg2W/X3b6fDUl3aevBpYUYP6gZyaGb9aFnZIu7SM4TbA== ARC-Message-Signature: i=1; d=osuosl.org; s=arc; a=rsa-sha256; c=relaxed/relaxed; t=1790947372; h=Received-SPF:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Gm-Message-State:X-Gm-Gg:X-Received:Received:From:Subject:Date: Message-Id:MIME-Version:Content-Type:Content-Transfer-Encoding: X-B4-Tracking:X-Change-ID:To:Cc:X-Mailer:X-Developer-Signature: X-Developer-Key; bh=6Wz+MLJs+bZF0sFbIYYHRAO9ypcYyZ21hdoQcIUM2WQ=; b=a1JIhFLR2MNIA7mXbw55q6Vbn9lZcbsVs0cwYLI1syl2PHNi5b/nhu6qxQKOVR1+HRnw ctoOyteD8bmTv3m7tY2bbiFdQpLSoheUSjQ44FqQUGxroBiT0teIiX3C8FWUqGexXjfCO sGwSdfn8P9PSXruaPcoofYKWg8VXTQox2VV/Wtyh+nDf2FOdI8i48EgyhSN8CIAS+3NCX WF37190PNfbZShoNRGbBWuiytR4tI0jJhF85LfhuRYZawaT1gWn1mULfZOlZFg2/tQOn3 +CLlP+knRzxZWuMz1n3UnwAv5l5DRNAAUI+wYqGkqnlbJQfJa5j7/AvYiEf32BY0CQQ== ARC-Authentication-Results: i=1; smtp3.osuosl.org; dmarc=none header.from=baylibre.com; dkim=pass header.d=baylibre.com header.i=@baylibre.com header.a=rsa-sha256 header.s=google header.b=Ook9KYiJ; arc=none smtp.remote-ip="2a00:1450:4864:30::f" Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=2a00:1450:4864:30::f; helo=mail-wr2-x0f.google.com; envelope-from=jstephan@baylibre.com; receiver=<UNKNOWN> Authentication-Results: smtp3.osuosl.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: smtp3.osuosl.org; dkim=pass (2048-bit key) header.d=baylibre.com header.i=@baylibre.com header.a=rsa-sha256 header.s=google header.b=Ook9KYiJ Received: from mail-wr2-x0f.google.com (mail-wr2-x0f.google.com [IPv6:2a00:1450:4864:30::f]) by smtp3.osuosl.org (Postfix) with ESMTPS id 6FE076069A for <u-boot@lists.u-boot-project.org>; Fri, 2 Oct 2026 13:22:50 +0000 (UTC) Received: by mail-wr2-x0f.google.com with SMTP id ffacd0b85a97d-48b05fdb2f9so1974493f8f.0 for <u-boot@lists.u-boot-project.org>; Fri, 02 Oct 2026 06:22:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre.com; s=google; t=1790947368; x=1791552168; darn=lists.u-boot-project.org; h=cc:to:content-transfer-encoding:content-type:mime-version :message-id:date:subject:from:from:to:cc:subject:date:message-id :reply-to:content-type; bh=6Wz+MLJs+bZF0sFbIYYHRAO9ypcYyZ21hdoQcIUM2WQ=; b=Ook9KYiJQOd9QqX6pitOvuDZEvZQza/ctm4vuG+VIkqiGl3oR/KRDFIrYou9TvuiiR 38bFlKxpn+PIcFtMtx/M077JDrwRVGTB6XCf3o1JhxLyMTTej3Kj5Iv7dXBsHPzuD/gN laPBQ35FeOZ50pQDdU93s2OnkrRFExpVus7Hie4MKia1o6cYvxSdIvkiV/2EBqQuUbTx 5CSNvtAuO9Q/9Vhm7k8Yu+GC7Y1M+jolMnnOcIYluW07/KChLtJ78ILekv7JJSshZLr7 U38X0IP6KMAtRbytR3MU/3ar3F6J/vTFHvjcYoKJWJYIVIo3kCIW+/vbTX+z4ac8xcGk IMhw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790947368; x=1791552168; h=cc:to:content-transfer-encoding:content-type:mime-version :message-id:date:subject:from:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to:content-type; bh=6Wz+MLJs+bZF0sFbIYYHRAO9ypcYyZ21hdoQcIUM2WQ=; b=oS9Ti/XMsP0S/LEUGbmAT/g/FeWC8mG4WfaZt0UtPJcjafKUEtNQy5j1la9/1XJScc k7xw/9Wr1cZdcnKgAhl3Hng9n3oDo6GH5CUC4/q0FG7il/5/Mj7l1oJhuve/xXW02iPL M6tdhe8V0II60PO++p2wkPENImd4TODK0T7rUPT42kHD9NsGuhGDpCQSwmO0umepnkBv 8CqZz4IupaS+rAFbfDlaLC/yUKpgQRZkQEIez6ACXPngfrh/YEG5dHnb0+tjFroOPku1 lm433EhHNBvCfJ6mQ6vh+e0fdhJmbtkYh4Cb+ehEXZwSzkhlkWDJ2rKcGKA4VJhr3RJY fQtA== X-Gm-Message-State: AFq9FYKHUXvNHp0Aa3P6Y6l+3okspr3ubMJfvxDJIZ5P9/FgM1rKuqVm byKeI871qWvm6yLcjuQtLSx1cH5aOeTaHWc8Lc1ISOTfdWk53CVhSEPJGlhASjISnDc= X-Gm-Gg: AYBFou17e9cVmVaHJsKzatpthjuhTwOfEYqsl0wYN+gDkVH0ObQBzw2QW5z917b8yqr s5X1kK9r0mmHXOPU8N0MgcM3KYkIF9Du0E0KjjEOmaEXqgUuEI0QotF/HDnkhVgBALMLprAXOZr hai4CX0QD7BZ+1/0pqalUO29L7w2AW1HD/7G8ZAqoPfyOE7jCcdppBEYyFDvouIobORooRH/1DE y8pVyC/KYRAPA1H/mRIeYojAgW0iP0rKdTejG/6A1HTPGFTBbBbFFBb5Z7rIvibG65Gd+5NQpYy 5MWBPrAGIEVI5H4hmUzz0WPczlnXLPX4yKu/0d6cI+YtJ2ALEsgERrwkL+8CQqUEalZNH1hpXHZ 5Eww8RJpNuzrHtvyrmXMo0KD9Jt7fUsb0zqnDHKs/L5yXTkBMowbq6v+2UPFDldovgKTcIMVQLl YB9Vc5FUdCo0UNhmd6/X+v8nOOohdffRgHDM67wNuNvcL0AAQH5Fdu7dLLOHVLRZxE4x6RIuiTL pCb4SDiMvNqTf06Q4gAyGlMl4aZCqG3f4vSG+cSrqj8J3N6gUuEJAvXjP8DAF0Ay9tWrx72+Bd2 d/64ca0Y+24g4KidqLsQKIDlRZ3nayFam6xT2ceRxB7jpIw8w9r9wB4= X-Received: by 2002:a5d:6f0f:0:b0:488:79a2:3232 with SMTP id ffacd0b85a97d-48b12718166mr5652381f8f.31.1790947368310; Fri, 02 Oct 2026 06:22:48 -0700 (PDT) Received: from [192.168.1.100] (2a02-842a-d52e-6101-6f8f-5617-c4b6-8627.rev.sfr.net. [2a02:842a:d52e:6101:6f8f:5617:c4b6:8627]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-48b38104f89sm6264125f8f.30.2026.10.02.06.22.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Oct 2026 06:22:47 -0700 (PDT) From: Julien Stephan <jstephan@baylibre.com> Subject: [PATCH v8 00/12] mediatek: add HDMI pipeline support for MT8188 based boards Date: Fri, 02 Oct 2026 15:25:34 +0200 Message-Id: <20261002-add-genio-510-and-genio-700-hdmi-v8-0-2a6de7cf2a88@baylibre.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-B4-Tracking: v=1; b=H4sIAAAAAAAC/43RTU7DMBAF4KtUXmNkT+yx3RX3QCz8M26NaIKSE lFVuTtOATVCkcjyWaPvjcZXNlBfaGD73ZX1NJahdG0N9mHH4tG3B+Il1cxAAAojJPcp8QO1peN aCu7b32SE4Md0Kjx6hIjBghSRVea9p1w+bxXPL995+AivFM+zO08cy3Du+stth1HOcz91YP+vG yWv71GrkIzODsVT8Je3Enp6jN2JzY0j3E0LuMGEaqKlEGTI0qS8YjZ30205y9hUs7HSKa8bGdy aqZYmbDBVNU1sgsoCrde4YuqlqTaYupopuZQIsjNAKyYuTNAbTKwmOELAALIht2Kapbnl3001i ZRH6a2PMv0xp2n6AiQ+A8vdAgAA X-Change-ID: 20260701-add-genio-510-and-genio-700-hdmi-ca62c6b8210c To: u-boot@lists.u-boot-project.org Cc: GSS_MTK_Uboot_upstream <GSS_MTK_Uboot_upstream@mediatek.com>, Lukasz Majewski <lukma@denx.de>, Ryder Lee <ryder.lee@mediatek.com>, Weijie Gao <weijie.gao@mediatek.com>, Chunfeng Yun <chunfeng.yun@mediatek.com>, Igor Belwon <igor.belwon@mentallysanemainliners.org>, David Lechner <dlechner@baylibre.com>, Tom Rini <trini@konsulko.com>, Anatolij Gustschin <ag.dev.uboot@gmail.com>, Dario Binacchi <dario.binacchi@amarulasolutions.com>, Heinrich Schuchardt <xypron.glpk@gmx.de>, Johan Jonker <jbx6244@gmail.com>, Patrice Chotard <patrice.chotard@foss.st.com>, Simon Glass <sjg@chromium.org>, Pavlo Yadvychuk <pyadvychuk@baylibre.com>, Macpaul Lin <Macpaul.Lin@mediatek.com>, Ilias Apalodimas <ilias.apalodimas@linaro.org>, Carlo Caione <ccaione@baylibre.com>, Julien Masson <jmasson@baylibre.com>, Rasmus Villemoes <ravi@prevas.dk>, Julien Stephan <jstephan@baylibre.com>, Mattijs Korpershoek <mkorpershoek@kernel.org>, Anshul Dalal <anshuld@ti.com>, Neha Malcom Francis <n-francis@ti.com>, Siddharth Vadapalli <s-vadapalli@ti.com> X-Mailer: b4 0.16.0 X-Developer-Signature: v=1; a=openssh-sha256; t=1790947536; l=19031; i=jstephan@baylibre.com; h=from:subject:message-id; bh=fGvtympWl5VW03EuQVA+92s9h8Wf+yaS+j2k+mOfqB0=; b=U1NIU0lHAAAAAQAAADMAAAALc3NoLWVkMjU1MTkAAAAgphAWFBQbyQxHwqbCvwEwIl9NQxnNa Ewt+3w/AUXP10QAAAAGcGF0YXR0AAAAAAAAAAZzaGE1MTIAAABTAAAAC3NzaC1lZDI1NTE5AAAA QDMAWCPD5A+xgoknncBHBJz8G5Q5OGRM2nmy5M53Nj8WbDAR+DP0E3LPfaway11Fw5YUQd3LplO 6EzLBjjZXhAw= X-Developer-Key: i=jstephan@baylibre.com; a=openssh; fpr=SHA256:PPc8djUi3lnQXuiRHH4CZ/icbEYOsksrEsOV7pDEmZg X-BeenThere: u-boot@lists.u-boot-project.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: U-Boot discussion <u-boot.lists.u-boot-project.org> List-Unsubscribe: <https://lists.u-boot-project.org/mailman/options/u-boot>, <mailto:u-boot-request@lists.u-boot-project.org?subject=unsubscribe> List-Archive: <http://lists.u-boot-project.org/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.u-boot-project.org> List-Help: <mailto:u-boot-request@lists.u-boot-project.org?subject=help> List-Subscribe: <https://lists.u-boot-project.org/mailman/listinfo/u-boot>, <mailto:u-boot-request@lists.u-boot-project.org?subject=subscribe> Errors-To: u-boot-bounces@lists.u-boot-project.org |
| Series |
mediatek: add HDMI pipeline support for MT8188 based boards
|
expand
|
On Fri, 02 Oct 2026 15:25:34 +0200, Julien Stephan wrote: > mediatek: add HDMI pipeline support for MT8188 based boards > > This series adds HDMI support for MT8188 based boards, such as the Genio > 510 and Genio 700 EVKs, in order to display a boot logo over HDMI. It > builds on top of the HDMI PHY driver [1], the DDC (I2C) driver [2], the > clock series [3] and a clock fix [4] already sent earlier. > > [...] Applied to mediatek-for-main, thanks! [01/12] memory: sort the Makefile alphabetically commit: 5fd68a4100e60551dffdf08ba639f431d057bc3e [02/12] memory: mediatek: add SMI larb driver commit: ed242b1b97df91d1a1eef476d782a10ae8d7e4eb [03/12] video: mediatek: add display pipeline component helpers commit: 9d4cb1a32db890945452038737b56b55a445dd1f [04/12] video: mediatek: add ethdr component commit: 53658988ea77f894ac92a90a89ccf698d9e41663 [05/12] video: mediatek: add merge component commit: 429aad8d80d0ddd2998057c2f98e0c3513cb01fc [06/12] video: mediatek: add mutex component commit: 07ac492f6563abbc98a2db3d61c3dc17a2d5b354 [07/12] video: mediatek: add padding component commit: 3d5c58c3d9405f24563212980efa70079768dcdb [08/12] video: mediatek: add mdp rdma component commit: faa8a32143306c5eb2f3da5d79a6341cd564b85f [09/12] video: mediatek: add dpi1 component commit: 8531c3648904e9a9151635952d570b4e46be3dbc [10/12] asm-generic: unaligned: add get_unaligned_le24() commit: 690fbabbbc8de8a86ab5e41d36fba2431bea5ddd [11/12] video: mediatek: add hdmi driver commit: 7911e0d2f2d7cab4b6fc942c6633fe15983a0f67 [12/12] configs: mediatek: mt8188: enable hdmi pipeline commit: 5ce47efe819e2d57dad39f0e4f95881c33be0a51 Best regards,
This series adds HDMI support for MT8188 based boards, such as the Genio 510 and Genio 700 EVKs, in order to display a boot logo over HDMI. It builds on top of the HDMI PHY driver [1], the DDC (I2C) driver [2], the clock series [3] and a clock fix [4] already sent earlier. The drivers here were inspired by the corresponding kernel drivers, but were largely modified, mainly because U-Boot has no DRM framework and the goal is only to display a framebuffer. The HDMI driver locates each pipeline component through the device-tree aliases the SoC dtsi already provides and programs them directly. The framebuffer is allocated by the video uclass. The video pipeline looks like this: framebuffer (in DRAM) | +------------+------------+ v v mdp_rdma4 mdp_rdma5 two DMA read engines, (left half) (right half) each fetching one frame half | | padding4 padding5 (bypass) | | +------------+------------+ v vpp merge (merge3) recombine the two halves | v ethdr mixer (ethdr0) | v hdr back-end (bypass) | v vpp merge (merge5) | v dpi1 timing generator -> HDMI TX | v ddc/i2c ---> hdmi tx controller (read EDID) | v hdmi phy | v hdmi connector ---> sink mutex1 : hardware SOF synchronization across the pipeline vdosys1 : routing muxes (SEL_IN/SOUT) and the sizes of the clock-domain-crossing wrappers between the blocks above larb2/3 : SMI local arbiters gating the RDMAs' access to DRAM The series adds the HDMI TX controller (UCLASS_VIDEO), a set of shared display-component helpers and the individual pipeline components (ethdr, merge, mutex, padding, rdma, dpi1), a minimal SMI local arbiter driver, and the config that enables the pipeline. Tested on a Genio 700 EVK: the U-Boot logo shows up on an HDMI display. [1]: https://patchwork.ozlabs.org/project/uboot/patch/20260717-mt8188-add-hdmi-phy-driver-v1-1-4278457fe2cb@baylibre.com/ [2]: https://patchwork.ozlabs.org/project/uboot/cover/20260717-mt8188-add-ddc-i2c-driver-v1-0-e89ccd173567@baylibre.com/ [3]: https://patchwork.ozlabs.org/project/uboot/patch/20260715-mt8188-add-clk-add-display-related-clocks-v2-1-0aaf7accaeb0@baylibre.com/ [4]: https://patchwork.ozlabs.org/project/uboot/patch/20260728-mt8188-clk-fix-top0-gate-polarity-v1-1-56bc92ba6055@baylibre.com/ Signed-off-by: Julien Stephan <jstephan@baylibre.com> --- Changes in v8: - SMI: on MT8188, take the larb out of the IOMMU through the secure monitor (SMC), as Linux does; select ARM_SMCCC; reword the Kconfig help - mutex: rename mtk_disp_mutex_config_hdmi() to mt8188_mutex_config_hdmi() - add <linux/types.h> to the new headers - rdma: u32 byte offset - merge: only unmute when mediatek,merge-mute is set - hdmi: Kconfig: drop select MTK_POWER_DOMAIN, depend on ARM64 && CLK - collect Ilias's Reviewed-by on get_unaligned_le24() - Link to v7: https://patch.msgid.link/20260928-add-genio-510-and-genio-700-hdmi-v7-0-ee4a61a8ac1d@baylibre.com Changes in v7: - rename mtk-smi-larb to mtk-smi to align with kernel. Also update config symbol and alilgn description with kernel - Link to v6: https://patch.msgid.link/20260925-add-genio-510-and-genio-700-hdmi-v6-0-29e626b213e9@baylibre.com Changes in v6: - dts: dropped the framebuffer reserved-memory patch; the framebuffer is now allocated by the video uclass, sized for the largest mode - kernel-doc for the exported API and structures - <linux/bitops.h> where BIT()/GENMASK() are used; MediaTek spelling - SMI larb: refcount enable/disable - component helpers: larb lookup moved here from rdma - ethdr: program MIX_L_SRC_OFFSET(2); enable the mixer last - merge: read-modify-write of CFG_37 - mutex: Linux names for the SOF and module indices - rdma: retitled "add mdp rdma component"; datasheet names for the downstream-only fields - dpi: fix inverted HSYNC/VSYNC polarity; clear YUV422_EN/CSC_ENABLE - hdmi driver: DM_FLAG_PRE_RELOC; set priv->format; yuv420 bypass only clears HDMI_YUV420_MODE; document the HDR back-end routing, the VDOSYS1 power dependency and the 4:3 VICs - Link to v5: https://patch.msgid.link/20260904-add-genio-510-and-genio-700-hdmi-v5-0-dd9dde2f972e@baylibre.com Changes in v5: Across the whole series - Dropped the dead colorspace/colorimetry handling: only RGB444 8bpc is ever produced, so set_csp_depth/csp, the YUV cases of the AVI InfoFrame, the YUV420 downsample path and the DPI CSC are gone. That removed the only user of the include/linux/hdmi.h added in v2, so that patch is dropped too. - Programmed the resolution- and DRAM-latency-dependent registers the mainline kernel writes and this series skipped; their reset values only work at the timing they happened to be tested at. Retested on a Genio 700 EVK. - of_match tables consistently use "{ }". - Include hygiene: <linux/bitops.h>, <errno.h> and <fdtdec.h> where needed, unused <video.h>/<asm/io.h> dropped, #endif guards named, redundant "struct udevice;" forward declarations removed. Per patch - memory: new preparatory patch sorting drivers/memory/Makefile, so the larb entry lands in an ordered list. - SMI larb: moved to drivers/memory/mtk-smi-larb.c with its own CONFIG_MTK_SMI_LARB and UCLASS_MEMORY - component helpers: added mtk_disp_comp_update(), the read-modify-write counterpart of mtk_disp_comp_write(). - ethdr: put the HDR video back-end in bypass like Linux' mtk_ethdr_config() does; "vdo_be" mapped by reg-name. - merge: mtk_disp_merge_config() reshaped to the kernel's (l_w, r_w, h) and CFG_1/25/27 written unconditionally; documented that the single-input no-fifo mode is unreachable from this pipeline, hence untested. - padding: clear all four registers in bypass mode, not only the picture size - rdma: - program MDP_RDMA_GMCIF_CON and clear MDP_RDMA_COMP_CON and FLD_OUTPUT_ARGB - reject a stride too wide for FLD_MF_BKGD_WB; -print the framebuffer base with "%#lx" (it is a ulong); - resolve the larb in UCLASS_MEMORY. - rdma: kept the datasheet name BGRA8888 over the kernel's RDMA_INPUT_FORMAT_RGBA8888 (same byte order, i.e. DRM_FORMAT_XRGB8888) and TRANSFORM_0 bit 15 over MDP_RDMA_CON's FLD_OUTPUT_10B (that bit is in neither kernel driver, it came with the downstream U-Boot code). Both documented in comments. - dpi: the CSC/matrix path went with the colorspace handling, and MATRIX_SEL_RGB_TO_BT709 with it; mtk_dpi_hw_disable() is now used, in the HDMI probe unwind; mtk_dpi_mask() replaced by mtk_disp_comp_update(); local types renamed mtk_dpintf_* -> mtk_dpi_* (this node is mediatek,mt8195-dpi, not the dp-intf variant) and the config parameters const. - get_unaligned_le24(): moved between the le16 and le32 helpers to keep the file ordered, and split into __get_unaligned_le24()/get_unaligned_le24() as Linux has it. - hdmi driver: above 340 MHz, tell the sink to scramble and use the 1/40 bit clock ratio through its SCDC TMDS_Config (offset 0x20 at I2C 0x54). - hdmi driver: sink type taken from the EDID (hdmi_monitor) instead of always assuming HDMI, and no InfoFrames sent to a DVI sink. - hdmi driver: zero the EDID extension block when reading it fails, so the parser cannot pick a timing out of uninitialised stack - hdmi driver: propagate the generic_phy_configure()/_power_on() failures instead of logging and carrying on. - hdmi driver: clear the GCP AVMUTE, in case an earlier boot stage left the sink muted. - hdmi driver: the VIC is now looked up in a table keyed on the timing's exact rounded refresh rate; an unknown timing reports VIC 0 and no aspect ratio rather than a wrong one, and the AVI colorimetry is "No Data" as CTA-861 wants for RGB. Also set A0 in the AVI InfoFrame, the active format R3..R0 is only valid with it. - hdmi driver: mtk_hdmi_mode_valid() also rejects interlaced timings, odd widths and pixel clocks outside 25-594 MHz. The pipeline reads the frame as two halves and feeds the DPI two pixels per clock, and the PHY will not lock outside that range; rejecting them here lets the EDID parser fall back to the next detailed timing instead of failing. - hdmi driver: no data islands towards a DVI sink either, the GCP and null packets are gated on hdmi_monitor like the InfoFrames. - hdmi driver: dropped the infoframe buffer size checks, which cannot fail, and collapsed the three-way HPD state into a bool. - hdmi driver: program the vdosys1 clock-domain-crossing wrapper sizes and the mixer input padding. The alpha half of the kernel's mtk_mmsys_mixer_in_config() is left alone: the mixer layer runs with MIXER_ALPHA_AEN clear. - hdmi driver: zero the framebuffer before the RDMAs start and enable the DPI last, so a stale reserved region is never scanned out; video_post_probe() only clears the framebuffer after probe returns. - hdmi driver: dev_remap_addr() and a void __iomem * for the register window; extension_flag instead of a raw 0x7e offset; the 150 us settle delay moved back where the kernel has it, so it does not fire on the disable path; "display is not connected" demoted to debug; the cached struct display_timing dropped, timing and buffer parameters const, "inline" dropped from the two static helpers, includes sorted. - hdmi driver: retitled "video: mediatek: add hdmi driver". - mtk_hdmi_regs_v2.h is a verbatim copy of the kernel header except VID_DOWNSAMPLE_CONFIG, at 0x8f0 per the MT8390/MT8188 datasheet and not the 0x8d0 Linux uses (a patch was sent to fix this on kernel side) - dts: the reserved-memory and the hdmi "memory-region" phandle are a single patch now; SPDX (GPL-2.0 OR MIT) -> (GPL-2.0-only OR MIT), node renamed framebuffer@72000000, 32 MiB size documented. - configs: drop CONFIG_CMD_I2C, the DDC transfers go through DM_I2C inside the driver; the commit message notes that CONFIG_VIDEO_LOGO is "default y if !SPLASH_SCREEN", so CONFIG_VIDEO=y already brings it in. - Link to v4: https://patch.msgid.link/20260902-add-genio-510-and-genio-700-hdmi-v4-0-7c3b4f068a56@baylibre.com Changes in v4: - refresh config fragment with savedefconfig: remove CONFIG_VIDEO_LOGO, correctly place CONFIG_WATCHDOG_AUTOSTART that is enabled by default - reword commit message on patch 13: remove useless mentions to larb/vdosys1 aliases that were removed in v3 - Link to v3: https://patch.msgid.link/20260901-add-genio-510-and-genio-700-hdmi-v3-0-38194a531b9f@baylibre.com Changes in v3: Across the whole series - Re-based every register definition on the mainline Linux kernel definitions (upstream names, values and BIT()/GENMASK()/FIELD_PREP()) instead of the downstream U-Boot ones. - SPDX fixes: GPL-2.0 / GPL-2.0+ -> GPL-2.0-only on all new driver files, Makefile and Kconfig; relicensed include/linux/hdmi.h to MIT (it's a partial port of Linux' MIT-licensed header) and added the full MIT permission text. - Bind on the generic mediatek,mt8195-* fallback compatible (shared IP) rather than the SoC-specific mediatek,mt8188-*: dpi, ethdr, merge, rdma. - Makefile/Kconfig header cleanup: copyright set to BayLibre and the obj- list sorted alphabetically. Per patch - display pipeline component helpers: reworded the commit message (probe and enable sequence). - ethdr: use the kernel's parameterized MIX_L_SRC_CON(n)/MIX_L_SRC_SIZE(n) macros, drop the unused *_CK_EN defines, add BACKGROUND_RELAY to the datapath write; keep the downstream-only L2 select bits behind a comment. - merge: rename registers to the kernel's DISP_REG_MERGE_* / MERGE_EN; keep the downstream-only CFG_30 behind a comment. - mutex: make the register offsets index-based (DISP_MUTEX_*(id)) and rename the helper to mtk_disp_mutex_config_hdmi() so a future DSI user can reuse it. - padding: rename registers to the kernel's PADDING_CONTROL_REG / PADDING_ENABLE / PADDING_PIC_SIZE_REG. - rdma: use the kernel's FLD_* fields with FIELD_PREP(); take the stride from the framebuffer line_length instead of recomputing it; error out if the framebuffer base is above 4 GB (the source-base register is 32-bit), add larb configuration. - dpi: import mtk_dpi_regs.h verbatim from the mainline kernel and adjust the driver to the upstream names (DPI_RET, DPI_INPUT_2P_EN, DPI_OUTPUT_1T1P_EN); keep the one downstream-only matrix value (MATRIX_SEL_RGB_TO_BT709) locally. - include/linux/hdmi.h: MIT relicense (see above). - hdmi driver: move the register defines into a new mtk_hdmi_regs_v2.h imported verbatim from the mainline kernel; correct VID_DOWNSAMPLE_CONFIG to 0x8f0 per the MT8390 datasheet (mainline has a wrong 0x8d0 — a separate kernel fix was sent); remove the dead deep-color code path (the driver only ever drives 8 bpc); drop the unused length argument of the infoframe helpers; check the RDMA config return value; resolve the vdosys1 syscon via ofnode_by_compatible() instead of a U-Boot-invented alias. - dts (reserved-memory): drop the unused splashscreen carveout, keep only the framebuffer region; retitle the patch to "add framebuffer reserved-memory". - dts (hdmi override): drop the U-Boot-invented vdosys1 alias (resolved by compatible now) and larb2/larb3 aliases now resolved using iommus and DT directly inside rdma component. - configs: use CONFIG_VIDEO_LOGO (show the U-Boot logo) instead of CONFIG_SPLASH_SCREEN, since upstream lacks the plumbing to make the splash actually work — this also keeps CONFIG_EXPO enabled and drops the now-unneeded CMD_BMP / BMP_24BPP. - Link to v2: https://patch.msgid.link/20260826-add-genio-510-and-genio-700-hdmi-v2-0-68ebb1bf17df@baylibre.com Changes in v2: - Add a common `get_unaligned_le24()` helper for reading 24-bit little-endian values, ported from kernel - Add a common `linux/hdmi.h` header with HDMI colorspace and colorimetry enums, based on the corresponding Linux header. - Refactor the HDMI driver to use the new common HDMI definitions and unaligned access helper. - Rename the mixer component to ETHDR and configure the ETHDR before the remaining display pipeline components. - Add the SMI LARB components and configure the VDOSYS1 routing directly from the HDMI driver. - Switch display component lookup from phandles to DT aliases and add proper error unwinding for component clocks, HDMI PHY power, and clock resources. - Refactor HDMI register access and InfoFrame handling. - Improve HDMI mode handling, YUV420 downsampling, TMDS scrambling, deep-color handling, and InfoFrame generation. - Move framebuffer/splash reserved-memory definitions to the Genio common U-Boot DTSI and add the corresponding HDMI override node for MT8390/Genio EVKs. - Drop the dedicated MT8188 VDOSYS1 pipeline component and its corresponding DTS node, to avoid having 2 nodes with same reg address. - Remove the unnecessary `dm_scan_fdt_dev` bind hook from the HDMI driver. - Link to v1: https://patch.msgid.link/20260728-add-genio-510-and-genio-700-hdmi-v1-0-ac54bd75f960@baylibre.com To: u-boot@lists.u-boot-project.org Cc: GSS_MTK_Uboot_upstream <GSS_MTK_Uboot_upstream@mediatek.com> Cc: Tom Rini <trini@konsulko.com> Cc: Anatolij Gustschin <ag.dev.uboot@gmail.com> Cc: Ryder Lee <ryder.lee@mediatek.com> Cc: Weijie Gao <weijie.gao@mediatek.com> Cc: Chunfeng Yun <chunfeng.yun@mediatek.com> Cc: Igor Belwon <igor.belwon@mentallysanemainliners.org> Cc: David Lechner <dlechner@baylibre.com> Cc: Julien Stephan <jstephan@baylibre.com> Cc: Dario Binacchi <dario.binacchi@amarulasolutions.com> Cc: Johan Jonker <jbx6244@gmail.com> Cc: Patrice Chotard <patrice.chotard@foss.st.com> Cc: Simon Glass <sjg@chromium.org> Cc: Pavlo Yadvychuk <pyadvychuk@baylibre.com> Cc: Macpaul Lin <Macpaul.Lin@mediatek.com> Cc: Ilias Apalodimas <ilias.apalodimas@linaro.org> Cc: Mattijs Korpershoek <mkorpershoek@kernel.org> Cc: Carlo Caione <ccaione@baylibre.com> Cc: Anshul Dalal <anshuld@ti.com> Cc: Rasmus Villemoes <ravi@prevas.dk> Cc: Neha Malcom Francis <n-francis@ti.com> Cc: Siddharth Vadapalli <s-vadapalli@ti.com> --- Julien Stephan (12): memory: sort the Makefile alphabetically memory: mediatek: add SMI larb driver video: mediatek: add display pipeline component helpers video: mediatek: add ethdr component video: mediatek: add merge component video: mediatek: add mutex component video: mediatek: add padding component video: mediatek: add mdp rdma component video: mediatek: add dpi1 component asm-generic: unaligned: add get_unaligned_le24() video: mediatek: add hdmi driver configs: mediatek: mt8188: enable hdmi pipeline configs/mt8188.config | 4 + drivers/memory/Kconfig | 12 + drivers/memory/Makefile | 3 +- drivers/memory/mtk-smi.c | 164 +++++ drivers/video/Kconfig | 1 + drivers/video/Makefile | 1 + drivers/video/mediatek/Kconfig | 21 + drivers/video/mediatek/Makefile | 15 + drivers/video/mediatek/mtk_disp_comp.c | 123 ++++ drivers/video/mediatek/mtk_disp_comp.h | 96 +++ drivers/video/mediatek/mtk_disp_merge.c | 155 +++++ drivers/video/mediatek/mtk_disp_merge.h | 49 ++ drivers/video/mediatek/mtk_disp_mutex.c | 79 +++ drivers/video/mediatek/mtk_disp_mutex.h | 21 + drivers/video/mediatek/mtk_disp_padding.c | 49 ++ drivers/video/mediatek/mtk_disp_padding.h | 20 + drivers/video/mediatek/mtk_dpi.c | 372 +++++++++++ drivers/video/mediatek/mtk_dpi.h | 34 + drivers/video/mediatek/mtk_dpi_regs.h | 247 +++++++ drivers/video/mediatek/mtk_ethdr.c | 106 +++ drivers/video/mediatek/mtk_ethdr.h | 39 ++ drivers/video/mediatek/mtk_hdmi.c | 1027 +++++++++++++++++++++++++++++ drivers/video/mediatek/mtk_hdmi_regs_v2.h | 263 ++++++++ drivers/video/mediatek/mtk_mdp_rdma.c | 185 ++++++ drivers/video/mediatek/mtk_mdp_rdma.h | 36 + include/asm-generic/unaligned.h | 10 + include/mtk_smi.h | 37 ++ 27 files changed, 3168 insertions(+), 1 deletion(-) --- base-commit: 677a768c91b2baaefdf09633d1fdb5c9f758674f change-id: 20260701-add-genio-510-and-genio-700-hdmi-ca62c6b8210c Best regards, -- Julien Stephan <jstephan@baylibre.com>