From patchwork Thu Mar 9 14:22:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Mergnat X-Patchwork-Id: 13167535 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id CB1B6C64EC4 for ; Thu, 9 Mar 2023 14:23:05 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 0E36C10E81C; Thu, 9 Mar 2023 14:23:04 +0000 (UTC) Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by gabe.freedesktop.org (Postfix) with ESMTPS id D4DB810E818 for ; Thu, 9 Mar 2023 14:22:58 +0000 (UTC) Received: by mail-wm1-x331.google.com with SMTP id az36so1274341wmb.1 for ; Thu, 09 Mar 2023 06:22:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; t=1678371777; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=oIAq75lH2Ms2bL3QI5/GLr9JphmlHB8/ymqV5IkJpKc=; b=iQ/Z08i+xnf0+QqJE0gYVxQ4HzKmXpqQEAOp8qp6ZOh4Bah0fbXKiDFQcJii6ajJ+f lj9QKiceDCt7X0u/RNFd9QMU6wnsrC4Stx9kDpsQrydI4GTt7yGozhUGTj4zBDZJ4ufT 0rkmkcJgQse9ID1Nu4c48hz33JrvyeYhkez5o9TpFnmq/8BNKZKz7bfyvwZEHY/xOLkY 74IC7uqk6UiuQAdvyYmbsfTj9OZuYjouSQSzIFf5xnvlgg4QKzCMoZXzl3xaeDdg/4l1 NEuyqEkuf9MekN0owXFrv9vl3hVDmB0loaok4kLdi5yf+e5YpHn9LNVz1jz2Zi7OMYSy 1VsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678371777; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=oIAq75lH2Ms2bL3QI5/GLr9JphmlHB8/ymqV5IkJpKc=; b=fv+T24osUhgoXomtf0rdOujt8fR0Ehwupn/4GFV511Csvgur6UIYGl/kFbaGaau6/m /VMgWkwfBO8gvMhrUqNGNW4U03DhIofZH06hMaBqC+V0Tq/IQ+//AuCmA2+rtEuJJ75c 2SYID90Ervs2pAnKUICsLntCEsXCGWDfDYIo/3PtBsO/MTHz+1LgE1eRBrXrL/BWMfeB bbcf4gPJVs8dlV80FekFCj0ukskUcPbEmc4/4UlSiHIqkBFHotszGV2/Ugj/u8Xg2kBT cUFLDEJxo9jGL/Nv/ZGrw0z2Uz5FZD47HXaLeTCAjztwjjgebtSMGBBccF3Yw9bSDPHj GC8Q== X-Gm-Message-State: AO0yUKUlUdZr/nXi4PiKup/1R3Gh/q+33QFKrcKZkaOwKyIc+oaVI5NJ BIW0a1uG+7HILZHWSWQZNjYfkg== X-Google-Smtp-Source: AK7set8x+PI0RC1jqr6FcGHLymEePMs/0jRVfw13/HyaF1qSj0O2qlIoeWJ4Fj1seTcF8i4J9aGxow== X-Received: by 2002:a05:600c:5127:b0:3ea:dbdd:66df with SMTP id o39-20020a05600c512700b003eadbdd66dfmr19528568wms.2.1678371777251; Thu, 09 Mar 2023 06:22:57 -0800 (PST) Received: from [127.0.1.1] (158.22.5.93.rev.sfr.net. [93.5.22.158]) by smtp.googlemail.com with ESMTPSA id x22-20020a1c7c16000000b003e8dc7a03basm2772434wmc.41.2023.03.09.06.22.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Mar 2023 06:22:56 -0800 (PST) From: Alexandre Mergnat Date: Thu, 09 Mar 2023 15:22:50 +0100 Subject: [PATCH 01/21] dt-bindings: display: mediatek: aal: add binding for MT8365 SoC MIME-Version: 1.0 Message-Id: <20230220-display-v1-1-45cbc68e188b@baylibre.com> References: <20230220-display-v1-0-45cbc68e188b@baylibre.com> In-Reply-To: <20230220-display-v1-0-45cbc68e188b@baylibre.com> To: =?unknown-8bit?b?RGFuaWVsIFZldHRlciA8ZGFuaWVsQGZmd2xsLmNoPiwgQ0sgSHUg?= =?unknown-8bit?b?PGNrLmh1QG1lZGlhdGVrLmNvbT4sIEppdGFvIFNoaSA8aml0YW8uc2hp?= =?unknown-8bit?b?QG1lZGlhdGVrLmNvbT4s?= =?unknown-8bit?q?_Thierry_Reding_=3Cthierry=2Ereding=40gmail=2Ecom=3E=2C_Phi?= =?unknown-8bit?q?lipp_Zabel_=3Cp=2Ezabel=40pengutronix=2Ede=3E=2C_Sam_Ravnb?= =?unknown-8bit?q?org_=3Csam=40ravnborg=2Eorg=3E=2C?= =?unknown-8bit?q?_Rob_Herring_=3Crobh+dt=40kernel=2Eorg=3E=2C_Uwe_Kleine-K?= =?unknown-8bit?q?=C3=B6nig_=3Cu=2Ekleine-koenig=40pengutronix=2Ede=3E=2C?= =?unknown-8bit?q?_Chun-Kuang_Hu_=3Cchunkuang=2Ehu=40kernel=2Eorg=3E=2C_Matth?= =?unknown-8bit?q?ias_Brugger_=3Cmatthias=2Ebgg=40gmail=2Ecom=3E=2C_David_Ai?= =?unknown-8bit?q?rlie_=3Cairlied=40gmail=2Ecom=3E=2C?= =?unknown-8bit?q?_Krzysztof_Kozlowski_=3Ckrzysztof=2Ekozlowski+dt=40linaro?= =?unknown-8bit?q?=2Eorg=3E=2C_Xinlei_Lee_=3Cxinlei=2Elee=40mediatek=2Ecom?= =?unknown-8bit?q?=3E?= X-Mailer: b4 0.10.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=927; i=amergnat@baylibre.com; h=from:subject:message-id; bh=WEnU1yh+Xf5Fm/UQMnsfiUO7zkGJUQGiUbGopVaYs98=; b=owEBbQKS/ZANAwAKAStGSZ1+MdRFAcsmYgBkCeu+4sd0fzV97pSR5UsZOhCfXfr87D9x2eqrQp2p 9rnV6IOJAjMEAAEKAB0WIQQjG17X8+qqcA5g/osrRkmdfjHURQUCZAnrvgAKCRArRkmdfjHURewmD/ 0aPeRYQ6rCDSvjWKnRIJcolIOK3MGqzimlQ2PN5YzvyIhAHyJdWyzxAOuU0O2zE1Oa2NRenPZ0cJ89 xA4XdvNTMwDrNpieSu+6K/mreygJWymCHanAtu8M4lZnRIc1QQiAB0S2PHxSuuLTiLVA74b3hUljao VLDcOtl3WxrlxKMe4rv1BtUcGN9a0v4I9qxSNC9aoWzZG2/hyuZtk38ziMe+TzT8G23n749o1frHZg RILO/9bTJYihnhwtjCV9ujmOM6e6weak2msm5Hu8ua9KWFOaFAgyGoN09Ox0Nut+YwkxfEp99cQnId oao1ipTTAkXcZgfjpuUgWLhmIGsiJvvZFRsdOtXuX9g/H1b/mmfojPnHrokuOi0XZxhBiaTYg+WdeG 8quLYTLR9Vtp2PfaaZXuDXAWcFKGW+tvDy1dFpkqqPTXI9KQeA/wfWIIDosdlAqLnC9rXG8FCfwCeJ kIJGMGAQIvEWoz93A5aSvaM4KHOevj5mfm5b0nssksvKEZ7wP0gxpM1YVTCrj+vTo1doIhTzxrR6DS G6HqmHhulONoHNM+bvJzYiH00fPMIRsteIuQIa4HdyLweEvcQMYhF0IgYGtNdLnDH253Bxc4fOnFer 7MAlBwHSlvzkuZbjwvCMcpDFTjeHkeJGF2Wq0arbAIN5WcntO3VeWC1vNwKw== X-Developer-Key: i=amergnat@baylibre.com; a=openpgp; fpr=231B5ED7F3EAAA700E60FE8B2B46499D7E31D445 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Neil Armstrong , Alexandre Mergnat , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-pwm@vger.kernel.org, Fabien Parent , devicetree@vger.kernel.org, linux-mediatek@lists.infradead.org, Guillaume La Roque , linux-arm-kernel@lists.infradead.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Display Adaptive Ambient Light for MT8365 is compatible with another SoC. Then, add MT8365 binding along with MT8183 SoC. Signed-off-by: Alexandre Mergnat Acked-by: Krzysztof Kozlowski Reviewed-by: Chun-Kuang Hu --- Documentation/devicetree/bindings/display/mediatek/mediatek,aal.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/display/mediatek/mediatek,aal.yaml b/Documentation/devicetree/bindings/display/mediatek/mediatek,aal.yaml index d4d585485e7b..d47bc72f09c0 100644 --- a/Documentation/devicetree/bindings/display/mediatek/mediatek,aal.yaml +++ b/Documentation/devicetree/bindings/display/mediatek/mediatek,aal.yaml @@ -33,6 +33,7 @@ properties: - mediatek,mt8186-disp-aal - mediatek,mt8192-disp-aal - mediatek,mt8195-disp-aal + - mediatek,mt8365-disp-aal - const: mediatek,mt8183-disp-aal reg: From patchwork Thu Mar 9 14:22:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Mergnat X-Patchwork-Id: 13167534 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id F0B51C742A7 for ; Thu, 9 Mar 2023 14:23:03 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id E711910E817; Thu, 9 Mar 2023 14:23:02 +0000 (UTC) Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) by gabe.freedesktop.org (Postfix) with ESMTPS id 0982510E818 for ; Thu, 9 Mar 2023 14:22:59 +0000 (UTC) Received: by mail-wm1-x334.google.com with SMTP id l7-20020a05600c4f0700b003e79fa98ce1so1358324wmq.2 for ; Thu, 09 Mar 2023 06:22:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; t=1678371778; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=4HGXP3dztTrnQjlCCkBVLINYyzIjFA5vv4MQlPWgtfA=; b=034QB5Y0+lS6JX3VHLfCbMLKOw3Puj5QP3kkG18+a5j6LclHoFYu2AHV73XtlQ+cCL c7XuzGEgBa+5eZQeEexsCKVioxq9q+GLiLVasXwe/8wQzOQeIh2VEeWunv4wsEOfBz9I o0Q3fnV7MxT/wF2oN5Ve2OWgX0WnQQAvYpZlNp5sU2v5quTXjiU4F6r4MPg/BGueIEZX nB9NaCsfiPvXH6kYatW4bzYYo4JnIsu6uHIm7d+HFB3Utms0AdnCKZjUSGr9/OR++vNE 3AZG6Z/fbPokdTAhRQ31wXQteokZZ3SWIGAWGMacyKjk9dwla5dYpfMu6xPBzDKY3zO3 VSSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678371778; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=4HGXP3dztTrnQjlCCkBVLINYyzIjFA5vv4MQlPWgtfA=; b=O6hEOQNpqg0RSX/Ho74wAM2V2Oo+HdFa5PzkYX75mJXjHedvZEl3hUhlOGw6hNi9uo nM+0FnCotJqZmx7EVFSXzAkkCtZ7X0Z2F0zwTCTtQJ5J9jyFSQXejUto++iuB5YF7orx BtCPzJZvvB5NYKOuf3aQr+1/EUy1chWe8Go+pfPRP1ol/U922DJHpsXNkjBY3usM/Yc7 FZs5o7Egonow4+1isJ1fZoxaCkiDxRGSJNoDQPNg/UubsvZEHfZrLFnh5+ZmVPV0s/zN D1tylroiw/YCWqRM7jSf5l/illGrM5hMfEJj0PS0MjI0phHX1jQ3rPgZQdeAoIDb86il PrCw== X-Gm-Message-State: AO0yUKUkm5agG0sz/RdqJsnNbjM8JR/k/suQ80PgXNi6Z1FqERD6o2tI FNnryTtWjhyLbte8TybmqnxDgw== X-Google-Smtp-Source: AK7set8LBA7kJVWdMBXxuiElbjEob4ABHNs0P+w6UX/yyJGPqOclYqM6FVkDJEJjKe4T4cCEx6FFYA== X-Received: by 2002:a05:600c:444c:b0:3eb:39e2:915b with SMTP id v12-20020a05600c444c00b003eb39e2915bmr19673513wmn.31.1678371778461; Thu, 09 Mar 2023 06:22:58 -0800 (PST) Received: from [127.0.1.1] (158.22.5.93.rev.sfr.net. [93.5.22.158]) by smtp.googlemail.com with ESMTPSA id x22-20020a1c7c16000000b003e8dc7a03basm2772434wmc.41.2023.03.09.06.22.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Mar 2023 06:22:58 -0800 (PST) From: Alexandre Mergnat Date: Thu, 09 Mar 2023 15:22:51 +0100 Subject: [PATCH 02/21] dt-bindings: display: mediatek: ccorr: add binding for MT8365 SoC MIME-Version: 1.0 Message-Id: <20230220-display-v1-2-45cbc68e188b@baylibre.com> References: <20230220-display-v1-0-45cbc68e188b@baylibre.com> In-Reply-To: <20230220-display-v1-0-45cbc68e188b@baylibre.com> To: =?unknown-8bit?b?RGFuaWVsIFZldHRlciA8ZGFuaWVsQGZmd2xsLmNoPiwgQ0sgSHUg?= =?unknown-8bit?b?PGNrLmh1QG1lZGlhdGVrLmNvbT4sIEppdGFvIFNoaSA8aml0YW8uc2hp?= =?unknown-8bit?b?QG1lZGlhdGVrLmNvbT4s?= =?unknown-8bit?q?_Thierry_Reding_=3Cthierry=2Ereding=40gmail=2Ecom=3E=2C_Phi?= =?unknown-8bit?q?lipp_Zabel_=3Cp=2Ezabel=40pengutronix=2Ede=3E=2C_Sam_Ravnb?= =?unknown-8bit?q?org_=3Csam=40ravnborg=2Eorg=3E=2C?= =?unknown-8bit?q?_Rob_Herring_=3Crobh+dt=40kernel=2Eorg=3E=2C_Uwe_Kleine-K?= =?unknown-8bit?q?=C3=B6nig_=3Cu=2Ekleine-koenig=40pengutronix=2Ede=3E=2C?= =?unknown-8bit?q?_Chun-Kuang_Hu_=3Cchunkuang=2Ehu=40kernel=2Eorg=3E=2C_Matth?= =?unknown-8bit?q?ias_Brugger_=3Cmatthias=2Ebgg=40gmail=2Ecom=3E=2C_David_Ai?= =?unknown-8bit?q?rlie_=3Cairlied=40gmail=2Ecom=3E=2C?= =?unknown-8bit?q?_Krzysztof_Kozlowski_=3Ckrzysztof=2Ekozlowski+dt=40linaro?= =?unknown-8bit?q?=2Eorg=3E=2C_Xinlei_Lee_=3Cxinlei=2Elee=40mediatek=2Ecom?= =?unknown-8bit?q?=3E?= X-Mailer: b4 0.10.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=888; i=amergnat@baylibre.com; h=from:subject:message-id; bh=C7jd7hPJyNNK65umqiaqv8dPlJYkmQJemWR+tpy2or0=; b=owEBbQKS/ZANAwAKAStGSZ1+MdRFAcsmYgBkCeu+0ew6YaHQB5gxrKawL2Go78SiMBY25/zTN4Z2 MRX1zaSJAjMEAAEKAB0WIQQjG17X8+qqcA5g/osrRkmdfjHURQUCZAnrvgAKCRArRkmdfjHURTHeD/ 0ZAamMi7T+h2vz6GHOVNWgosBIBUISGisRUy+7NzqleA2E6NBx5WeM7D27F1qOLovxDYPlTo4MPfqD KpDgQTVD6HUqmO6GbVpUYpOxLUCRIJ4R2I3LzqJeopB2Q644bdO6i59E5JxsBLYqx+BHEKbusVVbqW 6VIvz9g1Jh7/oHqCuCxH/wM7Jl1cDjLB4e7xxH+ikBLfP7/4Ut4d9krtxEZthCLCyW5nBeIoCApaak ixzLu6XsWhGP6Ochs++nUaJ1+H+8JiS0bygnM4F/JyVQo/NY/Xx1SwNrt8UPBoDzMEOeqGkH2VtPg7 JQtWf0HqXftZbe2FCLvTfPVsn6hwJTXvJZuKIymeMu6eSDiq/hd2v3HbcTzLlZ7k+10ejDi/2fD2my OytIuUhmihdhn7FXT+OFr4ZLE7TgeVXJBwqrALhdDqm3Qo5keCG5juCY4xOIYeJ8flcRRYngzqVLJl CFVkOAQCJeAuZ1XG2/LuZv/sGWCCDdEiA7jf+1Uo2rJE86KgTkgAK5Qi0MwdXY2KiwFmk8SQXZapgh HIUej/Ux3FH2LrmRsqWWzp6TULX/lR8raDTk/nHbLQgr476hOBDzn63rVuvVXBicZSdy31VRO2SdSE 2vR/2pqUG1VVmOizx3ImOzJI/esDslVyHIyYLiYZB0cpztNZQd7jmdh2l6Lw== X-Developer-Key: i=amergnat@baylibre.com; a=openpgp; fpr=231B5ED7F3EAAA700E60FE8B2B46499D7E31D445 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Neil Armstrong , Alexandre Mergnat , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-pwm@vger.kernel.org, Fabien Parent , devicetree@vger.kernel.org, linux-mediatek@lists.infradead.org, Guillaume La Roque , linux-arm-kernel@lists.infradead.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Display Color Correction for MT8365 is compatible with another SoC. Then, add MT8365 binding along with MT8183 SoC. Signed-off-by: Alexandre Mergnat Acked-by: Krzysztof Kozlowski Reviewed-by: Chun-Kuang Hu --- Documentation/devicetree/bindings/display/mediatek/mediatek,ccorr.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/display/mediatek/mediatek,ccorr.yaml b/Documentation/devicetree/bindings/display/mediatek/mediatek,ccorr.yaml index 63fb02014a56..fc999e614718 100644 --- a/Documentation/devicetree/bindings/display/mediatek/mediatek,ccorr.yaml +++ b/Documentation/devicetree/bindings/display/mediatek/mediatek,ccorr.yaml @@ -32,6 +32,7 @@ properties: - items: - enum: - mediatek,mt8186-disp-ccorr + - mediatek,mt8365-disp-ccorr - const: mediatek,mt8183-disp-ccorr reg: From patchwork Thu Mar 9 14:22:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Mergnat X-Patchwork-Id: 13167538 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C8573C61DA4 for ; Thu, 9 Mar 2023 14:23:12 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 88C5910E825; Thu, 9 Mar 2023 14:23:09 +0000 (UTC) Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) by gabe.freedesktop.org (Postfix) with ESMTPS id 8FB8010E817 for ; Thu, 9 Mar 2023 14:23:01 +0000 (UTC) Received: by mail-wm1-x332.google.com with SMTP id p16so1260696wmq.5 for ; Thu, 09 Mar 2023 06:23:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; t=1678371780; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=fq8V/33dVQgHge8n1w+kEKrBuJXvNdZoMtd/dxWzcHk=; b=pH9jhSeWxNT5/kU6L7MNaM5/ur6uhg76pTZHmXmxPPrb61jwjkoI82J6fxbrcHYltU 2f/rqdQIJbpp064BX0xuheTLdE3q3o9b8UdVvkxdQ1Fju/PSvgZWv9P3mVor/51H9uY9 3tzK4x420PKNRNRmn46uVcvCNAIc80+NHW81zTmCtXXDCegldGmzuKNXcH8iwbKqaCjk 2liI9a7jPl1hjRvUzJ1N1/cuDECTPoF1zaEpIU9DYYnnpWRyeO8oxDNf8kiOogHHvZuN iNRVCXT07tdieptyyjPFeRSLo2qMw6SUJU7dpXzvZbvIDpaIWfBPN38tKcV3/pEjimCF Blog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678371780; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=fq8V/33dVQgHge8n1w+kEKrBuJXvNdZoMtd/dxWzcHk=; b=Q2h/Mv3E/dIGYkyt7GXNmFZb2WKDnDCPpAd13VU5ULp83VJdi3lBwYxfZlafGuWvVg t8QG8AUHx6NJ91GtVui4hcfJ4uCMkXeMxAiyHbnQjW6m6wwwIbEl2jBI86uxejrkNdsg vdIgduxc0yrYfNuuamWm3HCVMWqz+lv92eyGY0ZJAlwoBQJTFFzN21QHKpuWXdxrVY4p fRVTUM2xpYAZYgQ07i4WYQhAj9TZum+MALOpwl/28p/eO0/9QmD8L/NIgtLYF4kOfkH9 oYqnWjSUtOqPBXhPgGbas5wNNkB9PZgw9uzxRxGrg8FeYu7S0qZhJs7FUM7+gGBldoq2 2aXA== X-Gm-Message-State: AO0yUKUTwpIDgb6oEAqLiZ9idSKTPMRknz/f6JCBAGu31FalzUQmRWDu UgeeRj86uVj1yl7icphsQUVsPw== X-Google-Smtp-Source: AK7set9+xV9RaAG44ZqWCnxRFbCjr4oxsivxsX7sdBfuzr/CZXijhbsdH233AjK4P62T/QKd9PMESQ== X-Received: by 2002:a05:600c:1548:b0:3e2:1f00:bff7 with SMTP id f8-20020a05600c154800b003e21f00bff7mr15742801wmg.12.1678371779863; Thu, 09 Mar 2023 06:22:59 -0800 (PST) Received: from [127.0.1.1] (158.22.5.93.rev.sfr.net. [93.5.22.158]) by smtp.googlemail.com with ESMTPSA id x22-20020a1c7c16000000b003e8dc7a03basm2772434wmc.41.2023.03.09.06.22.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Mar 2023 06:22:59 -0800 (PST) From: Alexandre Mergnat Date: Thu, 09 Mar 2023 15:22:52 +0100 Subject: [PATCH 03/21] dt-bindings: display: mediatek: color: add binding for MT8365 SoC MIME-Version: 1.0 Message-Id: <20230220-display-v1-3-45cbc68e188b@baylibre.com> References: <20230220-display-v1-0-45cbc68e188b@baylibre.com> In-Reply-To: <20230220-display-v1-0-45cbc68e188b@baylibre.com> To: =?unknown-8bit?b?RGFuaWVsIFZldHRlciA8ZGFuaWVsQGZmd2xsLmNoPiwgQ0sgSHUg?= =?unknown-8bit?b?PGNrLmh1QG1lZGlhdGVrLmNvbT4sIEppdGFvIFNoaSA8aml0YW8uc2hp?= =?unknown-8bit?b?QG1lZGlhdGVrLmNvbT4s?= =?unknown-8bit?q?_Thierry_Reding_=3Cthierry=2Ereding=40gmail=2Ecom=3E=2C_Phi?= =?unknown-8bit?q?lipp_Zabel_=3Cp=2Ezabel=40pengutronix=2Ede=3E=2C_Sam_Ravnb?= =?unknown-8bit?q?org_=3Csam=40ravnborg=2Eorg=3E=2C?= =?unknown-8bit?q?_Rob_Herring_=3Crobh+dt=40kernel=2Eorg=3E=2C_Uwe_Kleine-K?= =?unknown-8bit?q?=C3=B6nig_=3Cu=2Ekleine-koenig=40pengutronix=2Ede=3E=2C?= =?unknown-8bit?q?_Chun-Kuang_Hu_=3Cchunkuang=2Ehu=40kernel=2Eorg=3E=2C_Matth?= =?unknown-8bit?q?ias_Brugger_=3Cmatthias=2Ebgg=40gmail=2Ecom=3E=2C_David_Ai?= =?unknown-8bit?q?rlie_=3Cairlied=40gmail=2Ecom=3E=2C?= =?unknown-8bit?q?_Krzysztof_Kozlowski_=3Ckrzysztof=2Ekozlowski+dt=40linaro?= =?unknown-8bit?q?=2Eorg=3E=2C_Xinlei_Lee_=3Cxinlei=2Elee=40mediatek=2Ecom?= =?unknown-8bit?q?=3E?= X-Mailer: b4 0.10.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=945; i=amergnat@baylibre.com; h=from:subject:message-id; bh=OsM4WLgGtmA0GySMLOWRA0K7CaicDuwTJXkW1UXnsOE=; b=owEBbQKS/ZANAwAKAStGSZ1+MdRFAcsmYgBkCeu+UGUPeIJ+S2D6dPzbrAMg7/oQlmswOc0ccN7P u6wGgy6JAjMEAAEKAB0WIQQjG17X8+qqcA5g/osrRkmdfjHURQUCZAnrvgAKCRArRkmdfjHURRgsD/ 9Su2CGheXWgumO/o1+RtFbfV/2NPJ6oPnQjRHboZ76/4aMHfZHlNwom726c+Uenp9FmszOcvURGcIj TmX/9MWQYbfvYkztFwVfy4nmU2Lp9yYQICKEqve6LhHz+dgepAxZ9CuwYoGI9TgWVAkWg4EXt/bPe+ eZFkaY+QNGiZeveyB6YGxdH31b6UsulSwPoITDaTQWDEBbkTM3aSTN1SWim6wsWaMBsDV98L1DI3CQ QVmRdfyEx/HclVCmAWgjR0TBQ7m9tWZjvvjgjq5UIu7174p+aFba4UJWap88qZMkhJjthXpn3/35w2 DbMegV/TT7IpdjFdkK1hjjoTHU2jTuiqEV6uf42D/hZij+QsLsLGFinuYbnKLpiO7fT7Uo6+C9YghB EtVsjcvH6jX3ceOhLtOOyyuCclwfemAenUYpDko6mgzobmuv0vQkSYvphhXvZ+SuII8RFPOZP9sy7/ 9XiXkH4j+x28Eld4fgVTZ4YPMMqW9o1Cejxh3AtMX+dfoUpMDDR3ej7BYo1dtmc21kOT9+pgFnuvVg TD6NTjMQb+ganTbeOvSHieHp87XYjw+owQMRDDnPpfD4AkqLG/LP9QfdjuZszkCpO5ZP8365csd8lI NeHt9xAJ3ArAgCBZLinXAckqQzfm1ebYJKKw/CNcjt9IlH8SSdSQ9KgPctuA== X-Developer-Key: i=amergnat@baylibre.com; a=openpgp; fpr=231B5ED7F3EAAA700E60FE8B2B46499D7E31D445 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Neil Armstrong , Alexandre Mergnat , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-pwm@vger.kernel.org, Fabien Parent , devicetree@vger.kernel.org, linux-mediatek@lists.infradead.org, Guillaume La Roque , linux-arm-kernel@lists.infradead.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Display Color for MT8365 is compatible with another SoC. Then, add MT8365 binding along with MT8183 SoC. Signed-off-by: Alexandre Mergnat Acked-by: Krzysztof Kozlowski Reviewed-by: Chun-Kuang Hu --- Documentation/devicetree/bindings/display/mediatek/mediatek,color.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/display/mediatek/mediatek,color.yaml b/Documentation/devicetree/bindings/display/mediatek/mediatek,color.yaml index d2f89ee7996f..9d081da433e8 100644 --- a/Documentation/devicetree/bindings/display/mediatek/mediatek,color.yaml +++ b/Documentation/devicetree/bindings/display/mediatek/mediatek,color.yaml @@ -39,6 +39,7 @@ properties: - mediatek,mt8186-disp-color - mediatek,mt8192-disp-color - mediatek,mt8195-disp-color + - mediatek,mt8365-disp-color - const: mediatek,mt8173-disp-color reg: maxItems: 1 From patchwork Thu Mar 9 14:22:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Mergnat X-Patchwork-Id: 13167551 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2AD23C6FD1F for ; Thu, 9 Mar 2023 14:23:25 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 6749C10E823; Thu, 9 Mar 2023 14:23:18 +0000 (UTC) Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) by gabe.freedesktop.org (Postfix) with ESMTPS id A187810E817 for ; Thu, 9 Mar 2023 14:23:02 +0000 (UTC) Received: by mail-wm1-x334.google.com with SMTP id j3so1270285wms.2 for ; Thu, 09 Mar 2023 06:23:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; t=1678371781; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=r5tFAYryPkgwX1r7/qPOO99uZEKbGLFSC5Llqip43Ss=; b=xZRhsWgnHZETMZ+7hMlLILnjcF5D1pWv9VWo1MiheTHaxEOGXQClDa5lVA2PrIl+SK pA0DaVcgXXFtZixVwbV6JSEhgDLG+j9XJggKbCyuExzvkp3G9U7H55cU18ZVKvEWGY9A ZFrKljmbuGiGxAa8nCltIeCdO/4YvCwDYcd9uS01cKMuW5SJrrWa1+ezopl/TtrY1Za/ GSGszlpxFMTel1nFRPuW/42AVU4GkLqKfeWP+NPQuPDVF+AGPugR3h6OKsdK2r+kbXEs 49HbAkdCx8O/1kc5/o0eW/6Zc8NRO38gfIuXbQ+Uf6iqBjL35ugX0w/xAHE6ben9KgHC v8Ng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678371781; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=r5tFAYryPkgwX1r7/qPOO99uZEKbGLFSC5Llqip43Ss=; b=I+mh79r/mU6TyaSa7hd+roTYPODJ78XzTSGXUBLIrsqn0SdedlwOrMUvqUSjH4Xwrk Lk3j59TEkgSCL6scA7tScE1083tlkda/B/HYStf8irJ7ZPDx5NdbKGkhGniZrq2GrqHZ 1K5BhLW1PYba1rsjGcpKJzec9rjuJxgDq+rKIBLGm41m6eNKC8KQHOOVYhnMnwbipb/W JFnWMLDutC8Om8/7OflPy9pzueuteoC21yEknHBsgK5nwFbFnjM0zTIrOs3ReaDRkeGO J+xDbrh90Fk8GKW3FEKKz85CVb+S8OguyAmxFq+rhqz6LbFTEWoqpnvxCuqlan61ip4v g+Dw== X-Gm-Message-State: AO0yUKVrykFpwvg4/MwmEBE8/AVZvWSSySSQiaU0ME8W00yx0ZNlCat7 ZWLR+MqxCfRr4l3u38Z7AupupQ== X-Google-Smtp-Source: AK7set/9aDqDnERz+HDQ19uwAGDde4zAOHPr/7EAcg/27Xne8kcfT7S+MbZ6P7q2aic45APWmADp3Q== X-Received: by 2002:a05:600c:3c89:b0:3eb:38e6:f659 with SMTP id bg9-20020a05600c3c8900b003eb38e6f659mr19551678wmb.15.1678371781168; Thu, 09 Mar 2023 06:23:01 -0800 (PST) Received: from [127.0.1.1] (158.22.5.93.rev.sfr.net. [93.5.22.158]) by smtp.googlemail.com with ESMTPSA id x22-20020a1c7c16000000b003e8dc7a03basm2772434wmc.41.2023.03.09.06.22.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Mar 2023 06:23:00 -0800 (PST) From: Alexandre Mergnat Date: Thu, 09 Mar 2023 15:22:53 +0100 Subject: [PATCH 04/21] dt-bindings: display: mediatek: dither: add binding for MT8365 SoC MIME-Version: 1.0 Message-Id: <20230220-display-v1-4-45cbc68e188b@baylibre.com> References: <20230220-display-v1-0-45cbc68e188b@baylibre.com> In-Reply-To: <20230220-display-v1-0-45cbc68e188b@baylibre.com> To: =?unknown-8bit?b?RGFuaWVsIFZldHRlciA8ZGFuaWVsQGZmd2xsLmNoPiwgQ0sgSHUg?= =?unknown-8bit?b?PGNrLmh1QG1lZGlhdGVrLmNvbT4sIEppdGFvIFNoaSA8aml0YW8uc2hp?= =?unknown-8bit?b?QG1lZGlhdGVrLmNvbT4s?= =?unknown-8bit?q?_Thierry_Reding_=3Cthierry=2Ereding=40gmail=2Ecom=3E=2C_Phi?= =?unknown-8bit?q?lipp_Zabel_=3Cp=2Ezabel=40pengutronix=2Ede=3E=2C_Sam_Ravnb?= =?unknown-8bit?q?org_=3Csam=40ravnborg=2Eorg=3E=2C?= =?unknown-8bit?q?_Rob_Herring_=3Crobh+dt=40kernel=2Eorg=3E=2C_Uwe_Kleine-K?= =?unknown-8bit?q?=C3=B6nig_=3Cu=2Ekleine-koenig=40pengutronix=2Ede=3E=2C?= =?unknown-8bit?q?_Chun-Kuang_Hu_=3Cchunkuang=2Ehu=40kernel=2Eorg=3E=2C_Matth?= =?unknown-8bit?q?ias_Brugger_=3Cmatthias=2Ebgg=40gmail=2Ecom=3E=2C_David_Ai?= =?unknown-8bit?q?rlie_=3Cairlied=40gmail=2Ecom=3E=2C?= =?unknown-8bit?q?_Krzysztof_Kozlowski_=3Ckrzysztof=2Ekozlowski+dt=40linaro?= =?unknown-8bit?q?=2Eorg=3E=2C_Xinlei_Lee_=3Cxinlei=2Elee=40mediatek=2Ecom?= =?unknown-8bit?q?=3E?= X-Mailer: b4 0.10.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=941; i=amergnat@baylibre.com; h=from:subject:message-id; bh=p9WnbjzFY0umwLZFv0SgtilScjmilWuJtI0Fz5hWU+4=; b=owEBbQKS/ZANAwAKAStGSZ1+MdRFAcsmYgBkCeu+eRNBAwvwm908UaJder4B/sytamsEVnOqizHk xhBbxq6JAjMEAAEKAB0WIQQjG17X8+qqcA5g/osrRkmdfjHURQUCZAnrvgAKCRArRkmdfjHURYJFEA DE19EKGUky9naHlydmvw+XzI7X1WyVlGGorfLqUc3pVinntzlz+XfphHhqWgS1/507xbZ+QmHAwoxi FmfoUcAfYPlONd/O5tqb4kb2iqbsmyb26kINAUcZynHLObEcWEpTNJCTaBDK4b3o0BDkcsiWs+JOji uZV0IXQ/ac1pDnS4+bhIpvHFvcaMsjLGQqAu5PRZUvHE+JR7bCAaV8C3VFb1VanL8tvkXBLNteNK3D abp2LStp4gVUi/3hYsd0ZrHGS0J7Gb/eUb9vuYbu8nH/JVdHgRTdn6QXsMYlIa+IU/gBSKetyevjrF Zbm/4tOqva28VQ8eltnzj8Y2A4jEk26viKQ07hgQtwL/UWqX5jatmZKkB8c8UcG+vQotNuxObJoFVq i6e0ciblMdhn7lJGu2maX2gCzGbSbTXiFhLqjln6YFk0kI3mrqp3VdukR9elQVPpr8dOGE7voPs+Dp q17eTddsAV744xShy6+dfYbbmyJFf8hFKZeoozFTu8wHiJJTfyHbpzFGMs9YCv9EH3Jq6cVrUaop7Z jx/SyJ9ZyQNL/04hvHOHs6pdCc9rWKCIEyjD6TQpaTYbI5FkWS65jMkKh4euvKcFq9hs4cHahOq4gc 6A0hzj67tC1VBr11pymGNPIrp90wXmZhIMzYtg+X4hmB5cXs/YtcS3SveOIw== X-Developer-Key: i=amergnat@baylibre.com; a=openpgp; fpr=231B5ED7F3EAAA700E60FE8B2B46499D7E31D445 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Neil Armstrong , Alexandre Mergnat , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-pwm@vger.kernel.org, Fabien Parent , devicetree@vger.kernel.org, linux-mediatek@lists.infradead.org, Guillaume La Roque , linux-arm-kernel@lists.infradead.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Display Dither for MT8365 is compatible with another SoC. Then, add MT8365 binding along with MT8183 SoC. Signed-off-by: Alexandre Mergnat Acked-by: Krzysztof Kozlowski Reviewed-by: Chun-Kuang Hu --- Documentation/devicetree/bindings/display/mediatek/mediatek,dither.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/display/mediatek/mediatek,dither.yaml b/Documentation/devicetree/bindings/display/mediatek/mediatek,dither.yaml index 8ad8187c02d1..a7706cd65675 100644 --- a/Documentation/devicetree/bindings/display/mediatek/mediatek,dither.yaml +++ b/Documentation/devicetree/bindings/display/mediatek/mediatek,dither.yaml @@ -29,6 +29,7 @@ properties: - mediatek,mt8186-disp-dither - mediatek,mt8192-disp-dither - mediatek,mt8195-disp-dither + - mediatek,mt8365-disp-dither - const: mediatek,mt8183-disp-dither reg: From patchwork Thu Mar 9 14:22:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Mergnat X-Patchwork-Id: 13167536 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B5638C61DA4 for ; Thu, 9 Mar 2023 14:23:08 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id A87D910E818; Thu, 9 Mar 2023 14:23:07 +0000 (UTC) Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) by gabe.freedesktop.org (Postfix) with ESMTPS id BACB010E818 for ; Thu, 9 Mar 2023 14:23:02 +0000 (UTC) Received: by mail-wm1-x334.google.com with SMTP id l7-20020a05600c4f0700b003e79fa98ce1so1358430wmq.2 for ; Thu, 09 Mar 2023 06:23:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; t=1678371782; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=KZC5qBAJSZoc9F7aAJWQir3KEki0DQ4UHR0bP3Rd8Do=; b=oP0/Lrrq4QP7wG1xGKH1MmJdPBYEDwgyHwrwkjyr2Tq5EczUgB+S8p5ir7hnn4bkoe txH9Cu7PzrPdW++3Cr4Jh5Sx8c49BQ5o6QRE9lNrq/yehjO+ZYKxaDXqlZQKlLE63fbw Q/euy6mNPh7YutiFYWDCBxhy2x50NVFwvO3tHBcTM3Z5bhNSMwUo6Mg2sgqbV5fB0SUA BJ1pxJvHbJKw2Sa1YB/7xxqz9+/aNK6yR45z1OioaqkmIaAgMS3Cpl4Jl1Igypk6kSq1 n68EIZF6kEk04/oTKS/zau+SXTvEjviqfnTJiK7+7jBR2UILSZmSB1wgSew0RzqKT27v 7YmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678371782; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=KZC5qBAJSZoc9F7aAJWQir3KEki0DQ4UHR0bP3Rd8Do=; b=aU7H8CfdoMwoVr+D3I//215jU8FJLXBbQFM3zOFpmugP8SiGk9sSqK2x2DgKo2YCEg cFcnf8y1AwiNKlWlGcfkU/hc5x2u0kwyJh20ulnFUaZxjqMBvjJvppFbjyz9pzACExxD DMOVHl4xNkTGSW6uZDFVfXRON95gICeMzSN8W1Hej4xZMi4QNUqnnfqJAcci68J2YLNy Vv9LhGFOEXlzuBu4Zjpne2LCug2UZlzPi5eniU3CS5VMn/7BaFXmqcdmxsMaINQ5foVt wo4lYt1+jobY2K2m4SEvubRA8Q7MI0o0geEHyJxZqQuy2uEiZLldDtcIZA+N1LA2mgrA HI4A== X-Gm-Message-State: AO0yUKXGy2GozcHXbuhItlP5f0GGGnXlob++4wtkuFkhIH5qw6VWHwGz a2dOq+JcA9WzIQ/QxhkjrtzSGQ== X-Google-Smtp-Source: AK7set+xR4QnuyIEHutoKQUxDYs1BLAEQW1vv2GUMN/llQrli+vHu9zVnxMe8Jp+XhFb5k0pIeKO+w== X-Received: by 2002:a05:600c:154d:b0:3e2:f80:3df1 with SMTP id f13-20020a05600c154d00b003e20f803df1mr19947002wmg.19.1678371782245; Thu, 09 Mar 2023 06:23:02 -0800 (PST) Received: from [127.0.1.1] (158.22.5.93.rev.sfr.net. [93.5.22.158]) by smtp.googlemail.com with ESMTPSA id x22-20020a1c7c16000000b003e8dc7a03basm2772434wmc.41.2023.03.09.06.23.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Mar 2023 06:23:01 -0800 (PST) From: Alexandre Mergnat Date: Thu, 09 Mar 2023 15:22:54 +0100 Subject: [PATCH 05/21] dt-bindings: display: mediatek: dsi: add binding for MT8365 SoC MIME-Version: 1.0 Message-Id: <20230220-display-v1-5-45cbc68e188b@baylibre.com> References: <20230220-display-v1-0-45cbc68e188b@baylibre.com> In-Reply-To: <20230220-display-v1-0-45cbc68e188b@baylibre.com> To: =?unknown-8bit?b?RGFuaWVsIFZldHRlciA8ZGFuaWVsQGZmd2xsLmNoPiwgQ0sgSHUg?= =?unknown-8bit?b?PGNrLmh1QG1lZGlhdGVrLmNvbT4sIEppdGFvIFNoaSA8aml0YW8uc2hp?= =?unknown-8bit?b?QG1lZGlhdGVrLmNvbT4s?= =?unknown-8bit?q?_Thierry_Reding_=3Cthierry=2Ereding=40gmail=2Ecom=3E=2C_Phi?= =?unknown-8bit?q?lipp_Zabel_=3Cp=2Ezabel=40pengutronix=2Ede=3E=2C_Sam_Ravnb?= =?unknown-8bit?q?org_=3Csam=40ravnborg=2Eorg=3E=2C?= =?unknown-8bit?q?_Rob_Herring_=3Crobh+dt=40kernel=2Eorg=3E=2C_Uwe_Kleine-K?= =?unknown-8bit?q?=C3=B6nig_=3Cu=2Ekleine-koenig=40pengutronix=2Ede=3E=2C?= =?unknown-8bit?q?_Chun-Kuang_Hu_=3Cchunkuang=2Ehu=40kernel=2Eorg=3E=2C_Matth?= =?unknown-8bit?q?ias_Brugger_=3Cmatthias=2Ebgg=40gmail=2Ecom=3E=2C_David_Ai?= =?unknown-8bit?q?rlie_=3Cairlied=40gmail=2Ecom=3E=2C?= =?unknown-8bit?q?_Krzysztof_Kozlowski_=3Ckrzysztof=2Ekozlowski+dt=40linaro?= =?unknown-8bit?q?=2Eorg=3E=2C_Xinlei_Lee_=3Cxinlei=2Elee=40mediatek=2Ecom?= =?unknown-8bit?q?=3E?= X-Mailer: b4 0.10.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=1314; i=amergnat@baylibre.com; h=from:subject:message-id; bh=Z+PD/HG3NE11BJ2mTh036njJugWMt2nd1u2eHOQBoCM=; b=owEBbQKS/ZANAwAKAStGSZ1+MdRFAcsmYgBkCeu+GCL8xvWFL+ptlpV3sehG4PpJ38RbAQS5rbt1 +Ile0c+JAjMEAAEKAB0WIQQjG17X8+qqcA5g/osrRkmdfjHURQUCZAnrvgAKCRArRkmdfjHURSWOD/ 9RfuBFai2OHgcbNDhBzV0pUToxawUcIM3OnPZa0zVRov//1BJKpVqfY5nB3uMzU7aUXdTFXILuEV3Y XMk6nGH/5WIoS/TXKdPQKAKItedpW9wJWMg9YycRwSgObQVHiqtbDYwPxueBiWcGr5cNTuzegKCQdd nHqP0LzC4lQtM8swPcR7yTVL8d6o1SDIl9/3jSLzfDm32lwOt16s/MjjRFSddVisyGhoRm0oa+DYA8 uFsY2Vc7ZwRN+iQk9uSGjvirfJwR10NhMC64IcsEcZcGlTO8nWnmENG8IOX2FLOwC8n4O5G91bYeOf H+d2lMt3ASfXD1ag93MJKISomTdNek7is8WhVqvsq3UTFuepZfZyZFSpnP0nEl7uOCjgGsAu/QkisQ gWhI9IoW+nw39HKpiyYLVJpIFXgxp2YHTAv7jMPZZVcbqvS2jPeWh7550ejhGVYM1mQ6vZp2zqrbOz Dif9LCNYN7Cm8QKZHVdZ1U6I+/oxaChwQDdto+TitOT7YUfi3dQpnMG0kYQwun5aFedwVscYdb3t88 kC6eJ28KWE35E/k6FrIkEP+nTZPi33eBFRKRGWbj0ye+e3YBNKtsWfkT5deDzJv+Q7lWGemrWREABe 2QfQw9AbCo9mgtDvpa7aTIfyx//JKOTRJ+imxN14T1j17fenhKSfRrzuFqRQ== X-Developer-Key: i=amergnat@baylibre.com; a=openpgp; fpr=231B5ED7F3EAAA700E60FE8B2B46499D7E31D445 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Neil Armstrong , Alexandre Mergnat , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-pwm@vger.kernel.org, Fabien Parent , devicetree@vger.kernel.org, linux-mediatek@lists.infradead.org, Guillaume La Roque , linux-arm-kernel@lists.infradead.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Display Serial Interface for MT8365 is compatible with another SoC. Then, add MT8365 binding along with MT8183 SoC. Signed-off-by: Alexandre Mergnat Reviewed-by: Krzysztof Kozlowski Reviewed-by: Chun-Kuang Hu --- .../bindings/display/mediatek/mediatek,dsi.yaml | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/Documentation/devicetree/bindings/display/mediatek/mediatek,dsi.yaml b/Documentation/devicetree/bindings/display/mediatek/mediatek,dsi.yaml index 4707b60238b0..b6579d3effc5 100644 --- a/Documentation/devicetree/bindings/display/mediatek/mediatek,dsi.yaml +++ b/Documentation/devicetree/bindings/display/mediatek/mediatek,dsi.yaml @@ -22,13 +22,18 @@ allOf: properties: compatible: - enum: - - mediatek,mt2701-dsi - - mediatek,mt7623-dsi - - mediatek,mt8167-dsi - - mediatek,mt8173-dsi - - mediatek,mt8183-dsi - - mediatek,mt8186-dsi + oneOf: + - enum: + - mediatek,mt2701-dsi + - mediatek,mt7623-dsi + - mediatek,mt8167-dsi + - mediatek,mt8173-dsi + - mediatek,mt8183-dsi + - mediatek,mt8186-dsi + - items: + - enum: + - mediatek,mt8365-dsi + - const: mediatek,mt8183-dsi reg: maxItems: 1 From patchwork Thu Mar 9 14:22:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Mergnat X-Patchwork-Id: 13167537 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D4EC4C6FD1F for ; Thu, 9 Mar 2023 14:23:10 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 150E510E822; Thu, 9 Mar 2023 14:23:08 +0000 (UTC) Received: from mail-wm1-x32d.google.com (mail-wm1-x32d.google.com [IPv6:2a00:1450:4864:20::32d]) by gabe.freedesktop.org (Postfix) with ESMTPS id 0BC2A10E81E for ; Thu, 9 Mar 2023 14:23:05 +0000 (UTC) Received: by mail-wm1-x32d.google.com with SMTP id l7-20020a05600c1d0700b003eb5e6d906bso1327651wms.5 for ; Thu, 09 Mar 2023 06:23:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; t=1678371783; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=d+yQgUupWPpIlOiQqba9JZgbizsM+tf3A5vNzGQQ6cI=; b=mzfJRi3rr3ADiB0HkiogBnHWfujR6PEq0KFeLVkc+Ap41u72IOxKgs/bJddmQG6WsF xzSjpYUmWdr5l3Eg3yVDCMvfQjYWgvfrIYAM0s4z7iqr2jBr2qPODb81q8CF8bkwWnSv 3ris5wjDrmLrcDtBTIY7VkTwbNV+rL4RnlHMgPL/Xc1eXRg0Vq/eKd4Uth4i7tk2AOeK f+Pa70sCkDyq2+9+Oppxwhi6jUQt/UqbJRnEAI5ImRvzSmr+ejhcw9luOI7sK4VUpMbp /ItQOGkcw4Jiv/3XOwZDcB1hZG9g/0lexQk/mB7GbnxvpA2pbRBd7aDkSNRj/JCBdRxK Dccw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678371783; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=d+yQgUupWPpIlOiQqba9JZgbizsM+tf3A5vNzGQQ6cI=; b=Zf7a4xEbLZ+w+E01rIr+jkuYpsjLpaTq2pBPpPu3sleEBDJagWXSC9L+xLfYUhsGB+ JCtBjyW+CeylOTbRZQjLhr6+0+zDa72xx7Ju6ID6Uc+RGs9qEwcRH4mp+vSQBZgyENva iV6USy8ycJJpXkVqB7dySdKovdx7gS3O8uuKoO0RfDbJ1gAzxidOztChy6qMEsufAmHV LCeak1L8oZN8roan2e1mpvWSJyTAe7qOi7oDTtYo5Sob+aPsCSHW6UrgUxFedoChJH5w NA2OGy4ID/+ToLmsfRuydYulgATzFWB5DqZQDsYwxZFjcRtaNRr5fdedx+yhLnTPZCm3 dlog== X-Gm-Message-State: AO0yUKWTkkOhWW4VClBHODasstwVMilczRz/9m/0lywdxpYhPxblpD/F 6Nz9c076YHBmEbkqC14uW7tA8A== X-Google-Smtp-Source: AK7set9MEaiRkz2A2iRRrRwUb0ZOdN3nxNICaLPL49D8FlcJGe9+rcOV87KkfjUqCDMibzNpj5DFEA== X-Received: by 2002:a05:600c:3b9b:b0:3eb:3998:36f1 with SMTP id n27-20020a05600c3b9b00b003eb399836f1mr20191268wms.41.1678371783396; Thu, 09 Mar 2023 06:23:03 -0800 (PST) Received: from [127.0.1.1] (158.22.5.93.rev.sfr.net. [93.5.22.158]) by smtp.googlemail.com with ESMTPSA id x22-20020a1c7c16000000b003e8dc7a03basm2772434wmc.41.2023.03.09.06.23.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Mar 2023 06:23:03 -0800 (PST) From: Alexandre Mergnat Date: Thu, 09 Mar 2023 15:22:55 +0100 Subject: [PATCH 06/21] dt-bindings: display: mediatek: dpi: add power-domains property MIME-Version: 1.0 Message-Id: <20230220-display-v1-6-45cbc68e188b@baylibre.com> References: <20230220-display-v1-0-45cbc68e188b@baylibre.com> In-Reply-To: <20230220-display-v1-0-45cbc68e188b@baylibre.com> To: =?unknown-8bit?b?RGFuaWVsIFZldHRlciA8ZGFuaWVsQGZmd2xsLmNoPiwgQ0sgSHUg?= =?unknown-8bit?b?PGNrLmh1QG1lZGlhdGVrLmNvbT4sIEppdGFvIFNoaSA8aml0YW8uc2hp?= =?unknown-8bit?b?QG1lZGlhdGVrLmNvbT4s?= =?unknown-8bit?q?_Thierry_Reding_=3Cthierry=2Ereding=40gmail=2Ecom=3E=2C_Phi?= =?unknown-8bit?q?lipp_Zabel_=3Cp=2Ezabel=40pengutronix=2Ede=3E=2C_Sam_Ravnb?= =?unknown-8bit?q?org_=3Csam=40ravnborg=2Eorg=3E=2C?= =?unknown-8bit?q?_Rob_Herring_=3Crobh+dt=40kernel=2Eorg=3E=2C_Uwe_Kleine-K?= =?unknown-8bit?q?=C3=B6nig_=3Cu=2Ekleine-koenig=40pengutronix=2Ede=3E=2C?= =?unknown-8bit?q?_Chun-Kuang_Hu_=3Cchunkuang=2Ehu=40kernel=2Eorg=3E=2C_Matth?= =?unknown-8bit?q?ias_Brugger_=3Cmatthias=2Ebgg=40gmail=2Ecom=3E=2C_David_Ai?= =?unknown-8bit?q?rlie_=3Cairlied=40gmail=2Ecom=3E=2C?= =?unknown-8bit?q?_Krzysztof_Kozlowski_=3Ckrzysztof=2Ekozlowski+dt=40linaro?= =?unknown-8bit?q?=2Eorg=3E=2C_Xinlei_Lee_=3Cxinlei=2Elee=40mediatek=2Ecom?= =?unknown-8bit?q?=3E?= X-Mailer: b4 0.10.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=1612; i=amergnat@baylibre.com; h=from:subject:message-id; bh=8XdhUHkypetWJdIFuKJdeu4W8TGTvxJ+Za8X1maEAM4=; b=owEBbQKS/ZANAwAKAStGSZ1+MdRFAcsmYgBkCeu+DRa9AL2CpzRP2lVUsmPaWmgwYqlEIq/98IQS KxW0QIOJAjMEAAEKAB0WIQQjG17X8+qqcA5g/osrRkmdfjHURQUCZAnrvgAKCRArRkmdfjHURRLFEA CVeyHA49RQBUUtLf5rt68aPlBSTSNZkV/4dybTnvo5XD3DTtL6SxXVb8PIRFZ8Z0BMtQ14vow360rZ yg2n67jDC8IU4XUGYs6VJJMVmjqPKzJ8bo050n678ZXKt8yoyLCdDUUAt45ejLZ4edK2uZ75PvUMo9 PxpxL+K9W6sXhoUfiSGCB4MA1afJ8nPpE/aQK0S2SoXwWV2Vi/wU0Om1KZOFh7twso6EWjEn3PYv1b Csr4Lpz2u/aZYStBN7UDDB+/TTzRqG2G1eShU28auw16uz3TtHeEMOXaIDUldiaWdXEv7qIqgIUfKQ u5gsnp5+vPI5tmOJZAzbFRfy7kOONpq+5GVAb3szqGNZ1zrAuHMXy4REe0HT50itJRpppIIfac6UgE mCkqQFHnfZKTev3r4/l0L9NOVzblrsf3yn3b6wG+JpTwNLRe/sm7yUABonPMq4b/4m8kE7EwJRVqlh 1FKA9j4X6ncZNs+i3Z/OSYaOgZ7zriJXwg4ofFAeE5DG3wTsUXShUE/ZddrlMa6ufbWVrJqaocmQ2F 6XttS3JG9mRxq5WanmPs9304xVzo09LYXBMhZZu4bfOtm2w8yNex7LRbJ0UCMMYA09xrvhkLjLs2PW MhQz21g5o+7F2PdHm2ISbY5tpDhbSWtIEHSOfAji7vKN4VQFTjvDKur01vKQ== X-Developer-Key: i=amergnat@baylibre.com; a=openpgp; fpr=231B5ED7F3EAAA700E60FE8B2B46499D7E31D445 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Neil Armstrong , Alexandre Mergnat , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-pwm@vger.kernel.org, Fabien Parent , devicetree@vger.kernel.org, linux-mediatek@lists.infradead.org, Guillaume La Roque , linux-arm-kernel@lists.infradead.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" From: Fabien Parent DPI is part of the display / multimedia block in MediaTek SoCs, and always have a power-domain (at least in the upstream device-trees). Add the power-domains property to the binding documentation. Signed-off-by: Fabien Parent Signed-off-by: Alexandre Mergnat --- Documentation/devicetree/bindings/display/mediatek/mediatek,dpi.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/display/mediatek/mediatek,dpi.yaml b/Documentation/devicetree/bindings/display/mediatek/mediatek,dpi.yaml index d976380801e3..56511c4d4b9b 100644 --- a/Documentation/devicetree/bindings/display/mediatek/mediatek,dpi.yaml +++ b/Documentation/devicetree/bindings/display/mediatek/mediatek,dpi.yaml @@ -59,6 +59,9 @@ properties: Output port node. This port should be connected to the input port of an attached HDMI, LVDS or DisplayPort encoder chip. + power-domains: + maxItems: 1 + required: - compatible - reg @@ -73,11 +76,13 @@ examples: - | #include #include + #include dpi0: dpi@1401d000 { compatible = "mediatek,mt8173-dpi"; reg = <0x1401d000 0x1000>; interrupts = ; + power-domains = <&spm MT8173_POWER_DOMAIN_MM>; clocks = <&mmsys CLK_MM_DPI_PIXEL>, <&mmsys CLK_MM_DPI_ENGINE>, <&apmixedsys CLK_APMIXED_TVDPLL>; From patchwork Thu Mar 9 14:22:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Mergnat X-Patchwork-Id: 13167539 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C486DC6FD1F for ; Thu, 9 Mar 2023 14:23:14 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 18F1610E824; Thu, 9 Mar 2023 14:23:10 +0000 (UTC) Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) by gabe.freedesktop.org (Postfix) with ESMTPS id 3538D10E818 for ; Thu, 9 Mar 2023 14:23:06 +0000 (UTC) Received: by mail-wm1-x330.google.com with SMTP id p26so1260190wmc.4 for ; Thu, 09 Mar 2023 06:23:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; t=1678371784; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=jyBGY+jvCJOKXJP8ldMkSDuOdIH93pHfswBkaYg6AMg=; b=ooRqerabbbAmmSKiv7+GfEuHOW5HHY7ANUnilx/QxU5RMYgE8KNAUhlDllDyul1PYL dMJM+kcwHj2XtWwIK0E/Pp8bNfFGiH+HS4NcxF1ORpA2SsSgZj23/Uk4urMpfee14Ym2 Ia5+osju4pxuQ0o4lVSQbb/ihW71zy8B+XbPdGQzUF/2ZKUYVe7UDDYeyqj+kHybGjFt DbSMkWZCvsJNX+zBbJU+Cfsn/4N1tTxKaofD5UUmjHjtnHkw8mApyaPu8UhO4ANmyLBr 7MhJQuYXXL06ICEduUTSCJhjHwJIS09+nVtWgAL+d1njolaMW2/pXqDQhO9xgG84sstD F0Gg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678371784; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=jyBGY+jvCJOKXJP8ldMkSDuOdIH93pHfswBkaYg6AMg=; b=t5d9DHNwNtutNENpPUiER2UfYMk37sv3W0GiXgnN17lcD4+4XEfN8WvIFLfsMu5cG3 SEt0Pv8pJUH2w8fxDiS2Lnef8fSKWlf0f8Fw2h0okvah19syB8tArmFyTiyvgVn4sb3J SCcPPJDxB0QZRrYYwGlThlbWTtKPEvj4xRsi+GUqv14ykAoieC1iztSgFdLnocrHq+uk DwICLvBRa61VHAcGQ0PbcmYYI9WuTk7LrxqBhAEMSi3F8h4TtM5j/TLJMPVi/lDv4eJM re4IEZzB0s+55PmIG5EocLgeYWcLzKWvblcHweEByBxIUwtSM9chijR2Wv+nCxAnTRVb dxBA== X-Gm-Message-State: AO0yUKWM3hkHIjkLuSLCR8WKh1FpBIyQrAtXBWMaFGM8bF8gNHCG5xkw w2887IHruepez/q+O2rymPHITw== X-Google-Smtp-Source: AK7set8FO5JcyNQaHX02anFtnUYwcSLi1PLmBq6lm7daIhornxQMnEtC1Zaab7o9C36y9+u0YiHk1w== X-Received: by 2002:a05:600c:4e8c:b0:3e2:dba:7155 with SMTP id f12-20020a05600c4e8c00b003e20dba7155mr18514567wmq.20.1678371784719; Thu, 09 Mar 2023 06:23:04 -0800 (PST) Received: from [127.0.1.1] (158.22.5.93.rev.sfr.net. [93.5.22.158]) by smtp.googlemail.com with ESMTPSA id x22-20020a1c7c16000000b003e8dc7a03basm2772434wmc.41.2023.03.09.06.23.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Mar 2023 06:23:04 -0800 (PST) From: Alexandre Mergnat Date: Thu, 09 Mar 2023 15:22:56 +0100 Subject: [PATCH 07/21] dt-bindings: display: mediatek: dpi: add binding for MT8365 MIME-Version: 1.0 Message-Id: <20230220-display-v1-7-45cbc68e188b@baylibre.com> References: <20230220-display-v1-0-45cbc68e188b@baylibre.com> In-Reply-To: <20230220-display-v1-0-45cbc68e188b@baylibre.com> To: =?unknown-8bit?b?RGFuaWVsIFZldHRlciA8ZGFuaWVsQGZmd2xsLmNoPiwgQ0sgSHUg?= =?unknown-8bit?b?PGNrLmh1QG1lZGlhdGVrLmNvbT4sIEppdGFvIFNoaSA8aml0YW8uc2hp?= =?unknown-8bit?b?QG1lZGlhdGVrLmNvbT4s?= =?unknown-8bit?q?_Thierry_Reding_=3Cthierry=2Ereding=40gmail=2Ecom=3E=2C_Phi?= =?unknown-8bit?q?lipp_Zabel_=3Cp=2Ezabel=40pengutronix=2Ede=3E=2C_Sam_Ravnb?= =?unknown-8bit?q?org_=3Csam=40ravnborg=2Eorg=3E=2C?= =?unknown-8bit?q?_Rob_Herring_=3Crobh+dt=40kernel=2Eorg=3E=2C_Uwe_Kleine-K?= =?unknown-8bit?q?=C3=B6nig_=3Cu=2Ekleine-koenig=40pengutronix=2Ede=3E=2C?= =?unknown-8bit?q?_Chun-Kuang_Hu_=3Cchunkuang=2Ehu=40kernel=2Eorg=3E=2C_Matth?= =?unknown-8bit?q?ias_Brugger_=3Cmatthias=2Ebgg=40gmail=2Ecom=3E=2C_David_Ai?= =?unknown-8bit?q?rlie_=3Cairlied=40gmail=2Ecom=3E=2C?= =?unknown-8bit?q?_Krzysztof_Kozlowski_=3Ckrzysztof=2Ekozlowski+dt=40linaro?= =?unknown-8bit?q?=2Eorg=3E=2C_Xinlei_Lee_=3Cxinlei=2Elee=40mediatek=2Ecom?= =?unknown-8bit?q?=3E?= X-Mailer: b4 0.10.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=2483; i=amergnat@baylibre.com; h=from:subject:message-id; bh=0m3zQ+CEWwgmrDXTxocKv5T5uh988OgohoP13JFGvXc=; b=owEBbQKS/ZANAwAKAStGSZ1+MdRFAcsmYgBkCeu+e+5OVN4x2QxLmEE5u1X3dXSeY6CNuN0k5GVI QKihHiiJAjMEAAEKAB0WIQQjG17X8+qqcA5g/osrRkmdfjHURQUCZAnrvgAKCRArRkmdfjHURZKyEA CUB1Vr884ZhpoJG3ZZ6pM+Es90TE4OVOsyE/W9F5MZYwPYysxyUtsoakP4mp8AdxHB/CY70J09XWxm rAf2lHvzhuMnniDkC4t7MnpN2zWHJJ3T1i1EgTfyf97ZH8ZTIFCa1NRk4G3MEWG9R60b9/5qqP7Y7B LZIrtIHHfO82TNy86Ucu91SAFAl1tc/0j+NFW5fYFYjkhspr2LrJ65zB//+q1/bMxcaNLaMjs0KUYc IKGhyx4EHz+7o/umb4AQUUf9CnUj6DCv0mi8pxe10G2VlvuuMB7IqfQwPuq/q8SmXPcuyx9Ci+/pq/ Lmk79E89NH8dAIsfbLG5Wp3o088KlYsVuV1X+Rn9YFkqldc1J/3nEkD6ZQnwhHUC5n4Q2XSN90BN6z ox6glkhvOCrC09T6tTD5YImQh9G5h+ljy3Wvu7M1DF0FP2eXnB0JreoP9XcgiFqZSGn3RY7R0+rRKt wQ+tctTbK587mXRuQbDIhIJT5TxdE4LckU7HnALxRycvHQ2NwjY4DwNRvoTgFYJI0L0LQM4ORVr3+d MmIlteaG1/UekLWNWSv7UWO+Y/APA8E75ICfOWd2sdo5NMMgP6IZ4y8PRbErxmrlH3+mGXkjbpuC5s 4LI8tZvMrwUvVM+P9xeTd63t1H7r8XDr1nQxW5DHd8oN+ytBdL0I4gERH8PA== X-Developer-Key: i=amergnat@baylibre.com; a=openpgp; fpr=231B5ED7F3EAAA700E60FE8B2B46499D7E31D445 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Neil Armstrong , Alexandre Mergnat , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-pwm@vger.kernel.org, Fabien Parent , devicetree@vger.kernel.org, linux-mediatek@lists.infradead.org, Guillaume La Roque , linux-arm-kernel@lists.infradead.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" From: Fabien Parent DPI for MT8365 is compatible with MT8192 but requires an additional clock. Modify the documentation to requires this clock only on MT8365 SoCs. Signed-off-by: Fabien Parent Signed-off-by: Alexandre Mergnat --- .../bindings/display/mediatek/mediatek,dpi.yaml | 48 ++++++++++++++++++---- 1 file changed, 39 insertions(+), 9 deletions(-) diff --git a/Documentation/devicetree/bindings/display/mediatek/mediatek,dpi.yaml b/Documentation/devicetree/bindings/display/mediatek/mediatek,dpi.yaml index 56511c4d4b9b..3f6cca81340c 100644 --- a/Documentation/devicetree/bindings/display/mediatek/mediatek,dpi.yaml +++ b/Documentation/devicetree/bindings/display/mediatek/mediatek,dpi.yaml @@ -17,15 +17,20 @@ description: | properties: compatible: - enum: - - mediatek,mt2701-dpi - - mediatek,mt7623-dpi - - mediatek,mt8173-dpi - - mediatek,mt8183-dpi - - mediatek,mt8186-dpi - - mediatek,mt8188-dp-intf - - mediatek,mt8192-dpi - - mediatek,mt8195-dp-intf + oneOf: + - enum: + - mediatek,mt2701-dpi + - mediatek,mt7623-dpi + - mediatek,mt8173-dpi + - mediatek,mt8183-dpi + - mediatek,mt8186-dpi + - mediatek,mt8188-dp-intf + - mediatek,mt8192-dpi + - mediatek,mt8195-dp-intf + - items: + - enum: + - mediatek,mt8365-dpi + - const: mediatek,mt8192-dpi reg: maxItems: 1 @@ -34,16 +39,20 @@ properties: maxItems: 1 clocks: + minItems: 3 items: - description: Pixel Clock - description: Engine Clock - description: DPI PLL + - description: DPI Clock clock-names: + minItems: 3 items: - const: pixel - const: engine - const: pll + - const: dpi pinctrl-0: true pinctrl-1: true @@ -72,6 +81,27 @@ required: additionalProperties: false +allOf: + - if: + properties: + compatible: + contains: + const: mediatek,mt8365-dpi + + then: + properties: + clocks: + maxItems: 4 + clock-names: + maxItems: 4 + + else: + properties: + clocks: + maxItems: 3 + clock-names: + maxItems: 3 + examples: - | #include From patchwork Thu Mar 9 14:22:57 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Mergnat X-Patchwork-Id: 13167541 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C47C3C64EC4 for ; Thu, 9 Mar 2023 14:23:20 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id DCE8710E816; Thu, 9 Mar 2023 14:23:17 +0000 (UTC) Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) by gabe.freedesktop.org (Postfix) with ESMTPS id 4BE1A10E818 for ; Thu, 9 Mar 2023 14:23:07 +0000 (UTC) Received: by mail-wm1-x334.google.com with SMTP id t25-20020a1c7719000000b003eb052cc5ccso3714951wmi.4 for ; Thu, 09 Mar 2023 06:23:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; t=1678371785; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=bQBBpVaIgUK0Rl4J+27gzzqfLCx1MN+pd5yYkTAPDPo=; b=6bENydDnCxC3x1qhCt63nkYEgu5eVEPjpplUjdxJBGpmG64LE2yex4EciZPHnnqbHC FRBBrYEpSBAx2vPl/dV7u3J/LlBHFNrvhyjqeGXefhLUeTA1qn8tIems4Y0W2+RnYvbU Q8a6X0fxw51Xvk1pzAuGqMzVq8JjuaSarXwVpJbCWWcYezZc6euQYLtO6HR9NFXm+H3R 4rA35d16xymk6Dz4SqgU+4EQGIcdnZyzTE41riP3t04O6HSsuS04a8AxtKkMtXsK6fyb NOoav2EMZtD1EZS6L3/xDXg3IzdIz6Mbm5R8jh1A2r5ZoSB68J3faY9gB8gOsLeZRL/p 2Mzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678371785; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=bQBBpVaIgUK0Rl4J+27gzzqfLCx1MN+pd5yYkTAPDPo=; b=X6XBb0HjS2VK58peHKXOccFgeUXzcTfMP86OEZpaArIxaSPCegUiXuw9PYAU5iXKtV dFc1BioH39VUy2GuZ9YuXfwaesE96lSAzqlFXlfZEaydZCJB0T0pTMGuMn4fpEJzW20s rpb+L9XodwmemvZ4O0AGV/P/YVZrP3LZVCYUXLdoaEK69+HX8EnCLz9HqJ+aZPDJo0SF h1c62Qw678qvs8F6RiEJQ0fajURMFjzt2lBKHa40zyrMsjU23nHjtig67F/PmrcLX/9n IHejKQGqAXDh/rYKagU5qt+tUkGJnjfRjcAqmaDG7udd/GHO1R0bdmXyP1sEnz256xjo B9ww== X-Gm-Message-State: AO0yUKVyNcehY0w7jj6tF9Fhu0kgL7qnQzOqWi97wR4tx9G97osWIQQ4 FClpuoQvp4PuZ+a3s3t70EWRZnZgoui2hhomiAM= X-Google-Smtp-Source: AK7set/Zn5fKLXmXdaKz4vQTYomyjS35f5C+OYc/Sfrm9FP4uqi4MCSseAditkhKpIAn90H5J/vqGg== X-Received: by 2002:a05:600c:1c9e:b0:3ea:f883:180 with SMTP id k30-20020a05600c1c9e00b003eaf8830180mr19624210wms.7.1678371785809; Thu, 09 Mar 2023 06:23:05 -0800 (PST) Received: from [127.0.1.1] (158.22.5.93.rev.sfr.net. [93.5.22.158]) by smtp.googlemail.com with ESMTPSA id x22-20020a1c7c16000000b003e8dc7a03basm2772434wmc.41.2023.03.09.06.23.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Mar 2023 06:23:05 -0800 (PST) From: Alexandre Mergnat Date: Thu, 09 Mar 2023 15:22:57 +0100 Subject: [PATCH 08/21] dt-bindings: display: mediatek: gamma: add binding for MT8365 SoC MIME-Version: 1.0 Message-Id: <20230220-display-v1-8-45cbc68e188b@baylibre.com> References: <20230220-display-v1-0-45cbc68e188b@baylibre.com> In-Reply-To: <20230220-display-v1-0-45cbc68e188b@baylibre.com> To: =?unknown-8bit?b?RGFuaWVsIFZldHRlciA8ZGFuaWVsQGZmd2xsLmNoPiwgQ0sgSHUg?= =?unknown-8bit?b?PGNrLmh1QG1lZGlhdGVrLmNvbT4sIEppdGFvIFNoaSA8aml0YW8uc2hp?= =?unknown-8bit?b?QG1lZGlhdGVrLmNvbT4s?= =?unknown-8bit?q?_Thierry_Reding_=3Cthierry=2Ereding=40gmail=2Ecom=3E=2C_Phi?= =?unknown-8bit?q?lipp_Zabel_=3Cp=2Ezabel=40pengutronix=2Ede=3E=2C_Sam_Ravnb?= =?unknown-8bit?q?org_=3Csam=40ravnborg=2Eorg=3E=2C?= =?unknown-8bit?q?_Rob_Herring_=3Crobh+dt=40kernel=2Eorg=3E=2C_Uwe_Kleine-K?= =?unknown-8bit?q?=C3=B6nig_=3Cu=2Ekleine-koenig=40pengutronix=2Ede=3E=2C?= =?unknown-8bit?q?_Chun-Kuang_Hu_=3Cchunkuang=2Ehu=40kernel=2Eorg=3E=2C_Matth?= =?unknown-8bit?q?ias_Brugger_=3Cmatthias=2Ebgg=40gmail=2Ecom=3E=2C_David_Ai?= =?unknown-8bit?q?rlie_=3Cairlied=40gmail=2Ecom=3E=2C?= =?unknown-8bit?q?_Krzysztof_Kozlowski_=3Ckrzysztof=2Ekozlowski+dt=40linaro?= =?unknown-8bit?q?=2Eorg=3E=2C_Xinlei_Lee_=3Cxinlei=2Elee=40mediatek=2Ecom?= =?unknown-8bit?q?=3E?= X-Mailer: b4 0.10.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=930; i=amergnat@baylibre.com; h=from:subject:message-id; bh=5HYYOhtuGUlOpyHwZ7LVltjoUezJ19v4l/4h/6CSVGo=; b=owEBbQKS/ZANAwAKAStGSZ1+MdRFAcsmYgBkCeu+VhKJ9LQzHj9VxhsKxYsiydf/VF/RzLpd9doS p/S1TfeJAjMEAAEKAB0WIQQjG17X8+qqcA5g/osrRkmdfjHURQUCZAnrvgAKCRArRkmdfjHURV68EA CrpSeTubBhwYkMws/m8sMKVEppmg0ezRxgHhFia1QKuf/Qb/X6+dGncxyjlZNfGS0ar826v6ItsCP7 F942GR0ouavp2NDUZ4ZBvTzuC9v/RYUivU6ijr54JQSDNpIZt3Z/1RIf2TnwC7cHCuU3rhdIP5+/Uh G5UitSz+osQKq5KHqb+uaYDmqAfhJtaE5KSDuS5IzTZXdk8HDyXMEhcHnLQTZqSkFgXsfAb6P63wD/ a+7e69DuUGhyFTlEwcLzeTGxsRs5e3atv9hIj2IkjZI742Gs7iC+OkCXNVMzMhnxaJHDTfCU+OVb5s yjY0Zj+zfs//wU4uHKb7aZTpeazWvPdKFNt1SXoVaOexx8St+YVfnhn5btj1PuBKhqwzyHFYctXuau IG7/AD7kq7EpmLnNZ8PTW+xGoFKWt9cV33JNTLBr92E6EBpiKE5ZCouTYJMRi3QL0+mBNJMZlvHA8f 6l86QRox+1zuXWohcQYFt8NFfXIql5tV4AEGlCC0FUndzCtn+QkSShypWYRHCWePclo2R14EoBCajf 7q6J/xdUo+1xqqMBxOQGV7y8OBSRpHeRxvVcd2emG0x6cb43LKA8snoWHvXhJSVpemAWojP+twvzzs qEmb9BQUClARJ4ftqmFUB0T9vgoDIxmyvrsxFZnjE+/4FvWifJndDTgwq47Q== X-Developer-Key: i=amergnat@baylibre.com; a=openpgp; fpr=231B5ED7F3EAAA700E60FE8B2B46499D7E31D445 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Neil Armstrong , Alexandre Mergnat , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-pwm@vger.kernel.org, Fabien Parent , devicetree@vger.kernel.org, linux-mediatek@lists.infradead.org, Guillaume La Roque , linux-arm-kernel@lists.infradead.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Display GAMMA for MT8365 is compatible with another SoC. Then, add MT8365 binding along with MT8183 SoC. Signed-off-by: Alexandre Mergnat Acked-by: Krzysztof Kozlowski Reviewed-by: Chun-Kuang Hu --- Documentation/devicetree/bindings/display/mediatek/mediatek,gamma.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/display/mediatek/mediatek,gamma.yaml b/Documentation/devicetree/bindings/display/mediatek/mediatek,gamma.yaml index a89ea0ea7542..f54859cfc97b 100644 --- a/Documentation/devicetree/bindings/display/mediatek/mediatek,gamma.yaml +++ b/Documentation/devicetree/bindings/display/mediatek/mediatek,gamma.yaml @@ -30,6 +30,7 @@ properties: - mediatek,mt8186-disp-gamma - mediatek,mt8192-disp-gamma - mediatek,mt8195-disp-gamma + - mediatek,mt8365-disp-gamma - const: mediatek,mt8183-disp-gamma reg: From patchwork Thu Mar 9 14:22:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Mergnat X-Patchwork-Id: 13167540 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 840F2C61DA4 for ; Thu, 9 Mar 2023 14:23:19 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 0940E10E820; Thu, 9 Mar 2023 14:23:18 +0000 (UTC) Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [IPv6:2a00:1450:4864:20::329]) by gabe.freedesktop.org (Postfix) with ESMTPS id 8E3F610E824 for ; Thu, 9 Mar 2023 14:23:08 +0000 (UTC) Received: by mail-wm1-x329.google.com with SMTP id m25-20020a7bcb99000000b003e7842b75f2so1333714wmi.3 for ; Thu, 09 Mar 2023 06:23:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; t=1678371787; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=8/8S9zAhITTz9ARvUIM6rB3SshY/72TljcOdk5LeQ3Q=; b=Paw4lE7rgteiCmJbbCRSeVVGrswcjh3BFd8nPfVyBZ3qdom9iSJHtdx4mBHU8s71/G M+T5o6EMJy8BABjhb9Ep9NOpZpgHbYyOQuzm0hcfi1uXS3fHungtEqsxb7G7TMBKpadj dq14YlhWe5BfA+ubm9gQsad2YUTGsbmpq96lPY9MMY0qqmOLubh9rZGMnujrIoKZDF2c jscwueBQ9tM5SlsFHiJkgg7gu8MPXGIwDsjX0DBl0vzxK+WRqfZZMJl31eN6ElPolkWs I8dDxaKxdZX9rKZKEveZ9rrXk3nfKJnvmwlHT9z0kNJ1cmuTqfOEAuencjDWmeOjGagB BwUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678371787; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=8/8S9zAhITTz9ARvUIM6rB3SshY/72TljcOdk5LeQ3Q=; b=lNq2pLi1V61s78vqDxCtFWJXWOLr3F/bKNXNiwr3uW1Yeoa2j4YyQDdTKK3NQa305a 0e3qcCsUQKdoYptG2Ag4bdXH1zbOldD/17Dd++9wtPiTymI9k6xK5dALkBJHtisWrNtC YXHGeE9Me6yHgVE+J7Aku0lXqC3lOl2KSIlCUOpMRcmidlqpfNFIylym5Wnrtmc7NvCG nlF9vwVM8PfZX3QeDE+zC/arYg/CEXmnZ1sIC21EnFP2hkS8c7Ir6cqaDDzAWz0AL64S VxACfwrrhsAT7l3677O7+RtBvtsecZDdQ/IdGhfMBUzEVJD+V6by2+BF9c0aYVwCKSEa sDlQ== X-Gm-Message-State: AO0yUKU9TNPA9FOH0Wu4g9lb5c1FxMPlQlMC+xOin4Pk8ArawX9vpL1Q DZ9jPpv0HKmpxV1yW5spK5ap2w== X-Google-Smtp-Source: AK7set9TwqlVJpH/8L0NR2uEUyatF1sOiuRce+ItUudlwqE8a6hDQbfysi1GTjePfgyv2cl9fWrcEA== X-Received: by 2002:a05:600c:3506:b0:3dc:405b:99bf with SMTP id h6-20020a05600c350600b003dc405b99bfmr20382301wmq.15.1678371786930; Thu, 09 Mar 2023 06:23:06 -0800 (PST) Received: from [127.0.1.1] (158.22.5.93.rev.sfr.net. [93.5.22.158]) by smtp.googlemail.com with ESMTPSA id x22-20020a1c7c16000000b003e8dc7a03basm2772434wmc.41.2023.03.09.06.23.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Mar 2023 06:23:06 -0800 (PST) From: Alexandre Mergnat Date: Thu, 09 Mar 2023 15:22:58 +0100 Subject: [PATCH 09/21] dt-bindings: display: mediatek: ovl: add binding for MT8365 SoC MIME-Version: 1.0 Message-Id: <20230220-display-v1-9-45cbc68e188b@baylibre.com> References: <20230220-display-v1-0-45cbc68e188b@baylibre.com> In-Reply-To: <20230220-display-v1-0-45cbc68e188b@baylibre.com> To: =?unknown-8bit?b?RGFuaWVsIFZldHRlciA8ZGFuaWVsQGZmd2xsLmNoPiwgQ0sgSHUg?= =?unknown-8bit?b?PGNrLmh1QG1lZGlhdGVrLmNvbT4sIEppdGFvIFNoaSA8aml0YW8uc2hp?= =?unknown-8bit?b?QG1lZGlhdGVrLmNvbT4s?= =?unknown-8bit?q?_Thierry_Reding_=3Cthierry=2Ereding=40gmail=2Ecom=3E=2C_Phi?= =?unknown-8bit?q?lipp_Zabel_=3Cp=2Ezabel=40pengutronix=2Ede=3E=2C_Sam_Ravnb?= =?unknown-8bit?q?org_=3Csam=40ravnborg=2Eorg=3E=2C?= =?unknown-8bit?q?_Rob_Herring_=3Crobh+dt=40kernel=2Eorg=3E=2C_Uwe_Kleine-K?= =?unknown-8bit?q?=C3=B6nig_=3Cu=2Ekleine-koenig=40pengutronix=2Ede=3E=2C?= =?unknown-8bit?q?_Chun-Kuang_Hu_=3Cchunkuang=2Ehu=40kernel=2Eorg=3E=2C_Matth?= =?unknown-8bit?q?ias_Brugger_=3Cmatthias=2Ebgg=40gmail=2Ecom=3E=2C_David_Ai?= =?unknown-8bit?q?rlie_=3Cairlied=40gmail=2Ecom=3E=2C?= =?unknown-8bit?q?_Krzysztof_Kozlowski_=3Ckrzysztof=2Ekozlowski+dt=40linaro?= =?unknown-8bit?q?=2Eorg=3E=2C_Xinlei_Lee_=3Cxinlei=2Elee=40mediatek=2Ecom?= =?unknown-8bit?q?=3E?= X-Mailer: b4 0.10.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=863; i=amergnat@baylibre.com; h=from:subject:message-id; bh=f+LlFWqL4iGgBIpxFelONT6kK+k+XvcRswfNvN3MNAo=; b=owEBbQKS/ZANAwAKAStGSZ1+MdRFAcsmYgBkCeu+di7JzQQWl74+GKipXG0KRdPPts/MfRxqEUVj mCLLlwKJAjMEAAEKAB0WIQQjG17X8+qqcA5g/osrRkmdfjHURQUCZAnrvgAKCRArRkmdfjHURYYNEA CiXLD4ykIDwMU7sPiuItu/LUUcOiha1Izgc6NlWsxwBtccyIEZOxGxwTYFe/zYzCasLTRY/ux4E0F7 /B75r5GMN3ef5WSWHAmw/1ogSmADe9IN+pIyoVoyAYewx+upkEDW9iXk9IH11rGJ3xxfaQSy5/Ww6k 4kdB20shkoPrF4yHBs4kKBKFwHMf0gnNqxG6SwGqiI/hhI//4jMAE1//hUbefOCylvKZk4dUdA7gwV VjAISC7+SEmpuYuK84ami0QwftaIgZq9XZsjdV5N9iJXIxIOcDcpynPSR2EgZmTmFjg0Ce7I2Cv8ua 3M2sY5K7ovJyJ6Z8aN0zRdj46P2n6XViqiqD9vi07vJxj/yQCcJeCgPvcRdel8ahAuFiaTL/sWxdGm 8g6ldbUOu+JbKnteOZQtwp5vifrRz75asn0P1YuaQkuYzGVwLGt4Qj62xTtWkdM9qPkfa5mGmAKI8v BsoPIdLdz16pcViwP6bkRftEoP1y9+URkKPYore33ra9xLX49V4pTuPhMVoGmaDZWCKqz0CtYtiUb6 uapQIS/7ycwhGVDvTYtg2DiH1gFld9VWQoKjqwDdbrqf5pQGfwQOmrZqexT61gdtajcNn8PzoUXVC9 My54ek3cXzXKpB7xh/HxWpqAprRIskSMxwuKvvLPhPbUThj1YvCFXTdhYoUQ== X-Developer-Key: i=amergnat@baylibre.com; a=openpgp; fpr=231B5ED7F3EAAA700E60FE8B2B46499D7E31D445 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Neil Armstrong , Alexandre Mergnat , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-pwm@vger.kernel.org, Fabien Parent , devicetree@vger.kernel.org, linux-mediatek@lists.infradead.org, Guillaume La Roque , linux-arm-kernel@lists.infradead.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Display Overlay for MT8365 is compatible with another SoC. Then, add MT8365 binding along with MT8192 SoC. Signed-off-by: Alexandre Mergnat Acked-by: Krzysztof Kozlowski Reviewed-by: Chun-Kuang Hu --- Documentation/devicetree/bindings/display/mediatek/mediatek,ovl.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/display/mediatek/mediatek,ovl.yaml b/Documentation/devicetree/bindings/display/mediatek/mediatek,ovl.yaml index a2a27d0ca038..20e4ca4fc915 100644 --- a/Documentation/devicetree/bindings/display/mediatek/mediatek,ovl.yaml +++ b/Documentation/devicetree/bindings/display/mediatek/mediatek,ovl.yaml @@ -41,6 +41,7 @@ properties: - items: - enum: - mediatek,mt8186-disp-ovl + - mediatek,mt8365-disp-ovl - const: mediatek,mt8192-disp-ovl reg: From patchwork Thu Mar 9 14:22:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Mergnat X-Patchwork-Id: 13167554 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0CA5EC74A44 for ; Thu, 9 Mar 2023 14:23:31 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 2F4E610E82F; Thu, 9 Mar 2023 14:23:20 +0000 (UTC) Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) by gabe.freedesktop.org (Postfix) with ESMTPS id 7FAE210E824 for ; Thu, 9 Mar 2023 14:23:09 +0000 (UTC) Received: by mail-wm1-x32c.google.com with SMTP id bg16-20020a05600c3c9000b003eb34e21bdfso3746425wmb.0 for ; Thu, 09 Mar 2023 06:23:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; t=1678371788; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=6y0EgOYSdMDz3+KorrQ0r3k6K66g6XiX6jBZImtrVOE=; b=7N7405SRRIId6Fw9WiPQgwLQVdf8pBao4SjQy4WjpeDtFbYOlj1zaSVkYButa1kbc5 3R5RoGJY7oYCD5pgDTSSWb8JOvKBIOS8hwAv6ZpeMDc555SqmuE3O9wIIMaDRUoavKcY jmvNjQYpmDsAWn46qMoLNchn5Umbgzcy+bUzTfgkZEOnqgJEJuh/Soa9eBTXyIounf8v lRon0sAiJiOyEVOQvah6GySvSz1w9ot1MpCQ8I/q6bZOploCxsOMmC/zTOnfw8RYulO8 uhDwcOWMZNtYvMO4kLHCH/U1IrhmOymyLU1AIPx9sYox8GXwVy35gP8w+e6dDbj433Zx QUsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678371788; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=6y0EgOYSdMDz3+KorrQ0r3k6K66g6XiX6jBZImtrVOE=; b=C1w3ltP0A2c/SvvPKb0F5N5g4NymTnfHsnIz028tHe69IIyRF1Tq7dX+4x9fWx1lS9 naY8NkAz8nx5dYcGrhHW0svVBKIl/APcZQUOz2aCed6evHUBPpSgN/BfMFZjS7FbrZsg WL68Ujg2I8pfeS+K8T5PNaV3xItNMUY/jI3VWjrOSKbVSJMtQhwjFneiKOkv06Z00a7K esz0Kb+M6CyQLgsU1bTQKvWkFyqnobXKURDnFMk15uPgpexhAKBv6eDgjugHyEkokRvE 1OZ+5BuHfNhbNx8LDR/kJpEsNu6AG1Qjtvd16p4qDEkquat+3WDKaASF3H4gptB5nFub sf0w== X-Gm-Message-State: AO0yUKW63xKnBqa9g22mLBfFRWvVtUeuSrLrxA+1/K0AbXHMamDcNg/S BIrzTfBwHxAiD9xO2S67iUTEKg== X-Google-Smtp-Source: AK7set+9KAEqvfkzyPxOe24xna17NfixCHnFQT1MzH0SsBzNDwwIU8NvgfCPuEJSgKKoNJIlQbqsKw== X-Received: by 2002:a05:600c:4509:b0:3eb:3c76:c241 with SMTP id t9-20020a05600c450900b003eb3c76c241mr19333471wmo.13.1678371788034; Thu, 09 Mar 2023 06:23:08 -0800 (PST) Received: from [127.0.1.1] (158.22.5.93.rev.sfr.net. [93.5.22.158]) by smtp.googlemail.com with ESMTPSA id x22-20020a1c7c16000000b003e8dc7a03basm2772434wmc.41.2023.03.09.06.23.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Mar 2023 06:23:07 -0800 (PST) From: Alexandre Mergnat Date: Thu, 09 Mar 2023 15:22:59 +0100 Subject: [PATCH 10/21] dt-bindings: display: mediatek: rdma: add binding for MT8365 SoC MIME-Version: 1.0 Message-Id: <20230220-display-v1-10-45cbc68e188b@baylibre.com> References: <20230220-display-v1-0-45cbc68e188b@baylibre.com> In-Reply-To: <20230220-display-v1-0-45cbc68e188b@baylibre.com> To: =?unknown-8bit?b?RGFuaWVsIFZldHRlciA8ZGFuaWVsQGZmd2xsLmNoPiwgQ0sgSHUg?= =?unknown-8bit?b?PGNrLmh1QG1lZGlhdGVrLmNvbT4sIEppdGFvIFNoaSA8aml0YW8uc2hp?= =?unknown-8bit?b?QG1lZGlhdGVrLmNvbT4s?= =?unknown-8bit?q?_Thierry_Reding_=3Cthierry=2Ereding=40gmail=2Ecom=3E=2C_Phi?= =?unknown-8bit?q?lipp_Zabel_=3Cp=2Ezabel=40pengutronix=2Ede=3E=2C_Sam_Ravnb?= =?unknown-8bit?q?org_=3Csam=40ravnborg=2Eorg=3E=2C?= =?unknown-8bit?q?_Rob_Herring_=3Crobh+dt=40kernel=2Eorg=3E=2C_Uwe_Kleine-K?= =?unknown-8bit?q?=C3=B6nig_=3Cu=2Ekleine-koenig=40pengutronix=2Ede=3E=2C?= =?unknown-8bit?q?_Chun-Kuang_Hu_=3Cchunkuang=2Ehu=40kernel=2Eorg=3E=2C_Matth?= =?unknown-8bit?q?ias_Brugger_=3Cmatthias=2Ebgg=40gmail=2Ecom=3E=2C_David_Ai?= =?unknown-8bit?q?rlie_=3Cairlied=40gmail=2Ecom=3E=2C?= =?unknown-8bit?q?_Krzysztof_Kozlowski_=3Ckrzysztof=2Ekozlowski+dt=40linaro?= =?unknown-8bit?q?=2Eorg=3E=2C_Xinlei_Lee_=3Cxinlei=2Elee=40mediatek=2Ecom?= =?unknown-8bit?q?=3E?= X-Mailer: b4 0.10.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=909; i=amergnat@baylibre.com; h=from:subject:message-id; bh=0pXneIWCTN50mIGf1jyLG4V31thLbsARL6qKXISFL2g=; b=owEBbQKS/ZANAwAKAStGSZ1+MdRFAcsmYgBkCeu+xfM/cZ2Igd63sOwyiQObtBeytnZiIiEDXquP icSKEGeJAjMEAAEKAB0WIQQjG17X8+qqcA5g/osrRkmdfjHURQUCZAnrvgAKCRArRkmdfjHURbr7D/ 4g3s/MVLsDH/3hXDBWmGYtJJhkxZNvV99ygtDkG/1d07uedV8fDZC1xWkFzzQdTXGtHD7DvP4UP/qP 5fWoD7es0JAbByTDpeOzLp91dk14rgxRxlnCpROWB8ELu8KpvgsEknBlDAAn4gF2MOFGuApXNCMF36 qhJR2HV1xBXmAKf5w+9sfGys6a/gGEJ7PBduVWaOo0LPtD4ml72Eb2VSRjeP3IkTqB3Qv2R78IdTpL OQi160kpwpKFzFkg27rshPSre9WkKfxA1Xilsh7LdcxHCWOh7R9Azq6HXYkjFasqv91sxXsOA9awvZ szc4mNAlvbT2PuIjeXL5Sa6gfIeKxRopFfw86DraLV7ORN4J9m3mq2mxUpgEcRIfVGOO6S6F5NS7LO pgbgvxclOWGcElkO0RuwiNYDKjZ/hjPfaYJvR2sBHt35csV2ySWw/evGi6M4x7ow+qL5UxrhhL056O Pj391MDejNNLPRKEDjTxsJk5gXECD2GaosO2SIuPneuevFav627LA9mTtm7ChW+yx9CqpdR61pcipg Ux4yIHqdgEofk8tvOahsTlnUKggEx1Xmvzi+wvpXfl0mCDAaoomfsmsCFMtxqHgcnWN9RaQDZQr+uJ UlW2q749LwKncbuiEdySOlmmyV541tw8J0wwzFSYRN8i5R/pBBsivBrMqGsw== X-Developer-Key: i=amergnat@baylibre.com; a=openpgp; fpr=231B5ED7F3EAAA700E60FE8B2B46499D7E31D445 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Neil Armstrong , Alexandre Mergnat , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-pwm@vger.kernel.org, Fabien Parent , devicetree@vger.kernel.org, linux-mediatek@lists.infradead.org, Guillaume La Roque , linux-arm-kernel@lists.infradead.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Display Data Path Read DMA for MT8365 is compatible with another SoC. Then, add MT8365 binding along with MT8183 SoC. Signed-off-by: Alexandre Mergnat Acked-by: Krzysztof Kozlowski Reviewed-by: Chun-Kuang Hu --- Documentation/devicetree/bindings/display/mediatek/mediatek,rdma.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/display/mediatek/mediatek,rdma.yaml b/Documentation/devicetree/bindings/display/mediatek/mediatek,rdma.yaml index 0882ae86e6c4..3bc914785976 100644 --- a/Documentation/devicetree/bindings/display/mediatek/mediatek,rdma.yaml +++ b/Documentation/devicetree/bindings/display/mediatek/mediatek,rdma.yaml @@ -40,6 +40,7 @@ properties: - enum: - mediatek,mt8186-disp-rdma - mediatek,mt8192-disp-rdma + - mediatek,mt8365-disp-rdma - const: mediatek,mt8183-disp-rdma reg: From patchwork Thu Mar 9 14:23: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: 13167553 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 31B71C6FD1F for ; Thu, 9 Mar 2023 14:23:29 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id A6D6B10E82A; Thu, 9 Mar 2023 14:23:19 +0000 (UTC) Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) by gabe.freedesktop.org (Postfix) with ESMTPS id A23BF10E827 for ; Thu, 9 Mar 2023 14:23:10 +0000 (UTC) Received: by mail-wm1-x32e.google.com with SMTP id bg16-20020a05600c3c9000b003eb34e21bdfso3746465wmb.0 for ; Thu, 09 Mar 2023 06:23:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; t=1678371789; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=lE1bZPp7KRJkG065jA7BrjRq0e2c3UVRIFLdkJvreXg=; b=e3wRyPCxCTCbhqioIV84fwTJJWN1NAlFg9iXSquWHMB+55KKB4KLqzARSuOjj8DPMQ N8be9sHKY0/KWVtlU7to5JigikApJnETiCwDE4KDojZ7aLJ/9UPVd9zcLpYHBgOaSvRl 8J+Xfw0FSp2HyMaVrMNbUMvVWlWEWwr4O5/Jc3wCXyOB7wCF1+s6eOAnraLRo8C2+EKS Cnszz064QmUgyYI3/hdj7izmvQpmwpSmx3n6Wsv/n2F/PCU1kvqL7T8v0Wc5vUwFtXAD G8++H809aE7XHRhumpMOl+4O+8YF22/f+3sCSvo2ZH7MRyoWfolCvwXxeZRpo46tBkLA vBkA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678371789; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=lE1bZPp7KRJkG065jA7BrjRq0e2c3UVRIFLdkJvreXg=; b=SWiZeyy++Brpx88gVuEC8iLa8vAlyCCM3oUWwJsPPp9KDrQ4dbrPc+XTJCyGE2NfH9 PCO6vHNjqJ6278OY+LU5KGAy15pjcskrEZYAZbNXwg71gEm6M43AJkJEo/dELO5sdvsC krxVYAykgTY58QNFBGBAnzq6kUK6feH+W5wG4SIt7Cr/Dd2/JnP6W2NQmIshBCj3c1Fq 7uCvZeRS86DHg7UJZtoXhFeqPRFhsAME0AwNWm5CYmnJbqdVUTtjWXp5q1enUgVxG918 tD8nwImcr8FFyJ4e4kb8nInF26U1uQyaX/SSZbmEOhBVh8CwrCb6KkprV4AbCEQL/OS5 flEQ== X-Gm-Message-State: AO0yUKV/gsCfx5s51UR5sThsPHrbTIszVulubZS1cjkn+WxkYOn2Ef4z T8Ek6cxYm1yKMjLp2GzNE0waMg== X-Google-Smtp-Source: AK7set/01szVVaeiIC4yN1x9Gpt/mNzvTYlHq94dchpbp1MYvvz4Fq2/M/RreXzcMvHUi3XBWN1Yhg== X-Received: by 2002:a05:600c:3c9c:b0:3ea:bc08:b63e with SMTP id bg28-20020a05600c3c9c00b003eabc08b63emr19961784wmb.2.1678371789194; Thu, 09 Mar 2023 06:23:09 -0800 (PST) Received: from [127.0.1.1] (158.22.5.93.rev.sfr.net. [93.5.22.158]) by smtp.googlemail.com with ESMTPSA id x22-20020a1c7c16000000b003e8dc7a03basm2772434wmc.41.2023.03.09.06.23.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Mar 2023 06:23:08 -0800 (PST) From: Alexandre Mergnat Date: Thu, 09 Mar 2023 15:23:00 +0100 Subject: [PATCH 11/21] dt-bindings: display: pannel: add startek kd070fhfid015 binding documentation MIME-Version: 1.0 Message-Id: <20230220-display-v1-11-45cbc68e188b@baylibre.com> References: <20230220-display-v1-0-45cbc68e188b@baylibre.com> In-Reply-To: <20230220-display-v1-0-45cbc68e188b@baylibre.com> To: =?unknown-8bit?b?RGFuaWVsIFZldHRlciA8ZGFuaWVsQGZmd2xsLmNoPiwgQ0sgSHUg?= =?unknown-8bit?b?PGNrLmh1QG1lZGlhdGVrLmNvbT4sIEppdGFvIFNoaSA8aml0YW8uc2hp?= =?unknown-8bit?b?QG1lZGlhdGVrLmNvbT4s?= =?unknown-8bit?q?_Thierry_Reding_=3Cthierry=2Ereding=40gmail=2Ecom=3E=2C_Phi?= =?unknown-8bit?q?lipp_Zabel_=3Cp=2Ezabel=40pengutronix=2Ede=3E=2C_Sam_Ravnb?= =?unknown-8bit?q?org_=3Csam=40ravnborg=2Eorg=3E=2C?= =?unknown-8bit?q?_Rob_Herring_=3Crobh+dt=40kernel=2Eorg=3E=2C_Uwe_Kleine-K?= =?unknown-8bit?q?=C3=B6nig_=3Cu=2Ekleine-koenig=40pengutronix=2Ede=3E=2C?= =?unknown-8bit?q?_Chun-Kuang_Hu_=3Cchunkuang=2Ehu=40kernel=2Eorg=3E=2C_Matth?= =?unknown-8bit?q?ias_Brugger_=3Cmatthias=2Ebgg=40gmail=2Ecom=3E=2C_David_Ai?= =?unknown-8bit?q?rlie_=3Cairlied=40gmail=2Ecom=3E=2C?= =?unknown-8bit?q?_Krzysztof_Kozlowski_=3Ckrzysztof=2Ekozlowski+dt=40linaro?= =?unknown-8bit?q?=2Eorg=3E=2C_Xinlei_Lee_=3Cxinlei=2Elee=40mediatek=2Ecom?= =?unknown-8bit?q?=3E?= X-Mailer: b4 0.10.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=1648; i=amergnat@baylibre.com; h=from:subject:message-id; bh=ZIT7zMlD8Ybmnc0MAE48dSiLfIIrFPqxzQFOQLpl7hE=; b=owEBbQKS/ZANAwAKAStGSZ1+MdRFAcsmYgBkCeu+G0qVP9OBtyeMgMvHIxMf6oq0XMUO3rJqXik3 LjvSat6JAjMEAAEKAB0WIQQjG17X8+qqcA5g/osrRkmdfjHURQUCZAnrvgAKCRArRkmdfjHURZfED/ 414WwVYTAUFUxJE4CwHKrWcmoCVewOA/dd32LBGVdTz8vaKpH+2d1a5N9ovuTY4GW3H8kjpVJORADx 4Xmkf/2xqpoSp2G1tnQjX7gpPaiW1qEJmk0ItcAcOfzItflGiFnbiiYaVvZi6uigXBr77DusoqtZ2e 2d7TuAG86s+vZrISj3CfXsnZY6GOwMBoIz++ha8QV1WUuXMOE53gUBKUt8VSakC9Tj1HYP4L3UBox8 G2MrlJr/2NjismzZdJ1UEThjH3/kp9qZMJKNNDkimfX21jxvr6owH+AiEMBIM8bC3W6KAfidyapQn8 XzaXRfinr5+s/OPzcMvcJJhJwuZjsEpb1OQRZ5JSElVpYzvEwnvJ+6ZZC0XpgX721HbW3zE8UUMpSP JSFkEn5NCpZ0FAbhlcKPn6yH0mzb5VO5I9n9PLHamCgcjmpBB3UZ+GKK7BbC5+14TZk4XUYM1S8UlQ JPa6sj8/2jjLZWZDPvHGTgXyZcYf3kbHU+/HphFNdWttWktnm3y8MXF5oUdWXieUsGzEkrLokGPp24 RmmcS/f5beFeHXDKvVrBW00w7qJst/aHHOCXlUowrBgYy0cAHPBXdEX4sC7IKiwqb2GQbfs7+bUWMz H/TVDMy4mN1ewwGa0HahS+2c91dONKmtyyo/WEvhj3C/5kMC6yCiAXSWI7bA== X-Developer-Key: i=amergnat@baylibre.com; a=openpgp; fpr=231B5ED7F3EAAA700E60FE8B2B46499D7E31D445 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Neil Armstrong , Alexandre Mergnat , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-pwm@vger.kernel.org, Fabien Parent , devicetree@vger.kernel.org, linux-mediatek@lists.infradead.org, Guillaume La Roque , linux-arm-kernel@lists.infradead.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" The Startek KD070FHFID015 is a 7-inch TFT LCD display with a resolution of 1024 x 600 pixels. Signed-off-by: Alexandre Mergnat --- .../display/panel/startek,kd070fhfid015.yaml | 55 ++++++++++++++++++++++ 1 file changed, 55 insertions(+) diff --git a/Documentation/devicetree/bindings/display/panel/startek,kd070fhfid015.yaml b/Documentation/devicetree/bindings/display/panel/startek,kd070fhfid015.yaml new file mode 100644 index 000000000000..5fde552838e5 --- /dev/null +++ b/Documentation/devicetree/bindings/display/panel/startek,kd070fhfid015.yaml @@ -0,0 +1,55 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/display/panel/startek,kd070fhfid015.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Startek Electronic Technology Co. kd070fhfid015 7 inch TFT LCD panel + +maintainers: + - Alexandre Mergnat + +allOf: + - $ref: panel-common.yaml# + +properties: + compatible: + const: startek,kd070fhfid015 + + dcdc-gpios: true + + height-mm: + const: 119 + + iovcc-supply: + description: Reference to the regulator powering the panel IO pins. + + reg: + maxItems: 1 + description: DSI virtual channel + + reset-gpios: true + + pinctrl-0: true + + pinctrl-names: true + + port: true + + power-supply: true + + width-mm: + const: 178 + +additionalProperties: false + +required: + - compatible + - dcdc-gpios + - iovcc-supply + - reg + - reset-gpios + - port + - power-supply + +... From patchwork Thu Mar 9 14:23:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Mergnat X-Patchwork-Id: 13167552 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7891BC64EC4 for ; Thu, 9 Mar 2023 14:23:27 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 9B30310E829; Thu, 9 Mar 2023 14:23:19 +0000 (UTC) Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) by gabe.freedesktop.org (Postfix) with ESMTPS id B343210E829 for ; Thu, 9 Mar 2023 14:23:10 +0000 (UTC) Received: by mail-wm1-x334.google.com with SMTP id l7-20020a05600c4f0700b003e79fa98ce1so1358680wmq.2 for ; Thu, 09 Mar 2023 06:23:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; t=1678371790; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=kcvQAWEayhngzcYvtkzp+4NmbmEVpDMUSMsfJ+/Nd7c=; b=inzIoiESMhVJPKDWmSnc9rq2d5ZEHWXybJCCmws/aUqZ9N63Gok7tgyN44uwDRAZ3Q UM4gzSxTfDcSBaxMS84sw5MD+7rZnKrDnp2i04kTZvORGGNimCHpvo4G6GY20OQOhkIN IDFZTcueS7wSuNuCwG+hk5AlFsHPvBA/cPG/OUFPLRcQHyrFeMgOUf7co+dooowrPCu4 V1Wfb9jkKcAUFRKsbuIeof9fKBPA/WABcUpfsDVXw6BDmgtKrrYYQTEQ6QxUqL4U/PK5 AH2CkaJZPkbFEAsGXHTQdaxUfkQWgBd0TXAJ55fhXB0vP9OEQcyHGEkj1K2PUntekLDR BMTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678371790; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=kcvQAWEayhngzcYvtkzp+4NmbmEVpDMUSMsfJ+/Nd7c=; b=LUbzIjLdD1Z8kiYHZOr7+GW+8kbSpT5mTpm9g/jzCBRh+tAFDgcTDygrkpt+Y8/3ld aCpkcez9HvqQyxSGqfJLDgWD2nsVGmaaZUOjmhILZVSakcyykAZlCVxj4/GOdTNSugqI pZykfHoZUO86hkfWoCDY7vWSTyGo5S1tzBjVyTbhvP8vvylR2dk1hmCLWjp4ECWHW5oJ 8HZZDg7fV7eiFqoNcSqteQVv56eEzHZ1b8O1YEmIiYcwLWRA3lHvR0u4Ty8oPAnq25Rh SfvztiglFRrYO+pXUCkU6kQho3sSCNITZCHF5hLVNQay5Y+WgHrDWFuM/TpjHahQhos5 d+vg== X-Gm-Message-State: AO0yUKWeXexfBYUS1SziYYFTar6tR+adGJqUU7QXT3A3EWrPnYoqYQqs HzdYH1B8KdwT2HfxOSW9Jd+Z3w== X-Google-Smtp-Source: AK7set8M1EUCCZusFz4TtaKBc+jWDVOuRwllEILSYeHIvDvv8PEH9RZ87dmG5kiHvo7WJQGlJ75mhQ== X-Received: by 2002:a05:600c:35cf:b0:3d0:6a57:66a5 with SMTP id r15-20020a05600c35cf00b003d06a5766a5mr19297104wmq.0.1678371790305; Thu, 09 Mar 2023 06:23:10 -0800 (PST) Received: from [127.0.1.1] (158.22.5.93.rev.sfr.net. [93.5.22.158]) by smtp.googlemail.com with ESMTPSA id x22-20020a1c7c16000000b003e8dc7a03basm2772434wmc.41.2023.03.09.06.23.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Mar 2023 06:23:09 -0800 (PST) From: Alexandre Mergnat Date: Thu, 09 Mar 2023 15:23:01 +0100 Subject: [PATCH 12/21] dt-bindings: pwm: add power-domains property MIME-Version: 1.0 Message-Id: <20230220-display-v1-12-45cbc68e188b@baylibre.com> References: <20230220-display-v1-0-45cbc68e188b@baylibre.com> In-Reply-To: <20230220-display-v1-0-45cbc68e188b@baylibre.com> To: =?unknown-8bit?b?RGFuaWVsIFZldHRlciA8ZGFuaWVsQGZmd2xsLmNoPiwgQ0sgSHUg?= =?unknown-8bit?b?PGNrLmh1QG1lZGlhdGVrLmNvbT4sIEppdGFvIFNoaSA8aml0YW8uc2hp?= =?unknown-8bit?b?QG1lZGlhdGVrLmNvbT4s?= =?unknown-8bit?q?_Thierry_Reding_=3Cthierry=2Ereding=40gmail=2Ecom=3E=2C_Phi?= =?unknown-8bit?q?lipp_Zabel_=3Cp=2Ezabel=40pengutronix=2Ede=3E=2C_Sam_Ravnb?= =?unknown-8bit?q?org_=3Csam=40ravnborg=2Eorg=3E=2C?= =?unknown-8bit?q?_Rob_Herring_=3Crobh+dt=40kernel=2Eorg=3E=2C_Uwe_Kleine-K?= =?unknown-8bit?q?=C3=B6nig_=3Cu=2Ekleine-koenig=40pengutronix=2Ede=3E=2C?= =?unknown-8bit?q?_Chun-Kuang_Hu_=3Cchunkuang=2Ehu=40kernel=2Eorg=3E=2C_Matth?= =?unknown-8bit?q?ias_Brugger_=3Cmatthias=2Ebgg=40gmail=2Ecom=3E=2C_David_Ai?= =?unknown-8bit?q?rlie_=3Cairlied=40gmail=2Ecom=3E=2C?= =?unknown-8bit?q?_Krzysztof_Kozlowski_=3Ckrzysztof=2Ekozlowski+dt=40linaro?= =?unknown-8bit?q?=2Eorg=3E=2C_Xinlei_Lee_=3Cxinlei=2Elee=40mediatek=2Ecom?= =?unknown-8bit?q?=3E?= X-Mailer: b4 0.10.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=1514; i=amergnat@baylibre.com; h=from:subject:message-id; bh=kJNESBJYj6hSPaR8ChRMowMRY/WR5pgSKuWA0748F5c=; b=owEBbQKS/ZANAwAKAStGSZ1+MdRFAcsmYgBkCeu+nVEDPPb6Gdh+AgHCjdauH29RygOJmjr7a8NR ctAw6CiJAjMEAAEKAB0WIQQjG17X8+qqcA5g/osrRkmdfjHURQUCZAnrvgAKCRArRkmdfjHURa2PD/ 9YzFDJCjDZcgP7CODOpyVYt/cRNXs9p9yTLCepRSRWMz1elUPgasCjdl78j9LEhjdZnZJ7+bWsn4sd 3pWRltutH9daZALNPyfqq2TuQqg2DxDkAhg25yaJg4DwtBIRfDCPbUYefAfg7dHVq/nQTgp+2Ugwf7 y7obSg5dgNYB+cP8n+8YVEIcW/X9+AzyMDSlM9VLOfhxGwuY1Qhw0Lb35fyj1BsQuIuJZMTVFXo+n4 z9G9Irii/MF2/kbweRjOX4bhoREmwPMBTa88ARJjWfafCOB0nN0g30wrvcGeaEoKHF58zv8slZkx8n Gyl5636sKO7qpvWuBsalHVEw9zOD3mrWD/B1Z+FlQ5VCpspfnMUP1jW22OUwTjDoam/z7yM3iBPrDN 7eghxhBtmd7N4z8jtmXJD1i+1Z4nwaLH6huBDUM7+2OlQzh7FvXQX3XKB5e640YK0GNoLlkBsvkcXD AX3xJvntzyAA4LpSDjGV5jQqE4NTbZQLAXOYQsACtSmX+Jbdp6OJPt2JPGj08J9OelBjwreAL88OV+ hyU5UJ7QxvojlmM/YmXvErdnrwpLlM3r7nCNFKwbRtF5LNgyJgu+QORw0+SJguftIAO1L150JGdBd7 0nLCkQfC7AGFO4tY/0f/dTUpmB8+P5wIZZpU9SrOuiqIk1Ld5leouoE5JK5w== X-Developer-Key: i=amergnat@baylibre.com; a=openpgp; fpr=231B5ED7F3EAAA700E60FE8B2B46499D7E31D445 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Neil Armstrong , Alexandre Mergnat , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-pwm@vger.kernel.org, Fabien Parent , devicetree@vger.kernel.org, linux-mediatek@lists.infradead.org, Guillaume La Roque , linux-arm-kernel@lists.infradead.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" According to the Mediatek datasheet, the display PWM block has a power domain. Signed-off-by: Alexandre Mergnat --- Documentation/devicetree/bindings/pwm/mediatek,pwm-disp.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Documentation/devicetree/bindings/pwm/mediatek,pwm-disp.yaml b/Documentation/devicetree/bindings/pwm/mediatek,pwm-disp.yaml index 0088bc8e7c54..8a0005a8bf40 100644 --- a/Documentation/devicetree/bindings/pwm/mediatek,pwm-disp.yaml +++ b/Documentation/devicetree/bindings/pwm/mediatek,pwm-disp.yaml @@ -51,6 +51,12 @@ properties: - const: main - const: mm + power-domains: + maxItems: 1 + description: A phandle and PM domain specifier as defined by bindings of + the power controller specified by phandle. See + Documentation/devicetree/bindings/power/power-domain.yaml for details. + required: - compatible - reg @@ -65,6 +71,7 @@ examples: #include #include #include + #include pwm0: pwm@1401e000 { compatible = "mediatek,mt8173-disp-pwm"; @@ -73,4 +80,5 @@ examples: clocks = <&mmsys CLK_MM_DISP_PWM026M>, <&mmsys CLK_MM_DISP_PWM0MM>; clock-names = "main", "mm"; + power-domains = <&spm MT8173_POWER_DOMAIN_MM>; }; From patchwork Thu Mar 9 14:23:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Mergnat X-Patchwork-Id: 13167550 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id EDD2BC742A7 for ; Thu, 9 Mar 2023 14:23:22 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id BC45710E827; Thu, 9 Mar 2023 14:23:18 +0000 (UTC) Received: from mail-wm1-x32b.google.com (mail-wm1-x32b.google.com [IPv6:2a00:1450:4864:20::32b]) by gabe.freedesktop.org (Postfix) with ESMTPS id EFB5510E816 for ; Thu, 9 Mar 2023 14:23:12 +0000 (UTC) Received: by mail-wm1-x32b.google.com with SMTP id j19-20020a05600c191300b003eb3e1eb0caso3723938wmq.1 for ; Thu, 09 Mar 2023 06:23:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; t=1678371791; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=0qqXf5bg2DjJNJhs1P6NgIMh3qzJNF/ahtx7g412ZUk=; b=ndfvLtOXYALHaDJoXtdSp49ENX7vae8EKYXuZFkLtNANAPIAw34WH2YzswD/Nooya8 3ebhfQvLhNLuXY991eVi0dufC1kR0NJQjyFafWcknNRvOk6qWvsjPYMTnnLUGOhnRPxp XBamqA2qJLM5tfm8kDGm/L3lZSPFFDoO0vSgdKDq0rpU9S7KIX/NQrw3scveeaH0aocX PWrHMSaBct8mxhXYatGIDHQaJ87pKP31naX6KtwQWEONyI7U3fNqB5fivuL17n607fMD 9NN187wt/KupgjKichvlHjv+ExNGdwvTXMVQfMAIt24lt1BRmC+LTst+jCBPSz1bFigX gtCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678371791; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=0qqXf5bg2DjJNJhs1P6NgIMh3qzJNF/ahtx7g412ZUk=; b=3bTabkwkNMCsu/SUJqBdicRBDviGpdqslhCza5j8LK8zjeLhIioi3U33AaKVjt9XrN bqZda/gOFESGHD6fvsJohWkIOB62b1UFkvE3yx8TNAPOkdm6TlMqrsuLXQJb1x31fk9T clMo41WOBUOpxagHCBX8sV5N/uKHryjMgHHWIosqFZlwAUggtF44D1aD3RFvbr5qBhhs Op8+7/l8y/dz7nGfPbmgqsYWXQr/tJAReJUA6nf6s/0p74c/2vYAhLYRcvbbiGSbgKTo qe5MGHRIPw8flZVF5hc6awfVIgGesOws958kSbo02Hi+puK6zHiCIzHiCkBB8asE8zBK n43Q== X-Gm-Message-State: AO0yUKXrfqnsi7MPBP0KxKAILDeHPt/NvLUajTeDWfxH8x24weoZVQyw JyMnrWhv0l0etmhcgpgz5HEjSg== X-Google-Smtp-Source: AK7set+ZmmzWQ3/OgN4ZN4jVYsGr7tlWPXJoWbP47hxERR2B4SJlxzP0Kn/jCQ5T5s3oDQcnLlQkow== X-Received: by 2002:a05:600c:470a:b0:3eb:2de9:8af1 with SMTP id v10-20020a05600c470a00b003eb2de98af1mr19799735wmo.32.1678371791471; Thu, 09 Mar 2023 06:23:11 -0800 (PST) Received: from [127.0.1.1] (158.22.5.93.rev.sfr.net. [93.5.22.158]) by smtp.googlemail.com with ESMTPSA id x22-20020a1c7c16000000b003e8dc7a03basm2772434wmc.41.2023.03.09.06.23.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Mar 2023 06:23:11 -0800 (PST) From: Alexandre Mergnat Date: Thu, 09 Mar 2023 15:23:02 +0100 Subject: [PATCH 13/21] dt-bindings: pwm: add binding for mt8365 SoC MIME-Version: 1.0 Message-Id: <20230220-display-v1-13-45cbc68e188b@baylibre.com> References: <20230220-display-v1-0-45cbc68e188b@baylibre.com> In-Reply-To: <20230220-display-v1-0-45cbc68e188b@baylibre.com> To: =?unknown-8bit?b?RGFuaWVsIFZldHRlciA8ZGFuaWVsQGZmd2xsLmNoPiwgQ0sgSHUg?= =?unknown-8bit?b?PGNrLmh1QG1lZGlhdGVrLmNvbT4sIEppdGFvIFNoaSA8aml0YW8uc2hp?= =?unknown-8bit?b?QG1lZGlhdGVrLmNvbT4s?= =?unknown-8bit?q?_Thierry_Reding_=3Cthierry=2Ereding=40gmail=2Ecom=3E=2C_Phi?= =?unknown-8bit?q?lipp_Zabel_=3Cp=2Ezabel=40pengutronix=2Ede=3E=2C_Sam_Ravnb?= =?unknown-8bit?q?org_=3Csam=40ravnborg=2Eorg=3E=2C?= =?unknown-8bit?q?_Rob_Herring_=3Crobh+dt=40kernel=2Eorg=3E=2C_Uwe_Kleine-K?= =?unknown-8bit?q?=C3=B6nig_=3Cu=2Ekleine-koenig=40pengutronix=2Ede=3E=2C?= =?unknown-8bit?q?_Chun-Kuang_Hu_=3Cchunkuang=2Ehu=40kernel=2Eorg=3E=2C_Matth?= =?unknown-8bit?q?ias_Brugger_=3Cmatthias=2Ebgg=40gmail=2Ecom=3E=2C_David_Ai?= =?unknown-8bit?q?rlie_=3Cairlied=40gmail=2Ecom=3E=2C?= =?unknown-8bit?q?_Krzysztof_Kozlowski_=3Ckrzysztof=2Ekozlowski+dt=40linaro?= =?unknown-8bit?q?=2Eorg=3E=2C_Xinlei_Lee_=3Cxinlei=2Elee=40mediatek=2Ecom?= =?unknown-8bit?q?=3E?= X-Mailer: b4 0.10.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=863; i=amergnat@baylibre.com; h=from:subject:message-id; bh=kwXNFyz1fOvgD/9TFtO82uJ5GaLXf7euau/EfzDL2xU=; b=owEBbQKS/ZANAwAKAStGSZ1+MdRFAcsmYgBkCeu+imHhsQxqvhUMp6CB6RG/Z7QlHhbuEB4qhZ/W nCE1zsmJAjMEAAEKAB0WIQQjG17X8+qqcA5g/osrRkmdfjHURQUCZAnrvgAKCRArRkmdfjHURZnDD/ 9HyJuOJIaZ0hAG+nBq1j7h6AbNDdMcZdzmMsE49awO2lTEJkNp4T+infRuAwKaenvmQT9F6zDOxBu0 o8RSBTjcQYdNMN7kVUuNL2o85Twc5+iWy0kqVR8UNgBpQmdMds6ecyW+Z5dc0R3J/ZAn4NcUN1j4eQ 2vueV9asBfmi6YN1FMJ2BKItAMlzNIqG9mQhYxbazbBaBnBESu3Oz159/le0uwfk/0fx4XXtfngJd6 vAySbbBaZnRVep2Ky115GP3RlNXblBeN+0RpA7vPaINCFIT/s6tvDrYHrhio43mPAoUDR+p+iQh8BY btjIAGQ9ot/n8GC7VFnPK4NRl8Fex+PisqrF35RsvAos46iLMGf6QR2M9edbehXHhJk3UzB0EbDX/r vNV6qLdoaTf6d4VQtVNIqHi866Abd71ICI8cQ6+TTvXde/InqVYIFZ3gCGacdqbfZg/YBvCTuYuh/7 LXFlMrLKWCgWOeymxy8eNDpvJgVxcloszuk+mj+YpimxwXMEvfbP4+97FhZoh7G0MynbBQO0s2HeDS 145C5YHOxv9Tq3ouPIoJ99UgRyTUvrmS3PtX/EFB7C399hmrZV3ucxamRojktLfRRUE6ZB6mJ8yoqi fuBJGEBkA6C9sDxeMsACrza/GY9JsEcYJs17H9A6KIBU7dD/VjFS97DnkmnA== X-Developer-Key: i=amergnat@baylibre.com; a=openpgp; fpr=231B5ED7F3EAAA700E60FE8B2B46499D7E31D445 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Neil Armstrong , Alexandre Mergnat , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-pwm@vger.kernel.org, Fabien Parent , devicetree@vger.kernel.org, linux-mediatek@lists.infradead.org, Guillaume La Roque , linux-arm-kernel@lists.infradead.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Display PWM for MT8365 is compatible with MT8183. Then, add MT8365 binding along with MT8183 SoC. Signed-off-by: Alexandre Mergnat Acked-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/pwm/mediatek,pwm-disp.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/pwm/mediatek,pwm-disp.yaml b/Documentation/devicetree/bindings/pwm/mediatek,pwm-disp.yaml index 8a0005a8bf40..889d2b376212 100644 --- a/Documentation/devicetree/bindings/pwm/mediatek,pwm-disp.yaml +++ b/Documentation/devicetree/bindings/pwm/mediatek,pwm-disp.yaml @@ -30,6 +30,7 @@ properties: - mediatek,mt8188-disp-pwm - mediatek,mt8192-disp-pwm - mediatek,mt8195-disp-pwm + - mediatek,mt8365-disp-pwm - const: mediatek,mt8183-disp-pwm reg: From patchwork Thu Mar 9 14:23:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Mergnat X-Patchwork-Id: 13167557 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 173E5C6FD1F for ; Thu, 9 Mar 2023 14:23:36 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 5471B10E834; Thu, 9 Mar 2023 14:23:24 +0000 (UTC) Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) by gabe.freedesktop.org (Postfix) with ESMTPS id 7037C10E827 for ; Thu, 9 Mar 2023 14:23:13 +0000 (UTC) Received: by mail-wm1-x334.google.com with SMTP id t25-20020a1c7719000000b003eb052cc5ccso3715225wmi.4 for ; Thu, 09 Mar 2023 06:23:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; t=1678371793; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=V27S5KvL1K2vWz8itNvO9k+w4B1SxfR+kJPCaUnFWDU=; b=330zcWuQ1eI0pJTDza3EkL27nNS6CiD3tAro858PFxmg4oIgpsFYyO5TYUdnzrkOzH ALl7GKmyWtJZOlh5t+2Tzuqa1admlGD7PvhfF40lGwmwlkzvi8abQES7Xx79Lzxf5jq1 f+L/ciiLoYzniNS1+FAh5dt+mvCN7ncjNiv7yO/KBDZZ0E6cWyVvsIU44GGgqRR39WIH 0FPunCr3WfT3mQNjFimeRf0wnylgGKonXSvS+SoyeKrqPrD1rpQZxNYgTKlsRm6Tu/aM 2u/2dayRPPdDp5DG8LZYTM26csKitL4sSy7wJ+blX2oYL/jU/lBHT+H7zVfOd7HrfSkH CYow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678371793; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=V27S5KvL1K2vWz8itNvO9k+w4B1SxfR+kJPCaUnFWDU=; b=5QXA5NijIdCOoC6Cx5zqEJAp+Om9lDai6T0N0Nnb2JO9FGyxLG5q74aijSYCSdO19a QyTsD6/k2U3gQk+9ZhkQaboTb36jz4qMeY2Q4ETfgdadx1T0vxQSosnUnw+PyyBaTGiN 8Ff6rosORTMAgyJNG1ztACerF25TTBM/s17ptbB9AUneiiqgGRoqk9I8W9NwXzhw2YmD tblf98M4Y+eaEvyZnuQUu6J4yQAKREuNnNka7P3Ie8VX46IC64Gf7t5oh1Yl2WV7BesV NyKt8h1wGMjewzS1bl6Z/sIXLzsp2hos3C5fVXXl/i0bSI/PS6RWzNTjcbH/MrwCqiCp yVhQ== X-Gm-Message-State: AO0yUKXsaefYeWkzfXu9hWD8vugayUBwLW9acN8NakJtN+fOJmwjJxXR rQpdb/uWB1IS2mc+Z9o5kGONxw== X-Google-Smtp-Source: AK7set+ozYT3+VYr7fmgCHW+FD3/4xEoCNIdmOuH3nx6ozTZLs0TLqzYcERfLzlv8Ia7Ap+cejAasw== X-Received: by 2002:a05:600c:a08:b0:3eb:5d17:8ddc with SMTP id z8-20020a05600c0a0800b003eb5d178ddcmr20488578wmp.18.1678371792947; Thu, 09 Mar 2023 06:23:12 -0800 (PST) Received: from [127.0.1.1] (158.22.5.93.rev.sfr.net. [93.5.22.158]) by smtp.googlemail.com with ESMTPSA id x22-20020a1c7c16000000b003e8dc7a03basm2772434wmc.41.2023.03.09.06.23.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Mar 2023 06:23:12 -0800 (PST) From: Alexandre Mergnat Date: Thu, 09 Mar 2023 15:23:03 +0100 Subject: [PATCH 14/21] dt-bindings: soc: mediatek: specify which compatible requires clocks property MIME-Version: 1.0 Message-Id: <20230220-display-v1-14-45cbc68e188b@baylibre.com> References: <20230220-display-v1-0-45cbc68e188b@baylibre.com> In-Reply-To: <20230220-display-v1-0-45cbc68e188b@baylibre.com> To: =?unknown-8bit?b?RGFuaWVsIFZldHRlciA8ZGFuaWVsQGZmd2xsLmNoPiwgQ0sgSHUg?= =?unknown-8bit?b?PGNrLmh1QG1lZGlhdGVrLmNvbT4sIEppdGFvIFNoaSA8aml0YW8uc2hp?= =?unknown-8bit?b?QG1lZGlhdGVrLmNvbT4s?= =?unknown-8bit?q?_Thierry_Reding_=3Cthierry=2Ereding=40gmail=2Ecom=3E=2C_Phi?= =?unknown-8bit?q?lipp_Zabel_=3Cp=2Ezabel=40pengutronix=2Ede=3E=2C_Sam_Ravnb?= =?unknown-8bit?q?org_=3Csam=40ravnborg=2Eorg=3E=2C?= =?unknown-8bit?q?_Rob_Herring_=3Crobh+dt=40kernel=2Eorg=3E=2C_Uwe_Kleine-K?= =?unknown-8bit?q?=C3=B6nig_=3Cu=2Ekleine-koenig=40pengutronix=2Ede=3E=2C?= =?unknown-8bit?q?_Chun-Kuang_Hu_=3Cchunkuang=2Ehu=40kernel=2Eorg=3E=2C_Matth?= =?unknown-8bit?q?ias_Brugger_=3Cmatthias=2Ebgg=40gmail=2Ecom=3E=2C_David_Ai?= =?unknown-8bit?q?rlie_=3Cairlied=40gmail=2Ecom=3E=2C?= =?unknown-8bit?q?_Krzysztof_Kozlowski_=3Ckrzysztof=2Ekozlowski+dt=40linaro?= =?unknown-8bit?q?=2Eorg=3E=2C_Xinlei_Lee_=3Cxinlei=2Elee=40mediatek=2Ecom?= =?unknown-8bit?q?=3E?= X-Mailer: b4 0.10.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=1598; i=amergnat@baylibre.com; h=from:subject:message-id; bh=0/sDiX4LVPAp/ORjzlykWzmFkIUKPbZkKZgeehvSSS8=; b=owEBbQKS/ZANAwAKAStGSZ1+MdRFAcsmYgBkCeu+S568lIEHHFVVzT7AxgJIhu0UcOZErtd2a/WI ARzoBjmJAjMEAAEKAB0WIQQjG17X8+qqcA5g/osrRkmdfjHURQUCZAnrvgAKCRArRkmdfjHURVHND/ 4lG+29rGq6SrgR2EsMecuTDpP5JQLgec8RtkNNvpDmwff13asS+8EIp6zntOA6EGx0ZFTGsqgKbUal UhO3PDb+5GAGF+fR4h/vVo/9dBzgaJfeC2laY1LPKjf0rVzb0L9eSKgg1cBfxk0NVkkNKUY+5QX1Wo bG7EOr1CxaEyILqv6BcMkwACgB5xr73uvlVgu3UyH97fMWLE4H5kyPKG5k/B6VBojkLs4jmxkBZ+hF yxVSoe1fdWj9ZtLApW5i6oXVlxagBxLVdCDpnl8a4KclUKWitJ1Zh1jvOxl8ENBNNSs1K4EY5cK/EM idnI5RODT4ekUztJ96mpwtDfyf3CW5Gkq7OvK+T1QBkHKi7cxWdcrZJVqWas4Q14XURvyDPUAxcSww f2/JdoL4vWHgb4tfRZHhLE66D7eiFhSymurDqyYEbfpXSkkYuQOEuBQZ26odiVVdzneGByZ7f2Ns+4 k0XGdQrs52QjZCHMPw9WJd5KZQy/Am2lFfJmurSQxF9wqX48Nnk2SIyd6S5h31dJTHGaic9C9eg/0g R8bVL0thuPclglLeth2ubZsJNqjXExMyvHBikkW93V2aqrqK30V44ngsGb/7ObMI0w1lvfTIUtzEaU JoB370ECUdcNd8xj3j0aGnlbiUlBn+xfhOZKQB7N759wWIjJPfO5wd97qVKw== X-Developer-Key: i=amergnat@baylibre.com; a=openpgp; fpr=231B5ED7F3EAAA700E60FE8B2B46499D7E31D445 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Neil Armstrong , Alexandre Mergnat , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-pwm@vger.kernel.org, Fabien Parent , devicetree@vger.kernel.org, linux-mediatek@lists.infradead.org, Guillaume La Roque , linux-arm-kernel@lists.infradead.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" According to the mtk-mutex.c driver and the SoC DTS, the clock isn't required to work properly for some of MTK SoC. Improve the clock requirement by adding a condition which is function to the compatible. Signed-off-by: Alexandre Mergnat --- .../bindings/soc/mediatek/mediatek,mutex.yaml | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/soc/mediatek/mediatek,mutex.yaml b/Documentation/devicetree/bindings/soc/mediatek/mediatek,mutex.yaml index 9241e5fc7cff..ca0ca549257d 100644 --- a/Documentation/devicetree/bindings/soc/mediatek/mediatek,mutex.yaml +++ b/Documentation/devicetree/bindings/soc/mediatek/mediatek,mutex.yaml @@ -69,12 +69,30 @@ properties: 4 arguments defined in this property. Each GCE subsys id is mapping to a client defined in the header include/dt-bindings/gce/-gce.h. +allOf: + - if: + properties: + compatible: + contains: + enum: + - mediatek,mt2701-disp-mutex + - mediatek,mt2712-disp-mutex + - mediatek,mt6795-disp-mutex + - mediatek,mt8173-disp-mutex + - mediatek,mt8186-disp-mutex + - mediatek,mt8186-mdp3-mutex + - mediatek,mt8192-disp-mutex + - mediatek,mt8195-disp-mutex + then: + required: + - clocks + + required: - compatible - reg - interrupts - power-domains - - clocks additionalProperties: false From patchwork Thu Mar 9 14:23:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Mergnat X-Patchwork-Id: 13167559 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 16D41C64EC4 for ; Thu, 9 Mar 2023 14:23:39 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 7F70A10E82E; Thu, 9 Mar 2023 14:23:25 +0000 (UTC) Received: from mail-wm1-x32d.google.com (mail-wm1-x32d.google.com [IPv6:2a00:1450:4864:20::32d]) by gabe.freedesktop.org (Postfix) with ESMTPS id 9F07610E816 for ; Thu, 9 Mar 2023 14:23:14 +0000 (UTC) Received: by mail-wm1-x32d.google.com with SMTP id az36so1275034wmb.1 for ; Thu, 09 Mar 2023 06:23:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; t=1678371794; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=LEWU70w2MhwOSDCiluJ5jAZTA7oYz0fVwDWXSQuba3I=; b=Uy9GmSnzmwC8W2IQth4jvzJVz4DF8aIBvb1NDx8cQp1Ve2zLzT8bOKFqLx+YxOjXt1 cQFx5XrS7WwY8coUggeH8EGv8ydWk88riWIo4r3Gze1NjYXUQhX2jl4Ux5DeEpUZzVph +C6VLB+DAcYcxpcJeGEfZcan3vTUk3jw8yUNWr6fhCLz+rGkyOT3f5ecdKbDXbtZT9Gn 80qpXiLU+aGPdAPwXU8f7VBku4H1EisWk9tJN3ssm1m7VfxpKIpAbZGjOMOX9uWiRtCf K3wijJSfKx/SKddo5lieR4EJ+RpsnvVOklyUp3pDR/NS3maet6wEjXWrv4Y1w0zJ+4lz c6uA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678371794; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=LEWU70w2MhwOSDCiluJ5jAZTA7oYz0fVwDWXSQuba3I=; b=DHidOUdjHAKLelpC/sBzAIE+qb11yYUDa0NKFtG1afBPZglg8NJfyBTFwKNyZB4aot YmO2vIQvVPGnhGJ9/3AKtm28h5Agf1Iz2jgEIAU3bJukcdt0tQPXkKdeHNptEPl0Htvt FCrrQpk3W2P3NZt+b6VgRa1Y4SF8dfyy6c6hl2bpCbMORiFrTBgH0W5x04alARZrYkpa sGg3qdNVWXMgBtBGlZCecgnZoiHfeUsT01x1K8rk6awmHNHX6wCNcu4R3UeximKaKF0H gZFLOWskS63AJaLKdTnmMbmSWO3uDKPVE6GMdanV+CFZMmbslFO0MosVzLhILNtC0Q04 RZeg== X-Gm-Message-State: AO0yUKUdo1p2cJZAMRf4Zu+ge4l6RjKZGBUH5vbACtgTiV3M7mWoeOu3 r6khb/3qHMPsy/BhgODj/tYy4A== X-Google-Smtp-Source: AK7set8PuvmkXWL+wpIKlle+LrJGYew2mgPn5qNgfXuV9WIQ5mVxYy9ir/mXx1rwJ2BDwYo88r9NxQ== X-Received: by 2002:a05:600c:4e92:b0:3e2:5c3:bcfc with SMTP id f18-20020a05600c4e9200b003e205c3bcfcmr20314611wmq.18.1678371794145; Thu, 09 Mar 2023 06:23:14 -0800 (PST) Received: from [127.0.1.1] (158.22.5.93.rev.sfr.net. [93.5.22.158]) by smtp.googlemail.com with ESMTPSA id x22-20020a1c7c16000000b003e8dc7a03basm2772434wmc.41.2023.03.09.06.23.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Mar 2023 06:23:13 -0800 (PST) From: Alexandre Mergnat Date: Thu, 09 Mar 2023 15:23:04 +0100 Subject: [PATCH 15/21] dt-bindings: soc: mediatek: add display mutex for MT8365 SoC MIME-Version: 1.0 Message-Id: <20230220-display-v1-15-45cbc68e188b@baylibre.com> References: <20230220-display-v1-0-45cbc68e188b@baylibre.com> In-Reply-To: <20230220-display-v1-0-45cbc68e188b@baylibre.com> To: =?unknown-8bit?b?RGFuaWVsIFZldHRlciA8ZGFuaWVsQGZmd2xsLmNoPiwgQ0sgSHUg?= =?unknown-8bit?b?PGNrLmh1QG1lZGlhdGVrLmNvbT4sIEppdGFvIFNoaSA8aml0YW8uc2hp?= =?unknown-8bit?b?QG1lZGlhdGVrLmNvbT4s?= =?unknown-8bit?q?_Thierry_Reding_=3Cthierry=2Ereding=40gmail=2Ecom=3E=2C_Phi?= =?unknown-8bit?q?lipp_Zabel_=3Cp=2Ezabel=40pengutronix=2Ede=3E=2C_Sam_Ravnb?= =?unknown-8bit?q?org_=3Csam=40ravnborg=2Eorg=3E=2C?= =?unknown-8bit?q?_Rob_Herring_=3Crobh+dt=40kernel=2Eorg=3E=2C_Uwe_Kleine-K?= =?unknown-8bit?q?=C3=B6nig_=3Cu=2Ekleine-koenig=40pengutronix=2Ede=3E=2C?= =?unknown-8bit?q?_Chun-Kuang_Hu_=3Cchunkuang=2Ehu=40kernel=2Eorg=3E=2C_Matth?= =?unknown-8bit?q?ias_Brugger_=3Cmatthias=2Ebgg=40gmail=2Ecom=3E=2C_David_Ai?= =?unknown-8bit?q?rlie_=3Cairlied=40gmail=2Ecom=3E=2C?= =?unknown-8bit?q?_Krzysztof_Kozlowski_=3Ckrzysztof=2Ekozlowski+dt=40linaro?= =?unknown-8bit?q?=2Eorg=3E=2C_Xinlei_Lee_=3Cxinlei=2Elee=40mediatek=2Ecom?= =?unknown-8bit?q?=3E?= X-Mailer: b4 0.10.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=777; i=amergnat@baylibre.com; h=from:subject:message-id; bh=u3hjgpLNyq3fO/ZOqA0QoZtYSn63eOyCvnFXS09oJ2o=; b=owEBbQKS/ZANAwAKAStGSZ1+MdRFAcsmYgBkCeu+IgHy0ePxrcf/vmepoKgZe4MirijpQmR5gftR LJkifzKJAjMEAAEKAB0WIQQjG17X8+qqcA5g/osrRkmdfjHURQUCZAnrvgAKCRArRkmdfjHURZW8D/ 4sDyGRtvesianVRgQMTi2XL9jhn8BlDK0xSC5oALNwkWT/4J0u0odLvyrWRWjdPnQTkAAaYi3NiEuw Iz6JvqNM3uisoI++joMSoeB3Ul834EbIRaQnHdUX/pzl8IHQaQHZYPmMKQwBGlge3cVI9Kbdw1ulHL PDW8JHzkAZo6D5vbki5sMTe14J+m1by+SQcPAc+Er0xkZZIN53bI7/bOSqJf9fzVfOxWTx+CsZLUgo zFgSLg7XBf64OSETjMBXvB7QIvWSU8UveRGIvHzbCFxDr1/Ps7WbrPfvClqmIxOgymXaFnhKN1Vinw GHOQgWF+IFIL6Ns4RCq7D7nEnRT0Ed829LLoEg19BPVe6fe8Km+cr16QerYBlWAxBgN2nuazTy2+Ig E88HbSybqrfiEvOnUtMaTOqofvDZ1JHudxw+MYdgHmiNiRn1Z3P+Iwnr7IrEmoz153kJdJfmmiWMDE 00fXsXX+cXZ4VXXbTKYdxaNGfSrw/hAH8Ln1iRo3rk6KqYiQwYAXZWysb+1idgQ13oUvWIEfWfDEt+ 35j6SYoPDMR/PEtKR7zokgwtc1GGNY7j+rDv/I5ZFplyHpnaaxEiYOnlIyVxBzIEE4933UTefedLAa DpOu5gQX726EX6wBi+MllBBCeg7wiN8gj6weycq9ujj994l6p41Gl9Psbnkw== X-Developer-Key: i=amergnat@baylibre.com; a=openpgp; fpr=231B5ED7F3EAAA700E60FE8B2B46499D7E31D445 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Neil Armstrong , Alexandre Mergnat , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-pwm@vger.kernel.org, Fabien Parent , devicetree@vger.kernel.org, linux-mediatek@lists.infradead.org, Guillaume La Roque , linux-arm-kernel@lists.infradead.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Add compatible for the MT8365 SoC. Signed-off-by: Alexandre Mergnat Acked-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/soc/mediatek/mediatek,mutex.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/soc/mediatek/mediatek,mutex.yaml b/Documentation/devicetree/bindings/soc/mediatek/mediatek,mutex.yaml index ca0ca549257d..931d66893dff 100644 --- a/Documentation/devicetree/bindings/soc/mediatek/mediatek,mutex.yaml +++ b/Documentation/devicetree/bindings/soc/mediatek/mediatek,mutex.yaml @@ -34,6 +34,7 @@ properties: - mediatek,mt8186-mdp3-mutex - mediatek,mt8192-disp-mutex - mediatek,mt8195-disp-mutex + - mediatek,mt8365-disp-mutex reg: maxItems: 1 From patchwork Thu Mar 9 14:23:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Mergnat X-Patchwork-Id: 13167561 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6ADE0C64EC4 for ; Thu, 9 Mar 2023 14:23:53 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 1B5BB10E81E; Thu, 9 Mar 2023 14:23:52 +0000 (UTC) Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) by gabe.freedesktop.org (Postfix) with ESMTPS id 004B510E816 for ; Thu, 9 Mar 2023 14:23:15 +0000 (UTC) Received: by mail-wm1-x32c.google.com with SMTP id bg16-20020a05600c3c9000b003eb34e21bdfso3746732wmb.0 for ; Thu, 09 Mar 2023 06:23:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; t=1678371795; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=rrHyOJGVVKPZphnDrvAxKhanBrrAGjAR34WdSO60jdc=; b=Fu4swfnOqXhFan7iDucc7xb3KTvLfmD3rY0dO4+hx6VNDXsQ6VrJLAEg0Kd/A92kEb sTkCKKy3tROj+UX1Yo03rPVGOfrX7nX5uM7DMCkSUjijhW+5JygVuZuYZycc8u7oHNl5 LP7LhiW6x+HzXGTX715ftpirU9KGJt0SRBJJUBoN79Bq51VhUTtUZSYTZRAo8s5F7lV1 k4tDCiNySdZgF/scrr8YXJ2ScL4Pi3y60wbCmA9SkxN0icAELyWorTglAcImb2sLNOak FcvQMWp/O3Ye4GalUaevFyoNmD+x+SqtdjhOrzwhoehs/hfZ/q5D9qntTy11ElE5iso4 gKCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678371795; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=rrHyOJGVVKPZphnDrvAxKhanBrrAGjAR34WdSO60jdc=; b=6dVsMyfjPHFZuoArkiK6zVKQ4FukWGyRm4qmbTlj7iTpXAlH3VSZEB7HTD6fONx7b3 foB/qY99wpN6TRdynVIybzpSIb0YhNW+6CZM99g7uAbdQkA+fKTyINqsfq6BDjOLDq28 G5i8JLsxVzottn/XLKJwT1rT+RZkbjtYpjtCUbKhldp2oArWfa8P+qZyrT6LFViydcp1 OuNVc7ofxtHmPG0sYzM40toXymbhILi1pjUa0N5vR2gBYen7kos5naYeeDL40K2Rp9rj k2lCQmRUvvs4AAGK8ap3SdpgYqzhBQxcW3FmzdzdVi7cizguXTyb9TFIBjxS6dXf0Ceb 5pmQ== X-Gm-Message-State: AO0yUKVJEc84oWXlPtJtEsEZXocyqbyPgZ8wwiqYBRrXQNmJUie9w6qm axiOpQvN8U5ict4CmjJtLfRQbg== X-Google-Smtp-Source: AK7set8QzTG7TmgZJszNonlu47Y/YSVtxnjb2KJag5vLlR/L0+qe97KJTCRO3KumfdwqRjyTKbKa4Q== X-Received: by 2002:a05:600c:548d:b0:3eb:2da4:efe7 with SMTP id iv13-20020a05600c548d00b003eb2da4efe7mr19116206wmb.11.1678371795392; Thu, 09 Mar 2023 06:23:15 -0800 (PST) Received: from [127.0.1.1] (158.22.5.93.rev.sfr.net. [93.5.22.158]) by smtp.googlemail.com with ESMTPSA id x22-20020a1c7c16000000b003e8dc7a03basm2772434wmc.41.2023.03.09.06.23.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Mar 2023 06:23:15 -0800 (PST) From: Alexandre Mergnat Date: Thu, 09 Mar 2023 15:23:05 +0100 Subject: [PATCH 16/21] arm64: dts: mediatek: add display blocks support for the MT8365 SoC MIME-Version: 1.0 Message-Id: <20230220-display-v1-16-45cbc68e188b@baylibre.com> References: <20230220-display-v1-0-45cbc68e188b@baylibre.com> In-Reply-To: <20230220-display-v1-0-45cbc68e188b@baylibre.com> To: =?unknown-8bit?b?RGFuaWVsIFZldHRlciA8ZGFuaWVsQGZmd2xsLmNoPiwgQ0sgSHUg?= =?unknown-8bit?b?PGNrLmh1QG1lZGlhdGVrLmNvbT4sIEppdGFvIFNoaSA8aml0YW8uc2hp?= =?unknown-8bit?b?QG1lZGlhdGVrLmNvbT4s?= =?unknown-8bit?q?_Thierry_Reding_=3Cthierry=2Ereding=40gmail=2Ecom=3E=2C_Phi?= =?unknown-8bit?q?lipp_Zabel_=3Cp=2Ezabel=40pengutronix=2Ede=3E=2C_Sam_Ravnb?= =?unknown-8bit?q?org_=3Csam=40ravnborg=2Eorg=3E=2C?= =?unknown-8bit?q?_Rob_Herring_=3Crobh+dt=40kernel=2Eorg=3E=2C_Uwe_Kleine-K?= =?unknown-8bit?q?=C3=B6nig_=3Cu=2Ekleine-koenig=40pengutronix=2Ede=3E=2C?= =?unknown-8bit?q?_Chun-Kuang_Hu_=3Cchunkuang=2Ehu=40kernel=2Eorg=3E=2C_Matth?= =?unknown-8bit?q?ias_Brugger_=3Cmatthias=2Ebgg=40gmail=2Ecom=3E=2C_David_Ai?= =?unknown-8bit?q?rlie_=3Cairlied=40gmail=2Ecom=3E=2C?= =?unknown-8bit?q?_Krzysztof_Kozlowski_=3Ckrzysztof=2Ekozlowski+dt=40linaro?= =?unknown-8bit?q?=2Eorg=3E=2C_Xinlei_Lee_=3Cxinlei=2Elee=40mediatek=2Ecom?= =?unknown-8bit?q?=3E?= X-Mailer: b4 0.10.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=7078; i=amergnat@baylibre.com; h=from:subject:message-id; bh=Wcti2dvDst5Omc+NFAWMgHvZj4frfA6jiTsXq3Dxas0=; b=owEBbQKS/ZANAwAKAStGSZ1+MdRFAcsmYgBkCeu+OIcpvewld8ZYN2Vbsrhev/msnpReDI48gZpB gUl99NiJAjMEAAEKAB0WIQQjG17X8+qqcA5g/osrRkmdfjHURQUCZAnrvgAKCRArRkmdfjHURV0jD/ 0RIKT8+GT66C2rUCUHwprqNN6l/IX34iGyrDryWBWohtZ/7DJsJ8UCohV1jdJsuBG8viNEtZRcU7qF 1tcaaiLIbEur70toCIzznb0C1PtwgZp3Uvuf+bFhTuw1VTSgRQPfHFa+L2RztqWtSJe9bQG1V+qIuv mihfSBmY0Tjjsi2WaibcwkgW7HQv8cc0iP9GC1jZWsLwzgExR9ei9iGpjISEISMDgNcsvtwrKrbaSK bbX5VKihbClnWTMCepLMARGxRpV0+l+fqG8NevMM7DE2/ve/RB5k11pepXm0OuehyG26Yc5k/8Sjm0 8cCwZaLmXz8s2UsiSqfx3+jBSv+kmtm5DS+FODBZ7O5qXOk5jWWrzAOHb7w01Off7kezBfJUCdd7LI aF0yB05160XrZYcusXahhOkg2CSLnQ2hTjRwhPGe19K3sAhGm96zywJvm+sH/feoKZfTky0vmNXoZb UhtfN8DW/8Y3RiCOeYPVt9hISjjhxY0lFj95mfmngjv6bbVv80iKwzTJNohLa0nd57fcbdkvAacQA1 7uvnw2WMFWdtpilWbEyNgx+0mVhy7V0pGvQemo2MzmnLX0piT+/zRHnU0e990eJwuyanYp6CAXkJdd 9BCP6ruVjONjuXVlUciJpk8oA17557gSpmRlJFv37I3AZ5rQVsfJ12Nhc2Sg== X-Developer-Key: i=amergnat@baylibre.com; a=openpgp; fpr=231B5ED7F3EAAA700E60FE8B2B46499D7E31D445 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Neil Armstrong , Alexandre Mergnat , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-pwm@vger.kernel.org, Fabien Parent , devicetree@vger.kernel.org, linux-mediatek@lists.infradead.org, Guillaume La Roque , linux-arm-kernel@lists.infradead.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" - Add aliases for each display components to help display drivers. - Add the Display Pulse Width Modulation (DISP_PWM) to provide PWM signals for the LED driver of mobile LCM. - Add the MIPI Display Serial Interface (DSI) PHY support. (up to 4-lane output) - Add the display mutex support. - Add the following display component support: - 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) Signed-off-by: Alexandre Mergnat --- arch/arm64/boot/dts/mediatek/mt8365.dtsi | 147 +++++++++++++++++++++++++++++++ 1 file changed, 147 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8365.dtsi b/arch/arm64/boot/dts/mediatek/mt8365.dtsi index 1034b652dd0f..49d8bf145933 100644 --- a/arch/arm64/boot/dts/mediatek/mt8365.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8365.dtsi @@ -8,6 +8,7 @@ #include #include #include +#include #include #include @@ -17,6 +18,19 @@ / { #address-cells = <2>; #size-cells = <2>; + aliases { + aal0 = &aal0; + ccorr0 = &ccorr0; + color0 = &color0; + dither0 = &dither0; + dpi0 = &dpi0; + dsi0 = &dsi0; + gamma0 = &gamma0; + ovl0 = &ovl0; + rdma0 = &rdma0; + rdma1 = &rdma1; + }; + cpus { #address-cells = <1>; #size-cells = <0>; @@ -481,6 +495,17 @@ spi: spi@1100a000 { status = "disabled"; }; + disp_pwm: pwm@1100e000 { + compatible = "mediatek,mt8365-disp-pwm", + "mediatek,mt8183-disp-pwm"; + reg = <0 0x1100e000 0 0x1000>; + clock-names = "main", "mm"; + clocks = <&topckgen CLK_TOP_DISP_PWM_SEL>, + <&infracfg CLK_IFR_DISP_PWM>; + power-domains = <&spm MT8365_POWER_DOMAIN_MM>; + #pwm-cells = <2>; + }; + i2c3: i2c@1100f000 { compatible = "mediatek,mt8365-i2c", "mediatek,mt8168-i2c"; @@ -580,6 +605,15 @@ ethernet: ethernet@112a0000 { status = "disabled"; }; + mipi_tx0: dsi-phy@11c00000 { + compatible = "mediatek,mt8365-mipi-tx", "mediatek,mt8183-mipi-tx"; + reg = <0 0x11c00000 0 0x800>; + clock-output-names = "mipi_tx0_pll"; + clocks = <&clk26m>; + #clock-cells = <0>; + #phy-cells = <0>; + }; + u3phy: t-phy@11cc0000 { compatible = "mediatek,mt8365-tphy", "mediatek,generic-tphy-v2"; #address-cells = <1>; @@ -609,6 +643,13 @@ mmsys: syscon@14000000 { #clock-cells = <1>; }; + mutex: mutex@14001000 { + compatible = "mediatek,mt8365-disp-mutex"; + reg = <0 0x14001000 0 0x1000>; + interrupts = ; + power-domains = <&spm MT8365_POWER_DOMAIN_MM>; + }; + smi_common: smi@14002000 { compatible = "mediatek,mt8365-smi-common", "mediatek,mt8186-smi-common"; @@ -633,6 +674,112 @@ larb0: larb@14003000 { mediatek,larb-id = <0>; }; + ovl0: ovl@1400b000 { + compatible = "mediatek,mt8365-disp-ovl", + "mediatek,mt8192-disp-ovl"; + reg = <0 0x1400b000 0 0x1000>; + clocks = <&mmsys CLK_MM_MM_DISP_OVL0>; + interrupts = ; + iommus = <&iommu M4U_PORT_DISP_OVL0>; + power-domains = <&spm MT8365_POWER_DOMAIN_MM>; + }; + + rdma0: rdma@1400d000 { + compatible = "mediatek,mt8365-disp-rdma", + "mediatek,mt8183-disp-rdma"; + reg = <0 0x1400d000 0 0x1000>; + clocks = <&mmsys CLK_MM_MM_DISP_RDMA0>; + interrupts = ; + iommus = <&iommu M4U_PORT_DISP_RDMA0>; + mediatek,rdma-fifo-size = <5120>; + power-domains = <&spm MT8365_POWER_DOMAIN_MM>; + }; + + color0: color@1400f000 { + compatible = "mediatek,mt8365-disp-color", + "mediatek,mt8173-disp-color"; + reg = <0 0x1400f000 0 0x1000>; + clocks = <&mmsys CLK_MM_MM_DISP_COLOR0>; + interrupts = ; + power-domains = <&spm MT8365_POWER_DOMAIN_MM>; + }; + + ccorr0: ccorr@14010000 { + compatible = "mediatek,mt8365-disp-ccorr", + "mediatek,mt8183-disp-ccorr"; + reg = <0 0x14010000 0 0x1000>; + clocks = <&mmsys CLK_MM_MM_DISP_CCORR0>; + interrupts = ; + power-domains = <&spm MT8365_POWER_DOMAIN_MM>; + }; + + aal0: aal@14011000 { + compatible = "mediatek,mt8365-disp-aal", + "mediatek,mt8183-disp-aal"; + reg = <0 0x14011000 0 0x1000>; + clocks = <&mmsys CLK_MM_MM_DISP_AAL0>; + interrupts = ; + power-domains = <&spm MT8365_POWER_DOMAIN_MM>; + }; + + gamma0: gamma@14012000 { + compatible = "mediatek,mt8365-disp-gamma", + "mediatek,mt8183-disp-gamma"; + reg = <0 0x14012000 0 0x1000>; + clocks = <&mmsys CLK_MM_MM_DISP_GAMMA0>; + interrupts = ; + power-domains = <&spm MT8365_POWER_DOMAIN_MM>; + }; + + dither0: dither@14013000 { + compatible = "mediatek,mt8365-disp-dither", + "mediatek,mt8183-disp-dither"; + reg = <0 0x14013000 0 0x1000>; + clocks = <&mmsys CLK_MM_MM_DISP_DITHER0>; + interrupts = ; + power-domains = <&spm MT8365_POWER_DOMAIN_MM>; + }; + + dsi0: dsi@14014000 { + compatible = "mediatek,mt8183-dsi"; + reg = <0 0x14014000 0 0x1000>; + clock-names = "engine", "digital", "hs"; + clocks = <&mmsys CLK_MM_MM_DSI0>, + <&mmsys CLK_MM_DSI0_DIG_DSI>, + <&mipi_tx0>; + interrupts = ; + phy-names = "dphy"; + phys = <&mipi_tx0>; + power-domains = <&spm MT8365_POWER_DOMAIN_MM>; + }; + + rdma1: rdma@14016000 { + compatible = "mediatek,mt8365-disp-rdma", + "mediatek,mt8183-disp-rdma"; + reg = <0 0x14016000 0 0x1000>; + clocks = <&mmsys CLK_MM_MM_DISP_RDMA1>; + interrupts = ; + iommus = <&iommu M4U_PORT_DISP_RDMA1>; + mediatek,rdma-fifo-size = <2048>; + power-domains = <&spm MT8365_POWER_DOMAIN_MM>; + }; + + dpi0: dpi@14018000 { + compatible = "mediatek,mt8365-dpi", + "mediatek,mt8192-dpi"; + reg = <0 0x14018000 0 0x1000>; + assigned-clock-parents = <&topckgen CLK_TOP_LVDSPLL_D4>; + assigned-clocks = <&topckgen CLK_TOP_DPI0_SEL>; + clock-names = "pixel", "engine", "pll", "dpi"; + clocks = <&topckgen CLK_TOP_DPI0_SEL>, + <&mmsys CLK_MM_MM_DPI0>, + <&apmixedsys CLK_APMIXED_LVDSPLL>, + <&mmsys CLK_MM_DPI0_DPI0>; + interrupts = ; + power-domains = <&spm MT8365_POWER_DOMAIN_MM>; + status = "disabled"; + }; + camsys: syscon@15000000 { compatible = "mediatek,mt8365-imgsys", "syscon"; reg = <0 0x15000000 0 0x1000>; From patchwork Thu Mar 9 14:23:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Mergnat X-Patchwork-Id: 13167555 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B6534C742A7 for ; Thu, 9 Mar 2023 14:23:32 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 0BED710E828; Thu, 9 Mar 2023 14:23:23 +0000 (UTC) Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) by gabe.freedesktop.org (Postfix) with ESMTPS id F310610E816 for ; Thu, 9 Mar 2023 14:23:16 +0000 (UTC) Received: by mail-wm1-x32e.google.com with SMTP id bg16-20020a05600c3c9000b003eb34e21bdfso3746774wmb.0 for ; Thu, 09 Mar 2023 06:23:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; t=1678371796; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=VYr2rTQd5OqqFlwn0mh+b9fBqUxfXxgKh7jA4m3c5ZA=; b=A564OYtNJLEhNE1scz/6CLXDNTdTSS+mgCdAPZuSC0lv4boZlc4P/T6kJMQwWF0TGo 8SbJ1EEXWOCu9lqvgM/3yIQrf9AFY8gWqNHfjGr5xkfry9asdObxjQ2t+r6DQTjaKYLs Ie+1QYG7Qszqg15rIzUBVGbhMU52gbPuYFKrQYqFfyIMQbScm0IzCy8OiUxBTF5SNufv 8CudAesL4secrsbdyRNOL14uztwvxPodNBfIgKXLkK3jTFC4FmB8a6GHm/COF8siLmWt E8xuV/gDUKhF4LYixoi/VSMKPuNN64b74pAumSdH0eSMbNn8ccE/w1RAm8+8V3pm65jF aYAQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678371796; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=VYr2rTQd5OqqFlwn0mh+b9fBqUxfXxgKh7jA4m3c5ZA=; b=UuLJ8SLXu1RywZIyVGT4PVgyFrhMZTEqpEzeSv7sDoimIVL38IXNLHBSQa/iqUdRJT yRb5K/J+7Y3AittnoUU2iCwd+vPiffCSGuASowp+HxsncfDAJoFDqy++zavPtBAWDrIo MAt1FAinW40t8o3nSCbw7v8aIG2bYt/OBl7+KjKXmX/ijB/aymEJJ6KgoMGrrFxoOazh utwqD6frIJHL+K7TkqyleCIK+q7QA4+FmIPmE2HYz37XlChPLfBXfnaZCcerxUH9sXur omX9L2MrZLgMHzhWJrmuFASv++o2OI5W1x7fbjN73DNj3m97rrHdZ+aLgvWyDh2bFWkt klZg== X-Gm-Message-State: AO0yUKWIxqmLSbuORZbMULZOxFve7LiVGppprwl12nIwUbdVcYjHxVKS jQHV4OKepIMbEtKHEyX62L+G9Q== X-Google-Smtp-Source: AK7set9sI5gZVZZTbNv6xVHUoL83H4u7fW5NjL4o87Wd2GPGYAY1pkmkyjTiFf74CjViJEH/WR6VIQ== X-Received: by 2002:a7b:c8d9:0:b0:3eb:2067:1141 with SMTP id f25-20020a7bc8d9000000b003eb20671141mr20381222wml.38.1678371796548; Thu, 09 Mar 2023 06:23:16 -0800 (PST) Received: from [127.0.1.1] (158.22.5.93.rev.sfr.net. [93.5.22.158]) by smtp.googlemail.com with ESMTPSA id x22-20020a1c7c16000000b003e8dc7a03basm2772434wmc.41.2023.03.09.06.23.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Mar 2023 06:23:16 -0800 (PST) From: Alexandre Mergnat Date: Thu, 09 Mar 2023 15:23:06 +0100 Subject: [PATCH 17/21] arm64: dts: mediatek: add display support for mt8365-evk MIME-Version: 1.0 Message-Id: <20230220-display-v1-17-45cbc68e188b@baylibre.com> References: <20230220-display-v1-0-45cbc68e188b@baylibre.com> In-Reply-To: <20230220-display-v1-0-45cbc68e188b@baylibre.com> To: =?unknown-8bit?b?RGFuaWVsIFZldHRlciA8ZGFuaWVsQGZmd2xsLmNoPiwgQ0sgSHUg?= =?unknown-8bit?b?PGNrLmh1QG1lZGlhdGVrLmNvbT4sIEppdGFvIFNoaSA8aml0YW8uc2hp?= =?unknown-8bit?b?QG1lZGlhdGVrLmNvbT4s?= =?unknown-8bit?q?_Thierry_Reding_=3Cthierry=2Ereding=40gmail=2Ecom=3E=2C_Phi?= =?unknown-8bit?q?lipp_Zabel_=3Cp=2Ezabel=40pengutronix=2Ede=3E=2C_Sam_Ravnb?= =?unknown-8bit?q?org_=3Csam=40ravnborg=2Eorg=3E=2C?= =?unknown-8bit?q?_Rob_Herring_=3Crobh+dt=40kernel=2Eorg=3E=2C_Uwe_Kleine-K?= =?unknown-8bit?q?=C3=B6nig_=3Cu=2Ekleine-koenig=40pengutronix=2Ede=3E=2C?= =?unknown-8bit?q?_Chun-Kuang_Hu_=3Cchunkuang=2Ehu=40kernel=2Eorg=3E=2C_Matth?= =?unknown-8bit?q?ias_Brugger_=3Cmatthias=2Ebgg=40gmail=2Ecom=3E=2C_David_Ai?= =?unknown-8bit?q?rlie_=3Cairlied=40gmail=2Ecom=3E=2C?= =?unknown-8bit?q?_Krzysztof_Kozlowski_=3Ckrzysztof=2Ekozlowski+dt=40linaro?= =?unknown-8bit?q?=2Eorg=3E=2C_Xinlei_Lee_=3Cxinlei=2Elee=40mediatek=2Ecom?= =?unknown-8bit?q?=3E?= X-Mailer: b4 0.10.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=6680; i=amergnat@baylibre.com; h=from:subject:message-id; bh=E1//0k1NYcUIDwg5zv5tn0PC2KL+Uw835ZkCZCGrLDU=; b=owEBbQKS/ZANAwAKAStGSZ1+MdRFAcsmYgBkCeu+68OwYw2MU0lI1uTlfqB+5VstpOZ4Z1JEuF4H 6r/nUP6JAjMEAAEKAB0WIQQjG17X8+qqcA5g/osrRkmdfjHURQUCZAnrvgAKCRArRkmdfjHURZU2D/ 9On0dg5e8cqzNThvm5WqK0hQjiJvjlBwj+v0KdvCdu7AnXIjTgMYKjDopomNHIemVQubvcG/AUFgCg IWrXEaxaBvpqzDJKulaoR62WfJLcKmCnFjHrWurwUzuCElGMyDW9W1iiCsmwE4a5pRKCmE3DDLROoS TZiLc2rsI1GUGqSbunpInCLZAozihnqUaAuWof7qTvkPZmp+T67MLNjta8679be5fCcPvi8wJFPKmI FNMfTTFBdWpz7KgZPZYz62z6WZ9rRmVRqSpVv3siA3XLqxrVAkGsLNbepfF72zpzbdRUihsJw6DZ8N PkpOgJVrFxRqvz2YhaXyFqDKnZ9maCYf7pjloR391np47FmhvHYNSBz7f0OTT2IwhInJAyTZFwDEbz DLjeC8IknCxa/DCRg1gHHzRuBZnJpISuaVVFQ3iO8uvmjo2b4JNTOoFOuTn0lKvuD439m4wKNVCfcW t1W6vyoUPEklo0q/7fyznM4/wdhCiwOihwIg8d6KcePZTISK45Lwv1dBUr6XcL1nQKUzScgYFcJkzq xqOxjOeaZaqd/XDHzVQs5nSVveIHTRgeM68oTVH0EugD7SzXHlOFgPh7rwMvSeZb7sc2O6EBr4iC94 QpFqj6DuRX6Ah3jmmH+NuWnLgSvaI3x7GU+SaxgG4epU3ur86n//3lGNtLgw== X-Developer-Key: i=amergnat@baylibre.com; a=openpgp; fpr=231B5ED7F3EAAA700E60FE8B2B46499D7E31D445 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Neil Armstrong , Alexandre Mergnat , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-pwm@vger.kernel.org, Fabien Parent , devicetree@vger.kernel.org, linux-mediatek@lists.infradead.org, Guillaume La Roque , linux-arm-kernel@lists.infradead.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" MIPI DSI: - Add "vsys_lcm_reg" regulator support and setup the "mt6357_vsim1_reg", to power the pannel plugged to the DSI connector. - Setup the Display Parallel Interface. - Add the startek kd070fhfid015 pannel support. HDMI: - Add HDMI connector support. - Add the "ite,it66121" HDMI bridge support, driven by I2C1. - Setup the Display Parallel Interface. Signed-off-by: Alexandre Mergnat --- arch/arm64/boot/dts/mediatek/mt8365-evk.dts | 204 ++++++++++++++++++++++++++++ 1 file changed, 204 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8365-evk.dts b/arch/arm64/boot/dts/mediatek/mt8365-evk.dts index 30850e7c8155..793f5a9cbeae 100644 --- a/arch/arm64/boot/dts/mediatek/mt8365-evk.dts +++ b/arch/arm64/boot/dts/mediatek/mt8365-evk.dts @@ -26,6 +26,18 @@ chosen { stdout-path = "serial0:921600n8"; }; + connector { + compatible = "hdmi-connector"; + label = "hdmi"; + type = "d"; + + port { + hdmi_connector_in: endpoint { + remote-endpoint = <&hdmi_connector_out>; + }; + }; + }; + firmware { optee { compatible = "linaro,optee-tz"; @@ -86,6 +98,59 @@ optee_reserved: optee@43200000 { reg = <0 0x43200000 0 0x00c00000>; }; }; + + vsys_lcm_reg: regulator-vsys-lcm { + compatible = "regulator-fixed"; + enable-active-high; + gpio = <&pio 129 GPIO_ACTIVE_HIGH>; + regulator-max-microvolt = <5000000>; + regulator-min-microvolt = <5000000>; + regulator-name = "vsys_lcm"; + }; +}; + +&dpi0 { + pinctrl-0 = <&dpi_default_pins>; + pinctrl-1 = <&dpi_idle_pins>; + pinctrl-names = "default", "sleep"; + status = "okay"; + + port { + dpi_out: endpoint { + remote-endpoint = <&it66121_in>; + }; + }; +}; + + +&dsi0 { + #address-cells = <1>; + #size-cells = <0>; + status = "okay"; + + panel@0 { + compatible = "startek,kd070fhfid015"; + status = "okay"; + reg = <0>; + dcdc-gpios = <&pio 67 GPIO_ACTIVE_HIGH>; + reset-gpios = <&pio 20 GPIO_ACTIVE_HIGH>; + pinctrl-0 = <&default_panel_pins>; + pinctrl-names = "default"; + iovcc-supply = <&mt6357_vsim1_reg>; + power-supply = <&vsys_lcm_reg>; + + port { + panel_in: endpoint { + remote-endpoint = <&dsi_out>; + }; + }; + }; + + port { + dsi_out: endpoint { + remote-endpoint = <&panel_in>; + }; + }; }; &i2c0 { @@ -97,6 +162,50 @@ &i2c0 { #size-cells = <0>; }; +&i2c1 { + #address-cells = <1>; + #size-cells = <0>; + clock-div = <2>; + clock-frequency = <100000>; + pinctrl-0 = <&i2c1_pins>; + pinctrl-names = "default"; + status = "okay"; + + it66121hdmitx: it66121hdmitx@4c { + #sound-dai-cells = <0>; + compatible = "ite,it66121"; + interrupt-parent = <&pio>; + interrupts = <68 IRQ_TYPE_LEVEL_LOW>; + pinctrl-0 = <&ite_pins>; + pinctrl-names = "default"; + reg = <0x4c>; + reset-gpios = <&pio 69 GPIO_ACTIVE_LOW>; + vcn18-supply = <&mt6357_vsim2_reg>; + vcn33-supply = <&mt6357_vibr_reg>; + vrf12-supply = <&mt6357_vrf12_reg>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@0 { + reg = <0>; + it66121_in: endpoint { + bus-width = <12>; + remote-endpoint = <&dpi_out>; + }; + }; + + port@1 { + reg = <1>; + hdmi_connector_out: endpoint { + remote-endpoint = <&hdmi_connector_in>; + }; + }; + }; + }; +}; + &mmc0 { pinctrl-names = "default", "state_uhs"; pinctrl-0 = <&mmc0_default_pins>; @@ -150,12 +259,60 @@ &mt6357_vmc_reg { regulator-always-on; }; +&mt6357_vsim1_reg { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; +}; + /* Needed by ethernet */ &mt6357_vsim2_reg { regulator-always-on; }; &pio { + dpi_default_pins: dpi-default-pins { + pins { + pinmux = , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + ; + drive-strength = ; + }; + }; + + dpi_idle_pins: dpi-idle-pins { + pins { + pinmux = , + , + , + , + , + , + , + , + , + , + , + , + , + , + , + ; + }; + }; + gpio_keys: gpio-keys-pins { pins { pinmux = ; @@ -174,6 +331,36 @@ pins_i2c { }; }; + i2c1_pins: i2c1 { + pins_i2c { + pinmux = , + ; + mediatek,pull-up-adv = <3>; + mediatek,drive-strength-adv = <00>; + bias-pull-up; + }; + }; + + ite_pins: ite-pins { + + irq_ite_pins { + pinmux = ; + input-enable; + bias-pull-up; + }; + + pwr_pins { + pinmux = , + ; + output-high; + }; + + rst_ite_pins { + pinmux = ; + output-high; + }; + }; + mmc0_default_pins: mmc0-default-pins { clk-pins { pinmux = ; @@ -315,6 +502,23 @@ usb1-vbus-pins { }; }; + default_panel_pins: default-panel-pins { + dcdc-pins { + pinmux = ; + output-low; + }; + + en-pins { + pinmux = ; + output-low; + }; + + rst-pins { + pinmux = ; + output-high; + }; + }; + pwm_pins: pwm-pins { pins { pinmux = , From patchwork Thu Mar 9 14:23:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Mergnat X-Patchwork-Id: 13167556 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 59127C64EC4 for ; Thu, 9 Mar 2023 14:23:34 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 2640310E833; Thu, 9 Mar 2023 14:23:24 +0000 (UTC) Received: from mail-wr1-x42b.google.com (mail-wr1-x42b.google.com [IPv6:2a00:1450:4864:20::42b]) by gabe.freedesktop.org (Postfix) with ESMTPS id AB0CF10E82B for ; Thu, 9 Mar 2023 14:23:19 +0000 (UTC) Received: by mail-wr1-x42b.google.com with SMTP id l1so2017432wry.12 for ; Thu, 09 Mar 2023 06:23:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; t=1678371798; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=9/9vCBz7vbbih/lGkwmf+FEiexLxZqGCZA0WwN10Gcg=; b=iR41EdXLcY9VmMqJ50wJe8DxepsDnm3Avc5gouB6/svk5ih5KOyFUnMsz8p27ckXPI 0gOMwjO162Erp1Z58W9sV/sh8R01CFL+0tE3RO8y0H7wU9ov49zSm+oudXb9sPqMexp7 /xzKoRzA7BS5qwBYi/l81ZDJUAjCr9UVUqAuPAoW3pfuwMcUQbUUdx6mWLr4QfDFHDcc jA5iuY/FR8loTZdfEb567T4q0bM8A/o8x4tCp6GsGOQxyYoLvgxUg/rHmDNiwUVa9SaO 4/gDznsmQqxeHoKtgQI4AnJ6tjAkJdFqfMC8TD2P/z8dL0DnLiW5LXwMjQY0zi6d1uZU Ac/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678371798; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=9/9vCBz7vbbih/lGkwmf+FEiexLxZqGCZA0WwN10Gcg=; b=1St753ZS57xEX+SS0IJEgNnpIGLntCjNRR1T/orTmarpieWif5prm4v8vltzaFPV+G UL9T5uDFdn405PVIPxteTesu3CzwHS+It+b7qigcHGmNuDwoLhfSdXXI+Ib06YiuIvuZ aEG5UWMYX7xN3aNhoQ4YeeoTiaqwYap9NlWtzIbq+IO9+yE3XovKkRxn+PGTH/fLljX8 5J6zYvfLNFQRNlG52PVqkNE5UseObF+PHzkGlk3bM/riRF3ifuzUXS01HxPnLf7fqHri nxBXc01iVgASCrxPG8kpLEPHV6ySrrcJ5Lg1FcUwZYi94e1G4P8+h8nh01wUGqtTmXM4 qlfw== X-Gm-Message-State: AO0yUKW+P9UDrug6QJiemo37Rfot8pQZQ8hQQjy3AcRSyG61bDb2GHgG AKI+wwHnqrITntdwdVY6wSCZSg== X-Google-Smtp-Source: AK7set+I0/ScP4SoVVLH79fHBqsv90Adjnwakl9v2Z2Ku5kb3jT39ZJyQd/sDPiy8yRapuXBhAaTuw== X-Received: by 2002:a5d:65cb:0:b0:2c5:5ec7:43bc with SMTP id e11-20020a5d65cb000000b002c55ec743bcmr18750369wrw.18.1678371797937; Thu, 09 Mar 2023 06:23:17 -0800 (PST) Received: from [127.0.1.1] (158.22.5.93.rev.sfr.net. [93.5.22.158]) by smtp.googlemail.com with ESMTPSA id x22-20020a1c7c16000000b003e8dc7a03basm2772434wmc.41.2023.03.09.06.23.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Mar 2023 06:23:17 -0800 (PST) From: Alexandre Mergnat Date: Thu, 09 Mar 2023 15:23:07 +0100 Subject: [PATCH 18/21] drm/mediatek: dsi: Improves the DSI lane setup robustness MIME-Version: 1.0 Message-Id: <20230220-display-v1-18-45cbc68e188b@baylibre.com> References: <20230220-display-v1-0-45cbc68e188b@baylibre.com> In-Reply-To: <20230220-display-v1-0-45cbc68e188b@baylibre.com> To: =?unknown-8bit?b?RGFuaWVsIFZldHRlciA8ZGFuaWVsQGZmd2xsLmNoPiwgQ0sgSHUg?= =?unknown-8bit?b?PGNrLmh1QG1lZGlhdGVrLmNvbT4sIEppdGFvIFNoaSA8aml0YW8uc2hp?= =?unknown-8bit?b?QG1lZGlhdGVrLmNvbT4s?= =?unknown-8bit?q?_Thierry_Reding_=3Cthierry=2Ereding=40gmail=2Ecom=3E=2C_Phi?= =?unknown-8bit?q?lipp_Zabel_=3Cp=2Ezabel=40pengutronix=2Ede=3E=2C_Sam_Ravnb?= =?unknown-8bit?q?org_=3Csam=40ravnborg=2Eorg=3E=2C?= =?unknown-8bit?q?_Rob_Herring_=3Crobh+dt=40kernel=2Eorg=3E=2C_Uwe_Kleine-K?= =?unknown-8bit?q?=C3=B6nig_=3Cu=2Ekleine-koenig=40pengutronix=2Ede=3E=2C?= =?unknown-8bit?q?_Chun-Kuang_Hu_=3Cchunkuang=2Ehu=40kernel=2Eorg=3E=2C_Matth?= =?unknown-8bit?q?ias_Brugger_=3Cmatthias=2Ebgg=40gmail=2Ecom=3E=2C_David_Ai?= =?unknown-8bit?q?rlie_=3Cairlied=40gmail=2Ecom=3E=2C?= =?unknown-8bit?q?_Krzysztof_Kozlowski_=3Ckrzysztof=2Ekozlowski+dt=40linaro?= =?unknown-8bit?q?=2Eorg=3E=2C_Xinlei_Lee_=3Cxinlei=2Elee=40mediatek=2Ecom?= =?unknown-8bit?q?=3E?= X-Mailer: b4 0.10.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=1237; i=amergnat@baylibre.com; h=from:subject:message-id; bh=EBgpLyWateYNZX8XUe74shY32q1eVTHyK4Cgywlf4I4=; b=owEBbQKS/ZANAwAKAStGSZ1+MdRFAcsmYgBkCeu+czZ0Nf/pPTdrIG0J4SybkuXb2pnV+MfQKa3s 6O0w84GJAjMEAAEKAB0WIQQjG17X8+qqcA5g/osrRkmdfjHURQUCZAnrvgAKCRArRkmdfjHURRyID/ 9CnYh9rUbc4xP78TqMzB81pS2PcGxhOcRpKPDqDPBsQ8MkxsoG8+MY3aHW0oWOYwkkCKJILq1eWvrZ FcGBxafCafObuCEud3eX/BmgrilCpkw9k14ReSAhoLBleabN5e4BHhxGwdY4MppGPkp5z4tcO+cBKo 3NLvSlo7vGuU6t0pyo20+qO+Lgq7gyDW3qRYDQKyq8IaxIKxdTBJYJNUaZ7ys7TuQ4ljzSqdtle4xJ l2BNqkNuQfsq8NQ33JmFcv8fr8OjREJ1MkMJcGQ8yjmF7odFz0S00bNX8mOTCDNkuyL/gbUpMwym7j UDpymWJ38bRBsUoDiVbCZvFkpLyxmO9FD4OYNAK/FsSDWLAHsuSbWiEVSTIoUEpTz40K5hrN4MTVVX ZMY6bRv+KWIIfOqflp4HPRxHbMEPykdomliNR+UpGXU9RbGmiOVSIox47gyIK2ehXUPi6uR0hYmMA+ meTS4KhKpspzecO0R1jj2ocU73Bj8FMaBsR1ZeZQBxehsGGEyZnuPBeI87HC6zGceNO4bfmtxQMEoO qpVdgs/c2cZ3lBj7PKzAw29XuxFAzFRq6UIJPYku+GJtrC/ARlfmxQVgSbfP53xN+TxJ0znX0YGjAv qruUaP/4i4Vh0y3GHvZeBUTuyBur6wgU6j9w+hojKtE0FBIRpZOvzCRRta5w== X-Developer-Key: i=amergnat@baylibre.com; a=openpgp; fpr=231B5ED7F3EAAA700E60FE8B2B46499D7E31D445 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Neil Armstrong , Alexandre Mergnat , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-pwm@vger.kernel.org, Fabien Parent , devicetree@vger.kernel.org, linux-mediatek@lists.infradead.org, Guillaume La Roque , linux-arm-kernel@lists.infradead.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Currently, mtk_dsi_lane_ready (which setup the DSI lane) is triggered before mtk_dsi_poweron. lanes_ready flag toggle to true during mtk_dsi_lane_ready function, and the DSI module is set up during mtk_dsi_poweron. Later, during panel driver init, mtk_dsi_lane_ready is triggered but does nothing because lanes are considered ready. Unfortunately, when the panel driver try to communicate, the DSI returns a timeout. The solution found here is to put lanes_ready flag to false after the DSI module setup into mtk_dsi_poweron to init the DSI lanes after the power / setup of the DSI module. Signed-off-by: Alexandre Mergnat --- drivers/gpu/drm/mediatek/mtk_dsi.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/mediatek/mtk_dsi.c b/drivers/gpu/drm/mediatek/mtk_dsi.c index 3b7d13028fb6..35c36cc05c04 100644 --- a/drivers/gpu/drm/mediatek/mtk_dsi.c +++ b/drivers/gpu/drm/mediatek/mtk_dsi.c @@ -667,6 +667,8 @@ static int mtk_dsi_poweron(struct mtk_dsi *dsi) mtk_dsi_config_vdo_timing(dsi); mtk_dsi_set_interrupt_enable(dsi); + dsi->lanes_ready = false; + return 0; err_disable_engine_clk: clk_disable_unprepare(dsi->engine_clk); From patchwork Thu Mar 9 14:23:08 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Mergnat X-Patchwork-Id: 13167560 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 8E551C74A4B for ; Thu, 9 Mar 2023 14:23:40 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id E576E10E831; Thu, 9 Mar 2023 14:23:36 +0000 (UTC) Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [IPv6:2a00:1450:4864:20::329]) by gabe.freedesktop.org (Postfix) with ESMTPS id B2F3F10E82C for ; Thu, 9 Mar 2023 14:23:19 +0000 (UTC) Received: by mail-wm1-x329.google.com with SMTP id m25-20020a7bcb99000000b003e7842b75f2so1334157wmi.3 for ; Thu, 09 Mar 2023 06:23:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; t=1678371799; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=alc5ZV/1pwYoBZ2ycwbaMzjt9nufHBTeIsNkvP9Z/qA=; b=vua8HsX6kKMtxhCOPTEhPvzbt17dD3wWW2uq5glryvHByylmTsLCpgU5WM3WNUF0cO wzB0FSV8uUa3MMF/4Qqfieq/XGppreoONGRPZCL/kiKdsvqtHrasMq8I4AMYTux85uAW CyVoGBsp3ybkrMGZ80QS+feAsGNiiJf7FFmYXyPMbPBB1gn54JyAv2A5LEYoaTXZNVlA qq4RT02R0VXjUZyn8ClKB4blQNYyF9CncPLPwOP8KqylLsvT7kkNrWqYZPyCD0hqn/Bg EHen2OuYqWhqANYBCYFF56aErhBRzfRI5EGHKGzmlCwnGuy2LcUlaAcfY5EchL2QinhX JZEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678371799; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=alc5ZV/1pwYoBZ2ycwbaMzjt9nufHBTeIsNkvP9Z/qA=; b=zknahDpGOJYOr8oEdtnNspuITsmj9Y9I5gfrulKlnM1gec2Wt+Xs1Q3bPq51yrLcbO bUjcaS4oLbiojx36Zd1seSsP0pObYEmpDSQaYEHTdBpi9gP/e8ZvGmZNPJOwGNB7HNm+ kqpTf7iAWXnT/eJ6SERdcjVuzNO+RBOaLL6aMGcyVD8UD3WL9hoQAZtG4ngj8P5fvNit uOPY0r+X00jhM5kjr9nJp5PFpRP/9OhqeMccwhRK+qKcC2+D/5pNqcsQltuD+9Xv47Eh UJtZ50IJjs/teKHYidZYPe99vpLVfWMklGa90xO+VLNWCehSU+rdRRl7l6ANqwbdWvKk CXBw== X-Gm-Message-State: AO0yUKXkc/m+epbudKYFS824k+S/zb+tsXJyC+OkTNQ9O0lcVmE/TOxE eBZhh1MPA5ynPKAF6YftWQS1Yg== X-Google-Smtp-Source: AK7set9YP71aZ+iDxfdYv7zEaWCrl4hWKev1CRBj3uDH+u/8sul7d53lYUV5ewUWAi7P0urgT2YqQA== X-Received: by 2002:a05:600c:1c05:b0:3eb:4501:6c60 with SMTP id j5-20020a05600c1c0500b003eb45016c60mr15940998wms.5.1678371799212; Thu, 09 Mar 2023 06:23:19 -0800 (PST) Received: from [127.0.1.1] (158.22.5.93.rev.sfr.net. [93.5.22.158]) by smtp.googlemail.com with ESMTPSA id x22-20020a1c7c16000000b003e8dc7a03basm2772434wmc.41.2023.03.09.06.23.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Mar 2023 06:23:18 -0800 (PST) From: Alexandre Mergnat Date: Thu, 09 Mar 2023 15:23:08 +0100 Subject: [PATCH 19/21] drm/mediatek: dpi: add support for dpi clock MIME-Version: 1.0 Message-Id: <20230220-display-v1-19-45cbc68e188b@baylibre.com> References: <20230220-display-v1-0-45cbc68e188b@baylibre.com> In-Reply-To: <20230220-display-v1-0-45cbc68e188b@baylibre.com> To: =?unknown-8bit?b?RGFuaWVsIFZldHRlciA8ZGFuaWVsQGZmd2xsLmNoPiwgQ0sgSHUg?= =?unknown-8bit?b?PGNrLmh1QG1lZGlhdGVrLmNvbT4sIEppdGFvIFNoaSA8aml0YW8uc2hp?= =?unknown-8bit?b?QG1lZGlhdGVrLmNvbT4s?= =?unknown-8bit?q?_Thierry_Reding_=3Cthierry=2Ereding=40gmail=2Ecom=3E=2C_Phi?= =?unknown-8bit?q?lipp_Zabel_=3Cp=2Ezabel=40pengutronix=2Ede=3E=2C_Sam_Ravnb?= =?unknown-8bit?q?org_=3Csam=40ravnborg=2Eorg=3E=2C?= =?unknown-8bit?q?_Rob_Herring_=3Crobh+dt=40kernel=2Eorg=3E=2C_Uwe_Kleine-K?= =?unknown-8bit?q?=C3=B6nig_=3Cu=2Ekleine-koenig=40pengutronix=2Ede=3E=2C?= =?unknown-8bit?q?_Chun-Kuang_Hu_=3Cchunkuang=2Ehu=40kernel=2Eorg=3E=2C_Matth?= =?unknown-8bit?q?ias_Brugger_=3Cmatthias=2Ebgg=40gmail=2Ecom=3E=2C_David_Ai?= =?unknown-8bit?q?rlie_=3Cairlied=40gmail=2Ecom=3E=2C?= =?unknown-8bit?q?_Krzysztof_Kozlowski_=3Ckrzysztof=2Ekozlowski+dt=40linaro?= =?unknown-8bit?q?=2Eorg=3E=2C_Xinlei_Lee_=3Cxinlei=2Elee=40mediatek=2Ecom?= =?unknown-8bit?q?=3E?= X-Mailer: b4 0.10.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=2131; i=amergnat@baylibre.com; h=from:subject:message-id; bh=LHehVthqafMFi2shlzhoL6bucBM/8YioVECWdgiMt+E=; b=owEBbQKS/ZANAwAKAStGSZ1+MdRFAcsmYgBkCeu+fJd/zbdyiR8zrIOwZ5qUWp3Pc/rEc2f1zcfE aU7fNHSJAjMEAAEKAB0WIQQjG17X8+qqcA5g/osrRkmdfjHURQUCZAnrvgAKCRArRkmdfjHURZKiEA Cbnd4JuCuoVv+myBWfMfN+Xe/5r43m//AH/pF0zz/dKWYHjR21eVuBr2nkywXEB+R6j2g0EA1tvEI2 3yHndYsPjOEMgSIHzwH7E0aCUJ9KN4wjI7mS1fPjFKO4JIyIB/BGm5v7JkokueaI+hiTDW1NzD4G8V mE5HCXCvQuTs3CcyLp1mzVcLkh0iFW5EralJF29N7+XvudmxfKgiHxzCYdzKOU+ErUZwBQJSOK4HHu 7ApWDCfzG/zxWdFSFAsIcy4LZDzEQCrEIWYZut//aX5WxO1Ln91OcbSzGBDX1jQYG+NlP1be9QqJHc xGvtbyiG0+zs0t2tAyyPgBywfRZNtCgT57eIW+LZfmbyL00VxSeGQ3r8VFZYGrs6LHmoBPza/7bFcT LksH73pmIvnFNKBeUXKgrQedPu5alhwdM6AIgKyeoZ++dsWX8ExvfPh5w48CBL9j1kFL9c7KPsAa/y y86nqA9/KqWEBO+j2yI2a7dJJ97nDCrwG7S7FBva6uyi6ZdUrl9xgaq47ys9vp2ZJPo7oGtetIG3BZ OAEj1Jb+ykkZ0vRJQaME57g0bPcBpxlRdFfUm/e94AV5VnKFESWovJwX1MnbrBozQPX6Q9ukTsIuSb Yn7F69dk0F4Vnxbd9nT8ZzknfB4py9MAW8yY8lssErbBotFIGJpaPJqFnxlQ== X-Developer-Key: i=amergnat@baylibre.com; a=openpgp; fpr=231B5ED7F3EAAA700E60FE8B2B46499D7E31D445 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Neil Armstrong , Alexandre Mergnat , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-pwm@vger.kernel.org, Fabien Parent , devicetree@vger.kernel.org, linux-mediatek@lists.infradead.org, Guillaume La Roque , linux-arm-kernel@lists.infradead.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" From: Fabien Parent MT8365 requires an additional clock for DPI. Add support for that additional clock. Signed-off-by: Fabien Parent Signed-off-by: Alexandre Mergnat --- drivers/gpu/drm/mediatek/mtk_dpi.c | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/mediatek/mtk_dpi.c b/drivers/gpu/drm/mediatek/mtk_dpi.c index 4317595a15d1..474c6e5bbf04 100644 --- a/drivers/gpu/drm/mediatek/mtk_dpi.c +++ b/drivers/gpu/drm/mediatek/mtk_dpi.c @@ -68,6 +68,7 @@ struct mtk_dpi { struct device *dev; struct clk *engine_clk; struct clk *pixel_clk; + struct clk *dpi_clk; struct clk *tvd_clk; int irq; struct drm_display_mode mode; @@ -464,6 +465,7 @@ static void mtk_dpi_power_off(struct mtk_dpi *dpi) mtk_dpi_disable(dpi); clk_disable_unprepare(dpi->pixel_clk); clk_disable_unprepare(dpi->engine_clk); + clk_disable_unprepare(dpi->dpi_clk); } static int mtk_dpi_power_on(struct mtk_dpi *dpi) @@ -473,10 +475,16 @@ static int mtk_dpi_power_on(struct mtk_dpi *dpi) if (++dpi->refcount != 1) return 0; + ret = clk_prepare_enable(dpi->dpi_clk); + if (ret) { + dev_err(dpi->dev, "failed to enable dpi clock: %d\n", ret); + goto err_refcount; + } + ret = clk_prepare_enable(dpi->engine_clk); if (ret) { dev_err(dpi->dev, "Failed to enable engine clock: %d\n", ret); - goto err_refcount; + goto err_engine; } ret = clk_prepare_enable(dpi->pixel_clk); @@ -489,6 +497,8 @@ static int mtk_dpi_power_on(struct mtk_dpi *dpi) err_pixel: clk_disable_unprepare(dpi->engine_clk); +err_engine: + clk_disable_unprepare(dpi->dpi_clk); err_refcount: dpi->refcount--; return ret; @@ -1044,6 +1054,12 @@ static int mtk_dpi_probe(struct platform_device *pdev) return ret; } + dpi->dpi_clk = devm_clk_get_optional(dev, "dpi"); + if (IS_ERR(dpi->dpi_clk)) { + return dev_err_probe(dev, ret, "Failed to get dpi clock: %p\n", + dpi->dpi_clk); + } + dpi->irq = platform_get_irq(pdev, 0); if (dpi->irq <= 0) return -EINVAL; From patchwork Thu Mar 9 14:23:09 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Mergnat X-Patchwork-Id: 13167558 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 94A91C61DA4 for ; Thu, 9 Mar 2023 14:23:37 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 8B2FC10E830; Thu, 9 Mar 2023 14:23:25 +0000 (UTC) Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) by gabe.freedesktop.org (Postfix) with ESMTPS id D8B1E10E82C for ; Thu, 9 Mar 2023 14:23:21 +0000 (UTC) Received: by mail-wm1-x32e.google.com with SMTP id o38-20020a05600c512600b003e8320d1c11so3464212wms.1 for ; Thu, 09 Mar 2023 06:23:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; t=1678371800; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=DXnaz1jhLTD6jXvSmqDaDkgz1JHBWLNVvGXzErpIW+8=; b=kFQ8LRoljBL0wHvq4R5EI4ikrcQUbsFYB+Z0OC5Lc/dLpmkhLSRLxXieE/tLPoECaf I2rOdAL5stvDg1bZVWfyeNB/8JlSgc29D8eW7PN9jFqKblkKehsaHnv7/vLW4i30NV31 ngEEh0CvEbW/7oFk/YvhpjcUuGOV6wckWRTVgKiMgvgsOs+eHNCWx9Ctl7pVSh6HQf+n 5ovIREXATJfk5rLMSiXwCy6C9c4cCLjbMHpX+NCgnic3A1nuQsJ57Pe6aoCFPboXBQvP V7FGT3O7QP4LfcEU4eGpRF8ifOq8dQUYtX5O+dgqWLCIH7T+rE50uZiCDA3f3CyOeMa/ BQlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678371800; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=DXnaz1jhLTD6jXvSmqDaDkgz1JHBWLNVvGXzErpIW+8=; b=j27FSZPefrBIg308IeiEQB/XNLvFanaumpg07V1ByRqcKop5T7aDnXllKD8uJo8FPP mzGKG3y0T0Lcg22bgowC+YWB2IM/P73hk9WBaIgJpJKX8wgkhj94Y1gMCJVN1GVQ8lMt VvRSp1S8FoE73mt4AJdhykK0os5kVoimaCdMp0PvBPRt5E2tKp/+m8TL43SQoOqNXztR M94/ckjbJTjbL3t59t6IYKwLrtugTtESSTfV+bFBHHQUDtfqPSv42Ylf0lGEBMxRrMle EAh8VgrNeLpNHjql7OTVyJjWX6erEkeFP0uXcIZo2u93agHpQQX5D8A4ajZPmG30kEvM DoQA== X-Gm-Message-State: AO0yUKVz+YzVb6LgdWH08zghQYfjDGGTrRjnMCB2DhYhxdp9ZnMo0XFM iAYwVi6vnztkGiu2I7N4tZcMuQ== X-Google-Smtp-Source: AK7set+D5mqPtf34ar9Lo47BVbbVyFB97USS19hS1lH5lekATB4WmOAZdNCYYAFIULZSGsyaMRA81A== X-Received: by 2002:a05:600c:1d09:b0:3ea:f882:bb3d with SMTP id l9-20020a05600c1d0900b003eaf882bb3dmr19639894wms.4.1678371800320; Thu, 09 Mar 2023 06:23:20 -0800 (PST) Received: from [127.0.1.1] (158.22.5.93.rev.sfr.net. [93.5.22.158]) by smtp.googlemail.com with ESMTPSA id x22-20020a1c7c16000000b003e8dc7a03basm2772434wmc.41.2023.03.09.06.23.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Mar 2023 06:23:19 -0800 (PST) From: Alexandre Mergnat Date: Thu, 09 Mar 2023 15:23:09 +0100 Subject: [PATCH 20/21] drm/mediatek: add MT8365 SoC support MIME-Version: 1.0 Message-Id: <20230220-display-v1-20-45cbc68e188b@baylibre.com> References: <20230220-display-v1-0-45cbc68e188b@baylibre.com> In-Reply-To: <20230220-display-v1-0-45cbc68e188b@baylibre.com> To: =?unknown-8bit?b?RGFuaWVsIFZldHRlciA8ZGFuaWVsQGZmd2xsLmNoPiwgQ0sgSHUg?= =?unknown-8bit?b?PGNrLmh1QG1lZGlhdGVrLmNvbT4sIEppdGFvIFNoaSA8aml0YW8uc2hp?= =?unknown-8bit?b?QG1lZGlhdGVrLmNvbT4s?= =?unknown-8bit?q?_Thierry_Reding_=3Cthierry=2Ereding=40gmail=2Ecom=3E=2C_Phi?= =?unknown-8bit?q?lipp_Zabel_=3Cp=2Ezabel=40pengutronix=2Ede=3E=2C_Sam_Ravnb?= =?unknown-8bit?q?org_=3Csam=40ravnborg=2Eorg=3E=2C?= =?unknown-8bit?q?_Rob_Herring_=3Crobh+dt=40kernel=2Eorg=3E=2C_Uwe_Kleine-K?= =?unknown-8bit?q?=C3=B6nig_=3Cu=2Ekleine-koenig=40pengutronix=2Ede=3E=2C?= =?unknown-8bit?q?_Chun-Kuang_Hu_=3Cchunkuang=2Ehu=40kernel=2Eorg=3E=2C_Matth?= =?unknown-8bit?q?ias_Brugger_=3Cmatthias=2Ebgg=40gmail=2Ecom=3E=2C_David_Ai?= =?unknown-8bit?q?rlie_=3Cairlied=40gmail=2Ecom=3E=2C?= =?unknown-8bit?q?_Krzysztof_Kozlowski_=3Ckrzysztof=2Ekozlowski+dt=40linaro?= =?unknown-8bit?q?=2Eorg=3E=2C_Xinlei_Lee_=3Cxinlei=2Elee=40mediatek=2Ecom?= =?unknown-8bit?q?=3E?= X-Mailer: b4 0.10.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=2552; i=amergnat@baylibre.com; h=from:subject:message-id; bh=n59ZUgmONlb1UajjYquStIE5vhX/aVPKSxJb0sPGiU0=; b=owEBbQKS/ZANAwAKAStGSZ1+MdRFAcsmYgBkCeu+k482A81ACWwejcT34Rd/p34RqAsJqbxOisAp SUjd0vqJAjMEAAEKAB0WIQQjG17X8+qqcA5g/osrRkmdfjHURQUCZAnrvgAKCRArRkmdfjHURWi4D/ 0TiZe3q/k7NsRcaMTOlQHeDWee6bQ6pdAgV8j4eJRo/iHydZZbOm8dlumln1AMVKIHl1w/Zp2Qps4z wKOoogD3jt6pML5FVVdmYhkoGJ+4/Q3byLqqsDEcRhywMoQPp3bDc+69loKNyGqxwDuiVvzWKBOk3M n9fokdBO+zMT8V0WfWNnQ0lqtIHnKmYRilecNuiGGUi6giWB9hri1feen5GhkOLJiklV/9stbfh2lk cRTv5WfcZUAracBieuisYpfxLb3pg5clc9KLj+MW2CYNItb5GS+R1mpdIdFA2sUZWjPVNYgjmaaD8i kafeT6ejU9G61UxNlIQ6CmUPquFVO0J6Zpi6pngFuJT4XceRiaUajSIU5LQoat4BkJQVYCMbjJuDBb ueHs9qhMLCaEZ+0y4ZAcw4m30Kc504cisk59PgpSpxrmP+O+NqJBJvtqUVTlHKIM5jUE9b67Vkbnhe dRQo4PST5Kel2MaVamYQ7H7mg19tV/tiW8fpeCIhbdYaBl3lt9iHLuIqF2Iuu+c9Zdt9rLkomn8+QI xJQCX2L80MFHeVN6wn3QuJTFf8ws4rD8sqzki9wJF+CQe/s7+LPckPZuSoYUM1oYxFaqxdg6E+7DZL /shmh3OGx+QIYzQAmenxR8VjOgUor17JLipQp8NbwPwqAn1MHSkJd0PnvTYA== X-Developer-Key: i=amergnat@baylibre.com; a=openpgp; fpr=231B5ED7F3EAAA700E60FE8B2B46499D7E31D445 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Neil Armstrong , Alexandre Mergnat , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-pwm@vger.kernel.org, Fabien Parent , devicetree@vger.kernel.org, linux-mediatek@lists.infradead.org, Guillaume La Roque , linux-arm-kernel@lists.infradead.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" From: Fabien Parent Add DRM support for MT8365 SoC. Signed-off-by: Fabien Parent Signed-off-by: Alexandre Mergnat --- drivers/gpu/drm/mediatek/mtk_drm_drv.c | 35 ++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/drivers/gpu/drm/mediatek/mtk_drm_drv.c b/drivers/gpu/drm/mediatek/mtk_drm_drv.c index cd5b18ef7951..b905f38d5660 100644 --- a/drivers/gpu/drm/mediatek/mtk_drm_drv.c +++ b/drivers/gpu/drm/mediatek/mtk_drm_drv.c @@ -210,6 +210,22 @@ static const enum mtk_ddp_comp_id mt8195_mtk_ddp_main[] = { DDP_COMPONENT_DP_INTF0, }; +static const enum mtk_ddp_comp_id mt8365_mtk_ddp_main[] = { + DDP_COMPONENT_OVL0, + DDP_COMPONENT_RDMA0, + DDP_COMPONENT_COLOR0, + DDP_COMPONENT_CCORR, + DDP_COMPONENT_AAL0, + DDP_COMPONENT_GAMMA, + DDP_COMPONENT_DITHER0, + DDP_COMPONENT_DSI0, +}; + +static const enum mtk_ddp_comp_id mt8365_mtk_ddp_ext[] = { + DDP_COMPONENT_RDMA1, + DDP_COMPONENT_DPI0, +}; + static const struct mtk_mmsys_driver_data mt2701_mmsys_driver_data = { .main_path = mt2701_mtk_ddp_main, .main_len = ARRAY_SIZE(mt2701_mtk_ddp_main), @@ -342,6 +358,21 @@ static const struct mtk_mmsys_match_data mt8195_mmsys_match_data = { }, }; +static const struct mtk_mmsys_driver_data mt8365_mmsys_driver_data = { + .main_path = mt8365_mtk_ddp_main, + .main_len = ARRAY_SIZE(mt8365_mtk_ddp_main), + .ext_path = mt8365_mtk_ddp_ext, + .ext_len = ARRAY_SIZE(mt8365_mtk_ddp_ext), +}; + +static const struct mtk_mmsys_match_data mt8365_mmsys_match_data = { + .num_drv_data = 1, + .drv_data = { + &mt8365_mmsys_driver_data, + }, +}; + + static int mtk_drm_kms_init(struct drm_device *drm) { struct mtk_drm_private *private = drm->dev_private; @@ -591,6 +622,8 @@ static const struct of_device_id mtk_ddp_comp_dt_ids[] = { .data = (void *)MTK_DISP_MUTEX }, { .compatible = "mediatek,mt8195-disp-mutex", .data = (void *)MTK_DISP_MUTEX }, + { .compatible = "mediatek,mt8365-disp-mutex", + .data = (void *)MTK_DISP_MUTEX }, { .compatible = "mediatek,mt8173-disp-od", .data = (void *)MTK_DISP_OD }, { .compatible = "mediatek,mt2701-disp-ovl", @@ -673,6 +706,8 @@ static const struct of_device_id mtk_drm_of_ids[] = { .data = &mt8192_mmsys_match_data}, { .compatible = "mediatek,mt8195-mmsys", .data = &mt8195_mmsys_match_data}, + { .compatible = "mediatek,mt8365-mmsys", + .data = &mt8365_mmsys_match_data}, { } }; MODULE_DEVICE_TABLE(of, mtk_drm_of_ids); From patchwork Thu Mar 9 14:23:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Mergnat X-Patchwork-Id: 13167562 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2572FC61DA4 for ; Thu, 9 Mar 2023 14:24:00 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 0127F10E838; Thu, 9 Mar 2023 14:23:59 +0000 (UTC) Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by gabe.freedesktop.org (Postfix) with ESMTPS id 32E8D10E82B for ; Thu, 9 Mar 2023 14:23:23 +0000 (UTC) Received: by mail-wm1-x32a.google.com with SMTP id d41-20020a05600c4c2900b003e9e066550fso1333471wmp.4 for ; Thu, 09 Mar 2023 06:23:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; t=1678371801; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=D6KllJHUXDeZBXsAtzTGNXsyP9gyEJdVTnwR7KWgVfA=; b=fLsjQNlasjebBF0epqPyPa31km+kGq5l8Xk4GxPJTwvF9zJ8Q/7Zd0e4ZGDeQjJuJs xw9cESvKeTfO6AA5BJDGhUvflCa2kd5me2Q0w9qrb2ChFHaip3IDsktWhYVy7Nb9Q6mU NA7S8qjtDtxr50TPX+fXckg2VtuzGLeV1LorvedOU47YMl00F1g+1m0PfUsQ1WNaiHDr MrCtNUIZkRzLI5kgFbZ87qCWu4NzCLeeCGUppie6LnBOwWcmjf4+Wz0NHyG0seHrKuB8 FINZCxu3qcXVB18sAP65jZ+yZ1OeiEP53WzEuFzLsI0laU+dNumit4oxoTPEPDcNfoXd AHTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678371801; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=D6KllJHUXDeZBXsAtzTGNXsyP9gyEJdVTnwR7KWgVfA=; b=IILRMLh3hHQeyXo7F+fPVARUe5C8eO5cPd2i1DWRRfnv5jM1TTkvqmTVVk0azT1w+H QczqmH8wI4aiSNDYsPI/Qa5bdMbZ3bNFeL7soN1JfxC3NElaqlsbVy//HUoJFEIRUrp1 KVOpe8/TekKaxuySyHrGwaklEEbvjno6lnJMWK/zh5Xj0YWtXoHIdV1SOvVilL2YionG d2JFqnL4JUm3egmd8AUX91b9BKMTPSP0FuDerNUy6bXfqgpwOYLAxZq6bGneKtmErAtR B2iGgN1iYLMzdI7quWrvmtxgeBHWe4tsaYgMVi9Vcumo4H7LKEYOVal/MEBgMI4puAaZ GILA== X-Gm-Message-State: AO0yUKWCyg/Fv3KblruubQc4YRrjfZhUJfJCXgGJE8mF6Rhq6cwyv62J LPqAkHw1L3qxeuWJPAyHFspUTQ== X-Google-Smtp-Source: AK7set9HyqvkE3Hz8Co8XteBvxDYXIqNVoqota62N1DOTm3jGNqEesiyfh51GaIKBky/QKHG9RaJKA== X-Received: by 2002:a05:600c:4509:b0:3eb:32ff:da8 with SMTP id t9-20020a05600c450900b003eb32ff0da8mr20829898wmo.16.1678371801592; Thu, 09 Mar 2023 06:23:21 -0800 (PST) Received: from [127.0.1.1] (158.22.5.93.rev.sfr.net. [93.5.22.158]) by smtp.googlemail.com with ESMTPSA id x22-20020a1c7c16000000b003e8dc7a03basm2772434wmc.41.2023.03.09.06.23.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Mar 2023 06:23:21 -0800 (PST) From: Alexandre Mergnat Date: Thu, 09 Mar 2023 15:23:10 +0100 Subject: [PATCH 21/21] panel: startek-kd070fhfid015: add support of this display MIME-Version: 1.0 Message-Id: <20230220-display-v1-21-45cbc68e188b@baylibre.com> References: <20230220-display-v1-0-45cbc68e188b@baylibre.com> In-Reply-To: <20230220-display-v1-0-45cbc68e188b@baylibre.com> To: =?unknown-8bit?b?RGFuaWVsIFZldHRlciA8ZGFuaWVsQGZmd2xsLmNoPiwgQ0sgSHUg?= =?unknown-8bit?b?PGNrLmh1QG1lZGlhdGVrLmNvbT4sIEppdGFvIFNoaSA8aml0YW8uc2hp?= =?unknown-8bit?b?QG1lZGlhdGVrLmNvbT4s?= =?unknown-8bit?q?_Thierry_Reding_=3Cthierry=2Ereding=40gmail=2Ecom=3E=2C_Phi?= =?unknown-8bit?q?lipp_Zabel_=3Cp=2Ezabel=40pengutronix=2Ede=3E=2C_Sam_Ravnb?= =?unknown-8bit?q?org_=3Csam=40ravnborg=2Eorg=3E=2C?= =?unknown-8bit?q?_Rob_Herring_=3Crobh+dt=40kernel=2Eorg=3E=2C_Uwe_Kleine-K?= =?unknown-8bit?q?=C3=B6nig_=3Cu=2Ekleine-koenig=40pengutronix=2Ede=3E=2C?= =?unknown-8bit?q?_Chun-Kuang_Hu_=3Cchunkuang=2Ehu=40kernel=2Eorg=3E=2C_Matth?= =?unknown-8bit?q?ias_Brugger_=3Cmatthias=2Ebgg=40gmail=2Ecom=3E=2C_David_Ai?= =?unknown-8bit?q?rlie_=3Cairlied=40gmail=2Ecom=3E=2C?= =?unknown-8bit?q?_Krzysztof_Kozlowski_=3Ckrzysztof=2Ekozlowski+dt=40linaro?= =?unknown-8bit?q?=2Eorg=3E=2C_Xinlei_Lee_=3Cxinlei=2Elee=40mediatek=2Ecom?= =?unknown-8bit?q?=3E?= X-Mailer: b4 0.10.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=14592; i=amergnat@baylibre.com; h=from:subject:message-id; bh=F1sY83LBSMBqvT5k/91ULWgrdpy2pr0yELajpS3zmxc=; b=owEBbQKS/ZANAwAKAStGSZ1+MdRFAcsmYgBkCeu+D2LAvO3T46e1nwJCXWgndX/z0FoMSsVKFeb3 98OYoTOJAjMEAAEKAB0WIQQjG17X8+qqcA5g/osrRkmdfjHURQUCZAnrvgAKCRArRkmdfjHURZz3D/ 4uc+5J5MnrgFJzo/vIR01HB+hITFpnLEm7e4yU2pBfkduM69jOnXUHBmZzXYaykPLk/rgB2u2IcNDg qwzTloh4D1NicmiHe7rHLpb4Ye0yCemrgBLkJXKLRmauoq9XR46KRgIjaJ1tcLvWkcJXQo2tCku14Z dEjqZIsp64IsQevsw4s4mZdtd2fjpEdGRYhYcRE0vfCeS03lNrk4BYmEpGt7doc9vqDD9Alz1gLQeL ofjTSNrp0HAK8+GoDSa7kMSPJge7oWTjvDM3m98rerGb0xopnUtcWJuvQIoFxsz+QKSqEoGMqc+jTN t8atEzs9MTEYN2c5Eh7dlR4KwbJgzzeNZrWMaFN6AcTrzb7fWBiekiB2fwbaEh4nZKorxiHgtO+c9N ZQqfQPGFdLtfe1zw+oW59jXn3GsOr+L//StUCAMnd0owICoi70Cgclvhdk0JixjCiAcCwKMhT1vpOe QQCDCMROQeedW8aImyYC7wfMad3vc6kUo072Vf3nbh8ZU8n6kkykfYHa+AxI1du1Opb37R5RYQVSTy t+hh5hMb4F79c3mKfM4D86/g9aU0W75yNwZDl7SZP6xMBkzyFuLFezm01u0Qa1TnzIutoDykevwkxj MR88e4Ykno09Vi80puy3OgLDKLOPowtpc+gfjfZYE/djx84p+K0AuPF2c91Q== X-Developer-Key: i=amergnat@baylibre.com; a=openpgp; fpr=231B5ED7F3EAAA700E60FE8B2B46499D7E31D445 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Neil Armstrong , Alexandre Mergnat , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-pwm@vger.kernel.org, Fabien Parent , devicetree@vger.kernel.org, linux-mediatek@lists.infradead.org, Guillaume La Roque , linux-arm-kernel@lists.infradead.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" From: Guillaume La Roque This driver support the Startek KD070FHFID015, which is a 7-inch TFT LCD display using MIPI DSI interface. Signed-off-by: Guillaume La Roque Signed-off-by: Alexandre Mergnat --- drivers/gpu/drm/panel/Kconfig | 12 + drivers/gpu/drm/panel/Makefile | 1 + .../gpu/drm/panel/panel-startek-kd070fhfid015.c | 483 +++++++++++++++++++++ 3 files changed, 496 insertions(+) diff --git a/drivers/gpu/drm/panel/Kconfig b/drivers/gpu/drm/panel/Kconfig index 737edcdf9eef..3fccf025013b 100644 --- a/drivers/gpu/drm/panel/Kconfig +++ b/drivers/gpu/drm/panel/Kconfig @@ -666,6 +666,17 @@ config DRM_PANEL_SONY_TULIP_TRULY_NT35521 NT35521 1280x720 video mode panel as found on Sony Xperia M4 Aqua phone. +config DRM_PANEL_STARTEK_KD070FHFID015 + tristate "STARTEK KD070FHFID015 panel" + depends on OF + depends on DRM_MIPI_DSI + depends on BACKLIGHT_CLASS_DEVICE + help + Say Y here if you want to enable support for STARTEK KD070FHFID015 DSI panel + based on RENESAS-R69429 controller. The pannel is a 7-inch TFT LCD display + with a resolution of 1024 x 600 pixels. It provides a MIPI DSI interface to + the host, a built-in LED backlight and touch controller. + config DRM_PANEL_TDO_TL070WSH30 tristate "TDO TL070WSH30 DSI panel" depends on OF @@ -736,4 +747,5 @@ config DRM_PANEL_XINPENG_XPP055C272 Say Y here if you want to enable support for the Xinpeng XPP055C272 controller for 720x1280 LCD panels with MIPI/RGB/SPI system interfaces. + endmenu diff --git a/drivers/gpu/drm/panel/Makefile b/drivers/gpu/drm/panel/Makefile index f8f9d9f6a307..35771fc51187 100644 --- a/drivers/gpu/drm/panel/Makefile +++ b/drivers/gpu/drm/panel/Makefile @@ -67,6 +67,7 @@ obj-$(CONFIG_DRM_PANEL_SITRONIX_ST7703) += panel-sitronix-st7703.o obj-$(CONFIG_DRM_PANEL_SITRONIX_ST7789V) += panel-sitronix-st7789v.o obj-$(CONFIG_DRM_PANEL_SONY_ACX565AKM) += panel-sony-acx565akm.o obj-$(CONFIG_DRM_PANEL_SONY_TULIP_TRULY_NT35521) += panel-sony-tulip-truly-nt35521.o +obj-$(CONFIG_DRM_PANEL_STARTEK_KD070FHFID015) += panel-startek-kd070fhfid015.o obj-$(CONFIG_DRM_PANEL_TDO_TL070WSH30) += panel-tdo-tl070wsh30.o obj-$(CONFIG_DRM_PANEL_TPO_TD028TTEC1) += panel-tpo-td028ttec1.o obj-$(CONFIG_DRM_PANEL_TPO_TD043MTEA1) += panel-tpo-td043mtea1.o diff --git a/drivers/gpu/drm/panel/panel-startek-kd070fhfid015.c b/drivers/gpu/drm/panel/panel-startek-kd070fhfid015.c new file mode 100644 index 000000000000..88466bf6428d --- /dev/null +++ b/drivers/gpu/drm/panel/panel-startek-kd070fhfid015.c @@ -0,0 +1,483 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Copyright (C) 2016 InforceComputing + * Copyright (C) 2016 Linaro Ltd + * Copyright (C) 2023 BayLibre, SAS + * + * Author: + * - Vinay Simha BN + * - Sumit Semwal + * - Guillaume La Roque + * + */ + +#include +#include +#include +#include +#include +#include + +#include