Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5895605rdb; Thu, 14 Dec 2023 02:51:06 -0800 (PST) X-Google-Smtp-Source: AGHT+IFkv0FoA3o3kT+yV9CTDqmvryYggB8d7ywmuRt2S600wRSlVu0ykXJHfScTx82I6CKUnog1 X-Received: by 2002:a05:6358:d5a4:b0:170:6f63:3357 with SMTP id ms36-20020a056358d5a400b001706f633357mr12780472rwb.12.1702551066388; Thu, 14 Dec 2023 02:51:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702551066; cv=none; d=google.com; s=arc-20160816; b=xExyAG0snj8PFSh0KeHfslLzb4YvXEHFd3KXym3gohqgr6lIRHMpjBdAysJX4wal60 Pvp9LEYHeqcg+okrnXHE9VM/goKSIWOqk7JweOYYJS3ReJhzUVLmz1TbGSsB/dtOqrj/ qpeQ/13A6wOuzM9x+L4TzZpj+Y4VEX/VjvfitLxbIvQx2XWGV7WESlKAGgEXzPQYkvLo oEy7hYI3PBZ7KIEJpAxO4B1HQUKBR2vqCpYxUMk+SzkocETPLVLTQLycJ52X6qUsBiT7 oROjRaxHR4ZEHGl9+wowYF7L199RH8r5l4XV0HYEdHT5q83BXzwQUag0efYPkyMAxjiZ lZeQ== 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:references :cc:to:from:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=TmpcZazjJz2AKKsGLKhjrvJSsEoIHbzdxbqkg2ZNleU=; fh=2IKspkd6Q3tRQN5m/J9mLCNk6x717hTKScidvDZwlew=; b=RFaHO9mCiqr1vLxIfAwX3ZqrYCxovUUG8nPyauDamQs+SKKXh+PnKZ+/XhF6+ihYr1 LdoSVBaTo8HmK7P/p0sdaQlEcrJtN9gJ3fl52fSeo3hsoGIPusI0qSxXnVV80d54m20a nVgAkaWvVOFw90zltq0BQ0zkcGdwnEyIHUvwyIjjalw4KHWjce66HKNBEfTTTacA8eJJ U5gh75AeRfWS6PMHcsWyOT4+oLaLxyWhbEinxkf/M735zmwZw1JQONBF355rAqGCNlsn lmwQXgl64pvnvP8Ls90VaoDIwJvULxJ2zqAzFPwtCLvofZzOEVRW+8Rlijs4dmYwl4KY astQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=a7sZySPb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id e22-20020a17090ab39600b0028a2af4cdc4si10911868pjr.139.2023.12.14.02.51.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Dec 2023 02:51:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=a7sZySPb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (Postfix) with ESMTP id CF299807FCFD; Thu, 14 Dec 2023 02:51:03 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1443748AbjLNKuq (ORCPT + 99 others); Thu, 14 Dec 2023 05:50:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37236 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1443770AbjLNKum (ORCPT ); Thu, 14 Dec 2023 05:50:42 -0500 Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [IPv6:2a00:1098:ed:100::25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F17EC114; Thu, 14 Dec 2023 02:50:48 -0800 (PST) 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-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 agentk.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 (agentk.vger.email [0.0.0.0]); Thu, 14 Dec 2023 02:51:04 -0800 (PST) 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