Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp7507680pxb; Thu, 18 Feb 2021 11:56:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJwcRq/Ve2JU2RKgtFAqdPJJ9CvtMMBxcOU39LqxnTItSfEdKR2No5z/y67eYAY2qbJYs3WC X-Received: by 2002:a17:907:7252:: with SMTP id ds18mr5561837ejc.239.1613678173204; Thu, 18 Feb 2021 11:56:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613678173; cv=none; d=google.com; s=arc-20160816; b=UyeNkJQNRvh4rZi7ZCDDkoI6skJAD3PW+TklyeivMbnHyCC8wPaaOO6WQSosr6PiFT 9FCwmgATQLGqbjgUs80n8hVH8AHiq1fm9U65WWFG8RgwTHiEszrhpZ/BbYpN6yj6O7/r pFyS3ZSJGpmWMwGWhanKvC3IL+xnJG/9lIZMF8LNmGpqjGqcJ5wBL5b131dMO3qKWNyN zGHebmA+mzDY5PnplqoOLoquFEknVIFGLkt7470iW4wZdFF6i6kdwPmwaeHx2GX66Hdu 0WymEyiaRbTVRUV5qXW8BUnXb/eXZeauaGtND0Nss5EYuUfjxT0Tqm0kCaGHR5lgl+KU yOxQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=8U8eBsS94Wmy+AkDNqwrk3NBkQZwd1u2KfWUAfnpVBM=; b=YKg3YsfvB9j+hhsCCFbfvGP+SYvnTMorlktTirscvzg0ysWLCgh2EnD64N8lFeIsie h33kYaYrcipVFXFyfm51NjEZVgZt0po5qgOeSrYkzLc5oEtVlAHuVoXvqi4NPmnI4jTd n3YVn8OACRl7O9E4pXK9e3o8ExUdvflTA6rXw+pLkqYpc3Q11JWWVYyagsvAA+NIl/ej xG8RQ7ZvLvdcimlsYwny8bgbZv/tIdI6R958cU7xLiMcJovhSCCGKj4Q/5dKOusuncnN fzaL2sFisEwJJpHE6g8/0jgIJ9717hhLZNqpcJVDWjIzGfRDhczVf/rKOXUzrKHnS1f2 umDQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q17si4288409ejy.390.2021.02.18.11.55.48; Thu, 18 Feb 2021 11:56:13 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232001AbhBRTwg (ORCPT + 99 others); Thu, 18 Feb 2021 14:52:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52390 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231377AbhBRTWW (ORCPT ); Thu, 18 Feb 2021 14:22:22 -0500 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e3e3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2B40DC061574; Thu, 18 Feb 2021 11:21:41 -0800 (PST) Received: from localhost.localdomain (unknown [IPv6:2a01:e0a:4cb:a870:851a:1dfb:a143:80e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: benjamin.gaignard) by bhuna.collabora.co.uk (Postfix) with ESMTPSA id 91EA71F4589B; Thu, 18 Feb 2021 19:19:10 +0000 (GMT) From: Benjamin Gaignard To: ezequiel@collabora.com, p.zabel@pengutronix.de, mchehab@kernel.org, robh+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, gregkh@linuxfoundation.org, mripard@kernel.org, paul.kocialkowski@bootlin.com, wens@csie.org, jernej.skrabec@siol.net, peng.fan@nxp.com, hverkuil-cisco@xs4all.nl, dan.carpenter@oracle.com Cc: linux-media@vger.kernel.org, linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kernel@collabora.com, Benjamin Gaignard Subject: [PATCH v2 9/9] arm64: dts: imx8mq: Add node to G2 hardware Date: Thu, 18 Feb 2021 20:18:44 +0100 Message-Id: <20210218191844.297869-10-benjamin.gaignard@collabora.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210218191844.297869-1-benjamin.gaignard@collabora.com> References: <20210218191844.297869-1-benjamin.gaignard@collabora.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Split VPU node in two: one for G1 and one for G2 since they are different hardware blocks. Signed-off-by: Benjamin Gaignard --- version 2: - remove useless clocks in VPUs nodes arch/arm64/boot/dts/freescale/imx8mq.dtsi | 41 +++++++++++++++++------ 1 file changed, 31 insertions(+), 10 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mq.dtsi b/arch/arm64/boot/dts/freescale/imx8mq.dtsi index d9d9efc8592d..8358e214d696 100644 --- a/arch/arm64/boot/dts/freescale/imx8mq.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mq.dtsi @@ -1287,17 +1287,15 @@ vpu_reset: vpu-reset@38320000 { #reset-cells = <1>; }; - vpu: video-codec@38300000 { + vpu_g1: video-codec@38300000 { compatible = "nxp,imx8mq-vpu"; - reg = <0x38300000 0x10000>, - <0x38310000 0x10000>; - reg-names = "g1", "g2"; - interrupts = , - ; - interrupt-names = "g1", "g2"; + reg = <0x38300000 0x10000>; + reg-names = "g1"; + interrupts = ; + interrupt-names = "g1"; clocks = <&clk IMX8MQ_CLK_VPU_G1_ROOT>, - <&clk IMX8MQ_CLK_VPU_G2_ROOT>; - clock-names = "g1", "g2"; + <&clk IMX8MQ_CLK_VPU_DEC_ROOT>; + clock-names = "g1", "bus"; assigned-clocks = <&clk IMX8MQ_CLK_VPU_G1>, <&clk IMX8MQ_CLK_VPU_G2>, <&clk IMX8MQ_CLK_VPU_BUS>, @@ -1306,12 +1304,35 @@ vpu: video-codec@38300000 { <&clk IMX8MQ_VPU_PLL_OUT>, <&clk IMX8MQ_SYS1_PLL_800M>, <&clk IMX8MQ_VPU_PLL>; - assigned-clock-rates = <600000000>, <600000000>, + assigned-clock-rates = <600000000>, <300000000>, <800000000>, <0>; resets = <&vpu_reset IMX8MQ_RESET_VPU_RESET_G1>; power-domains = <&pgc_vpu>; }; + vpu_g2: video-codec@38310000 { + compatible = "nxp,imx8mq-vpu-g2"; + reg = <0x38310000 0x10000>; + reg-names = "g2"; + interrupts = ; + interrupt-names = "g2"; + clocks = <&clk IMX8MQ_CLK_VPU_G2_ROOT>, + <&clk IMX8MQ_CLK_VPU_DEC_ROOT>; + clock-names = "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>, <300000000>, + <800000000>, <0>; + resets = <&vpu_reset IMX8MQ_RESET_VPU_RESET_G2>; + power-domains = <&pgc_vpu>; + }; + pcie0: pcie@33800000 { compatible = "fsl,imx8mq-pcie"; reg = <0x33800000 0x400000>, -- 2.25.1