From patchwork Tue Nov 30 09:48:12 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ming Qian X-Patchwork-Id: 12694135 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 D146AC433EF for ; Tue, 30 Nov 2021 10:01:10 +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=cQBACQqG14sl99fTdUTz1QqTjjC2aUpSnlZK2tCtdAY=; b=CsGzVo0knO6vA7 YdBV59+zbTr5dP9N5Mt5lJqYyqfO/QoUfQ7w/L9Ci+hQSNAontQ845VjcfCY8EX2WeEzn3iFWq/XP DexcCw+mlA7WBYWOoDEcA0g40rLlk6a3JE8jtM3dO8qSkrughZQvepGxWwCKxRQ4XeXhP3hC1o58Z DHkMgZWJagNbOXc8XtKjr5TiIt5HXmLvsGdoQK4iYKzSDV/3bvhgzHahXYz/ObqWcz3aqCdPNiYYn MPFQxtdqgl2ndJaeTStFXbEFysuCEFtGC6GTqki09aJZ+NI9Fvj0npBzXebZM/6Ettk4rrK7fUZz9 vgF361h6pCw9JQiSj7BQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mrzuN-004Sfj-HY; Tue, 30 Nov 2021 09:58:45 +0000 Received: from mail-eopbgr130079.outbound.protection.outlook.com ([40.107.13.79] helo=EUR01-HE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mrzlW-004PQX-Oq for linux-arm-kernel@lists.infradead.org; Tue, 30 Nov 2021 09:49:39 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LDOtjF+LmWVeH8FYmqNyrQ2VVaU7NC3E6ZbGDIq3mVPJlX1RDnb0qKlCv+oQijN05MnDrGXdgrMvlEzDZKDQ8+CQOPepzxtiwjK3Atyz7vl9g/f+hWXvrtr3WBwJHMLeyf5LJ+YXKuxz5Hr1uCYheUsu95tIcJMaJ1XzSTuDMo3+dM9AJb1A6A4kNdHRH/OEsC4EhUHPMb2bscNZpumyouK8tycxiHFONW0uHKkfG4ZXSQ0RND3qScfFh5CDmjNo9GlYo/yZ8F6XDNfphc9R8QaIWSuvccr7ZucVRH3VafGccAc5hGsR+m3tqYSoFECV0+K1040A2b+HMHK6qG814w== 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=iceZUBGFfFJacvhh2SyFahzcqY3LIWeknmOtYXejuaY=; b=lobJY3wUGPiyLAHcCEK5Wb29YTG/ErCc6BOWQboS67U0dYMme9xlfgIBYivJ7hdRfGcXcPBg2eJt7t1pWzf/djwaKnfgWbtj64kFdG+SHx6Oo3HGxGPNG0nJVtaWvI7zcqHukEoHMvHG0Okwc9AOxkP8iQPgQKxZxxv+3Qo5+rkvITOJ715CuUNaVvULxO6qKMlNPxyJUmhVBuf4NCh8FBAarBA3GNg6WXqBO0FWVMmwyi5jVSAKCb1mX1OKPA/D15cjl0UkQD6pB1CtjZRO3N4nyeFZF51EnKb9Ral5HKSl/ypX9lC0aP3yoO0oyAXXO8+M96Uz9FEpDGRi6VeYng== 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=iceZUBGFfFJacvhh2SyFahzcqY3LIWeknmOtYXejuaY=; b=nl//vPLkgFwPtIDwBkROC3TLwoWk00kDDLgRJ0ehF0Y7kD1EXq40ZX0vpYZqkz+XZam/KuBxVWkltwYTzw6YFydvQjQpyj5eVLdZ7jYzT6LAN39liollW/2f1FOEd6qAsz95K4Sp5B2mxOQXehJegZc3JTlA0Pclc/xS9/C7xTQ= 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 AM5PR0402MB2884.eurprd04.prod.outlook.com (2603:10a6:203:94::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4734.23; Tue, 30 Nov 2021 09:49:24 +0000 Received: from AM6PR04MB6341.eurprd04.prod.outlook.com ([fe80::fc3a:8aea:2c92:3886]) by AM6PR04MB6341.eurprd04.prod.outlook.com ([fe80::fc3a:8aea:2c92:3886%5]) with mapi id 15.20.4734.024; Tue, 30 Nov 2021 09:49:24 +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 v13 11/13] ARM64: dts: freescale: imx8q: add imx vpu codec entries Date: Tue, 30 Nov 2021 17:48:12 +0800 Message-Id: <7330d63786ab3f580ffde5a214b1c1e6613e72b7.1638263914.git.ming.qian@nxp.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: References: X-ClientProxiedBy: SI2P153CA0025.APCP153.PROD.OUTLOOK.COM (2603:1096:4:190::12) To AM6PR04MB6341.eurprd04.prod.outlook.com (2603:10a6:20b:d8::14) MIME-Version: 1.0 Received: from lsv11149.swis.cn-sha01.nxp.com (119.31.174.70) by SI2P153CA0025.APCP153.PROD.OUTLOOK.COM (2603:1096:4:190::12) with Microsoft SMTP Server (version=TLS1_2, cipher=) via Frontend Transport; Tue, 30 Nov 2021 09:49:20 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: ccaab118-cc23-4bca-69d1-08d9b3e6b0ae X-MS-TrafficTypeDiagnostic: AM5PR0402MB2884: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:2449; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: wpWvpUjnBCS4pgvpB/pLBMiSe2ybXCtf1nIijucsqauShIfhIbHc2KkOo3O5qcboO+65weDoWWPPal32K8px+XblHyTBS3QVG4C96i7FknIxlA+2xlsnI31MfLIP5F5yxOiqf4qCWI2CfgEUlWXL9SJMS+kkOqIJuA7HB78lp/ZP/wpErnnJSTzEH+6mU60aq3Avn8dFlwP4+8D6LPvmkhAnwiCM5Y/JxMHH07zGGMjM2R+ApRoV4x6fjiceVtB6HUJ7svhdnMCm5OoYPDmOUo5mozIEwaE4mNjGkTMIAUrBwKi6r2+8me5CrYIW7+kSjZA+LAWgo2dxj586XrCWYNTp5U2k4+ZXnxQbHu9Ir2UxC3lQjjtarVVndd1cgTToBppJX8viO4pZX7j7Ha7v9AgDPs2svvH3ZM9it0vWlZWDVlagjMlAHc+M5oUKejvHI3a7R5xmySgv6lLnCklO7MFUqia8SkX9X2b/1VwdZLGKOF8COkJ1gvjYWT0f+9PlVo2jny5sXe0g2d+RJgFt/uZNbTe4xxM53bke+6d8/VncOEQ200MxvnY04ZJ/1FGIRHNF8gN1eD6kNvSnEWZ/zyDfDgA9e6PQ/Fn31iUvnKhrzDi+SiLsNcm2DcwTSMai7xnZrGYl3Q1tjDNtQN6G5tZ+NNSgf4j04F4eE4td1KSYR8kgxkhYsvmPK8mV9frNxKoIPjaCeXD8XyMXHz17g5Q4qq0nuoIhrfoTWOjSzZxXpOz9Xv989+/0BchGc2KoKVQ5wAj6NOVf+Bjq2QxBew== 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:(4636009)(366004)(2616005)(36756003)(86362001)(52116002)(66556008)(186003)(4326008)(2906002)(7416002)(6486002)(316002)(8936002)(8676002)(38100700002)(83380400001)(7696005)(6666004)(38350700002)(956004)(44832011)(26005)(5660300002)(508600001)(66476007)(66946007)(32563001)(414714003)(473944003); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: tUGp2tUZHqHB0GvCcpkFeT0Wl3K6ACUX/PLvSex2uA/IuB60sg0VihbeX/MddKbWhRSCLJEKDDlox5LNxdOxCEyTTAKKLm1pSvLAdwKbhbJ0zzm4HsNkzKdt1nsPvh2XjCSqIYBK4V4fctVJDTMBa9N8OyjRGy89CrgN/FpZEn5cugs9YzCjtM1OXiEIkFOYKRBozr9E6ClC+sWVC6Ndf7ejRzWiM4Xx+Pp02F9Sh/c8961MmKrJ06m4cZ6HAdfxRBay1IkiUVFiK6mHcQL+uEQDZp8VfBCI7MSb8EQrijyUuaCXXUX2vrLzvPgS1xJfT56d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VfUkFndBi71u6SHV6fq3Bt4cS0xKd21CgFui9Ck6xYxNMu+LI66HnwEQL1B7+tcO3ASjGXqfOEICGOoISm8vD7EmcqZ9hcgPZ5yySRd2r9sxd22nQUJ1D5WOW/YlTzmsNqxOmOEcw1GH4UJ/FjUajBZPhiXQGGvBDclPzShJFyihvcem67JVs7rFJNUiuWcKjNfJXyyIy8mSJhv9kBqSXuSzwRjqLaZ940Ca0Ae2SaKsISw= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: ccaab118-cc23-4bca-69d1-08d9b3e6b0ae X-MS-Exchange-CrossTenant-AuthSource: AM6PR04MB6341.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Nov 2021 09:49:23.9335 (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: rcUK3GdtQ7rMpU/oeHKBwp6/4c9OQkvUntN5tUDE4ftRsRMYlI3pkTH5sT26yoxeB1k+FN8vUZScypdOhgcMIg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR0402MB2884 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211130_014934_885064_CF197018 X-CRM114-Status: GOOD ( 13.25 ) 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 | 72 +++++++++++++++++++ arch/arm64/boot/dts/freescale/imx8qxp-mek.dts | 17 +++++ arch/arm64/boot/dts/freescale/imx8qxp.dtsi | 24 +++++++ 3 files changed, 113 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..f2dde6d14ca3 --- /dev/null +++ b/arch/arm64/boot/dts/freescale/imx8-ss-vpu.dtsi @@ -0,0 +1,72 @@ +// 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 = "okay"; + }; + + 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 = "okay"; + }; + + 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..05495b60beb8 100644 --- a/arch/arm64/boot/dts/freescale/imx8qxp-mek.dts +++ b/arch/arm64/boot/dts/freescale/imx8qxp-mek.dts @@ -196,6 +196,23 @@ &usdhc2 { status = "okay"; }; +&vpu { + compatible = "nxp,imx8qxp-vpu"; + 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 617618edf77e..6b6d3c71632b 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 { @@ -134,10 +137,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@0x92000000 { + reg = <0 0x92000000 0 0x100000>; + no-map; + }; + dsp_reserved: dsp@92400000 { reg = <0 0x92400000 0 0x2000000>; no-map; }; + + encoder_rpc: encoder-rpc@0x94400000 { + reg = <0 0x94400000 0 0x700000>; + no-map; + }; }; pmu { @@ -259,6 +282,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"