Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp4781592pxb; Tue, 25 Jan 2022 19:29:52 -0800 (PST) X-Google-Smtp-Source: ABdhPJywTK0mI4akgg8wbxFlNH9oFriFjCWMt6G0n4FpnJxCgXQJucw03HhLlrZ1mSBkPq1o9ztS X-Received: by 2002:a17:907:6d03:: with SMTP id sa3mr5408189ejc.517.1643167792146; Tue, 25 Jan 2022 19:29:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643167792; cv=none; d=google.com; s=arc-20160816; b=UwwFyiEMws6ZdkAwzl1U4fzM8iv1VTG4usyuOIUXDFHY09heDlMx/2WbuRAoyEvuCB Qg5QPW9D8xn6v3IqaZW53Qkbz8W1EcsrGf6C8uaGlFUECy5zFs+8F2HDywzbZYIDXJmX H4sydzw0lSU/PWYD4aLAlo95eKqmybpdjpHpH9WkvDQKJzord0m3JoHO9Jr8ajx8m2qb ZYRLZXsm16CpszsXjegMGw2OUOyr471j+hojSJDn5pyoFBTHKSzZNeWUXqiu49QNhxnA YJ4zr2JkswYFhhkzzYY0PN+9p3UgWM6cQ3eGadiE9Py2UbIZsnf2ee36QIRzeGLkclu4 9YhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=zPhYyw8mGkyg00oFAEzylk566J60qaSpZ3Olz66BnKQ=; b=vZfAtfDy77lzLFX3VdiXPzCPwP9A2xgtpiJBB8O6iK6EnY+IcVPvTKPzX9yGu7OseK RLU+csPdZlw77y98U+fCu7zxHGItjAv2xLx7k5NbDsIar0ZwEcxryROB0cyudfiEiMDV pvlJ1GKrtOKJDTCqQ/9TepGk/eck7qhNyPj978F3EdJ5M6BWsk7TcJrOVDMov59Adspz urBW3Uccv5EIuXxppzJVkU2R3UGpbKu1j15q3vfY2y4nWEtvM80EemVC9ME8ijtTHF1r qcAw2EhscfUCqwb1q7sgIbciwgE3fNWBxONndDV+2J9raTauUPhbfzcnKOp3247qzKkN 3I1w== ARC-Authentication-Results: i=1; mx.google.com; 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 o13si4984079ejy.344.2022.01.25.19.29.28; Tue, 25 Jan 2022 19:29:52 -0800 (PST) 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; 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 S230439AbiAYSX3 (ORCPT + 99 others); Tue, 25 Jan 2022 13:23:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35234 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230355AbiAYSWE (ORCPT ); Tue, 25 Jan 2022 13:22:04 -0500 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C8AFAC06175D for ; Tue, 25 Jan 2022 10:21:57 -0800 (PST) Received: from gallifrey.ext.pengutronix.de ([2001:67c:670:201:5054:ff:fe8d:eefb] helo=[IPv6:::1]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nCQRt-0006Sa-B3; Tue, 25 Jan 2022 19:21:45 +0100 Message-ID: <19c4213b279992363080a9f36668562ddd17d1e0.camel@pengutronix.de> Subject: Re: [PATCH V4 11/11] arm64: dts: imx8mm: Enable Hantro G1 and G2 video decoders From: Lucas Stach To: Adam Ford , linux-media@vger.kernel.org Cc: aford@beaconembedded.com, cphealy@gmail.com, Ezequiel Garcia , Philipp Zabel , Mauro Carvalho Chehab , Rob Herring , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Greg Kroah-Hartman , linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-staging@lists.linux.dev Date: Tue, 25 Jan 2022 19:21:44 +0100 In-Reply-To: <20220125171129.472775-12-aford173@gmail.com> References: <20220125171129.472775-1-aford173@gmail.com> <20220125171129.472775-12-aford173@gmail.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.40.4 (3.40.4-1.fc34) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 2001:67c:670:201:5054:ff:fe8d:eefb X-SA-Exim-Mail-From: l.stach@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am Dienstag, dem 25.01.2022 um 11:11 -0600 schrieb Adam Ford: > There are two decoders on the i.MX8M Mini controlled by the > vpu-blk-ctrl. The G1 supports H264 and VP8 while the > G2 support HEVC and VP9. > > Signed-off-by: Adam Ford > Reviewed-by: Ezequiel Garcia Reviewed-by: Lucas Stach > > diff --git a/arch/arm64/boot/dts/freescale/imx8mm.dtsi b/arch/arm64/boot/dts/freescale/imx8mm.dtsi > index 0c7a72c51a31..98aec4421713 100644 > --- a/arch/arm64/boot/dts/freescale/imx8mm.dtsi > +++ b/arch/arm64/boot/dts/freescale/imx8mm.dtsi > @@ -1272,6 +1272,22 @@ gpu_2d: gpu@38008000 { > power-domains = <&pgc_gpu>; > }; > > + vpu_g1: video-codec@38300000 { > + compatible = "nxp,imx8mm-vpu-g1"; > + reg = <0x38300000 0x10000>; > + interrupts = ; > + clocks = <&clk IMX8MM_CLK_VPU_G1_ROOT>; > + power-domains = <&vpu_blk_ctrl IMX8MM_VPUBLK_PD_G1>; > + }; > + > + vpu_g2: video-codec@38310000 { > + compatible = "nxp,imx8mq-vpu-g2"; > + reg = <0x38310000 0x10000>; > + interrupts = ; > + clocks = <&clk IMX8MM_CLK_VPU_G2_ROOT>; > + power-domains = <&vpu_blk_ctrl IMX8MM_VPUBLK_PD_G2>; > + }; > + > vpu_blk_ctrl: blk-ctrl@38330000 { > compatible = "fsl,imx8mm-vpu-blk-ctrl", "syscon"; > reg = <0x38330000 0x100>; > @@ -1282,6 +1298,12 @@ vpu_blk_ctrl: blk-ctrl@38330000 { > <&clk IMX8MM_CLK_VPU_G2_ROOT>, > <&clk IMX8MM_CLK_VPU_H1_ROOT>; > clock-names = "g1", "g2", "h1"; > + assigned-clocks = <&clk IMX8MM_CLK_VPU_G1>, > + <&clk IMX8MM_CLK_VPU_G2>; > + assigned-clock-parents = <&clk IMX8MM_VPU_PLL_OUT>, > + <&clk IMX8MM_VPU_PLL_OUT>; > + assigned-clock-rates = <600000000>, > + <600000000>; > #power-domain-cells = <1>; > }; >