Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp10766639rwl; Thu, 12 Jan 2023 02:12:46 -0800 (PST) X-Google-Smtp-Source: AMrXdXtFe0AI4RSYwxpYJiB4itFkmi56Ne6lg2HraIfT3ncyDWd7IQmxwhqvPH0QmrqCmBNwTQyq X-Received: by 2002:a17:906:85d9:b0:842:1627:77b4 with SMTP id i25-20020a17090685d900b00842162777b4mr65226650ejy.3.1673518366264; Thu, 12 Jan 2023 02:12:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673518366; cv=none; d=google.com; s=arc-20160816; b=BO1GQQp8Dw8uXemyfe46Gof3uLpaeuwnIfS38GDlVVRuFnqqfs+ZRMphxROzZ6EXq9 2GPwNpbKBmC0VTFDMYx5Bbu/45Du2BZP1uB5ORPxTl6aCZgEkPw9hufJw7K8a6o8ari+ 1dfN3mcCqGrcfoUbdtNBrjFbvt3T9ZY8K39A55KSIdDEbl4zIEYZlQ6g18MVa1mPNvo5 2ULUqarZsNFJ4/kVshGFke3SajN5PClT4DP2A3d7UzkZaaMEXuQpMFmuiS0357JcUJ5f xPdpOnvj7mMdeRmEIISsmkruNoVqzKxAejh/MTrMCDQS7Z9wD8BM+ymffehAbKum310f xC8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=4i06mppGYiXhN0gX/mC8nb9SL6Y8d9Zg4Osy3GV9SYg=; b=VmnZGNhnsMNCAeo/ehxVOe7G+Ew62TGEPt/Q1BgWysKjFRnKXnuow4gMert3VlRg12 NoAhPgtLijMGCwv3+GF3UAuRX/IlP2BonADMffZH8dJr/wR1MjRidVjVG5C7vlzzUPzy TvNAlROgB3hL7TOSTbLZ123yU4MQ6s28mMyIoe3TeGIPIGI39JC40eGnpzQXUR4ucgJv 8oOBLoI2GvIGfc5duNAiFp+BXu7btXNq/TBXA5xs9/CaAB6Yf2s5IQMEcjxMftFK6K9A lcyfIcdVZtgSnT2h96xyhB1bgHamqN6xvmNuqhFj8N2UOt4n3uUM9dA/khuM0rZ3Tokz iSkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=dJJzcYTv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s4-20020a17090699c400b007c16e4d5e9esi19143878ejn.412.2023.01.12.02.12.34; Thu, 12 Jan 2023 02:12:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=dJJzcYTv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238000AbjALKDO (ORCPT + 49 others); Thu, 12 Jan 2023 05:03:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39544 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236806AbjALKBJ (ORCPT ); Thu, 12 Jan 2023 05:01:09 -0500 Received: from mail-vk1-xa2f.google.com (mail-vk1-xa2f.google.com [IPv6:2607:f8b0:4864:20::a2f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E7929E79 for ; Thu, 12 Jan 2023 02:00:53 -0800 (PST) Received: by mail-vk1-xa2f.google.com with SMTP id l185so5315775vke.2 for ; Thu, 12 Jan 2023 02:00:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=4i06mppGYiXhN0gX/mC8nb9SL6Y8d9Zg4Osy3GV9SYg=; b=dJJzcYTvtPtZKZ4Oo6YyvU+v7YG1bh5MFh5fAmIWm8cSjzoLbPKfvnvSgb40a1ncK1 3SK1jAOygeZJ+JoEVrIXG1GZg0QjdenjPGpBmGmC74dJNfyvpLkyKEktPDiWxxTXo3iW rcuznjSZTCQVEIaAMeNCGIOUz3heRijTYPsXI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=4i06mppGYiXhN0gX/mC8nb9SL6Y8d9Zg4Osy3GV9SYg=; b=k+kIUYypC3621e6kWa6YcdhvrujRtYCGk/jw+uk1GrFoHAr2kcnrnTzixuFbqCtM+/ Qhb2GmDKojUSrBf78zU9a4I4x1j3ZIcFoPxU149i4OToqWllHTkJRHQBsPdOTcG4lyq8 iCdJzuau3QxpVjzLLeJwsNLDd8OLttS3Tevte/XoRduTMVBwrluGy54im3HtRsiTjJ10 SRnZN5DRwzact7bySlFw+x0Iy32fLV8tUuZT9uIcf0hyPGyLDVMaz2ON+63hepjvG9tc 1tXtpKNgknMiKAQtqJWMs0i4DOGH5HTg5pQBVkmZW90ggpAI81wjqPggz2XwNR/N99tG BsNQ== X-Gm-Message-State: AFqh2krvN2W3UbQX+xBVc8ccGfPuXFdbIvArvfKK0hyB/PLOdAATm3GZ g9hTIy2MGvgKxOUE+mrf2AIl3PoXLh+pJslgGUPA8MpiC6dt/w== X-Received: by 2002:a1f:2795:0:b0:3d8:df4c:cfc4 with SMTP id n143-20020a1f2795000000b003d8df4ccfc4mr3797463vkn.18.1673517652955; Thu, 12 Jan 2023 02:00:52 -0800 (PST) MIME-Version: 1.0 References: <20230111123711.32020-1-allen-kh.cheng@mediatek.com> <20230111123711.32020-10-allen-kh.cheng@mediatek.com> In-Reply-To: <20230111123711.32020-10-allen-kh.cheng@mediatek.com> From: Chen-Yu Tsai Date: Thu, 12 Jan 2023 18:00:41 +0800 Message-ID: Subject: Re: [PATCH 9/9] arm64: dts: mediatek: mt8186: Add display nodes To: Allen-KH Cheng Cc: Matthias Brugger , Rob Herring , Krzysztof Kozlowski , Chun-Kuang Hu , Philipp Zabel , David Airlie , Daniel Vetter , Stephen Boyd , AngeloGioacchino Del Regno , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Project_Global_Chrome_Upstream_Group@mediatek.com, linux-mediatek@lists.infradead.org, hsinyi@chromium.org, linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Wed, Jan 11, 2023 at 8:37 PM Allen-KH Cheng wrote: > > Add display nodes and GCE info for MT8186 SoC. Also, add GCE > (Global Command Engine) properties to the display nodes in order to > enable the usage of the CMDQ (Command Queue), which is required for > operating the display. > > Signed-off-by: Allen-KH Cheng > --- > arch/arm64/boot/dts/mediatek/mt8186.dtsi | 128 +++++++++++++++++++++++ > 1 file changed, 128 insertions(+) > > diff --git a/arch/arm64/boot/dts/mediatek/mt8186.dtsi b/arch/arm64/boot/dts/mediatek/mt8186.dtsi > index eab30ab01572..8670d37970ef 100644 > --- a/arch/arm64/boot/dts/mediatek/mt8186.dtsi > +++ b/arch/arm64/boot/dts/mediatek/mt8186.dtsi > @@ -5,6 +5,7 @@ > */ > /dts-v1/; > #include > +#include > #include > #include > #include > @@ -632,6 +633,15 @@ > clocks = <&clk13m>; > }; > > + gce: mailbox@1022c000 { > + compatible = "mediatek,mt8186-gce"; > + reg = <0 0X1022c000 0 0x4000>; > + interrupts = ; > + #mbox-cells = <2>; > + clocks = <&infracfg_ao CLK_INFRA_AO_GCE>; > + clock-names = "gce"; > + }; > + > scp: scp@10500000 { > compatible = "mediatek,mt8186-scp"; > reg = <0 0x10500000 0 0x40000>, > @@ -1197,6 +1207,20 @@ > reg = <0 0x14000000 0 0x1000>; > #clock-cells = <1>; > #reset-cells = <1>; > + mboxes = <&gce 0 CMDQ_THR_PRIO_HIGHEST>, > + <&gce 1 CMDQ_THR_PRIO_HIGHEST>; > + mediatek,gce-client-reg = <&gce SUBSYS_1400XXXX 0 0x1000>; > + }; > + > + mutex: mutex@14001000 { > + compatible = "mediatek,mt8186-disp-mutex"; > + reg = <0 0x14001000 0 0x1000>; > + clocks = <&mmsys CLK_MM_DISP_MUTEX0>; > + interrupts = ; > + mediatek,gce-client-reg = <&gce SUBSYS_1401XXXX 0x1000 0x1000>; > + mediatek,gce-events = , > + ; > + power-domains = <&spm MT8186_POWER_DOMAIN_DIS>; > }; > > smi_common: smi@14002000 { > @@ -1230,6 +1254,49 @@ > power-domains = <&spm MT8186_POWER_DOMAIN_DIS>; > }; > > + ovl0: ovl@14005000 { If there's only one instance, you could drop the trailing zero. Same for all the other nodes. > + compatible = "mediatek,mt8186-disp-ovl", > + "mediatek,mt8192-disp-ovl"; > + reg = <0 0x14005000 0 0x1000>; > + clocks = <&mmsys CLK_MM_DISP_OVL0>; > + interrupts = ; > + iommus = <&iommu_mm IOMMU_PORT_L0_OVL_RDMA0>; > + mediatek,gce-client-reg = <&gce SUBSYS_1400XXXX 0x5000 0x1000>; > + power-domains = <&spm MT8186_POWER_DOMAIN_DIS>; > + }; > + > + ovl0_2l: ovl@14006000 { I think this should be "ovl_2l0" or "ovl_2l" instead? > + compatible = "mediatek,mt8186-disp-ovl-2l", > + "mediatek,mt8192-disp-ovl-2l"; > + reg = <0 0x14006000 0 0x1000>; > + power-domains = <&spm MT8186_POWER_DOMAIN_DIS>; > + clocks = <&mmsys CLK_MM_DISP_OVL0_2L>; > + interrupts = ; > + iommus = <&iommu_mm IOMMU_PORT_L1_OVL_2L_RDMA0>; > + mediatek,gce-client-reg = <&gce SUBSYS_1400XXXX 0x6000 0x1000>; > + }; Also, this patch is missing the aliases for ovl* and rdma*. Without them the display driver doesn't properly detect the second pipeline, and only one CRTC is generated. ChenYu