Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5896416rdb; Thu, 14 Dec 2023 02:53:05 -0800 (PST) X-Google-Smtp-Source: AGHT+IFPqsB7DqOjD3P/qSzUGI6pbMNF9XmY1RTON3D2zcVTeDZaDhkjeUA2OuOPMHrrMJm7Iz3G X-Received: by 2002:a05:690c:4291:b0:5e1:8fb2:5234 with SMTP id gj17-20020a05690c429100b005e18fb25234mr4404133ywb.73.1702551185642; Thu, 14 Dec 2023 02:53:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702551185; cv=none; d=google.com; s=arc-20160816; b=uRP4yB+4wm8Z41nLja2XRXV/7LIDQxW5G0tRo7AZH70746/axHTOzoglLNn7HW5NCq rZicDpDUudjIp2ynHtKZ59B5he2i9NmA0TTYFQDLE60UgH2dtTcPtE1A3igcwCRjNdXs x4R7T/6FT9WyMRR7lDjA5+80E66iKe+3kUE4Qd+Z47brcJOUI4u+hqizCu4w+9AQV2nL ulzGKRkLav+PSs4UKJY+JBbPMBoTIccL8aAc7fNmXOcLtmGXFOxm+I6esSZoDc332NXD 20MCye73skKTyhHfIb2h6VZqroLNGGNrIJ3k9Z7abAROczJGSjxp8La+6IatvfZtlgrW Jl9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=y4dfAw7rocDw5DM5kaVAxAIqErCTl60iolnNM1WzMyw=; fh=d3/QUS7+5l5YXkQJH0r0VCdK7hzB23jzlgZEApDy510=; b=iMysYBcYESX482lZ6Cu65uObVGhKpsHx+obcd+qn6d6WTTcWuF1eyYw1GmzqbJQvHm AQm05C6QXPSC1Vd5z48EQheRm0Vso7Q4nOP//epdYagEXCiNpo06q4kvejSnFZdbGZak e+wGmRAmzZ8PoGAtxDCnyqQBI0xu7s6A+am6GzA+gMZc7Xx1ty/9mi/Pe4ptxhN2C884 Yt7uzezE3zZaUOqvXHSWU7A4WE0QCZWq/k/Zr/bHJWjcuu9cZQGycXhUJw5gukUbEsN/ uZp2bITnNnfyrfcLnNYeBfLTYoV3eAeKWeSVYmSQ1zAxKJ1xQGaOGeGxfBwccyMe+KFZ 2mLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=CRok9X89; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id bh12-20020a170902a98c00b001cfc9c9f736si10978237plb.93.2023.12.14.02.53.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Dec 2023 02:53:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=CRok9X89; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 625358142D95; Thu, 14 Dec 2023 02:53:02 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1443755AbjLNKws (ORCPT + 99 others); Thu, 14 Dec 2023 05:52:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48840 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1443745AbjLNKwq (ORCPT ); Thu, 14 Dec 2023 05:52:46 -0500 Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [IPv6:2a00:1098:ed:100::25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 202BE116; Thu, 14 Dec 2023 02:52:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1702551170; bh=KdM45sfm+eGY9YVK/KcmBv13GTLPFxIxJQNtxyNWCQ0=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=CRok9X898ifzj+gS0bQ0BbUWwVEM5h5smxro6yD4A9MBfRJO0u+hm5g44nXn1yV52 pvz2s3a7y/KyrRD6krcJlI+4XY4I0XMfqk62PnnQdOuSAIdpJ8YjHHD3nOAncDL6NA FXnFJenJotgMWZhRp/KS9AXwov4hIrubEYZeyj6Zh4OVsCCLSU1+JTDUYlz9kHp0rQ ZeWu9/Ul2TEB/Iv1fbyWfxBWOVEvFVZqhpMlkcoHy7m4fLmc4D0yavH9bHkmbvE0no y12xcxWxrpP+G9VOb6FZX2UvISjRqbGfYqKyfSnLAbDrizKXmoobSmNcCNih9H3seh t22nvFFr3rD+g== Received: from [100.90.194.27] (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: ehristev) by madrid.collaboradmins.com (Postfix) with ESMTPSA id 25516378000B; Thu, 14 Dec 2023 10:52:49 +0000 (UTC) Message-ID: <952a01c3-1ca0-42f8-bdbe-ab8857e27dc4@collabora.com> Date: Thu, 14 Dec 2023 12:52:46 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 4/4] arm64: dts: mediatek: mt8186: Add venc node To: AngeloGioacchino Del Regno , 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> Content-Language: en-US From: Eugen Hristev In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Thu, 14 Dec 2023 02:53:02 -0800 (PST) On 12/14/23 12:50, AngeloGioacchino Del Regno wrote: > 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? :-) Hi, There is none. This just works exactly as mt8183, thus reusing the same compatible. Do you want a new dedicated mt8186 compatible as well for the situation *just in case* some specific difference showing up later ? Eugen > >>> +            #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 > > > _______________________________________________ > Kernel mailing list -- kernel@mailman.collabora.com > To unsubscribe send an email to kernel-leave@mailman.collabora.com