Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp4465883pxb; Sat, 6 Nov 2021 14:38:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy0f5bI0a/2rUvQhUeB00mPenRc9AXm0ayDPW0K0nkl8FwWuDSH3cdkswwF5zM2xngDhnSw X-Received: by 2002:a05:6402:3586:: with SMTP id y6mr57038011edc.332.1636234726177; Sat, 06 Nov 2021 14:38:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1636234726; cv=none; d=google.com; s=arc-20160816; b=bStnc5lSYwpsQc9DD64JxhqgxLtETSDqef9yS84bmyOGOfBppkCntpCVCpylldNJAD BBqy/to1Tyrhfn2e8c0UK8t93WocIUFgAN6MTJ1mJb14GqkXc5mKrvlOGNtyYKQhl3yX s+oml+E44WlpD4x5d0Vsd5nE04xmShJgkciOXYj6t/Xgbu0OZiGrEkIQJODyjnVaT8T7 Bw+fxVoSVSTopqdVi+K8lpISVLFAITe12EQKtsdHz39hSYMssidC+js3HRv8uqBAPmfx pqtpTEkPX7UGJexhSjl/9x3/42fwlathJBJ4hsHvAvoWp/V33p2tIWtAnOmYrM0oXHhb eX6Q== 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 :dkim-signature; bh=vvL0Zqkz85LYHufmiL48sAs3q5REU5bqby89EtGa5w4=; b=lgICtl51gEQh6EmYER/crqmfHCa7nudVG45XkS60vdKYA/DXYQmaI5B0wFZ7LInhcK 7dpRW7c9RhfqrtjrH9i7IGqU4r6eUQFBGFq3bsjsddVk1kbO6UMmYTnB0amLVMGaLAeW v8CV/igYpAWd4rjTBvLnR/Tz6qESnkIIkRL4DW+Oqo3ds3hTtBuyqtABxRCY+JPFXLwd i4DVNPjFBvW5CKdWNw90daqvfo5cAwpOcP95U0FadRy4NLSL6s5EwM7UVSOk4/eSHzW2 uVOzSRaFtbWpp6sWV8YKhty8Uq3Sv+R8iutytWeiksyNYVwOteWx0WhrZqcYBK2yIean gTDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=dQkQ7I0h; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z22si25973571edd.349.2021.11.06.14.38.22; Sat, 06 Nov 2021 14:38:46 -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; dkim=pass header.i=@gmail.com header.s=20210112 header.b=dQkQ7I0h; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234347AbhKFSlT (ORCPT + 99 others); Sat, 6 Nov 2021 14:41:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58734 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234299AbhKFSlL (ORCPT ); Sat, 6 Nov 2021 14:41:11 -0400 Received: from mail-il1-x12f.google.com (mail-il1-x12f.google.com [IPv6:2607:f8b0:4864:20::12f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1A04AC061208; Sat, 6 Nov 2021 11:38:30 -0700 (PDT) Received: by mail-il1-x12f.google.com with SMTP id i9so12840559ilu.8; Sat, 06 Nov 2021 11:38:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=vvL0Zqkz85LYHufmiL48sAs3q5REU5bqby89EtGa5w4=; b=dQkQ7I0h/Op484A/fxCcDEaFKI1EYy9YvNnHRQz7m5jY+d+nd6+HEMfWftsfGCRii2 z+7JloOkv4G0TGEJMYeEDlf8/J+PzE059GS637NG1vDRvDAW/BiT4b/KJ39n20Yzw9xP ZZNARKwYM7LuxY2cXiHX5MNPph8SUhDbxUajDkBn73ZuK/qnTsL6omXF5eTQfCkJCPdX pLixK7CmOdpDGeW7ol2PVnV9Inaj+5mW3MAmh/vvslAzoUCfWX0tTKCwoaTmp/RBg29C OLtfjubdU5eCqBcFNXfx07fPWFrPLGogJzp6euxbkwOiYYdk3x+QnvEjEiB8j3pHcDG6 rxEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=vvL0Zqkz85LYHufmiL48sAs3q5REU5bqby89EtGa5w4=; b=K3NpnL2hPRch9yP9PsOf0dgfrWOI1WoWEWwtJZTUTQJYzNfxx7b2NFOLQNBiNSU1iR TkSYY7ntXnA6HheWoA8rT7RgMcsLi7IccOyoxyem4YzvH4DSYEzbm1zAfK916g3EUbhF cihUi7sJP23Gd7qEnk23fUolz+4QhDucIEnfXM5BnPtyrnNrdT2hfAdJjXbbOPFSbQPZ jOEhncRON23gP/LWde0ldDgFELi4VqJNbCxeSoNzdc7NReUrIwcZ4iR/Fco2D4xUg4zP B7gC4y8XUqXmxXdz+UYDEQsQL0RHPD65AnvRqrrAfcWidKJ25D33ZFz01eYXQ/l+Ya7X 9YRw== X-Gm-Message-State: AOAM530AAHUd0kaykkRlwKOZrEQPW9Qw6IGLtOdBxnsvHtvpfXwCmTMm ID1lhmQBU1HaTaGT7fNs9/8ZDY7KaZNoFw== X-Received: by 2002:a92:d908:: with SMTP id s8mr25362965iln.168.1636223909120; Sat, 06 Nov 2021 11:38:29 -0700 (PDT) Received: from aford-IdeaCentre-A730.lan ([2601:448:8400:9e8:64ba:1c0f:6d36:c11d]) by smtp.gmail.com with ESMTPSA id o10sm7174077ilu.49.2021.11.06.11.38.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 06 Nov 2021 11:38:28 -0700 (PDT) From: Adam Ford To: linux-media@vger.kernel.org Cc: tharvey@gateworks.com, frieder.schrempf@kontron.de, marek.vasut@gmail.com, jagan@amarulasolutions.com, aford@beaconembedded.com, cstevens@beaconembedded.com, Adam Ford , Ezequiel Garcia , Philipp Zabel , Mauro Carvalho Chehab , Rob Herring , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Greg Kroah-Hartman , Heiko Stuebner , Lucas Stach , Joakim Zhang , Krzysztof Kozlowski , Peng Fan , Alice Guo , linux-rockchip@lists.infradead.org (open list:HANTRO VPU CODEC DRIVER), devicetree@vger.kernel.org (open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS), linux-arm-kernel@lists.infradead.org (moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE), linux-kernel@vger.kernel.org (open list), linux-staging@lists.linux.dev (open list:STAGING SUBSYSTEM) Subject: [RFC 2/5] arm64: dts: imx8mm: Enable VPU-G1 and VPU-G2 Date: Sat, 6 Nov 2021 13:37:58 -0500 Message-Id: <20211106183802.893285-3-aford173@gmail.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211106183802.893285-1-aford173@gmail.com> References: <20211106183802.893285-1-aford173@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Enable two hardware Hantro decoders called G1 and G2. Signed-off-by: Adam Ford --- arch/arm64/boot/dts/freescale/imx8mm.dtsi | 41 +++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mm.dtsi b/arch/arm64/boot/dts/freescale/imx8mm.dtsi index 1f69c14d953f..725c3113831e 100644 --- a/arch/arm64/boot/dts/freescale/imx8mm.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mm.dtsi @@ -1248,6 +1248,47 @@ gpu_2d: gpu@38008000 { power-domains = <&pgc_gpu>; }; + vpu_g1: video-codec@38300000 { + compatible = "nxp,imx8mm-vpu"; + reg = <0x38300000 0x10000>; + reg-names = "g1"; + interrupts = ; + interrupt-names = "g1"; + clocks = <&clk IMX8MM_CLK_VPU_G1_ROOT>, + <&clk IMX8MM_CLK_VPU_DEC_ROOT>; + clock-names = "g1", "bus"; + assigned-clocks = <&clk IMX8MM_CLK_VPU_G1>, + <&clk IMX8MM_CLK_VPU_BUS>, + <&clk IMX8MM_VPU_PLL_BYPASS>; + assigned-clock-parents = <&clk IMX8MM_VPU_PLL_OUT>, + <&clk IMX8MM_SYS_PLL1_800M>, + <&clk IMX8MM_VPU_PLL>; + assigned-clock-rates = <600000000>, + <800000000>, + <0>; + power-domains = <&vpu_blk_ctrl IMX8MM_VPUBLK_PD_G1>; + }; + + vpu_g2: video-codec@38310000 { + compatible = "nxp,imx8mm-vpu-g2"; + reg = <0x38310000 0x10000>; + interrupts = ; + interrupt-names = "g2"; + clocks = <&clk IMX8MM_CLK_VPU_G2_ROOT>, + <&clk IMX8MM_CLK_VPU_DEC_ROOT>; + clock-names = "g2", "bus"; + assigned-clocks = <&clk IMX8MM_CLK_VPU_G2>, + <&clk IMX8MM_CLK_VPU_BUS>, + <&clk IMX8MM_VPU_PLL_BYPASS>; + assigned-clock-parents = <&clk IMX8MM_VPU_PLL_OUT>, + <&clk IMX8MM_SYS_PLL1_800M>, + <&clk IMX8MM_VPU_PLL>; + assigned-clock-rates = <600000000>, + <800000000>, + <0>; + power-domains = <&vpu_blk_ctrl IMX8MM_VPUBLK_PD_G2>; + }; + vpu_blk_ctrl: blk-ctrl@38330000 { compatible = "fsl,imx8mm-vpu-blk-ctrl", "syscon"; reg = <0x38330000 0x100>; -- 2.32.0