Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2486734pxb; Tue, 12 Oct 2021 07:38:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzB0/alZTW9Qfw+FLKGLiHf2k2NhzHd6baf6k2nA0OtOmWuDIu+lVvkmBiMgMeARxY2ETkS X-Received: by 2002:a05:6a00:10c1:b0:44d:20e5:b4d6 with SMTP id d1-20020a056a0010c100b0044d20e5b4d6mr12017208pfu.25.1634049484218; Tue, 12 Oct 2021 07:38:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634049484; cv=none; d=google.com; s=arc-20160816; b=glwS5Ums1AAFUb49tRzgZil9KcubbtPDC/4KN8SwDTwHk03OCehGOExnR1wP0LWwAG LhQhkUddWn7gvc4uK7HN2qr0MU0DcO6gl8W9aKKSBsEKLGVymBMeHx0qYig2NJ1P+WV7 USV7pLFXKarz1AepSMzlQwcR0TfcBgTNEG8TSeeno/HBju6Ux5l9CSd8ZIhloD7OTBI8 Pj9/uy6vcnH/gnj4C583CqHMa3qbFkhoY7ZjQ9naZxfhf2e8PM7ZPzVPpWvpxzBsFS1v mWpUj3N7T1fStd+j6o2BoZnlgKB7O8ETuSaAkiCDT7fAn1/JzutAzXQoIPPEmkBH+ou8 Qzag== 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=06e6wPZ3iJIZkVfYU6mOd+9BHWAt7QF0ffPt8RbsnBk=; b=hDpFRbYkb51dYO5Fba3qqCiR1epE8wWtaElL5na8uA2wHCCDRMTiydimPoFMXL6sWt hsfAsruw1Z1ERaSNIh7afVaYa99xnz0Tn7jDbNLFoQGzdjBbgWO7RPAX/WA7PcIqLJA7 2Zcw2c2zgoCg0WDO/uGgIJs+vm7Z82N488+PXa7gec/5BQbljB1vik5n9yJacjnnacCV DuJIiyGTYEuASmYuBqkeKEwYJjAqWkj1EsRFGN5MOklmT3AVFQxCmGUbt90WIS+iVQAN UJLuqHa+ugHaYayqzpY8rEXOBjXP2etwfLQNC03GFY3s1h0dxa4tFUEsx5EtJfPP8dMk K4NQ== 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 w25si18125544pgk.256.2021.10.12.07.37.51; Tue, 12 Oct 2021 07:38:04 -0700 (PDT) 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 S237395AbhJLOiR (ORCPT + 99 others); Tue, 12 Oct 2021 10:38:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33144 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237309AbhJLOiI (ORCPT ); Tue, 12 Oct 2021 10:38:08 -0400 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 48F07C061745; Tue, 12 Oct 2021 07:36:06 -0700 (PDT) Received: from benjamin-XPS-13-9310.. (unknown [IPv6:2a01:e0a:4cb:a870:dcd8:9f87:c3be:dc06]) (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 581031F43BCA; Tue, 12 Oct 2021 15:36:04 +0100 (BST) From: Benjamin Gaignard To: mchehab@kernel.org, p.zabel@pengutronix.de, gregkh@linuxfoundation.org, mripard@kernel.org, paul.kocialkowski@bootlin.com, wens@csie.org, jernej.skrabec@gmail.com, hverkuil-cisco@xs4all.nl, jc@kynesim.co.uk, ezequiel@vanguardiasur.com.ar Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-staging@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, Benjamin Gaignard Subject: [PATCH v2 4/4] arm64: dts: imx8mq: Add node to G2 hardware Date: Tue, 12 Oct 2021 16:35:52 +0200 Message-Id: <20211012143552.661751-5-benjamin.gaignard@collabora.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20211012143552.661751-1-benjamin.gaignard@collabora.com> References: <20211012143552.661751-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 the VPU node in two: one for G1 and one for G2 since they are different hardware blocks. Add syscon for the hardware control block. Remove the reg-names property that is useless. Each VPU node only needs one interrupt. Change G2 assigned clock to match the specification. In both nodes all the clocks need to be assigned to make sure that the control block will be correctly clocked even if only one device node is enabled. Signed-off-by: Benjamin Gaignard Please note that the only purpose of this commit is to allow to test G2 hardware block for IMX8MQ until a proper solution isuing power domain can be found. Do not merge it. --- arch/arm64/boot/dts/freescale/imx8mq.dtsi | 43 ++++++++++++++++++----- 1 file changed, 34 insertions(+), 9 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mq.dtsi b/arch/arm64/boot/dts/freescale/imx8mq.dtsi index 4066b1612655..9125e52147df 100644 --- a/arch/arm64/boot/dts/freescale/imx8mq.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mq.dtsi @@ -1432,15 +1432,16 @@ usb3_phy1: usb-phy@382f0040 { status = "disabled"; }; - vpu: video-codec@38300000 { + vpu_ctrl: syscon@38320000 { + compatible = "nxp,imx8mq-vpu-ctrl", "syscon"; + reg = <0x38320000 0x10000>; + }; + + vpu_g1: video-codec@38300000 { compatible = "nxp,imx8mq-vpu"; - reg = <0x38300000 0x10000>, - <0x38310000 0x10000>, - <0x38320000 0x10000>; - reg-names = "g1", "g2", "ctrl"; - interrupts = , - ; - interrupt-names = "g1", "g2"; + reg = <0x38300000 0x10000>; + interrupts = ; + interrupt-names = "g1"; clocks = <&clk IMX8MQ_CLK_VPU_G1_ROOT>, <&clk IMX8MQ_CLK_VPU_G2_ROOT>, <&clk IMX8MQ_CLK_VPU_DEC_ROOT>; @@ -1453,9 +1454,33 @@ 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>; + power-domains = <&pgc_vpu>; + nxp,imx8m-vpu-ctrl = <&vpu_ctrl>; + }; + + vpu_g2: video-codec@38310000 { + compatible = "nxp,imx8mq-vpu-g2"; + reg = <0x38310000 0x10000>; + interrupts = ; + interrupt-names = "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>, <300000000>, <800000000>, <0>; power-domains = <&pgc_vpu>; + nxp,imx8m-vpu-ctrl = <&vpu_ctrl>; }; pcie0: pcie@33800000 { -- 2.30.2