Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp4886216pxb; Tue, 25 Jan 2022 23:08:43 -0800 (PST) X-Google-Smtp-Source: ABdhPJxjGc5EJVENMjIjKSzFioyc/Vd1nJQljcy4NCgVbrx72qK6JrZ/uf8XZi4Na2FQ0Lq3/8lj X-Received: by 2002:a63:2ccd:: with SMTP id s196mr17823019pgs.555.1643180923629; Tue, 25 Jan 2022 23:08:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643180923; cv=none; d=google.com; s=arc-20160816; b=kbZOFO4VQiMAdrvpTD0HnKnJSn+g7t2RptZw5mqUZH7ZJsASI93gzLoQ2tLJFrjVqi jHAr77JfSNI86F2itroRyvZ3puhkyiP+F1CN1ooW9Py/fIGYYJ8qjkj9zshFTk+A20PQ OxtPAlUhHmrhj5QDuwKbyDD+H6rwPPrMbb/7A2OSubKTCvItrIb/OBHQGPqMqVXAyBr5 sQ4GCEBSJ8I0HnSOy2f0NaYfTiTae8aqrCTcJOczANiEw1a/b2eOoBMK2kF5QnkvJTua B9Dn0ayfdD2s/8LSm37Mt/yJLxkde86XTAntTxV5qh6KOUnwr7VcG91Xtt1uYyrK0lTn RHxg== 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=xx6pPxDWusTyXDPmQQkkGMWNHJXpoVx/sQtpxlse54Q=; b=HStw+hYrYPOYi6bfTvcus3i4YVICpQ/VFEstNKmMCnLmZ4mKIOPAj2RIEGAlm69zrc NqzP9uQwFzLdeMQ5bfuimP2xDwWwsFmUvY0jCfIrgfbqVtu507/PXxqW9K/RKdDb4QFS xdM4GUMhcR1L1OO0kaDjl/FxFDd/w1HB1tFIFix205D3rs8mKRsCbI5qCPcxFKePFixs +qWY2lKAPw8XjFvgSvQ2xFfp1vcB8/BOy+rsatbSzLmj86IMI4Pu1yaL4PQHptY5oFnV eRc6hCsstcfGlbJ7ot36blxGli+/zjZOVODenzEyjfpt55I8/b9qRFMMoXQoBEYzOHKx g30g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@vanguardiasur-com-ar.20210112.gappssmtp.com header.s=20210112 header.b=eL1XuwFO; 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 l6si19177187pgk.191.2022.01.25.23.08.30; Tue, 25 Jan 2022 23:08:43 -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; dkim=pass header.i=@vanguardiasur-com-ar.20210112.gappssmtp.com header.s=20210112 header.b=eL1XuwFO; 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 S229500AbiAYTEu (ORCPT + 99 others); Tue, 25 Jan 2022 14:04:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45100 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229449AbiAYTEs (ORCPT ); Tue, 25 Jan 2022 14:04:48 -0500 Received: from mail-oi1-x229.google.com (mail-oi1-x229.google.com [IPv6:2607:f8b0:4864:20::229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E9D2EC06173D for ; Tue, 25 Jan 2022 11:04:47 -0800 (PST) Received: by mail-oi1-x229.google.com with SMTP id s127so32955754oig.2 for ; Tue, 25 Jan 2022 11:04:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vanguardiasur-com-ar.20210112.gappssmtp.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=xx6pPxDWusTyXDPmQQkkGMWNHJXpoVx/sQtpxlse54Q=; b=eL1XuwFOYuGbQjWefmXn6X59kcQdEJcCZ0aASe9nlq8PTeo3O0rnT1Qpn/1x7ivWkI 4ZhaWoAqzBJr/lYrFFq3xNGF4BFcQ8zYx7O0jheGHTbCPf14s6Z18suZMXkvpRlglKY3 lrfHLQSAHe4Zpg/wXlMH+melwJq2a6fGzyDvKR4QuygoxgypoukSjjY3xCXHtA8nyOKJ qMBZOZ9wR9cSVEkBdyyRJaddOaQqoix59xQlctEVoNA8U+kZLZ3VMwf1WUQrFJNo01Q8 agr1KSTZTMyd4gRVquSgfyVDjQrkZDrKTVlDvOOcbYYVQF5F2y0VG7XVMwJGbPx1tlSt tlog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=xx6pPxDWusTyXDPmQQkkGMWNHJXpoVx/sQtpxlse54Q=; b=q0IrbsXcBKLHTg0bPNA5DP8+mrGHB5I7U+a7cfb23M4bzzxnPfaM8vOTNanE3xCiTu O9mR2y7DP6mdOL+w5IQ5J0xmalc0DoNWwkQ+3QPzrrXMmZneVmabLTe1CVKMp6Dtl/CZ /QC/fKMz8bYC5VNRAlqL0IVVYHMHvAOOBJRYjkFADBwT1qv5Z0RjS401I9hRgwm1IUk7 fOptnGUlL+VpyRO2u07zdVjbMoRdd1M6T3laGmKbqL9Y7IgfGdTmClxciWzDrKSB6897 R0tO+MU6+HVBWZhJMgP5zs57EnThFRilRMWxEWV68HgZpIFA/ZSpIdTKOpbd3r1zBKa3 ePSQ== X-Gm-Message-State: AOAM532tWq9UmokIlNkgAIXf+a+dl/iPSQNxkWxd2/+eJ5iI/wz/PDeC 5wqRxxaURaOC07znbmIe9WH82Q== X-Received: by 2002:a05:6808:1b06:: with SMTP id bx6mr1656291oib.176.1643137486631; Tue, 25 Jan 2022 11:04:46 -0800 (PST) Received: from eze-laptop ([186.122.18.78]) by smtp.gmail.com with ESMTPSA id l18sm8138754otv.49.2022.01.25.11.04.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Jan 2022 11:04:45 -0800 (PST) Date: Tue, 25 Jan 2022 16:04:38 -0300 From: Ezequiel Garcia To: Adam Ford Cc: linux-media@vger.kernel.org, aford@beaconembedded.com, cphealy@gmail.com, kernel test robot , Philipp Zabel , Mauro Carvalho Chehab , Rob Herring , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Greg Kroah-Hartman , Lucas Stach , 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 Subject: Re: [PATCH V4 07/11] arm64: dts: imx8mq: Enable both G1 and G2 VPU's with vpu-blk-ctrl Message-ID: References: <20220125171129.472775-1-aford173@gmail.com> <20220125171129.472775-8-aford173@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220125171129.472775-8-aford173@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 25, 2022 at 11:11:24AM -0600, Adam Ford wrote: > With the Hantro G1 and G2 now setup to run independently, update > the device tree to allow both to operate. This requires the > vpu-blk-ctrl node to be configured. Since vpu-blk-ctrl needs > certain clock enabled to handle the gating of the G1 and G2 > fuses, the clock-parents and clock-rates for the various VPU's > to be moved into the pgc_vpu because they cannot get re-parented > once enabled, and the pgc_vpu is the highest in the chain. > > Signed-off-by: Adam Ford > Reported-by: kernel test robot It doesn't seem correct to have the Reported-by on this commit. Thanks, Ezequiel > Reviewed-by: Ezequiel Garcia > > diff --git a/arch/arm64/boot/dts/freescale/imx8mq.dtsi b/arch/arm64/boot/dts/freescale/imx8mq.dtsi > index 2df2510d0118..549b2440f55d 100644 > --- a/arch/arm64/boot/dts/freescale/imx8mq.dtsi > +++ b/arch/arm64/boot/dts/freescale/imx8mq.dtsi > @@ -737,7 +737,21 @@ pgc_gpu: power-domain@5 { > pgc_vpu: power-domain@6 { > #power-domain-cells = <0>; > reg = ; > - clocks = <&clk IMX8MQ_CLK_VPU_DEC_ROOT>; > + clocks = <&clk IMX8MQ_CLK_VPU_DEC_ROOT>, > + <&clk IMX8MQ_CLK_VPU_G1_ROOT>, > + <&clk IMX8MQ_CLK_VPU_G2_ROOT>; > + assigned-clocks = <&clk IMX8MQ_CLK_VPU_G1>, > + <&clk IMX8MQ_CLK_VPU_G2>, > + <&clk IMX8MQ_CLK_VPU_BUS>, > + <&clk IMX8MQ_VPU_PLL_BYPASS>; > + assigned-clock-parents = <&clk IMX8MQ_VPU_PLL_OUT>, > + <&clk IMX8MQ_VPU_PLL_OUT>, > + <&clk IMX8MQ_SYS1_PLL_800M>, > + <&clk IMX8MQ_VPU_PLL>; > + assigned-clock-rates = <600000000>, > + <600000000>, > + <800000000>, > + <0>; > }; > > pgc_disp: power-domain@7 { > @@ -1457,30 +1471,31 @@ usb3_phy1: usb-phy@382f0040 { > status = "disabled"; > }; > > - vpu: video-codec@38300000 { > - compatible = "nxp,imx8mq-vpu"; > - reg = <0x38300000 0x10000>, > - <0x38310000 0x10000>, > - <0x38320000 0x10000>; > - reg-names = "g1", "g2", "ctrl"; > - interrupts = , > - ; > - interrupt-names = "g1", "g2"; > + vpu_g1: video-codec@38300000 { > + compatible = "nxp,imx8mq-vpu-g1"; > + reg = <0x38300000 0x10000>; > + interrupts = ; > + clocks = <&clk IMX8MQ_CLK_VPU_G1_ROOT>; > + power-domains = <&vpu_blk_ctrl IMX8MQ_VPUBLK_PD_G1>; > + }; > + > + vpu_g2: video-codec@38310000 { > + compatible = "nxp,imx8mq-vpu-g2"; > + reg = <0x38310000 0x10000>; > + interrupts = ; > + clocks = <&clk IMX8MQ_CLK_VPU_G2_ROOT>; > + power-domains = <&vpu_blk_ctrl IMX8MQ_VPUBLK_PD_G2>; > + }; > + > + vpu_blk_ctrl: blk-ctrl@38320000 { > + compatible = "fsl,imx8mq-vpu-blk-ctrl"; > + reg = <0x38320000 0x100>; > + power-domains = <&pgc_vpu>, <&pgc_vpu>, <&pgc_vpu>; > + power-domain-names = "bus", "g1", "g2"; > clocks = <&clk IMX8MQ_CLK_VPU_G1_ROOT>, > - <&clk IMX8MQ_CLK_VPU_G2_ROOT>, > - <&clk IMX8MQ_CLK_VPU_DEC_ROOT>; > - clock-names = "g1", "g2", "bus"; > - assigned-clocks = <&clk IMX8MQ_CLK_VPU_G1>, > - <&clk IMX8MQ_CLK_VPU_G2>, > - <&clk IMX8MQ_CLK_VPU_BUS>, > - <&clk IMX8MQ_VPU_PLL_BYPASS>; > - assigned-clock-parents = <&clk IMX8MQ_VPU_PLL_OUT>, > - <&clk IMX8MQ_VPU_PLL_OUT>, > - <&clk IMX8MQ_SYS1_PLL_800M>, > - <&clk IMX8MQ_VPU_PLL>; > - assigned-clock-rates = <600000000>, <600000000>, > - <800000000>, <0>; > - power-domains = <&pgc_vpu>; > + <&clk IMX8MQ_CLK_VPU_G2_ROOT>; > + clock-names = "g1", "g2"; > + #power-domain-cells = <1>; > }; > > pcie0: pcie@33800000 { > -- > 2.32.0 >