From patchwork Tue Dec 20 14:56:38 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Vasut X-Patchwork-Id: 13077973 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 802F4C4332F for ; Tue, 20 Dec 2022 14:58:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=uB6Yqusay6zKT2fvCJVx28Bne/SXsx2Z9M+NqrQoWds=; b=HHJ+EEnD7g7eTd WgM3YbQ0M+joXjhkSKWM9dOY/rkmZtQDKEUbPvAufu+//2dl9FzMPgFVuZlbunHMngU6dUB+WXBIo Rg3YoM44OE/Q9/d/5fiN3UI7wXMOUK2hlODGs1oCCPufHVevHk6yxHvvplAFZubYmgOvp1NI5zDCE IZ4VSSOt9WQGT3vmg71sSekEp9dJCprMXybJssaoe4A26CWIbl5mPCT6CVfsLhT5QhM8OqUbJj1ew UdAtl8pBXrcMGJAgTAjsWRZahizmJz+Vr+NxZPTkFe6k0yiN1ZiG9cDzcDjPsVq/61I+nO2Qy8A3W s9ghrorgRzmsHzL3x37Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1p7e3r-00H3XW-U2; Tue, 20 Dec 2022 14:57:44 +0000 Received: from phobos.denx.de ([2a01:238:438b:c500:173d:9f52:ddab:ee01]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1p7e3B-00H37l-8Q for linux-arm-kernel@lists.infradead.org; Tue, 20 Dec 2022 14:57:03 +0000 Received: from tr.lan (ip-86-49-120-218.bb.vodafone.cz [86.49.120.218]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: marex@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id CA2D0852A2; Tue, 20 Dec 2022 15:56:56 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1671548217; bh=82HjRMYMyNZDYZDHiCrNCvQcLNhL61psuiie5/xUISo=; h=From:To:Cc:Subject:Date:From; b=aj2KxvBs22Vx86fOr20ZBuRJPcxfmDzFzma6CQdSy215rWoyu0Lnbqv5Cbs4yGr/B xLz9BklY+bPgdCm+mZzUwauMQXPp7ctl0FwdEcfC0mo1bknsavlPzYiNbfvOsxgkAn 8RPFFFvGFpG6E24xtKDkyvTdm7U7sySR8Rmsdp2ps2DL5wVAR/KTpR8zZnx4CvuoFj nHL6xBTLogF9thjuRbXoRBHW9W71geNBfd1ZEBpr3+XQxMVmeojRVZ2NtjyUhTXOFu /ZEKdY/+VeerSslzWR5KsPNrTGN6iHEzrNJ6gxOJxFAF6nbzA/1XY2kS8byQNpjQ3j +t6fhgLm5x6pA== From: Marek Vasut To: linux-arm-kernel@lists.infradead.org Cc: Marek Vasut , Laurent Pinchart , Abel Vesa , Adam Ford , Alexander Stein , Ezequiel Garcia , Fabio Estevam , Jacky Bai , Krzysztof Kozlowski , Lucas Stach , Markus Niebel , NXP Linux Team , Peng Fan , Pengutronix Kernel Team , Richard Cochran , Richard Zhu , Rob Herring , Sascha Hauer , Shawn Guo Subject: [PATCH v4] arm64: dts: imx8mp: Add Hantro G1, G2 DT nodes Date: Tue, 20 Dec 2022 15:56:38 +0100 Message-Id: <20221220145638.123256-1-marex@denx.de> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221220_065701_758202_0596B53A X-CRM114-Status: GOOD ( 10.61 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add DT nodes for the Hantro VPU found in i.MX8MP SoC. Reviewed-by: Laurent Pinchart Signed-off-by: Marek Vasut Tested-by: Adam Ford --- Cc: Abel Vesa Cc: Adam Ford Cc: Alexander Stein Cc: Ezequiel Garcia Cc: Fabio Estevam Cc: Jacky Bai Cc: Krzysztof Kozlowski Cc: Laurent Pinchart Cc: Lucas Stach Cc: Marek Vasut Cc: Markus Niebel Cc: NXP Linux Team Cc: Peng Fan Cc: Pengutronix Kernel Team Cc: Richard Cochran Cc: Richard Zhu Cc: Rob Herring Cc: Sascha Hauer Cc: Shawn Guo To: linux-arm-kernel@lists.infradead.org --- V2: Drop the VC8000E V3: - Drop assigned-clock-rates from G1 and G2 subnodes - Add RB from Laurent V4: - Switch to nominal clock rates, G1 and BUS are sourced from VPU PLL at 600 MHz, G2 is sourced from SYS_PLL1 at 500 MHz --- arch/arm64/boot/dts/freescale/imx8mp.dtsi | 25 +++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mp.dtsi b/arch/arm64/boot/dts/freescale/imx8mp.dtsi index 0173e394ad4d8..2349752f5ab04 100644 --- a/arch/arm64/boot/dts/freescale/imx8mp.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mp.dtsi @@ -1679,6 +1679,28 @@ gpu2d: gpu@38008000 { power-domains = <&pgc_gpu2d>; }; + vpu_g1: video-codec@38300000 { + compatible = "nxp,imx8mm-vpu-g1"; + reg = <0x38300000 0x10000>; + interrupts = ; + clocks = <&clk IMX8MP_CLK_VPU_G1_ROOT>; + assigned-clocks = <&clk IMX8MP_CLK_VPU_G1>; + assigned-clock-parents = <&clk IMX8MP_VPU_PLL_OUT>; + assigned-clock-rates = <600000000>; + power-domains = <&vpumix_blk_ctrl IMX8MP_VPUBLK_PD_G1>; + }; + + vpu_g2: video-codec@38310000 { + compatible = "nxp,imx8mq-vpu-g2"; + reg = <0x38310000 0x10000>; + interrupts = ; + clocks = <&clk IMX8MP_CLK_VPU_G2_ROOT>; + assigned-clocks = <&clk IMX8MP_CLK_VPU_G2>; + assigned-clock-parents = <&clk IMX8MP_SYS_PLL2_1000M>; + assigned-clock-rates = <500000000>; + power-domains = <&vpumix_blk_ctrl IMX8MP_VPUBLK_PD_G2>; + }; + vpumix_blk_ctrl: blk-ctrl@38330000 { compatible = "fsl,imx8mp-vpu-blk-ctrl", "syscon"; reg = <0x38330000 0x100>; @@ -1690,6 +1712,9 @@ vpumix_blk_ctrl: blk-ctrl@38330000 { <&clk IMX8MP_CLK_VPU_G2_ROOT>, <&clk IMX8MP_CLK_VPU_VC8KE_ROOT>; clock-names = "g1", "g2", "vc8000e"; + assigned-clocks = <&clk IMX8MP_CLK_VPU_BUS>, <&clk IMX8MP_VPU_PLL>; + assigned-clock-parents = <&clk IMX8MP_VPU_PLL_OUT>; + assigned-clock-rates = <600000000>, <600000000>; interconnects = <&noc IMX8MP_ICM_VPU_G1 &noc IMX8MP_ICN_VIDEO>, <&noc IMX8MP_ICM_VPU_G2 &noc IMX8MP_ICN_VIDEO>, <&noc IMX8MP_ICM_VPU_H1 &noc IMX8MP_ICN_VIDEO>;