Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4133677pxj; Tue, 15 Jun 2021 16:25:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxo9vcftOloFuaWjUOqy1v3sIu2E076xLj69kZsFJ3fuZa2iK6OV5UNo+33cgvYGJNARL75 X-Received: by 2002:a17:906:240b:: with SMTP id z11mr1960488eja.545.1623799528926; Tue, 15 Jun 2021 16:25:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623799528; cv=none; d=google.com; s=arc-20160816; b=AkMcP13kjVnEtX/p8QHsrtd+QIL6zSopqy13SHWOLEgZtbx/LhFttvQm9eHbAZcIos Fs+VsqF+hn1WfXIe2xViDK6xms8wXmFY/cpS2H4DqjAVZ2OOcR3AoPf+bhQKrNG3d+hC v4GTzEblxFy79eMEi2Z3mRolZCsxllgd2bCCnz1GBTQhJJt2Z0fZ85O8A1zLw8Xo/gU+ ii6vnGShevMp8mKUlw3PQ6Qx2inllUXpX5/fQRMsOpR5Wh4Jv8FdGc2qA1mJaHawu7TP SPZRA4kJr8AXKVA2BWRrj+T2M6SubXu9OlRKsWltbUAcupT3OEpWTysRTI5h2BcJVyPX f4OQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=9HhwzBekXq4s/7oe8Pz6JCx9pBT1U53i/yVKaRLZezs=; b=VLbja/8zuO/mvgkwTdu4JSvA+nxwggPmPim7mxXCHPFgHWCaM7AD6jxeBv5lWvIjqg uFOxMlt6IlV7KQ79jNcuppSw74LFwMHEMN5vpw2B183jlCXttNd2AscWz9ChoMUR0Cjm V2eRj+NS/8UsneDQwAUqHQNc4Zd1Tu8K+SxV78ypb0cP0iNJc6RQINw0ldSY46aiRqlh UMKXtwAsCbKJK+4w4zxTv1gLN2vcvl7YNuHYr7U3gvAxH1OYslAv3I/riVTYFZV7URtR eOHg4FdIadC8b+GkV7gG1ZYxPU8inJse2JjJnWG11ZzWKzJIj1kxPtQbW09a83BTOt5R HxUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=rQPJyyAT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l20si313652ejz.525.2021.06.15.16.25.06; Tue, 15 Jun 2021 16:25:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=rQPJyyAT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231483AbhFOXZd (ORCPT + 99 others); Tue, 15 Jun 2021 19:25:33 -0400 Received: from mail.kernel.org ([198.145.29.99]:44150 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231463AbhFOXZc (ORCPT ); Tue, 15 Jun 2021 19:25:32 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 74ABA6137D; Tue, 15 Jun 2021 23:23:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1623799407; bh=8KaQxhUKyVIdleVI/MbJP9taXr9qf9QVrVaGV1lkISU=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=rQPJyyATzcYV/t8Ib0KRkwaOAtw1rbUTcyV1R52Fp0+Ubce5kGEgLD0ZnUwzcfhLL DFnDygfcraHYjsc/VY4RLg0/4wKzNdypPXdY7K2LxM42ZwrIHxU4Evdxh8QoLNGs1B olurORMqeSKk+BkufGX72W4ZMmubC257MazV/9ZF2UCCYAVXAn9JBQzT9RugcUjvwi tlY2y33xgzMZ6+He8vf4zisYnyd+XeTBrZZSajKOYfDI09N01+n2u/0W+2FWl6fHTR JIfiT9oX+EQtkWzaAQNZ/5IFFUqjc8xo5h+zA5MCFcqK/xVyzKMTKzwIKrCqa1c5Ax y5LMi6r7mUEJQ== Received: by mail-ej1-f46.google.com with SMTP id l1so498881ejb.6; Tue, 15 Jun 2021 16:23:27 -0700 (PDT) X-Gm-Message-State: AOAM531FfVB0RYum+h9h40rNgaQ8EDOf6Zym15//CkKUYI4cQRx7GB3s SRpdgT80T6DuoFDWUfc575wCQf4l+T0CpwOW/Q== X-Received: by 2002:a17:907:9620:: with SMTP id gb32mr1989537ejc.127.1623799406003; Tue, 15 Jun 2021 16:23:26 -0700 (PDT) MIME-Version: 1.0 References: <20210615173233.26682-1-tinghan.shen@mediatek.com> <20210615173233.26682-25-tinghan.shen@mediatek.com> In-Reply-To: <20210615173233.26682-25-tinghan.shen@mediatek.com> From: Chun-Kuang Hu Date: Wed, 16 Jun 2021 07:23:15 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 25/27] arm64: dts: mt8195: add vdosys1 support for MT8195 To: Tinghan Shen Cc: Rob Herring , Matthias Brugger , DTML , "moderated list:ARM/Mediatek SoC support" , Linux ARM , linux-kernel , srv_heupstream , Seiya Wang , wenst@google.com, Project_Global_Chrome_Upstream_Group@mediatek.com, Nancy Lin Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Tinghan: Tinghan Shen =E6=96=BC 2021=E5=B9=B46=E6=9C=881= 6=E6=97=A5 =E9=80=B1=E4=B8=89 =E4=B8=8A=E5=8D=885:39=E5=AF=AB=E9=81=93=EF= =BC=9A > > From: Nancy Lin > > add vdosys1 support for MT8195 > > Signed-off-by: Nancy Lin > --- > arch/arm64/boot/dts/mediatek/mt8195.dtsi | 178 +++++++++++++++++++++-- > 1 file changed, 169 insertions(+), 9 deletions(-) > > diff --git a/arch/arm64/boot/dts/mediatek/mt8195.dtsi b/arch/arm64/boot/d= ts/mediatek/mt8195.dtsi > index e273833a49f8..a98609989905 100644 > --- a/arch/arm64/boot/dts/mediatek/mt8195.dtsi > +++ b/arch/arm64/boot/dts/mediatek/mt8195.dtsi > @@ -26,6 +26,7 @@ > dpi1 =3D &disp_dpi1; > dp-intf0 =3D &dp_intf0; > dp-intf1 =3D &dp_intf1; > + merge5 =3D &merge5; > }; > > clocks { > @@ -2241,22 +2242,27 @@ > > vdosys_config@1c01a000 { > compatible =3D "mediatek,mt8195-vdosys"; > - reg =3D <0 0x1c01a000 0 0x1000>; > - reg-names =3D "vdosys0_config"; > + reg =3D <0 0x1c01a000 0 0x1000>,<0 0x1c100000 0 0= x1000>; > + reg-names =3D "vdosys0_config","vdosys1_config"; > iommus =3D <&iommu_vdo M4U_PORT_L0_DISP_RDMA0>; > power-domains =3D <&spm MT8195_POWER_DOMAIN_VDOSY= S0>; > - mboxes =3D <&gce1 0 0 CMDQ_THR_PRIO_4>; > + mboxes =3D <&gce1 0 0 CMDQ_THR_PRIO_4>, > + <&gce1 1 0 CMDQ_THR_PRIO_4>; > }; > > mutex: disp_mutex0@1c016000 { > compatible =3D "mediatek,mt8195-disp-mutex"; > - reg =3D <0 0x1c016000 0 0x1000>; > - reg-names =3D "vdo0_mutex"; > - clocks =3D <&vdosys0 CLK_VDO0_DISP_MUTEX0>; > + reg =3D <0 0x1c016000 0 0x1000>, > + <0 0x1c101000 0 0x1000>; > + reg-names =3D "vdo0_mutex","vdo1_mutex"; > + clocks =3D <&vdosys0 CLK_VDO0_DISP_MUTEX0>, > + <&vdosys1 CLK_VDO1_DISP_MUTEX>; > power-domains =3D <&spm MT8195_POWER_DOMAIN_VDOSY= S0>; > - clock-names =3D "vdo0_mutex"; > - interrupts =3D ; > - mediatek,gce-events =3D ; > + clock-names =3D "vdo0_mutex","sub_mutex"; > + interrupts =3D , > + ; > + mediatek,gce-events =3D , > + ; > }; > > ovl0: disp_ovl@1c000000 { > @@ -2446,6 +2452,92 @@ > power-domains =3D <&spm MT8195_POWER_DOMAIN_VDOSY= S1>; > }; > > + disp_pseudo_ovl0@1c104000 { > + compatible =3D "mediatek,mt8195-disp-pseudo-ovl"; Where is the definition of this compatible? > + reg =3D <0 0x1c104000 0 0x1000>, > + <0 0x1c105000 0 0x1000>, > + <0 0x1c106000 0 0x1000>, > + <0 0x1c107000 0 0x1000>, > + <0 0x1c108000 0 0x1000>, > + <0 0x1c109000 0 0x1000>, > + <0 0x1c10A000 0 0x1000>, > + <0 0x1c10B000 0 0x1000>, > + <0 0x1c10C000 0 0x1000>, > + <0 0x1c10D000 0 0x1000>, > + <0 0x1c10E000 0 0x1000>, > + <0 0x1c10F000 0 0x1000>, > + <0 0x1c100000 0 0x1000>; > + reg-names =3D "vdo1_mdp_rdma0","vdo1_mdp_rdma1","= vdo1_mdp_rdma2", > + "vdo1_mdp_rdma3","vdo1_mdp_rdma4", > + "vdo1_mdp_rdma5","vdo1_mdp_rdma6", > + "vdo1_mdp_rdma7","vdo1_merge0", > + "vdo1_merge1","vdo1_merge2","vdo1_mer= ge3","top"; > + mediatek,gce-client-reg =3D <&gce1 SUBSYS_1c10XXX= X 0x4000 0x1000>, > + <&gce1 SUBSYS_1c10XXXX = 0x5000 0x1000>, > + <&gce1 SUBSYS_1c10XXXX = 0x6000 0x1000>, > + <&gce1 SUBSYS_1c10XXXX = 0x7000 0x1000>, > + <&gce1 SUBSYS_1c10XXXX = 0x8000 0x1000>, > + <&gce1 SUBSYS_1c10XXXX = 0x9000 0x1000>, > + <&gce1 SUBSYS_1c10XXXX = 0xA000 0x1000>, > + <&gce1 SUBSYS_1c10XXXX = 0xB000 0x1000>, > + <&gce1 SUBSYS_1c10XXXX = 0xC000 0x1000>, > + <&gce1 SUBSYS_1c10XXXX = 0xD000 0x1000>, > + <&gce1 SUBSYS_1c10XXXX = 0xE000 0x1000>, > + <&gce1 SUBSYS_1c10XXXX = 0xF000 0x1000>, > + <&gce1 SUBSYS_1c10XXXX = 0x0000 0x1000>; > + clocks =3D <&vdosys1 CLK_VDO1_MDP_RDMA0>, > + <&vdosys1 CLK_VDO1_MDP_RDMA1>, > + <&vdosys1 CLK_VDO1_MDP_RDMA2>, > + <&vdosys1 CLK_VDO1_MDP_RDMA3>, > + <&vdosys1 CLK_VDO1_MDP_RDMA4>, > + <&vdosys1 CLK_VDO1_MDP_RDMA5>, > + <&vdosys1 CLK_VDO1_MDP_RDMA6>, > + <&vdosys1 CLK_VDO1_MDP_RDMA7>, > + <&vdosys1 CLK_VDO1_VPP_MERGE0>, > + <&vdosys1 CLK_VDO1_VPP_MERGE1>, > + <&vdosys1 CLK_VDO1_VPP_MERGE2>, > + <&vdosys1 CLK_VDO1_VPP_MERGE3>, > + <&vdosys1 CLK_VDO1_MERGE0_DL_ASYNC>, > + <&vdosys1 CLK_VDO1_MERGE1_DL_ASYNC>, > + <&vdosys1 CLK_VDO1_MERGE2_DL_ASYNC>, > + <&vdosys1 CLK_VDO1_MERGE3_DL_ASYNC>; > + clock-names =3D "vdo1_mdp_rdma0","vdo1_mdp_rdma1"= , > + "vdo1_mdp_rdma2","vdo1_mdp_rdma3", > + "vdo1_mdp_rdma4","vdo1_mdp_rdma5", > + "vdo1_mdp_rdma6","vdo1_mdp_rdma7", > + "vdo1_merge0","vdo1_merge1", > + "vdo1_merge2","vdo1_merge3", > + "vdo1_merge0_async","vdo1_merge1_as= ync", > + "vdo1_merge2_async","vdo1_merge3_as= ync"; > + power-domains =3D <&spm MT8195_POWER_DOMAIN_VDOSY= S1>; > + mediatek,larb =3D <&larb2>; > + mediatek,smi-id =3D <0>; > + iommus =3D <&iommu_vdo M4U_PORT_L2_MDP_RDMA0>; > + interrupts =3D , /*rdma0*/ > + ,= /*rdma1*/ > + ,= /*rdma2*/ > + ,= /*rdma3*/ > + ,= /*rdma4*/ > + ,= /*rdma5*/ > + ,= /*rdma6*/ > + ,= /*rdma7*/ > + ,= /*merge0*/ > + ,= /*merge1*/ > + ,= /*merge2*/ > + ;= /*merge3*/ > + }; > + > + merge5: disp_vpp_merge5@1c110000 { > + compatible =3D "mediatek,mt8195-disp-merge"; Ditto. > + reg =3D <0 0x1c110000 0 0x1000>; > + interrupts =3D ; > + clocks =3D <&vdosys1 CLK_VDO1_VPP_MERGE4>, > + <&vdosys1 CLK_VDO1_MERGE4_DL_ASYNC>; > + clock-names =3D "merge5","merge5_async"; > + power-domains =3D <&spm MT8195_POWER_DOMAIN_VDOSY= S1>; > + mediatek,gce-client-reg =3D <&gce1 SUBSYS_1c11XXX= X 0x0000 0x1000>; > + }; > + > disp_dpi1: disp_dpi1@1c112000 { > compatible =3D "mediatek,mt8195-dpi"; > reg =3D <0 0x1c112000 0 0x1000>; > @@ -2478,6 +2570,54 @@ > status =3D "disabled"; > }; > > + disp_ethdr@1c114000 { > + compatible =3D "mediatek,mt8195-disp-ethdr"; Ditto. > + reg =3D <0 0x1c114000 0 0x1000>, > + <0 0x1c115000 0 0x1000>, > + <0 0x1c117000 0 0x1000>, > + <0 0x1c119000 0 0x1000>, > + <0 0x1c11A000 0 0x1000>, > + <0 0x1c11B000 0 0x1000>, > + <0 0x1c11C000 0 0x1000>, > + <0 0x1c100000 0 0x1000>; > + reg-names =3D "hdr_disp_mixer","hdr_vdo_fe0","hdr= _vdo_fe1", > + "hdr_gfx_fe0","hdr_gfx_fe1","hdr_vdo_= be", > + "hdr_adl_ds","top"; > + mediatek,gce-client-reg =3D <&gce1 SUBSYS_1c11XXX= X 0x4000 0x1000>, > + <&gce1 SUBSYS_1c11XXXX = 0x5000 0x1000>, > + <&gce1 SUBSYS_1c11XXXX = 0x7000 0x1000>, > + <&gce1 SUBSYS_1c11XXXX = 0x9000 0x1000>, > + <&gce1 SUBSYS_1c11XXXX = 0xA000 0x1000>, > + <&gce1 SUBSYS_1c11XXXX = 0xB000 0x1000>, > + <&gce1 SUBSYS_1c11XXXX = 0xC000 0x1000>, > + <&gce1 SUBSYS_1c10XXXX = 0x0000 0x1000>; > + clocks =3D <&vdosys1 CLK_VDO1_DISP_MIXER>, > + <&vdosys1 CLK_VDO1_HDR_VDO_FE0>, > + <&vdosys1 CLK_VDO1_HDR_VDO_FE1>, > + <&vdosys1 CLK_VDO1_HDR_GFX_FE0>, > + <&vdosys1 CLK_VDO1_HDR_GFX_FE1>, > + <&vdosys1 CLK_VDO1_HDR_VDO_BE>, > + <&vdosys1 CLK_VDO1_26M_SLOW>, > + <&vdosys1 CLK_VDO1_HDR_VDO_FE0_DL_ASYNC>= , > + <&vdosys1 CLK_VDO1_HDR_VDO_FE1_DL_ASYNC>= , > + <&vdosys1 CLK_VDO1_HDR_GFX_FE0_DL_ASYNC>= , > + <&vdosys1 CLK_VDO1_HDR_GFX_FE1_DL_ASYNC>= , > + <&vdosys1 CLK_VDO1_HDR_VDO_BE_DL_ASYNC>, > + <&topckgen CLK_TOP_ETHDR_SEL>; > + clock-names =3D "hdr_disp_mixer","hdr_vdo_fe0","h= dr_vdo_fe1", > + "hdr_gfx_fe0","hdr_gfx_fe1","hdr_vd= o_be", > + "hdr_adl_ds","hdr_vdo_fe0_async", > + "hdr_vdo_fe1_async","hdr_gfx_fe0_as= ync", > + "hdr_gfx_fe1_async","hdr_vdo_be_asy= nc", > + "ethdr_top"; > + power-domains =3D <&spm MT8195_POWER_DOMAIN_VDOSY= S1>; > + mediatek,larb =3D <&larb3>; > + mediatek,smi-id =3D <1>; > + iommus =3D <&iommu_vpp M4U_PORT_L3_HDR_DS>, > + <&iommu_vpp M4U_PORT_L3_HDR_ADL>; > + interrupts =3D ; /*disp mixer*/ > + }; > + > hdmi0: hdmi@1c300000 { > compatible =3D "mediatek,mt8195-hdmi"; > reg =3D <0 0x1c300000 0 0x1000>; > @@ -2517,6 +2657,26 @@ > }; > }; > > + disp_pseudo_ovl_l2 { > + compatible =3D "mediatek,mt8195-pseudo-ovl-larb"; Ditto. > + mediatek,larb-id =3D <2>; > + power-domains =3D <&spm MT8195_POWER_DOMAIN_VDOSYS1>; > + iommus =3D <&iommu_vdo M4U_PORT_L2_MDP_RDMA0>, > + <&iommu_vdo M4U_PORT_L2_MDP_RDMA2>, > + <&iommu_vdo M4U_PORT_L2_MDP_RDMA4>, > + <&iommu_vdo M4U_PORT_L2_MDP_RDMA6>; > + }; > + > + disp_pseudo_ovl_l3 { > + compatible =3D "mediatek,mt8195-pseudo-ovl-larb"; Ditto. Regards, Chun-Kuang. > + mediatek,larb-id =3D <3>; > + power-domains =3D <&spm MT8195_POWER_DOMAIN_VDOSYS1>; > + iommus =3D <&iommu_vpp M4U_PORT_L3_MDP_RDMA1>, > + <&iommu_vpp M4U_PORT_L3_MDP_RDMA3>, > + <&iommu_vpp M4U_PORT_L3_MDP_RDMA5>, > + <&iommu_vpp M4U_PORT_L3_MDP_RDMA7>; > + }; > + > hdmiddc0: ddc_i2c { > compatible =3D "mediatek,mt8195-hdmi-ddc"; > clocks =3D <&clk26m>; > -- > 2.18.0 > _______________________________________________ > Linux-mediatek mailing list > Linux-mediatek@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-mediatek