Received: by 2002:a05:6500:1b45:b0:1f5:f2ab:c469 with SMTP id cz5csp63545lqb; Tue, 16 Apr 2024 08:54:46 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV21A+SsV/eOimC6bqQ2Lpv4FUhdALLbCQ2m6+zSx3n+/zKuAbiQInaHrXyVRfUEBfaMfupo2mBNSKXy3lsnSKWYQvUaE/3fQm5RWkRtA== X-Google-Smtp-Source: AGHT+IFVV5x/Ddcz/H0BxHixi62/KjTI17Tp8Inc2OdnP90v0xAHMkyjcJU/O3v9j23ABCyVLEga X-Received: by 2002:a05:620a:36c5:b0:78e:e458:22b6 with SMTP id cz5-20020a05620a36c500b0078ee45822b6mr6843311qkb.36.1713282886679; Tue, 16 Apr 2024 08:54:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713282886; cv=pass; d=google.com; s=arc-20160816; b=bD/BvtOJdIZv6KOCNudk08anNZOtLgs+pR8x+MEMfWbHXjGKCUV52CkvywBR5hJgmI 1pxm9iyJ6gZef93GyquKBnt0wZY/kZfNyuxY/s2Y9Hdq4PD9iT+6hSYywnhvsuhzcE56 f17BobMsjfuJ7qiNKGLr6JK3u93jw7IC51dKCOciMDv5ueZSvLj3UYy+pPwgbhR+OYIA FSqF4u7Yk3DRF3aix7jpIr2ADifHDEDZhXjgmrqs5D5awYeN+KtnEcb+weY6H/Y1i2WZ DfeI/+vfnkyqZs2huyS6upebpJ//bTMO2P8iUqfWFd4w0+pcj5vmJiie36e4yEQiVUCb ywPQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:from :dkim-signature; bh=HplLWGZ3hQiKWDGM7/znOJrIFY9in8L3w1MlCrmBNzg=; fh=8UPZUX4oIc7NAxAXCOVG5b8/sxKDjr+Hx5upduKdd6Y=; b=YE/OmNezp/PBfXJdMkqKYyNVzqy/OqY9azcbgwUxsnRZAo44dxho4V6IdYnuRgky9P NrtikgiUhSuQYcE+tVWfFwljQ4YLamHP5ExQEtruAsWbIPI+QtwDiUuIplNnpLcxc3z4 chmmVpjzmwbWrDSiS6ugHHAYzUTH/icED4nv+J1QDLpgDOzni0WWcCiSQ85hUQaHF0i3 Tb4RNxltAF3SCUf9uNR0MOvCWjGM54aFEd4ZH3vvEDuauSzTwecy6eYYOglx+46hayw4 kJQ6JzfJFoHQ3DA+l2fPy7bveqUulYCXrdXsvI/3lbelOl/gdL2BRAJNHTSzbnYlEU2h pgEw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=NenMJ9my; arc=pass (i=1 spf=pass spfdomain=baylibre.com dkim=pass dkdomain=baylibre-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-147164-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-147164-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id j29-20020a05620a001d00b0078bd1b249f2si12373612qki.219.2024.04.16.08.54.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Apr 2024 08:54:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-147164-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=NenMJ9my; arc=pass (i=1 spf=pass spfdomain=baylibre.com dkim=pass dkdomain=baylibre-com.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-147164-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-147164-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 565291C20AD1 for ; Tue, 16 Apr 2024 15:54:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 96742134424; Tue, 16 Apr 2024 15:53:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b="NenMJ9my" Received: from mail-ej1-f44.google.com (mail-ej1-f44.google.com [209.85.218.44]) (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 45C59134407 for ; Tue, 16 Apr 2024 15:53:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.44 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713282801; cv=none; b=T6PhnvBG7GhQBf3fyUaOhaxc1qFCYnepOW/rxIzrBuorhq0YFzR8RDqBHGtGHz8Hd6j6e3b7abKJfLV26o/aWPARoWEV9d4/IUF9FUMzx2iN3VG5hSJ8Iz4zY/ywV5Jmmm3OXQdcTZT0dhv0kfBbtSiN0u3T+6FDU/34aItCff4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713282801; c=relaxed/simple; bh=cSRtZ8VILEnO8kxIOGOQMbqnDEouxobw2b1bWxUvmps=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=nJGimkvC4tLtl5uXjAzK/ia6XSA1dCoaVSfT+FtAttE0bCAU3Bobv3DKJZBnsNkuj6i9i3jCWaI8DDCVNXoCuUC/94QtkX4Kje3Iu4cdPIBoGKgYUWc6ec9KMd3xkHcNyYwI0pfTDakI0mZHErPitiPEZ8whp7Q273qb8OdcL0E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com; spf=pass smtp.mailfrom=baylibre.com; dkim=pass (2048-bit key) header.d=baylibre-com.20230601.gappssmtp.com header.i=@baylibre-com.20230601.gappssmtp.com header.b=NenMJ9my; arc=none smtp.client-ip=209.85.218.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=baylibre.com Received: by mail-ej1-f44.google.com with SMTP id a640c23a62f3a-a51addddbd4so535577266b.0 for ; Tue, 16 Apr 2024 08:53:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1713282796; x=1713887596; darn=vger.kernel.org; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=HplLWGZ3hQiKWDGM7/znOJrIFY9in8L3w1MlCrmBNzg=; b=NenMJ9myjDr6iWsKf5jdP4sOnqjj+A/JrWvioNiF1Gq3SdBIvyncJDFzL6bitESQdh Ya8v/LNa1M3bNci/T0E6ULhnuiVOuqVzp5GJWxutpFxKMM3BtnUiXBkBeW7PL5m2RqBh hZzCg4PDOwm5wksLh+o6BZBKlf5VbojhMAOHn/YpglAogNyYuOcrXeTkijNLRFcuzTjR I5s0uCs38mmFTryjLOg/RbRBMqJlUpfh+Mm3GHlARYByWlq9LWpy2pSDj4jr1fb7CEad i6qblnofch+kNdiYflAc4L/T1UWoKHu5J1iNxD2I4wusczXQeFgkLq6qHEnv8HyTEkBX Hn0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713282796; x=1713887596; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=HplLWGZ3hQiKWDGM7/znOJrIFY9in8L3w1MlCrmBNzg=; b=ddFeevMHE1J7vmhT7YbpLffndInVga5AfO+CIe3vcCMM9lG46iy+yP9gXtbui6IbY0 doss8NZGDjimdDjQksD3Vfr66Ozks3QL8P8gaM4kMGeWkP1WZNTM+jUhJaBNRK6RelNp A4JKHvLhOV+HFmz2FR+Q0ULGJ7DU7tbaR62xi7M7a8mUDXHzC/pz2ZYTbHlBfS1hW1Un 3MwP7iBF7ISs9nv9izs7NVVtQe+GQ4g//sHURAdRSzbOdcFfwfj4Ky8/dOIK0Ua7ok8J gOEzz530YpLVHdz1oAYnMhDaOO6bD3Ms3YGr0hxCZnh9ywQ9CpOtCTcDhNTzVPQS9JDP pmcw== X-Forwarded-Encrypted: i=1; AJvYcCWnajwo3seT7NoY8qZGYykjOhKlLwRzvGVZZteUCVVEhUu4RAJ5QTNI26zT8SqeDgjE+Bv6TiZ6YJPX94cSk5LQcNkmor7SOYMZ+CNJ X-Gm-Message-State: AOJu0YzaNCVEeqyDhct+vUu7rkezorMdFaNSR0AasXVTwxXsWYfMFOnw ePQfT3dh0CP0eEIGTZzpfEyw79XO8zMi+3mDR1tnwsctMp3U1ftoqT0IfHvK3M4= X-Received: by 2002:a17:906:d0cb:b0:a52:69e8:297 with SMTP id bq11-20020a170906d0cb00b00a5269e80297mr3489058ejb.23.1713282796301; Tue, 16 Apr 2024 08:53:16 -0700 (PDT) Received: from [127.0.1.1] ([93.5.22.158]) by smtp.googlemail.com with ESMTPSA id d12-20020a170906174c00b00a52567ca1b6sm4156691eje.94.2024.04.16.08.53.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Apr 2024 08:53:15 -0700 (PDT) From: Alexandre Mergnat Subject: [PATCH v2 00/18] Add display support for the MT8365-EVK board Date: Tue, 16 Apr 2024 17:53:01 +0200 Message-Id: <20231023-display-support-v2-0-33ce8864b227@baylibre.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAN2eHmYC/3WNQQqDMBBFryJZNyUxKrYr71FcJHFaB6wJM6lUx Ls3uu/iL96Hx9sEAyGwuBebIFiQMcwZyksh/GjnF0gcMotSlUbnyQE5TnaV/IkxUJK+qXTrjIJ K30S2nGWQjuzsx8NLwEkffyR44vcsPfrMI3IKtJ7hRR/v/8aipZK1bxsFQ+2NcZ2z64SO4OrDW /T7vv8AY3SskMkAAAA= To: Chun-Kuang Hu , Philipp Zabel , David Airlie , Daniel Vetter , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno , Jitao Shi , CK Hu , =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= , Michael Turquette , Stephen Boyd , Catalin Marinas , Will Deacon Cc: dri-devel@lists.freedesktop.org, linux-mediatek@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-pwm@vger.kernel.org, linux-clk@vger.kernel.org, Alexandre Mergnat , Fabien Parent X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=3812; i=amergnat@baylibre.com; h=from:subject:message-id; bh=cSRtZ8VILEnO8kxIOGOQMbqnDEouxobw2b1bWxUvmps=; b=owEBbQKS/ZANAwAKAStGSZ1+MdRFAcsmYgBmHp7pfbtsXBoyKnpXRXIQYrCvJPBKWQhh2dpgUO+S tJaRjXGJAjMEAAEKAB0WIQQjG17X8+qqcA5g/osrRkmdfjHURQUCZh6e6QAKCRArRkmdfjHURb4+EA CJVvFhuBQ0WIxxDyH4ccz/F1AEoTOQ29tz8h97MmzWNykxCMsl7FBcb38j8u+2xXlTToLi41netQsO wZ2nO4n+GPzP8+JpXnDizacvBKiB1qAjcOtvW1Cy8rpro7lDVp/u9XFxzTZvfNFMMnXOKKE3VZ4a1S e++0aO3I8KrobReXfiWdodhv8PQepIN/bwvOPCqfZgb0pefpY3T0L4BFvpfr4gw9K95ZClfFxFAX4C 2pS3XVk0aNoy2bcNgxsY4UVzwOxKrIt3Txd99NQ7UgMCNfJygDYwhMzoMhgZpAwZJOV24UU4hhmVYR aLnm0IJIpb5CW/2od3K5yTbIx7sGpQ9zqKVkr3l63inYSWeWWEUPnYcCR4gs614wl8JqaFpgF2wkiO HY2QW8D+YzCnkzgYiq9Ozy2m7cJpqsIjkLxgUgEQLM/zlsW7EYxr7dWw6Ngk0rG2kKlXpgUYaXK53U mrILo0+qsWgWkWtaEe/3k0wJ+Cwbl09ilnllXbNHLDzz+izuO2HvjBcmn09W1K3iaHpef1cxHy2Nxh k2I6ftfAqvjaeN+tYw7PswrAMClpmKD5nOnwHtjy71VLyRURJzU0E46UPfDmQV/RSzsCsWGjo0Vj8k 1BxThQtqnj7SkCZN7g9IEmhiE9T+xWcoXcms8/Omg4oOlYELlIKluZ0FBqLA== X-Developer-Key: i=amergnat@baylibre.com; a=openpgp; fpr=231B5ED7F3EAAA700E60FE8B2B46499D7E31D445 The purpose of this series is to add the display support for the mt8365-evk. This is the list of HWs / IPs support added: - Connectors (HW): - HDMI - MIPI DSI (Mobile Industry Processor Interface Display Serial Interface) - HDMI bridge (it66121) - DSI pannel (startek,kd070fhfid015) - SoC display blocks (IP): - OVL0 (Overlay) - RDMA0 (Data Path Read DMA) - Color0 - CCorr0 (Color Correction) - AAL0 (Adaptive Ambient Light) - GAMMA0 - Dither0 - DSI0 (Display Serial Interface) - RDMA1 (Data Path Read DMA) - DPI0 (Display Parallel Interface) The Mediatek DSI, DPI and DRM drivers are also improved. Regards, Alex Signed-off-by: Alexandre Mergnat --- Changes in v2: - s/binding/compatible/ in commit messages/titles. - Improve commit messages as Conor suggest. - pwm-disp: Set power domain property for MT8365. This one is optionnal and can be used for other SoC. - Fix mediatek,dsi.yaml issue. - Remove the extra clock in the DPI node/driver and fix the dpi clock parenting to be consistent with the DPI clock assignement. - Link to v1: https://lore.kernel.org/r/20231023-display-support-v1-0-5c860ed5c33b@baylibre.com --- Alexandre Mergnat (16): dt-bindings: display: mediatek: aal: add compatible for MT8365 SoC dt-bindings: display: mediatek: ccorr: add compatible for MT8365 SoC dt-bindings: display: mediatek: color: add compatible for MT8365 SoC dt-bindings: display: mediatek: dither: add compatible for MT8365 SoC dt-bindings: display: mediatek: dsi: add compatible for MT8365 SoC dt-bindings: display: mediatek: dpi: add compatible for MT8365 dt-bindings: display: mediatek: gamma: add compatible for MT8365 SoC dt-bindings: display: mediatek: ovl: add compatible for MT8365 SoC dt-bindings: display: mediatek: rdma: add compatible for MT8365 SoC dt-bindings: pwm: mediatek,pwm-disp: add power-domains property dt-bindings: pwm: mediatek,pwm-disp: add compatible for mt8365 SoC drm/mediatek: dsi: Improves the DSI lane setup robustness drm/mediatek: add mt8365 dpi support arm64: defconfig: enable display connector support arm64: dts: mediatek: add display blocks support for the MT8365 SoC arm64: dts: mediatek: add display support for mt8365-evk Fabien Parent (2): dt-bindings: display: mediatek: dpi: add power-domains property drm/mediatek: add MT8365 SoC support .../bindings/display/mediatek/mediatek,aal.yaml | 1 + .../bindings/display/mediatek/mediatek,ccorr.yaml | 3 + .../bindings/display/mediatek/mediatek,color.yaml | 1 + .../bindings/display/mediatek/mediatek,dither.yaml | 1 + .../bindings/display/mediatek/mediatek,dpi.yaml | 6 + .../bindings/display/mediatek/mediatek,dsi.yaml | 1 + .../bindings/display/mediatek/mediatek,gamma.yaml | 1 + .../bindings/display/mediatek/mediatek,ovl.yaml | 1 + .../bindings/display/mediatek/mediatek,rdma.yaml | 1 + .../devicetree/bindings/pwm/mediatek,pwm-disp.yaml | 7 + arch/arm64/boot/dts/mediatek/mt8365-evk.dts | 182 +++++++++++++++++++++ arch/arm64/boot/dts/mediatek/mt8365.dtsi | 146 +++++++++++++++++ arch/arm64/configs/defconfig | 1 + drivers/clk/mediatek/clk-mt8365-mm.c | 2 +- drivers/gpu/drm/mediatek/mtk_dpi.c | 18 ++ drivers/gpu/drm/mediatek/mtk_drm_drv.c | 30 ++++ drivers/gpu/drm/mediatek/mtk_dsi.c | 2 + 17 files changed, 403 insertions(+), 1 deletion(-) --- base-commit: 890c94ce8a456aa4d7ead5f5fd2603b98dfe7b7e change-id: 20231023-display-support-c6418b30e419 Best regards, -- Alexandre Mergnat