Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp343157pxf; Thu, 18 Mar 2021 01:23:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwQ+en8II6NxM76DU64HEu5XQqKqUnx+cuyEbOEHKzF5ZRbOAOwVANZJPU2Z/1h4ZpgwY1R X-Received: by 2002:a05:6402:31b7:: with SMTP id dj23mr2194300edb.245.1616055824580; Thu, 18 Mar 2021 01:23:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616055824; cv=none; d=google.com; s=arc-20160816; b=E9MCH69gucxABJjFvH0sQNNGxoouvBZmvpOPuSs85y6HGX44YZVke+bFX1BJatdZxE pgYqWTO+1hWe4GU56RO3do2FgwBBj916w8SvPAl8cotDWdW/1nR/eXEKWvQ56OGxMhyo N6lVAojUAiUQskrtL6/gb6ToNFl+IfhjjLWbvW5V1VYMaGGeb9fCRyNjD4ewqSh3PsCy atZWjsUfEA5fq3EI/wrDR9QVOKn0K8Vu1V3Xyt/SFpCATpEuCTSR66jV1TVwLLZMwaJL TG1/8cmp5u7/fRZ7NOgoFCc/xfZo/J0brIDxnKKs/EaV5iri6cVyFdFLzBMQ6aUvWFKJ Psrg== 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=h3dUoF00ugug/yrFwyboPGSiWMOYNmSvZOiX/KPnQdg=; b=T57WwQ1JXXHyLnuI26Gneu4rRJya6MRwHAx92E4dNlMfPrrzG0j+fcQz3dUymTY2lA hOO95kLCTXoyTdazKdf1edsilaA0x/oFUUwerXycy4zDRBomtM89wMk7B0tXk89niVDW xv2BPW+aJGXlcH44WnplkBpY2ySZ1puSDKtSaHuDT+vEFZmFVUdRExmOP/xpl6FNJzqj YJAJ+9nlcprZ2ptZOiVlYte8YUPLdFwNUyOio/XzkjKhvZFKco6kTNe2KGHsVyhypwHe YWqNc9X5OIwWtWP8XTON92gEw8446cnjpYzwOgFCEcZ9l2SRF10pCaZdnZs4bG7TeNmP 7FOg== 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 u4si1086463ejy.298.2021.03.18.01.23.22; Thu, 18 Mar 2021 01:23:44 -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 S230090AbhCRIV4 (ORCPT + 99 others); Thu, 18 Mar 2021 04:21:56 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:39010 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229876AbhCRIVU (ORCPT ); Thu, 18 Mar 2021 04:21:20 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: benjamin.gaignard) with ESMTPSA id 9ABD41F456D3 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, festevam@gmail.com, lee.jones@linaro.org, gregkh@linuxfoundation.org, mripard@kernel.org, paul.kocialkowski@bootlin.com, wens@csie.org, jernej.skrabec@siol.net, hverkuil-cisco@xs4all.nl, emil.l.velikov@gmail.com Cc: kernel@pengutronix.de, linux-imx@nxp.com, 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, devel@driverdev.osuosl.org, kernel@collabora.com, Benjamin Gaignard Subject: [PATCH v6 13/13] arm64: dts: imx8mq: Add node to G2 hardware Date: Thu, 18 Mar 2021 09:20:46 +0100 Message-Id: <20210318082046.51546-14-benjamin.gaignard@collabora.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210318082046.51546-1-benjamin.gaignard@collabora.com> References: <20210318082046.51546-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. Add syscon for hardware control block. Remove reg-names property that is useless. Each VPU node only need one interrupt. Signed-off-by: Benjamin Gaignard --- version 5: - use syscon instead of VPU reset 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 17c449e12c2e..b537d153ebbd 100644 --- a/arch/arm64/boot/dts/freescale/imx8mq.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mq.dtsi @@ -1329,15 +1329,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>; @@ -1350,9 +1351,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,imx8mq-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,imx8mq-vpu-ctrl = <&vpu_ctrl>; }; pcie0: pcie@33800000 { -- 2.25.1