From patchwork Mon Oct 23 14:40:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Mergnat X-Patchwork-Id: 15759 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce89:0:b0:403:3b70:6f57 with SMTP id p9csp1342977vqx; Mon, 23 Oct 2023 07:40:36 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFvVZsbxbKzkI8zUTqtl1mwEytw3Jks3QaE4oab6EHYseH7SKmSi6ZgP0EY0PY9KO1uz2Am X-Received: by 2002:a17:902:e74e:b0:1ca:b1ed:9ff9 with SMTP id p14-20020a170902e74e00b001cab1ed9ff9mr8501868plf.38.1698072035759; Mon, 23 Oct 2023 07:40:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698072035; cv=none; d=google.com; s=arc-20160816; b=jb3S5Zu0E2jZbnFnXs0eOVlanZ/PsbOeypP5JkDIgGZn6z2kGSWh0nIHeZNAQD+P1d ejazZv5irbmu8lvSIPJeAg2gCj7JR+Or2g0phgmM8jOX61ErNKnL+m7/OK5NTSujtgqv ce8jzN+kklXt0Pvdw96ESof0WumzyUWq8t5+9mWI7FtjcH9XwwkA3j2hQWi1sH9+LDyG R76/lN87OAHQeCeBKNDAyP6dfc1d7x/VIk3uUrBktwDK3weccp5VjcAFvTMbeLgtju/u qAfElX8kRIUDi2GYyZCGNOYeRAfrj/EO38WzOZganEn1v8hSMKuhEPlETdMkXHSAx7hO JcLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:content-transfer-encoding:mime-version :message-id:date:subject:from:dkim-signature; bh=s9ub93Cdf9wtgxlTJaFYfR1eZIPMZ0+ANxwjapwdSNg=; fh=7mujd1y9Yg+tisUxafGKZLIGlzUfDWh1y2rkTjxT0Aw=; b=t5KykxBia23xqJeVmeh4Dx9lGCY0bRroneNh+jo3MHQFoBH1xejpTLonq3VFYPM2jd inFSkCyCQdOkNPx/x5jpu5CbEiyCwpX1/nDoGwKBp/uSsBOPMvj1eyaVjBUiHPVFibpj hWgnh5rcbQumbh91rW9g0wtJz9TwN4F72jKJu/hd56seFV7jSmq8Xphku6pCggqURsXJ mzN6cNuV+90ExYdOGRr6x+2NiWp3+0IaisWgSvbOrpNr9v2ujS7/o5nynex2u1FdrQNW 99wugOzg/CLygdSLaCkhj1WKXY5jYst7e0DfpGTUfsSVxN+8y2FbHVQ/eASFwDWJjjCh IbMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=ZW0rhwYV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id ja2-20020a170902efc200b001bbb175a81asi6208439plb.263.2023.10.23.07.40.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 07:40:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20230601.gappssmtp.com header.s=20230601 header.b=ZW0rhwYV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 83A7F805BCB1; Mon, 23 Oct 2023 07:40:32 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233653AbjJWOkY (ORCPT + 27 others); Mon, 23 Oct 2023 10:40:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42396 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233638AbjJWOkW (ORCPT ); Mon, 23 Oct 2023 10:40:22 -0400 Received: from mail-vs1-xe33.google.com (mail-vs1-xe33.google.com [IPv6:2607:f8b0:4864:20::e33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 074BFD73 for ; Mon, 23 Oct 2023 07:40:20 -0700 (PDT) Received: by mail-vs1-xe33.google.com with SMTP id ada2fe7eead31-457c82cd837so1071209137.2 for ; Mon, 23 Oct 2023 07:40:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20230601.gappssmtp.com; s=20230601; t=1698072019; x=1698676819; 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=s9ub93Cdf9wtgxlTJaFYfR1eZIPMZ0+ANxwjapwdSNg=; b=ZW0rhwYVaclP9otKrzZ/X/GOkeGCb95AmtlYpt/H+rFrLqjpeP0x52jjuVzWX5sZOH PMgLfTndbdC1Fo1i2LFF94glXyDoLufslPNWPXD1ApnTHOvYmHlMvCTA8YBRLQJfDfWw njIHzzLv50xgilX0E0XMF8ADZ3sDEXyKDT65sycopEtNa6gAgDxi1YzBx+Cyz8c+mj5m 9csrdRxvVFYe7gOf1zUKzVBLET50aujx/JiSppTwtCviwhHiwTXJqSX2L379d2R9g7i3 Ip7mQFGBP9k7Qp7DHAqrZUTGaLj49OK/mcgOprJCWj+dSefDwNTYqucdYRQZZjRNm8YK b3iQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698072019; x=1698676819; 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=s9ub93Cdf9wtgxlTJaFYfR1eZIPMZ0+ANxwjapwdSNg=; b=rJ/1oYDsLIUTIMHXW/jgFnNQmmLh4Jd/hetEz3pN3+8o4FiLdw7yotXg6/4rPmXmyO 6+7xzkRGmJIRaxvuxwEFuDles9KRirVbF3ZFwtqaHMOaV1zfBOODtMV0tMxYDeS9/Aon 0wNdpUgXC+7ALPphUVd9VrJZBdYN1xNlceih13KOxt65N9VRVQxVGBx9BGu8J0I3pUJO SeYrCFU4xG1A4eNvieOWADxQ3y/gFeC1waMjgEivtw2RUXzMWONT/zT+erfKpC47xANx zYbM6G52yneRn5Z2VrFHAZOvHWqFIM79D/+ciOpL2biog55awlT6RHIQL+luTFuOhwgz o5AQ== X-Gm-Message-State: AOJu0YyncXT101EGm7lLQ6WmaRbuY5rIyduyIFMD4+Swr+s/9LHNU4ew kt00AZmnd0mojbzEmdYpaQA/kw== X-Received: by 2002:a67:b742:0:b0:452:72ed:7020 with SMTP id l2-20020a67b742000000b0045272ed7020mr9517700vsh.32.1698072018696; Mon, 23 Oct 2023 07:40:18 -0700 (PDT) Received: from [127.0.1.1] ([93.5.22.158]) by smtp.googlemail.com with ESMTPSA id f1-20020a05620a408100b007789a3499casm2725020qko.115.2023.10.23.07.40.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 07:40:18 -0700 (PDT) From: Alexandre Mergnat Subject: [PATCH 00/18] Add display support for the MT8365-EVK board Date: Mon, 23 Oct 2023 16:40:00 +0200 Message-Id: <20231023-display-support-v1-0-5c860ed5c33b@baylibre.com> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAMCFNmUC/x2NQQqDQAxFryJZGzAqYnuV4mJmjBoo45BMS4t49 45d/MX78HgHGKuwwb06QPktJnssQHUFYXNxZZS5MLRN21EZzmLp6b5or5R2zRiGnkbfNdzTDYr lnTF6dTFsl5fZMl1/Ul7k8y89pvP8ATvkV+V5AAAA To: Chun-Kuang Hu , Philipp Zabel , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno , Jitao Shi , Xinlei Lee , CK Hu , Thierry Reding , =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= , 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, Alexandre Mergnat , Fabien Parent X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=3206; i=amergnat@baylibre.com; h=from:subject:message-id; bh=DdZ6/V836kfp880KhEXam0/pg2tqhWjEoh+kbca/7ro=; b=owEBbQKS/ZANAwAKAStGSZ1+MdRFAcsmYgBlNoXOTmxXiiwg+V6sYJXd2VtFuu8rpxi/5OZ3Bsqm CqwoEM+JAjMEAAEKAB0WIQQjG17X8+qqcA5g/osrRkmdfjHURQUCZTaFzgAKCRArRkmdfjHURakDD/ 0Y/V7nSPbcGNYbM6NM+UqrWkjU+MFWZUZLEATcbdpLuCUIcgdBNyWF4+ocFPmgoy79rcrLY4jR4w+2 tRDQaQR5qvgcN608HPRe16pHW9WavVDQUggWNMuGm4ePifBnu9bImn5/FIm89fp+CF8fhkh0QEVY9S T6sSplH35tU250AEM4lXGhIwJNhegUQbWfBeixu01aOlVxzOCXOLfLr2aMBkZktYy93zp5B6o4FiEH oHexmjDRB2kNmAS08GEQI4mMXQX98ZBb7sgjdh3IbXsHYKTinFUFH5sbr/qDoBrb7FgbPd/nsxQvEo 1GfhIRNRPvhPsns+1Vf3IbW5bXMrUVDV/2vYTHL6B75ZTKhCDh86E0ykHoqHope+9AajwNwXZnJs7C v2ibGrOHI+6896fihV9LKC5YGrooRFqHLNChFrrOEGikLsYYZOc92gZZfNnI6fSCmTTBnQV7pQNGVM rcQd5AO0BuXPBAad+mSgYXGa5uZTbKynnMzV8zQXsgGmurakj9aqYDcakn1lyxre0w7+bwIPau4vj5 z7FerJFtDahPtdvRDp1+D0G2AdgAzfvP/WyG0DMUDQbNaaN9xk+mPtuJkoSeJNz6YCzbhAWHSqeNAa h8YHMoFUk/M/2q2U1lJZaCuHBh7UT53hhnVr/H/suz0GKZrdMSGRNieqzBWg== X-Developer-Key: i=amergnat@baylibre.com; a=openpgp; fpr=231B5ED7F3EAAA700E60FE8B2B46499D7E31D445 X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Mon, 23 Oct 2023 07:40:32 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780557582610835441 X-GMAIL-MSGID: 1780557582610835441 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 --- Alexandre Mergnat (14): dt-bindings: display: mediatek: aal: add binding for MT8365 SoC dt-bindings: display: mediatek: ccorr: add binding for MT8365 SoC dt-bindings: display: mediatek: color: add binding for MT8365 SoC dt-bindings: display: mediatek: dither: add binding for MT8365 SoC dt-bindings: display: mediatek: dsi: add binding for MT8365 SoC dt-bindings: display: mediatek: gamma: add binding for MT8365 SoC dt-bindings: display: mediatek: ovl: add binding for MT8365 SoC dt-bindings: display: mediatek: rdma: add binding for MT8365 SoC dt-bindings: pwm: add power-domains property dt-bindings: pwm: add binding for mt8365 SoC drm/mediatek: dsi: Improves the DSI lane setup robustness 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 (4): dt-bindings: display: mediatek: dpi: add power-domains property dt-bindings: display: mediatek: dpi: add binding for MT8365 drm/mediatek: dpi: add support for dpi clock 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 | 24 +++ .../bindings/display/mediatek/mediatek,dsi.yaml | 2 + .../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 | 9 + arch/arm64/boot/dts/mediatek/mt8365-evk.dts | 183 +++++++++++++++++++++ arch/arm64/boot/dts/mediatek/mt8365.dtsi | 146 ++++++++++++++++ arch/arm64/configs/defconfig | 1 + drivers/gpu/drm/mediatek/mtk_dpi.c | 50 +++++- drivers/gpu/drm/mediatek/mtk_drm_drv.c | 30 ++++ drivers/gpu/drm/mediatek/mtk_dsi.c | 2 + 16 files changed, 455 insertions(+), 1 deletion(-) --- base-commit: d27bed55ce32b0732ef65561851fec3dc8d01852 change-id: 20231023-display-support-c6418b30e419 Best regards,