Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2259066pxj; Sun, 30 May 2021 19:53:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyrtPT2hLb1x4kzF3wYV1SXOi59isUaX2bVyTXQOXPQzQsesjQwanp4J/7MRwrTRFuHGnye X-Received: by 2002:a17:906:51d8:: with SMTP id v24mr6633667ejk.264.1622429632178; Sun, 30 May 2021 19:53:52 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1622429632; cv=pass; d=google.com; s=arc-20160816; b=tjF8lguFSKm/eCTHz9kx/lgnV+x6c0DcHikweEuRrWppy6BH3oN0jkhl0Y/epD9zzf 5VJkjem58m+iDyRoS6lkcQ0yiZ40yD1bV5PFijP4qTDkz2jwNco7rGYeCEecTVrxLaCP 8RS5RRbJPOqO4On2xe38m/7i5SyzfXVQa3j/0e3F1BaaABan3ku/SOhvSFSTqckF8HoK TAD8cpNpC2CSD/BiL3jveVZPKnkR8MFrnj2SWqR6c+CEhoa8QkkHZwxYs30oDn1Tpecz MMXVuxXFuBQKIkY9z89vnBzIVjwbjr5jAz9jjOZM6fcIGoQFOFUuX50BvnR47uZ5/B2q BdZg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=lzwnFucpAPTlVewRCMgLU81k74K6NkA4iWDR4xehk+4=; b=oEJSYgphnqqqX5diXLcIyJEYVV/9AFIH81uSI53mQHogbeKmvMwEoVp8SpdIP0Cy6U G+crZS9XkcYFNl/XY9w7LtkFuQ7XyerpJ6f0zeQ54uwNLiMqTPE4vDr3GeqfjGDRyYu4 wrdNJ8AwuSb5zmJKV6LByoYK+RArF56+xWZWV2dHvOTP5L3IbyD3WuOhpchhBe8KDcpO 5R3AQoEbw/CUAeE01YLwDgFohjnP9CkgDBHukuQ/lnFPMWAIpVaycx1irra6BzGFPypF TKqAiX4YzFySouFnmw003DN8sX6E3qfpAe8TInEoFIZrOg/UBdUNg5u2m5d/zRI5jalg dELg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=egt60YhE; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.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=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z5si598092edq.88.2021.05.30.19.53.30; Sun, 30 May 2021 19:53:52 -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=@nxp.com header.s=selector2 header.b=egt60YhE; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.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=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230061AbhEaCxi (ORCPT + 99 others); Sun, 30 May 2021 22:53:38 -0400 Received: from mail-vi1eur05on2070.outbound.protection.outlook.com ([40.107.21.70]:14000 "EHLO EUR05-VI1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S230052AbhEaCxg (ORCPT ); Sun, 30 May 2021 22:53:36 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=frWr3JPi5Ro3yTQ/i/pmEjRGiCUy5ddYYY9+azSAzEJ14I5mLN0bLfWGdEpmV8sicbCGnpBTLst8ZXTd3xXA/ZvSbKiMUNchDUTOHJW4XH8UtqD2UkTL65QBmTCUOTia/0HeeiHpLBjUCMGSWEGWSSAE76Ivncx59OXuM1XQIXHGRjmkm3OkNdkedeZ0MpKPmDqDj2NEZAGlzrIdltU9KpR62Ni/TgMP9GiC+KHdSAeXEEf+rnNVTxA2EouojMleooWQpF8z8hbgNxe4yXpVJmNbykF+oD6I7whX3gDoGSWaST/x0EmX97C7ODxKYjX0qI9fIOFpG3AhSwaswaddKw== 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-SenderADCheck; bh=lzwnFucpAPTlVewRCMgLU81k74K6NkA4iWDR4xehk+4=; b=KvIkzCihZOpfUNZlwxMcGG0ysmD0+ZfmCHX22H/fHlbt+zhXIuandh1J9hFDnBo3cNtXW+7BgNXe4T5bUn+Nj9JRCHfv/dIDThTxHsncrRs96mousZ5TD1ftevY0oJTi0R9TNbvZVgysfILeeWshL/D3BLJxfQJoM5R+elrT1xhObFd/Rtm/yoMtkYJGltprBfcvcWO3ZLqPC+75cxOP2Jpz/7kFPKN64ERg4wz5Ru7eC2qpk1GvmmHOmqU2E3bGE4sZKEEA25hDDqd7In963D3k9aXTKvSsLpgJkwSK91MncJtwuGpmOj0NmtCyT5WhVqlMTW8gH33qsbj7CXe56Q== 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=lzwnFucpAPTlVewRCMgLU81k74K6NkA4iWDR4xehk+4=; b=egt60YhEGmryoKS3Ev/dYxENV09jtT0Lvc8mub1Cx+PdFM9sXcR4v4/CH+if+SZzTaCbdWxsA9alu3MqG0cXfR2IvJ1+dkOHz5t+fHVBmjBS0A+niQq/5rpqn4jdsOClFe2nqpNey2phiaV6/hXPxQerGOVFcb049Qa3FCOoe0g= Authentication-Results: kernel.org; dkim=none (message not signed) header.d=none;kernel.org; dmarc=none action=none header.from=nxp.com; Received: from AM6PR04MB6341.eurprd04.prod.outlook.com (2603:10a6:20b:d8::14) by AM5PR0401MB2546.eurprd04.prod.outlook.com (2603:10a6:203:38::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4173.24; Mon, 31 May 2021 02:51:55 +0000 Received: from AM6PR04MB6341.eurprd04.prod.outlook.com ([fe80::c5c1:3625:26e4:4276]) by AM6PR04MB6341.eurprd04.prod.outlook.com ([fe80::c5c1:3625:26e4:4276%5]) with mapi id 15.20.4173.030; Mon, 31 May 2021 02:51:54 +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 1/5] dt-bindings: media: imx8q: add imx video codec bindings Date: Mon, 31 May 2021 10:51:09 +0800 Message-Id: X-Mailer: git-send-email 2.31.1 In-Reply-To: References: Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [119.31.174.70] X-ClientProxiedBy: MA1PR01CA0160.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:71::30) To AM6PR04MB6341.eurprd04.prod.outlook.com (2603:10a6:20b:d8::14) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from lsv11149.swis.cn-sha01.nxp.com (119.31.174.70) by MA1PR01CA0160.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:71::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4173.20 via Frontend Transport; Mon, 31 May 2021 02:51:49 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 38b97f81-2809-4008-1b9d-08d923df0c5f X-MS-TrafficTypeDiagnostic: AM5PR0401MB2546: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:2449; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: egun2SaEHsrCfDYrte85/apMHt0io210WXUSfV+w1XY6jB53vqk08pI4fiq+wNhEMBKItDYFhopOvnfgoCTdSD2SdRgtD5l3x8lfrUnHwKfixjQOBtAIpeyF6MXjwlaqj7t/3/Z4yaPQdfFwVu1mXdbIDhRsbGeAa9NKUdd9KXsr0+eVZcO/8W5ijczMhAGsMuJD5Iw3GWqTxzX5nob/XV3nHDE1XGhFn9gfOabsbMa1VUnCg1yoyAipAoHDviO2jgndOKuFfxA4M+VZOa7S8mw5YivVSzPwAEcVHjLmKJdR1DBQNg4nJkV/vHPx0mjq0r61v7sXaOvPvoNsdDg92g5hJzbcY35DFjbZREQdZGVOYbiwTmUdrBQL4FlK4CNZaVG1+7rqBdJTqj8V5FbUSrKv3fZvzY5jJHIGgxWcWjfNR+gRfFHd9E0YhApSckEctXwFJb6zfqp62P5SjfdFrgCdlyhR3k8005vx4LxyWYWzgozq364eh2kIIkUBHJISrPnIh6njWyeL0XW2PaJ3LUDwLIcjevmRfUJ2Z+ERPFf0872v6sfy5LdbYxXIwUJNBaQ/+R8r5AiO76IV0oT8E2rmP0uwsMdpFLn444BU7iHchRIGLoEwrkq24ofdq+akf0BfPjR2wSyzTnkoLlzqgaIHMKcHxO57xdPJz6JukwStqibcNbnJ14iPOrDFLHIGFTrYP1IxXnPaQi3zJQ7n0lGYIcYMuX0ZoVfWktbUtAuzPLBdWxOD3ZB6vv3fDV0BbBW965Jggi9p3z77lYlzLrutCMsL1W5rHugibtN4Mo6NkeY7d6bLykWtV68cdUbf8ftcBItpdieIaZlvtoX9Cw== 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)(396003)(376002)(346002)(366004)(39860400002)(136003)(5660300002)(4326008)(83380400001)(6666004)(966005)(36756003)(16526019)(66946007)(66476007)(66556008)(38350700002)(86362001)(38100700002)(44832011)(186003)(7696005)(2616005)(478600001)(8676002)(6486002)(316002)(956004)(2906002)(26005)(7416002)(8936002)(52116002)(32563001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: =?us-ascii?Q?+se/4jMQypB4kzZRhQap/DSl4xLrqHCX6SC01EnrBvX2pCXDRJEZQVJYW1XI?= =?us-ascii?Q?DfP6Dj2+AvcK4aq4joNMf7bQALzjkCDNNtKfVSK1JG+0/g8WPArrcIsGTS+T?= =?us-ascii?Q?VZdPQt/Ntotqvs8r19KQkGxY6PV8KKo0NsfnvxZtuZbYsxZxI66vMAljVeo3?= =?us-ascii?Q?11XYrTvf0NLA9GsIVBnCFEU7hD2HdnOeOpVWXj/Zuqdd8IMkhb/edxIonGJi?= =?us-ascii?Q?Ua58y+TJvpgDawwJg9ULasf+RnFz15rmonIxE650oeEGugjGZfZ2ATgKgGxs?= =?us-ascii?Q?3ZkrMySr9ylZIpAjXcCQo5lSdnkwrDZ/zp2nat7lAOC7cNFocPc4PUQSkZR9?= =?us-ascii?Q?Ojhd5GBQd7utAv4axoD6PVFuw6dZe2ETL4IOAhalji1BUDWcWlM/LI6pMX0z?= =?us-ascii?Q?T2bD3GH5uBvwNkQ4BWYHk+Ilt8dVuGdHdrqp7gcsGo9NKrcERXwYlTguEue1?= =?us-ascii?Q?mouVA79YVqFBbAiaeAwY1+QojP73gd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network-Message-Id: 38b97f81-2809-4008-1b9d-08d923df0c5f X-MS-Exchange-CrossTenant-AuthSource: AM6PR04MB6341.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 May 2021 02:51:54.4263 (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: T83xKe9HOlf+VwkIEYLGuYmgV5kVVe0i1HCEHQiE2wQ7zhNVNpAwsGJcvFPimFH3tw2P1OFkWKlOegTGu50j2g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR0401MB2546 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add devicetree binding documentation for IMX8Q Video Processing Unit IP Signed-off-by: Ming Qian Signed-off-by: Shijie Qin Signed-off-by: Zhou Peng --- .../bindings/media/nxp,imx8q-vpu.yaml | 201 ++++++++++++++++++ 1 file changed, 201 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/nxp,imx8q-vpu.yaml diff --git a/Documentation/devicetree/bindings/media/nxp,imx8q-vpu.yaml b/Documentation/devicetree/bindings/media/nxp,imx8q-vpu.yaml new file mode 100644 index 000000000000..97e428dbfdbe --- /dev/null +++ b/Documentation/devicetree/bindings/media/nxp,imx8q-vpu.yaml @@ -0,0 +1,201 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) + +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/nxp,imx8q-vpu.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: NXP i.MX8Q video encode and decode accelerators + +maintainers: + - ming_qian + - Shijie Qin + +description: |- + The Amphion MXC video encode and decode accelerators present on NXP i.MX8Q SoCs. + +allOf: + - $ref: /schemas/simple-bus.yaml# + +properties: + compatible: + items: + - enum: + - nxp,imx8qxp-vpu + - nxp,imx8qm-vpu + + reg: + maxItems: 1 + + power-domains: + maxItems: 1 + + memory-region: + description: + Phandle to a node describing reserved memory used by VPU. + (see bindings/reserved-memory/reserved-memory.txt) + + vpu_lpcg: + description: + This is vpu Low-Power Clock Gate (LPCG) module. + + mu_m0: + description: + Each vpu core correspond a MU node, which used for communication between + driver and firmware. Implement via mailbox on driver. + + vpu_core: + type: object + additionalProperties: false + description: + Each core correspond a decoder or encoder, need to configure them + separately. + + properties: + compatible: + oneOf: + - const: nxp,imx8q-vpu-decoder + - const: nxp,imx8q-vpu-encoder + + reg: + maxItems: 1 + + power-domains: + maxItems: 1 + + mbox-names: + - const: tx0 + - const: tx1 + - const: rx + + mboxes: + maxItems: 3 + description: + List of phandle of 2 MU channels for tx, 1 MU channel for rx. + + boot-region: + description: + Phandle to a node describing reserved memory used by firmware + loading. + + rpc-region: + description: + Phandle to a node describing reserved memory used by RPC shared + memory between firmware and driver. + + print-offset: + description: + The memory offset from RPC address, used by reserve firmware log. + + id: + description: Index of vpu core. + + required: + - compatible + - reg + - power-domains + - mbox-names + - mboxes + - boot-region + - rpc-region + - print-offset + - id + + +required: + - compatible + - reg + - power-domains + - memory-region + - vpu_lpcg + - mu_m0 + - vpu_core + +examples: + # Device node example for i.MX8QM platform: + - | + #include + + vpu: vpu-bus@2c000000 { + compatible = "nxp,imx8qm-vpu", "simple-bus"; + ranges = <0x2c000000 0x2c000000 0x2000000>; + reg = <0x2c000000 0x1000000>; + #address-cells = <1>; + #size-cells = <1>; + power-domains = <&pd IMX_SC_R_VPU>; + memory-region = <&vpu_reserved>; + + vpu_lpcg: clock-controller@2c000000 { + compatible = "fsl,imx8qxp-lpcg-vpu"; + reg = <0x2c000000 0x2000000>; + #clock-cells = <1>; + status = "disabled"; + }; + + mu_m0: mailbox@2d000000 { + compatible = "fsl,imx6sx-mu"; + reg = <0x2d000000 0x20000>; + interrupts = <0 472 4>; + #mbox-cells = <2>; + power-domains = <&pd IMX_SC_R_VPU_MU_0>; + }; + + mu1_m0: mailbox@2d020000 { + compatible = "fsl,imx6sx-mu"; + reg = <0x2d020000 0x20000>; + interrupts = <0 473 4>; + #mbox-cells = <2>; + power-domains = <&pd IMX_SC_R_VPU_MU_1>; + }; + + mu2_m0: mailbox@2d040000 { + compatible = "fsl,imx6sx-mu"; + reg = <0x2d040000 0x20000>; + interrupts = <0 474 4>; + #mbox-cells = <2>; + power-domains = <&pd IMX_SC_R_VPU_MU_2>; + }; + + vpu_core0: vpu_decoder@2d080000 { + compatible = "nxp,imx8q-vpu-decoder"; + reg = <0x2d080000 0x10000>; + 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>; + boot-region = <&decoder_boot>; + rpc-region = <&decoder_rpc>; + print-offset = <0x180000>; + id = <0>; + }; + + vpu_core1: vpu_encoder@2d090000 { + compatible = "nxp,imx8q-vpu-encoder"; + reg = <0x2d090000 0x10000>; + 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>; + boot-region = <&encoder1_boot>; + rpc-region = <&encoder1_rpc>; + print-offset = <0x80000>; + id = <1>; + }; + + vpu_core2: vpu_encoder@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>; + boot-region = <&encoder2_boot>; + rpc-region = <&encoder2_rpc>; + id = <2>; + }; + }; + +... -- 2.31.1