Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp52698pxm; Tue, 22 Feb 2022 16:28:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJykRGQk2vSmTjD6RBvWbR7WPOn+63ReXIb/K+zBEizjKAF1QoGwzWYdm3AlCWJ8JzQ23fnf X-Received: by 2002:a50:e1c6:0:b0:410:e2e8:9d3 with SMTP id m6-20020a50e1c6000000b00410e2e809d3mr28980578edl.180.1645576119461; Tue, 22 Feb 2022 16:28:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645576119; cv=none; d=google.com; s=arc-20160816; b=tTnIeKjvfYEqBhvJNutsO5Eh1D2qWSb6/5AScu0hz3nTwM8v99JfKsiAaTZcqLzzu6 Gmjdw9uMreq++32oc3n5OIWvEtXYR9psUNAb/7dTMVO9fQC4b8JxIANFMynW696Ts9T2 VYFvSjV+ZFG+wfqKpv22fBzj4tP/6jyzTGO2vhi0kIBy85s+0AXF+avC5z1DaG4lNW97 ApbBkHu7ejnXzu5CG0lE1z82kIGiiIQ1n8vkaHJbYY++aKJy8Xqnm4TZo603KzvjXywT Vc/C3CXIKNDvme7ESPs/ewdQvE19fykWNSTslkaeo7Fh688XXMwiP4AWBwptKkcGFuR5 81GQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=XsQJe5cVfnCmJ5zCJ4oPBodbsxIc24RPZnk45P1vJIM=; b=XjAcvNJwggU2kDnMlhHMBlQoXd1R6J4fBfPzlbYAeMu0geMeDceh8grFtEkSywgIUv 7kqoq2CSXtISBLvFnBSa3lVmHQ2Si/w8dOa31UUJW05AoOXpc+NVCxy0QIl8Njwq2F4L r/8fDV/BWtJXDFxvGCeaE40okcJv/GvpvC2IE16lCI6aqk391aR64uRL3vGIow/35f3Q WkpO4YBCaGecMaU2w9PBvlKVsyEBRhmODs+mOiD3Ft2hoAHijCwRizMCIVuWM6h9/D20 UuBgr7aBGO8CTA0q7zChHipNXxNzPLCWMSvcGusWrCGkOnnIRVrBFw4lob4aNYNwsnoa E2Nw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=O+uQejWk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w17si4685447ejb.439.2022.02.22.16.28.16; Tue, 22 Feb 2022 16:28:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=O+uQejWk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236075AbiBVWe3 (ORCPT + 99 others); Tue, 22 Feb 2022 17:34:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52540 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236063AbiBVWe1 (ORCPT ); Tue, 22 Feb 2022 17:34:27 -0500 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [46.235.227.227]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7C15CC6277; Tue, 22 Feb 2022 14:34:01 -0800 (PST) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: nfraprado) with ESMTPSA id 07B771F442FC DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1645569240; bh=bgMJpukKsAN/2biajYD0mGaPqwL63HQC8cQg4u9C94g=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=O+uQejWktUJuxx1ndtBGCiMmIzqI2aGr5fsrAL9xiQZvod9c3+N1eb1Y7E6MkPHVI YnJri23wDglTuWQIrUjh1XTDWfHgHO8CZ/tn+W38Jz/Jn9I7LJNHo8RRn5WfmmWu9Z 74uMw7c35/26DBzTdU5TLzjX1PYImKCzQ/V4RzHAgXCe9DavaKekAaX9Coflafyeux GIY/oHrt2gTyTkCEuoowdF2bqAzaQW3Ohm06/MfUDruQYkomovnE2M9Wb9ZZ5mkoeI 5RhnttcZA6Io9DSPpENTtcsPOXzS8Yv7t5fUMfTVOacDA7DOYItyoT0HAcp9FVgnTT igFCguYvhIPng== Date: Tue, 22 Feb 2022 17:33:55 -0500 From: =?utf-8?B?TsOtY29sYXMgRi4gUi4gQS4=?= Prado To: Allen-KH Cheng Cc: Matthias Brugger , Rob Herring , --to=Krzysztof Kozlowski , Project_Global_Chrome_Upstream_Group@mediatek.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, Chen-Yu Tsai , Ryder Lee Subject: Re: [PATCH v2 17/23] arm64: dts: mt8192: Add vcodec lat and core nodes Message-ID: <20220222223355.o4o6v7yxozsnkz33@notapiano> References: <20220218091633.9368-1-allen-kh.cheng@mediatek.com> <20220218091633.9368-18-allen-kh.cheng@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220218091633.9368-18-allen-kh.cheng@mediatek.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 18, 2022 at 05:16:27PM +0800, Allen-KH Cheng wrote: > Add vcodec lat and core nodes for mt8192 SoC. > > Signed-off-by: Allen-KH Cheng > --- > arch/arm64/boot/dts/mediatek/mt8192.dtsi | 58 ++++++++++++++++++++++++ > 1 file changed, 58 insertions(+) > > diff --git a/arch/arm64/boot/dts/mediatek/mt8192.dtsi b/arch/arm64/boot/dts/mediatek/mt8192.dtsi > index 936aa788664f..543a80252ce5 100644 > --- a/arch/arm64/boot/dts/mediatek/mt8192.dtsi > +++ b/arch/arm64/boot/dts/mediatek/mt8192.dtsi > @@ -1291,6 +1291,64 @@ > power-domains = <&spm MT8192_POWER_DOMAIN_ISP2>; > }; > > + vcodec_dec: vcodec_dec@16000000 { It's usually preferred to use '-' instead of '_' in the node name, like: vcodec_dec: vcodec-dec@16000000 { Same thing for the other vcodec nodes below. But more importantly, the Documentation/devicetree/bindings/media/mediatek,vcodec-subdev-decoder.yaml dt-binding shows the mtk-vcodec-lat and mtk-vcodec-core as subnodes of vcodec-dec. So I would follow that same structure here. Unless it does make more sense to have the nodes separate like this, but in that case the dt-binding should be updated. > + compatible = "mediatek,mt8192-vcodec-dec"; > + reg = <0 0x16000000 0 0x1000>; /* VDEC_SYS */ > + mediatek,scp = <&scp>; > + iommus = <&iommu0 M4U_PORT_L4_VDEC_MC_EXT>; > + }; > + > + vcodec_lat: vcodec_lat@0x16010000 { Again, please drop the '0x' prefix. > + compatible = "mediatek,mtk-vcodec-lat"; > + reg = <0 0x16010000 0 0x800>; /* VDEC_MISC */ > + interrupts = ; > + iommus = <&iommu0 M4U_PORT_L5_VDEC_LAT0_VLD_EXT>, > + <&iommu0 M4U_PORT_L5_VDEC_LAT0_VLD2_EXT>, > + <&iommu0 M4U_PORT_L5_VDEC_LAT0_AVC_MV_EXT>, > + <&iommu0 M4U_PORT_L5_VDEC_LAT0_PRED_RD_EXT>, > + <&iommu0 M4U_PORT_L5_VDEC_LAT0_TILE_EXT>, > + <&iommu0 M4U_PORT_L5_VDEC_LAT0_WDMA_EXT>, > + <&iommu0 M4U_PORT_L5_VDEC_LAT0_RG_CTRL_DMA_EXT>, > + <&iommu0 M4U_PORT_L5_VDEC_UFO_ENC_EXT>; > + clocks = <&topckgen CLK_TOP_VDEC_SEL>, > + <&vdecsys_soc CLK_VDEC_SOC_VDEC>, > + <&vdecsys_soc CLK_VDEC_SOC_LAT>, > + <&vdecsys_soc CLK_VDEC_SOC_LARB1>, > + <&topckgen CLK_TOP_MAINPLL_D4>; > + clock-names = "vdec-sel", "vdec-soc-vdec", "vdec-soc-lat", "vdec-vdec", > + "vdec-top"; > + assigned-clocks = <&topckgen CLK_TOP_VDEC_SEL>; > + assigned-clock-parents = <&topckgen CLK_TOP_MAINPLL_D4>; > + power-domains = <&spm MT8192_POWER_DOMAIN_VDEC>; > + }; > + > + vcodec_core: vcodec_core@0x16025000 { Ditto.