From patchwork Wed Feb 23 11:40:04 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ming Qian X-Patchwork-Id: 12756877 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 564DAC433EF for ; Wed, 23 Feb 2022 12:46:00 +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:References:In-Reply-To: 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: List-Owner; bh=YNeUPZMPCCU5KR9a+ZUrcx8iXGbQlcdvvhWTKnUl4CM=; b=gmCH53lQjnupVf 6odJlNC2SnAAoXImoaBqf/UEutVf5bRMtjvgylZreczvKy175rgzshqLGAgO9iSBx99lk0rXER+ZZ fKKXdm4sRKr6WHJrS7Vvvv2RsGetGULCCkpcI4bc0rniFAwVtb1wGVNVm4tWUqKcJBhS7avKEblNQ Ty1qpHHYLugLzmstrQrJTPBY9l1adKb6sU9VX1xhU+QvjIibwLFUDtQ8ZD1fJe/1FMaPbtTveWIXS XMH04i921wwqkVojC9HgE1CPOCdCkk8DA/063bLJeKF8kjzhKNpDpM9UNg5ZRDoA3rbDkEvRp3Wdm vV4ZjM57D82UnhvtmasQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nMqzi-00EEBw-88; Wed, 23 Feb 2022 12:43:48 +0000 Received: from mail-db5eur03on0628.outbound.protection.outlook.com ([2a01:111:f400:fe0a::628] helo=EUR03-DB5-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nMqGC-00E15e-CK for linux-arm-kernel@lists.infradead.org; Wed, 23 Feb 2022 11:56:46 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=oOj2OcNViNfcNA1TXVFyaTXeBbzQb81Lr2VcVz12kt6yWbiUEgLPbTFQotG6CMEGaFYvV63FXfCRxOJOaqU2Dua1GebwGIWyojB7Hw8iaCHC5iPbR8yWH1hoJtyjB55+gbh7kypZYQhh4v8NNUlsoQ0aXhTsfyGxIHQk9kiXYjMrxWmx5q4+2LnQr+kUEGI1FVo1GgONAZy5Xc6WzMTJ2fziGlVLYPkk3cFcSQOcvcO4tviX5UtW4oguSpZqd97sUuIxZaVK55hkaEEjpOqlVN01j6zEMzImh4WBrWBYr1GHdiPqpRZdMFZijTLUuF5dIGGAn/2jPIniGTOu0R8GGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=vELxgDcf3paHloMBeM3iOwH8y8UnrFwSX/a8dQguHug=; b=O6uQhKvuQDeJYKBa18O8AP5BF3f9M5NgIXo1bszLQaocD7085XFRYIVklPvsC/95xZYUDz2smDAO24BseuTj+9csUBq+1r0qWlpuvvNT7TIUG2cZkF/2Kydbx2dYw9YhiWHBcPMrvzxxYupOgCVPWvQIAeOnos/KABzrDSvzx2EEo0QF1xPFSlwysLGzv//ME8cbAGt9lvO0i5I1HShK+kLeNeD4C8MNPzSs4pYvSMvgE2+vKOcCC5bZp3Yfqm1IsP4u4IiiAsY2M/WbKfACMpVqQd/mftpfR8BUJnzUHNUyxlSCPD9BEIcDHkyEGjI51GQN2608+YZHf141dz5Wgg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=vELxgDcf3paHloMBeM3iOwH8y8UnrFwSX/a8dQguHug=; b=kyyxYfuS2UVrkACXoWyO/NiPyu0oObZ14AV8soJUJE9S/SxDY7Xthma186Ge2j5MCSNOQ46VmPLWZF1YSyJf3rmc87wAe+eAXPZQizzJ+CJcos1Pn/KGADaZniVPbKfZXkoPNPoj7T+8ljMCuBjJUJ5DeR4GuXDhVWNAFSfBbfE= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AM6PR04MB6341.eurprd04.prod.outlook.com (2603:10a6:20b:d8::14) by AM6PR0402MB3416.eurprd04.prod.outlook.com (2603:10a6:209:6::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4995.27; Wed, 23 Feb 2022 11:41:30 +0000 Received: from AM6PR04MB6341.eurprd04.prod.outlook.com ([fe80::c39:69cf:c4ea:967]) by AM6PR04MB6341.eurprd04.prod.outlook.com ([fe80::c39:69cf:c4ea:967%5]) with mapi id 15.20.4995.027; Wed, 23 Feb 2022 11:41:30 +0000 From: Ming Qian To: mchehab@kernel.org, shawnguo@kernel.org, robh+dt@kernel.org, s.hauer@pengutronix.de Cc: hverkuil-cisco@xs4all.nl, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, aisheng.dong@nxp.com, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v17 11/14] arm64: dts: freescale: imx8q: add imx vpu codec entries Date: Wed, 23 Feb 2022 19:40:04 +0800 Message-Id: <0cbbf45ec306ca68b4bdbc8f61cd33e8c1d237ef.1645615976.git.ming.qian@nxp.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: References: X-ClientProxiedBy: SG2PR0601CA0015.apcprd06.prod.outlook.com (2603:1096:3::25) To AM6PR04MB6341.eurprd04.prod.outlook.com (2603:10a6:20b:d8::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c5795046-a6b3-486c-ee30-08d9f6c16f3b X-MS-TrafficTypeDiagnostic: AM6PR0402MB3416:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 1T+dawJmRyvdjzQwa658Q01oAVCWpwSirDnJbzvRKxMlEZpjL8GxKK1HANonjaPIpqUMVhLmvxZGkhCyO38BdY1pQf6CP2prSer1uzO9EJM8J80UTEnGpAy5gKVlBbS9N0zLgCh3vfchHJwE3MLt2ngGIy4t4K641dI9T5hk/BvE9OAaYmQbCwuT3/v5SSJvhntoGZKou4fmw7iiIiBW/C760eFhwBsqtoxZZ3o+IpTIoIyqw9kfYNGFNjwEwo+eQ/QIV/M2xGSSecKLgq+XjF2iYroar0dXityQmpK6y7XrBngZWa/VUO9DxJTahRtX38bHF6uCiUTrKHcEkYX91To4PzR3qiBnjc+Yi1uBas2/4+3GwQ5JVZoie9JsS6SXpCJg6jcYrokKVKatoHYDmrYtgo8O8hv6LQRrb5E25SUzZZ4IWvFnZU6cUMxSs9KBCAt1wO5H0Tw6/yO0fTLYrzOXzQL6j/L8ZKP9Yf67zu3WfTtX0x/wfVmtVlSqqLLmBfn6XQKuMx8DbfuhrX2MO159V0hVNSP0JnOpwmk2n7ulvUTdBPcDVOS1Mx6Jp0gecBDxoZ5ChhzAAMOy6p404VN75iiWcG05Q1X5pEj+tzBJTABBzrcU6+fL/pgAJq1PM6YM/GCOQEdQskhDdbChdepppX0o6uW+Dryt8ZA+GfFJcoyNAhR3zgUG4BcSbzfWO5zzo5emdPGs+j53mPZc0czHIHYVFbEPTBbwJZwryXFTusRMWAir+1xwjtR9Zy1a1xW/1UFV8U9kue7MUMVuBLwjllikMbesIyGGClIl6ew= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM6PR04MB6341.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(4636009)(366004)(36756003)(2616005)(6666004)(6506007)(6486002)(52116002)(508600001)(38350700002)(6512007)(2906002)(38100700002)(66476007)(4326008)(186003)(5660300002)(8676002)(8936002)(26005)(66556008)(316002)(44832011)(86362001)(83380400001)(66946007)(7416002)(32563001)(473944003)(414714003); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: sJOHk/cntjG/UROAksIOPK94LQ3aSIZwdlBkrtcyb9AC8miwEZLobNrRQxzey0cAtXRtm0xdDnvftZiLwAHxAkoYkm7TumFG0AYSL2T8HxwcES6VFZ+DMMmUwEr8g72cYZsjaSqnQfUJru8HdvNnk1od5z8z0FKc9eXTvKKZJT5K7LtdLBEBha1853rZMW7UlPBc5aLVSBqPo5UAxwMFgVtPhqFrmzo9nY0jxso70wcfq/vb0KRC2u9zG8hrBG9ALQNgj/X7xI5HIvFgKmUaQ+7r8DbOmHxUm6lZ2w3pY57gjWf8J6pOEMpb4mA+OCGJqbt0aV8VNUpFfuQyIWlKJDyznmgSkcuzKScTyuMOfFfxBSaMoUok8cBbCwLr4xr1xE9eT0Ki262zCTmiwt5tCIrydLIhlFBYrvqjyEGHTloaW1b/KrrTlTvFQOFmMXRtpMX+3/pgD/SkTF1tizxERnUKtlBhX/wiGoEqNB6QE789kzfgD0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tN6fAhQvIu6DlbtorphZxK0Tffy+c7h5ggPMadDQ7SHSwCmmM5XE14HBArjI= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: c5795046-a6b3-486c-ee30-08d9f6c16f3b X-MS-Exchange-CrossTenant-AuthSource: AM6PR04MB6341.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Feb 2022 11:41:30.6361 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: kw6vRlVeU9C2XusVa/EwueOx8OmIMtlW0qBvCBV5WhqXz6xZWQJ4jLidj/AbnUmQeu/19uDJKySiQe4pmqUQ8A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR0402MB3416 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220223_035644_456610_B77F1FC2 X-CRM114-Status: GOOD ( 11.97 ) 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 the Video Processing Unit node for IMX8Q SoC. Signed-off-by: Ming Qian Signed-off-by: Shijie Qin Signed-off-by: Zhou Peng --- .../arm64/boot/dts/freescale/imx8-ss-vpu.dtsi | 73 +++++++++++++++++++ arch/arm64/boot/dts/freescale/imx8qxp-mek.dts | 25 +++++++ arch/arm64/boot/dts/freescale/imx8qxp.dtsi | 24 ++++++ 3 files changed, 122 insertions(+) create mode 100644 arch/arm64/boot/dts/freescale/imx8-ss-vpu.dtsi diff --git a/arch/arm64/boot/dts/freescale/imx8-ss-vpu.dtsi b/arch/arm64/boot/dts/freescale/imx8-ss-vpu.dtsi new file mode 100644 index 000000000000..a08d796a8cd2 --- /dev/null +++ b/arch/arm64/boot/dts/freescale/imx8-ss-vpu.dtsi @@ -0,0 +1,73 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Copyright 2021 NXP + * Dong Aisheng + */ + +vpu: vpu@2c000000 { + #address-cells = <1>; + #size-cells = <1>; + ranges = <0x2c000000 0x0 0x2c000000 0x2000000>; + reg = <0 0x2c000000 0 0x1000000>; + power-domains = <&pd IMX_SC_R_VPU>; + status = "disabled"; + + mu_m0: mailbox@2d000000 { + compatible = "fsl,imx6sx-mu"; + reg = <0x2d000000 0x20000>; + interrupts = ; + #mbox-cells = <2>; + power-domains = <&pd IMX_SC_R_VPU_MU_0>; + status = "disabled"; + }; + + mu1_m0: mailbox@2d020000 { + compatible = "fsl,imx6sx-mu"; + reg = <0x2d020000 0x20000>; + interrupts = ; + #mbox-cells = <2>; + power-domains = <&pd IMX_SC_R_VPU_MU_1>; + status = "disabled"; + }; + + mu2_m0: mailbox@2d040000 { + compatible = "fsl,imx6sx-mu"; + reg = <0x2d040000 0x20000>; + interrupts = ; + #mbox-cells = <2>; + power-domains = <&pd IMX_SC_R_VPU_MU_2>; + status = "disabled"; + }; + + vpu_core0: vpu_core@2d080000 { + reg = <0x2d080000 0x10000>; + compatible = "nxp,imx8q-vpu-decoder"; + power-domains = <&pd IMX_SC_R_VPU_DEC_0>; + mbox-names = "tx0", "tx1", "rx"; + mboxes = <&mu_m0 0 0>, + <&mu_m0 0 1>, + <&mu_m0 1 0>; + status = "disabled"; + }; + + vpu_core1: vpu_core@2d090000 { + reg = <0x2d090000 0x10000>; + compatible = "nxp,imx8q-vpu-encoder"; + power-domains = <&pd IMX_SC_R_VPU_ENC_0>; + mbox-names = "tx0", "tx1", "rx"; + mboxes = <&mu1_m0 0 0>, + <&mu1_m0 0 1>, + <&mu1_m0 1 0>; + status = "disabled"; + }; + vpu_core2: vpu_core@2d0a0000 { + reg = <0x2d0a0000 0x10000>; + compatible = "nxp,imx8q-vpu-encoder"; + power-domains = <&pd IMX_SC_R_VPU_ENC_1>; + mbox-names = "tx0", "tx1", "rx"; + mboxes = <&mu2_m0 0 0>, + <&mu2_m0 0 1>, + <&mu2_m0 1 0>; + status = "disabled"; + }; +}; diff --git a/arch/arm64/boot/dts/freescale/imx8qxp-mek.dts b/arch/arm64/boot/dts/freescale/imx8qxp-mek.dts index 863232a47004..44347a076722 100644 --- a/arch/arm64/boot/dts/freescale/imx8qxp-mek.dts +++ b/arch/arm64/boot/dts/freescale/imx8qxp-mek.dts @@ -196,6 +196,31 @@ &usdhc2 { status = "okay"; }; +&vpu { + compatible = "nxp,imx8qxp-vpu"; + status = "okay"; +}; + +&mu_m0 { + status = "okay"; +}; + +&mu1_m0 { + status = "okay"; +}; + +&vpu_core0 { + reg = <0x2d040000 0x10000>; + memory-region = <&decoder_boot>, <&decoder_rpc>; + status = "okay"; +}; + +&vpu_core1 { + reg = <0x2d050000 0x10000>; + memory-region = <&encoder_boot>, <&encoder_rpc>; + status = "okay"; +}; + &iomuxc { pinctrl_fec1: fec1grp { fsl,pins = < diff --git a/arch/arm64/boot/dts/freescale/imx8qxp.dtsi b/arch/arm64/boot/dts/freescale/imx8qxp.dtsi index dbec7c106e0b..a79ae33cbad2 100644 --- a/arch/arm64/boot/dts/freescale/imx8qxp.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8qxp.dtsi @@ -46,6 +46,9 @@ aliases { serial1 = &lpuart1; serial2 = &lpuart2; serial3 = &lpuart3; + vpu_core0 = &vpu_core0; + vpu_core1 = &vpu_core1; + vpu_core2 = &vpu_core2; }; cpus { @@ -162,10 +165,30 @@ reserved-memory { #size-cells = <2>; ranges; + decoder_boot: decoder-boot@84000000 { + reg = <0 0x84000000 0 0x2000000>; + no-map; + }; + + encoder_boot: encoder-boot@86000000 { + reg = <0 0x86000000 0 0x200000>; + no-map; + }; + + decoder_rpc: decoder-rpc@92000000 { + reg = <0 0x92000000 0 0x100000>; + no-map; + }; + dsp_reserved: dsp@92400000 { reg = <0 0x92400000 0 0x2000000>; no-map; }; + + encoder_rpc: encoder-rpc@94400000 { + reg = <0 0x94400000 0 0x700000>; + no-map; + }; }; pmu { @@ -287,6 +310,7 @@ map0 { /* sorted in register address */ #include "imx8-ss-img.dtsi" + #include "imx8-ss-vpu.dtsi" #include "imx8-ss-adma.dtsi" #include "imx8-ss-conn.dtsi" #include "imx8-ss-ddr.dtsi"