Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp114470pxf; Tue, 6 Apr 2021 16:41:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzSWhzCpiVlYYpEKpHrlU2oz3efzHondzBHsauFFtkFPctfVHXzVE+UhiTQS8uLgC8z1c4y X-Received: by 2002:a92:c108:: with SMTP id p8mr574342ile.48.1617752465235; Tue, 06 Apr 2021 16:41:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617752465; cv=none; d=google.com; s=arc-20160816; b=YGqa4BFIZtXloKMzGuGUVBpEzw0/cr5otEEnzQiVf//vPNwTh16CpCp49VFOhSFCLL EtBgXDUHViI24TFLMm+zxXPqvj11+JBvKJk8oDzIXGUBEjuPRd07BbdYe+IVm+rNxpGq HXo+o+riPIhYWMQ/CbDf7hK50jGAMuaG+xICA2q2ffffb/2cBrwNhE9ZKjIkFUhT1Zqg g0gbOmE/FmNnfHDDK3q5tDqV7p+MtDiC775t3260/Ge8/MK0ivaSZ2hxI4EjzvQPi+Rq ZHlOPHpKIB7XDh4VAsxVJm/ezgBIuT3e0PLAL6M1qTQJUwci1hpBxuLnZGNk+MECQlGI S/dQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=BijuNj/gB+ekaEmmA8LrY661zA7h8cfh54Fp9N5XImY=; b=BBaz1BRVM5NGT95BJzu0FlL1t8Upc4KhhqzlQQ+JZaMHWgduzNyxhvbB9c8PIVpmNd gtTgrv4fOX9YoZVzE4/T05I1aRSwmSy5NKtQthrrLfwLmO0TGxwbXKvbFGgoRXenXmu8 H6JudYXz8P++TAaU0IyZLUbDF9dQHXOjY3bIal52E9HhFnotT14sPpiXDndPFAqW64WG OtnscOeSd7RDo92utTra4VxkDUQJIM/FDbDsnZbam1yMLqOjx5lbwz8VBzK6IXSr1XRu ZmN1ahfEvA/x9BgoqAO4WkIkDbBLOy6gA/VQ+ZuUR2gprFoANMPFinX+v5Umn5lICXXC g8gA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@xs4all.nl header.s=s2 header.b=Mj25JZmO; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 9si20091440ilx.110.2021.04.06.16.40.52; Tue, 06 Apr 2021 16:41:05 -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=@xs4all.nl header.s=s2 header.b=Mj25JZmO; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242885AbhDFKrA (ORCPT + 99 others); Tue, 6 Apr 2021 06:47:00 -0400 Received: from lb2-smtp-cloud9.xs4all.net ([194.109.24.26]:40193 "EHLO lb2-smtp-cloud9.xs4all.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237178AbhDFKq6 (ORCPT ); Tue, 6 Apr 2021 06:46:58 -0400 Received: from cust-b5b5937f ([IPv6:fc0c:c16d:66b8:757f:c639:739b:9d66:799d]) by smtp-cloud9.xs4all.net with ESMTPA id TjEKl4QZl43ycTjENlNbh6; Tue, 06 Apr 2021 12:46:49 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xs4all.nl; s=s2; t=1617706009; bh=BijuNj/gB+ekaEmmA8LrY661zA7h8cfh54Fp9N5XImY=; h=Subject:To:From:Message-ID:Date:MIME-Version:Content-Type:From: Subject; b=Mj25JZmODKqH9Wa319CsXY/rf/agUte6VdLGCWrTwn1PapxIdqHWcoSSdYI49hfpl iicPi+DEA5/ZnEeBf1w0FLfZATxHCkVCj1qjjFxblvkq+FIlIhl62NbmnWV5vpDsjq Skd6gqWYNyZR04lRIlFMFMTpNRjJqaDVOs3SHYXlL4Se2CGwtMfe61htvU5YlrPKm1 6BNQahOLRPzstWSVvMKqWI0kwcfLgHQ0JxpQk5CndLk3srw4Ws0UmiqbdGriFzf0Pg 0wuaof6nJ7yEvYVUZsFdnmZAODLr+n5xKzFmfq9pvSaO6J7HsvTGTq3uEe1j7D9Fsh G5OCQ7rd0JLgw== Subject: Re: [PATCH v4,2/3] arm64: dts: mt8173: Separating mtk-vcodec-enc device node To: Irui Wang , Alexandre Courbot , Tiffany Lin , Andrew-CT Chen , Mauro Carvalho Chehab , Rob Herring , Matthias Brugger , Tomasz Figa , Hsin-Yi Wang , Maoguang Meng , Longfei Wang , Yunfei Dong , yong.wu@mediatek.com Cc: linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, srv_heupstream@mediatek.com, linux-mediatek@lists.infradead.org References: <20210325122625.15100-1-irui.wang@mediatek.com> <20210325122625.15100-2-irui.wang@mediatek.com> From: Hans Verkuil Message-ID: <245594e6-a4c9-0f53-58e3-1b32ca6dc651@xs4all.nl> Date: Tue, 6 Apr 2021 12:46:44 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0 Thunderbird/78.9.0 MIME-Version: 1.0 In-Reply-To: <20210325122625.15100-2-irui.wang@mediatek.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4xfGS8Ozq7AoDb3Y768nCuFXbTPFDoeRRpDRihEFX9V+FsXaIXLur8lgJ3uFHKRwo8r4NDnNh0X/stl/UcYJsaOiks5kkt/Q+8AMDbddiMV+HystE0LP+p Dsuvhf6dvovyGwfs+12Q3N1n7hJ22nwlR8ppm6x9KDUjfj1SlHv6W+nuR5mZHlzFW50J+sveyy0gaDQOzOvyCq91Xk25A/E/VI1l0WTZrznNjWg8fxmy6vPN wd5SeiFDHeHPe3a0vxpLLBMa3ZiD1zl/f5WFIKoruigFzdZmSeL1NdcAlmjpQY9rgg177F2y5hZjQns3JvbKEvaqxjNNJC+36h7amyqnzNCE1LcEZS6teYmK gEHzpMJpAZQ6EPZXumjs+4mFET1co90XCYrzNhYWBQccf21STBaL2/BL6KtuWXWJMnMEdxRbusZoJORIMwq3sS7xFH15Km1DnDVMzCm2EpQ3ppf6N1aMcMMI Td6mvD2DcBcWfpzf1ujhu9XsKGPVWYbU4g34HfT4e/ttPT707+GbMz+z9wxPInwmuCboVC2NSv3P1/248BuaNEKQ8Rm8xR7jDy/mY/suV7pn0caD6IvFWTD0 JuWWrXnHFQdT5SHbxHGQBTYUCRmfoSUMXtp1V2uABfdWbN1movOCKw6IdhgHrOzq8Nr4+C4DhuemH78LUODT7ng/2uVC3z9e39XrHPOpvLP9Kmb8KnfCBuJH dOdQ9CZVH3NZMV6C/iXw7vjIk9seppgkTZ2Fp8Rt6sEvAn+6C9rg4VIV5XnEvfnvFmjVEECz2FNYUdJTFR046jLxnrYO6WzDPWsf3zA2iCI4G+AWD4Tv/jm6 rHW565cZ3T/015OjdYmIKwGXzpxaKE+pj69Vc+NVkqZr0ZRAcRz6q2xGK/UpCg== Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Irui, On 25/03/2021 13:26, Irui Wang wrote: > There are two separate hardware encoder blocks inside MT8173. > Split the current mtk-vcodec-enc node to match the hardware architecture. I've accepted patches 1 & 3, so this patch can be merged by whoever maintains these dts files. Regards, Hans > > Acked-by: Tiffany Lin > Signed-off-by: Hsin-Yi Wang > Signed-off-by: Maoguang Meng > Signed-off-by: Irui Wang > --- > arch/arm64/boot/dts/mediatek/mt8173.dtsi | 60 ++++++++++++------------ > 1 file changed, 31 insertions(+), 29 deletions(-) > > diff --git a/arch/arm64/boot/dts/mediatek/mt8173.dtsi b/arch/arm64/boot/dts/mediatek/mt8173.dtsi > index 7fa870e4386a..f5950e9fc51d 100644 > --- a/arch/arm64/boot/dts/mediatek/mt8173.dtsi > +++ b/arch/arm64/boot/dts/mediatek/mt8173.dtsi > @@ -1458,14 +1458,11 @@ > clock-names = "apb", "smi"; > }; > > - vcodec_enc: vcodec@18002000 { > + vcodec_enc_avc: vcodec@18002000 { > compatible = "mediatek,mt8173-vcodec-enc"; > - reg = <0 0x18002000 0 0x1000>, /* VENC_SYS */ > - <0 0x19002000 0 0x1000>; /* VENC_LT_SYS */ > - interrupts = , > - ; > - mediatek,larb = <&larb3>, > - <&larb5>; > + reg = <0 0x18002000 0 0x1000>; /* VENC_SYS */ > + interrupts = ; > + mediatek,larb = <&larb3>; > iommus = <&iommu M4U_PORT_VENC_RCPU>, > <&iommu M4U_PORT_VENC_REC>, > <&iommu M4U_PORT_VENC_BSDMA>, > @@ -1476,29 +1473,12 @@ > <&iommu M4U_PORT_VENC_REF_LUMA>, > <&iommu M4U_PORT_VENC_REF_CHROMA>, > <&iommu M4U_PORT_VENC_NBM_RDMA>, > - <&iommu M4U_PORT_VENC_NBM_WDMA>, > - <&iommu M4U_PORT_VENC_RCPU_SET2>, > - <&iommu M4U_PORT_VENC_REC_FRM_SET2>, > - <&iommu M4U_PORT_VENC_BSDMA_SET2>, > - <&iommu M4U_PORT_VENC_SV_COMA_SET2>, > - <&iommu M4U_PORT_VENC_RD_COMA_SET2>, > - <&iommu M4U_PORT_VENC_CUR_LUMA_SET2>, > - <&iommu M4U_PORT_VENC_CUR_CHROMA_SET2>, > - <&iommu M4U_PORT_VENC_REF_LUMA_SET2>, > - <&iommu M4U_PORT_VENC_REC_CHROMA_SET2>; > + <&iommu M4U_PORT_VENC_NBM_WDMA>; > mediatek,vpu = <&vpu>; > - clocks = <&topckgen CLK_TOP_VENCPLL_D2>, > - <&topckgen CLK_TOP_VENC_SEL>, > - <&topckgen CLK_TOP_UNIVPLL1_D2>, > - <&topckgen CLK_TOP_VENC_LT_SEL>; > - clock-names = "venc_sel_src", > - "venc_sel", > - "venc_lt_sel_src", > - "venc_lt_sel"; > - assigned-clocks = <&topckgen CLK_TOP_VENC_SEL>, > - <&topckgen CLK_TOP_VENC_LT_SEL>; > - assigned-clock-parents = <&topckgen CLK_TOP_VCODECPLL>, > - <&topckgen CLK_TOP_VCODECPLL_370P5>; > + clocks = <&topckgen CLK_TOP_VENC_SEL>; > + clock-names = "venc_sel"; > + assigned-clocks = <&topckgen CLK_TOP_VENC_SEL>; > + assigned-clock-parents = <&topckgen CLK_TOP_VCODECPLL>; > }; > > jpegdec: jpegdec@18004000 { > @@ -1530,5 +1510,27 @@ > <&vencltsys CLK_VENCLT_CKE0>; > clock-names = "apb", "smi"; > }; > + > + vcodec_enc_vp8: vcodec@19002000 { > + compatible = "mediatek,mt8173-vcodec-enc-vp8"; > + reg = <0 0x19002000 0 0x1000>; /* VENC_LT_SYS */ > + interrupts = ; > + iommus = <&iommu M4U_PORT_VENC_RCPU_SET2>, > + <&iommu M4U_PORT_VENC_REC_FRM_SET2>, > + <&iommu M4U_PORT_VENC_BSDMA_SET2>, > + <&iommu M4U_PORT_VENC_SV_COMA_SET2>, > + <&iommu M4U_PORT_VENC_RD_COMA_SET2>, > + <&iommu M4U_PORT_VENC_CUR_LUMA_SET2>, > + <&iommu M4U_PORT_VENC_CUR_CHROMA_SET2>, > + <&iommu M4U_PORT_VENC_REF_LUMA_SET2>, > + <&iommu M4U_PORT_VENC_REC_CHROMA_SET2>; > + mediatek,larb = <&larb5>; > + mediatek,vpu = <&vpu>; > + clocks = <&topckgen CLK_TOP_VENC_LT_SEL>; > + clock-names = "venc_lt_sel"; > + assigned-clocks = <&topckgen CLK_TOP_VENC_LT_SEL>; > + assigned-clock-parents = > + <&topckgen CLK_TOP_VCODECPLL_370P5>; > + }; > }; > }; >