From mboxrd@z Thu Jan 1 00:00:00 1970 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 C5481C4332F for ; Thu, 14 Dec 2023 10:50:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: Content-Type:In-Reply-To:References:Cc:To:From:Subject:MIME-Version:Date: Message-ID:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=TmpcZazjJz2AKKsGLKhjrvJSsEoIHbzdxbqkg2ZNleU=; b=Dt3gRNBAptcL5Qy4STQYFSZKl5 MiBpXwZJO3++LzNp9Ifllq9qyignQ6rQYicTgN+2qxyRdhYZPwCj4QIZBBsqETv4a+/YzTUr6/iFz G/dXp3rci9z+p6YtoP3wzArwPEFhAQePYaQbBpwDTdDawlSj3kHA/fN2mbPqCUXC5UJdW2HJPGBHy 4UiPzN4tr1w1MfBV42+RN5mg28Red0mpFzHBa6IDVe0W0p2phuo+nYSaBS/PCyq/w8aJj5UOgjO8E efDfXDbiNyfqhdp0DS0VeCO4IbhyqLMeUMtjljik/3twEGY6Tx5TH/GUlq24Jr7vSQ1H7fkdAsyZo MZjFvS8w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rDjIr-00HX6j-2F; Thu, 14 Dec 2023 10:50:53 +0000 Received: from madrid.collaboradmins.com ([2a00:1098:ed:100::25]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rDjIo-00HX5G-1l; Thu, 14 Dec 2023 10:50:52 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1702551047; bh=KQPPWQ7ff7K6RVCr76kqdYlu1bxc+1vJ5J89gJwofFw=; h=Date:Subject:From:To:Cc:References:In-Reply-To:From; b=a7sZySPblmTeMFftL/9ixGNcikvNBMVPwpY94ey3QDN8xp3HwZybSYjESrfS+Clws gKC2PU3t30NXOSSJGAQ5DIqKacg7UnSxFuJr9dnOe0H6PVtbIdBOYmvYrw/vtk2HBe OgrYq1DrQMk0RteGZEZTlHcwGVuECjh5ymX9mwFOUEKYIzMUEkrhHfqxEzwrtmp6Nb i0JTZP8x44boidCbpYz+BRDQ58irrtLeHEuIRCXJX8d5Ow4jt4A30m9n+zZ8EzuKGO 4dpd+YS+m+3nI6nOAyvcnr6WMllxjKHcys84GxXtC2s1QiTHmlhiodYqayhoUxjxSp A0FAyEJLjVTvg== Received: from [100.113.186.2] (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madrid.collaboradmins.com (Postfix) with ESMTPSA id D487F378000B; Thu, 14 Dec 2023 10:50:46 +0000 (UTC) Message-ID: Date: Thu, 14 Dec 2023 11:50:46 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 4/4] arm64: dts: mediatek: mt8186: Add venc node Content-Language: en-US From: AngeloGioacchino Del Regno To: Eugen Hristev , linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-mediatek@lists.infradead.org Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kernel@collabora.com, tiffany.lin@mediatek.com, andrew-ct.chen@mediatek.com, matthias.bgg@gmail.com, Kyrie Wu , Allen-KH Cheng , Hsin-Yi Wang References: <20231213122017.102100-1-eugen.hristev@collabora.com> <20231213122017.102100-4-eugen.hristev@collabora.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231214_025050_754661_1FF62DA9 X-CRM114-Status: GOOD ( 13.94 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org Il 14/12/23 11:44, AngeloGioacchino Del Regno ha scritto: > Il 13/12/23 13:20, Eugen Hristev ha scritto: >> From: Kyrie Wu >> >> Add video encoder node. >> >> Signed-off-by: Kyrie Wu >> Signed-off-by: Allen-KH Cheng >> Reviewed-by: Hsin-Yi Wang >> [eugen.hristev@collabora.com: minor cleanup] >> Signed-off-by: Eugen Hristev >> --- >>   arch/arm64/boot/dts/mediatek/mt8186.dtsi | 24 ++++++++++++++++++++++++ >>   1 file changed, 24 insertions(+) >> >> diff --git a/arch/arm64/boot/dts/mediatek/mt8186.dtsi >> b/arch/arm64/boot/dts/mediatek/mt8186.dtsi >> index 66ead3f23336..8535ff2b44e9 100644 >> --- a/arch/arm64/boot/dts/mediatek/mt8186.dtsi >> +++ b/arch/arm64/boot/dts/mediatek/mt8186.dtsi >> @@ -1993,6 +1993,30 @@ larb7: smi@17010000 { >>               power-domains = <&spm MT8186_POWER_DOMAIN_VENC>; >>           }; >> +        venc: venc@17020000 { >> +            compatible = "mediatek,mt8183-vcodec-enc"; Sorry for the double email; I've just noticed: where's mediatek,mt8186-vcodec-enc? :-) >> +            #address-cells = <2>; >> +            #size-cells = <2>; >> +            reg = <0 0x17020000 0 0x2000>; >> +            interrupts = ; >> +            iommus = <&iommu_mm IOMMU_PORT_L7_VENC_RCPU>, >> +                 <&iommu_mm IOMMU_PORT_L7_VENC_REC>, >> +                 <&iommu_mm IOMMU_PORT_L7_VENC_BSDMA>, >> +                 <&iommu_mm IOMMU_PORT_L7_VENC_SV_COMV>, >> +                 <&iommu_mm IOMMU_PORT_L7_VENC_RD_COMV>, >> +                 <&iommu_mm IOMMU_PORT_L7_VENC_CUR_LUMA>, >> +                 <&iommu_mm IOMMU_PORT_L7_VENC_CUR_CHROMA>, >> +                 <&iommu_mm IOMMU_PORT_L7_VENC_REF_LUMA>, >> +                 <&iommu_mm IOMMU_PORT_L7_VENC_REF_CHROMA>; >> +            dma-ranges = <0x1 0x0 0x1 0x0 0x1 0x0>; >> +            mediatek,scp = <&scp>; >> +            clocks = <&vencsys CLK_VENC_CKE1_VENC>; >> +            clock-names = "MT_CG_VENC"; > > clock-names = "venc"; (please no underscores and please lower case) > >> +            assigned-clocks = <&topckgen CLK_TOP_VENC>; >> +            assigned-clock-parents = <&topckgen CLK_TOP_UNIVPLL_D3>; >> +            power-domains = <&spm MT8186_POWER_DOMAIN_VENC>; >> +        }; > > > ....also: > > The following order of properties in device nodes is preferred: > > 1. "compatible" > 2. "reg" > 3. "ranges" > 4. Standard/common properties (defined by common bindings, e.g. without >    vendor-prefixes) > 5. Vendor-specific properties > 6. "status" (if applicable) > 7. Child nodes, where each node is preceded with a blank line > > Documentation/devicetree/bindings/dts-coding-style.rst > > Please reorder as per the DTS coding style document, and also please rename the > venc node to use a generic name, such as "video-encoder@xxxx" > > Cheers, > Angelo