Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp2513025pxb; Mon, 11 Jan 2021 11:32:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJzv7GUrI6bVaAEA/xfkW45dlwvDuJckqDvh8l75rrFjoxPG8lwoE2O/9y9SDOfAcctgR5AS X-Received: by 2002:a17:906:8693:: with SMTP id g19mr727092ejx.111.1610393576126; Mon, 11 Jan 2021 11:32:56 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1610393576; cv=pass; d=google.com; s=arc-20160816; b=BH7ydE+GGO07rW30fhaqtfIGzXosm26iQH0acZmdIzUgxAPvaVHAw+hoRG5k5oBpce T5uU9wMsRVN5bSwv9zDgm7wtrvQ+AGJ3frSx2qPAmPXgU/o2lMmP3DNYP/ug7cC7MsWD 7d2yXUYzqScOeAmqDmBd/D6FUu6feg+LjM+8dd7kAVF9PyIs/8KocZBghzqfeOZ628DU FQYrQufD835PizH4P7+6DDOMBEh/h0LffI4slzHqDd5eIZTi+6fOP5VaERRktUSxcAI1 b+WcRIpKDO3yfmxDwy+RVLEeCuNfxhL2h8DJTEj7y8svgWF8ugxPcgu6UiG9kutlYN/X BZ4w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=xN5luF9ZtgbdLA8mY1E5iHEwQSlQkGbok19fuSO7Gbg=; b=LMFca/E6q8vtfdkBwIOqT3pyELq+nRWqytuNJ5lPdxcBTM0taYWap4+0G0UiBtkNAk ztQaKBiDGoVWKYywf9D4EoLs/K04atCILT0S8OMon0TBGz0iGzP1EB0zRmtOxBtz094q 8T0NUpNJ3DU6KR6dcTKcLnhn8UUVBQlN8Gt9Frf2x1h+uqs9oLul9uH1lFNXZ/AQNLRL 0Q0+uDvKiL8DLLGPGMsttwzo7ph49HbHNhRaZfzZOXAyDxmLA9SoEofW0xA744uUtFhw oV3qEkaptVULWFmOXRhJiLhbAY1NclOYBNOoI/85kyH1C8TZDRD5zt/HFPSUn4EhhdTQ BXrA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=EO8JhsjH; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.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=fail (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 v8si135030ejq.369.2021.01.11.11.32.32; Mon, 11 Jan 2021 11:32:56 -0800 (PST) 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=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=EO8JhsjH; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.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=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2403939AbhAKTb2 (ORCPT + 99 others); Mon, 11 Jan 2021 14:31:28 -0500 Received: from mail-vi1eur05on2045.outbound.protection.outlook.com ([40.107.21.45]:23264 "EHLO EUR05-VI1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2390699AbhAKTb1 (ORCPT ); Mon, 11 Jan 2021 14:31:27 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fC1FDaOyZtxWsjvxRGvvBmMsEiI+3Ddx/HMj8ocIATFw34ykwauOQ7UFaERC9gCOmIxExv8A75Q3OhP9DaYzFJXGvOltM5TX/K+jPZvt6Dzo2ThllmmVzoXSve8rtLTx20IXl7khjlzLUgc178C5IamTVUVYiS3xfVNHmWJQ7GhuU6atK8SL20fnvey/nJZbLE0GE54HBkNLBu9skszL/sDVQHuLobt71pThW2dMcJUhqygBPcPFv81qLuIgesnOdhhk/jkm9pn1HS5bDENZn3RZ59sIzqXYjoE4jw1gxgQz2DmSltxGeWNF6bd0iBYeZ6QS4TqUc5TYNEUIwEFK3g== 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=xN5luF9ZtgbdLA8mY1E5iHEwQSlQkGbok19fuSO7Gbg=; b=PISgrolyd3ivOZSubem48DXjY1roKNhMzz0AGOxLKE/8EaQWIFmAS3ljVVepBO+IBRL20C3/FA3MnmW3TD1DIN2A8U09cE5OycU/0Z2LoEaDca1W75x0qpJY4/4QSIuevFCo4zo0thtLavC6m9e0hYuMY440UttPZGJSn+/0B1UKZAsAeTuYm2b15fPwWUKSwl/kn8NYwhlSt2sgl0vZCEgIt+wdMJ8MrlNTiqWTq2BGP/2iP7eMO90HQjLnvPx4RK6/o7nykMTZGINWBl8dTxGJ0n5t7Q6wRUDI1IEFLmn42pnN82VoTf29K1NxVGNAS1R1mJCKmc9TWAO02/lJPA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=xN5luF9ZtgbdLA8mY1E5iHEwQSlQkGbok19fuSO7Gbg=; b=EO8JhsjHeq0IIYcH99Q25n1o99ReyXodgEW+Nvjnlw5mMDGCjj4C1CPn7lT8bmQahw5Cmm1LmDRK8k4Lh5Voxfn+3rRrjQ7xb9axqyORcSZbHimpMZYDms3kTRDYB9jNObXEDz3DaoajKmRZQjLcFPf8KBiFz/ZsYsvjcXj9fm8= Authentication-Results: kernel.org; dkim=none (message not signed) header.d=none;kernel.org; dmarc=none action=none header.from=oss.nxp.com; Received: from AM5PR04MB3137.eurprd04.prod.outlook.com (2603:10a6:206:c::18) by AM6PR04MB4424.eurprd04.prod.outlook.com (2603:10a6:20b:1e::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3742.8; Mon, 11 Jan 2021 19:28:43 +0000 Received: from AM5PR04MB3137.eurprd04.prod.outlook.com ([fe80::618c:8b68:e3d9:a8c6]) by AM5PR04MB3137.eurprd04.prod.outlook.com ([fe80::618c:8b68:e3d9:a8c6%6]) with mapi id 15.20.3742.011; Mon, 11 Jan 2021 19:28:43 +0000 From: Mirela Rabulea To: mchehab@kernel.org, hverkuil-cisco@xs4all.nl, shawnguo@kernel.org, robh+dt@kernel.org, p.zabel@pengutronix.de Cc: paul.kocialkowski@bootlin.com, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-imx@nxp.com, s.hauer@pengutronix.de, aisheng.dong@nxp.com, daniel.baluta@nxp.com, robert.chiras@nxp.com, laurentiu.palcu@nxp.com, mark.rutland@arm.com, devicetree@vger.kernel.org, ezequiel@collabora.com, laurent.pinchart+renesas@ideasonboard.com, niklas.soderlund+renesas@ragnatech.se, dafna.hirschfeld@collabora.com Subject: [PATCH v7 2/9] media: dt-bindings: Add bindings for i.MX8QXP/QM JPEG driver Date: Mon, 11 Jan 2021 21:28:15 +0200 Message-Id: <20210111192822.12178-3-mirela.rabulea@oss.nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210111192822.12178-1-mirela.rabulea@oss.nxp.com> References: <20210111192822.12178-1-mirela.rabulea@oss.nxp.com> Content-Type: text/plain X-Originating-IP: [178.138.194.64] X-ClientProxiedBy: VI1PR07CA0296.eurprd07.prod.outlook.com (2603:10a6:800:130::24) To AM5PR04MB3137.eurprd04.prod.outlook.com (2603:10a6:206:c::18) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (178.138.194.64) by VI1PR07CA0296.eurprd07.prod.outlook.com (2603:10a6:800:130::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3763.2 via Frontend Transport; Mon, 11 Jan 2021 19:28:40 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 7531e38a-6b53-490d-95bd-08d8b6671bdd X-MS-TrafficTypeDiagnostic: AM6PR04MB4424: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:5516; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: oo5TCVt9e/tevFyDt7qBbusV1ZMvqFaQxqlrRKSwCNx57HBY3OQMk7fTc8UXHJ3mj8UvwTGfeF4zJxLdUJt/oclw7FFIMITpRc2TJxIilCasW/zJPBtShtSXvPzGJavmPHmd/AF54MA2XaXnlnuGB06s3habumlxfHPvtQvhscxkGnZV1W/E7YNqqMGd5ArLU5yOrVetraltCjvSsa47xlQjLQRbFaY+yuz/CB26+Eg9d7kUqVKt4BGOWf7EuyAW/MFOP6fHRZ/A0QSL6ij2WjrTOGXfL24VJy3006bNP8u84F2AhoW//vxzZig+wKIQ54fwhu41BixSkjQpjRSS/ajPRQb3khebjMzexrbgBP+Kv3lvEcdzIUXCayJRwHXo8ks4l0drt2XzgJUS6PP3VpNBSRR/Rwgn8oLdw7q7qDzj7asmBbQBGeuo1KaMoj1vSgqvxnwrhw5R5jnR+KidFv1HkzVHs9i8seUny3LILePwwQZNqqkBaHoc21rTMifde0yQXxoHTDmY1SawaRmn2A== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM5PR04MB3137.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(376002)(39850400004)(366004)(346002)(136003)(396003)(966005)(6486002)(6666004)(7416002)(5660300002)(52116002)(66946007)(316002)(69590400011)(478600001)(4326008)(66476007)(66556008)(1076003)(8936002)(2906002)(6512007)(2616005)(956004)(44832011)(8676002)(26005)(16526019)(186003)(6506007)(86362001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: =?us-ascii?Q?iIe9jvktrTtCVOEq1b8IAkRBrg0U3In9G4o5xUvDMXIuRLJgzPkwRZKvbNM6?= =?us-ascii?Q?Jzmh+5FN6hLOfAsjbaC8NgXTXvYB0C+hYKyYdh3SHNt2ky4Ho2oTg4Frpwkr?= =?us-ascii?Q?TadsWyCqt3CCkTUqZ5E4/wtBIzjDMkOIkKd6fRyQV2PXeyTGItJbNiMUCp62?= =?us-ascii?Q?TcXo/ZLEaRcxTUQMosLtD/5o5tx8lDPDarMbxswJZdecUudvf0WZcF+/j9fk?= =?us-ascii?Q?Q1hGrF/ijJlcpuwQV9Oy9uMo+noS+HNg3wawRVru7kxzC6XENkh8Dph7gA7w?= =?us-ascii?Q?+0VKO0cCco+SKU0Z1IA0Vf4hgCB4bML/wXBhJone0u2RZybaI/WxqFw7tHXb?= =?us-ascii?Q?OOO0aycoJOPjwz+AdklDqH5KxXHEP1AklJ1w+1NUybdgLavi9VVYN2tg3sKW?= =?us-ascii?Q?R0RQ2DQmW7kQeeDddyL9B/VA4dLQuDVempyOsmv5Av9OmSo4Iz1gSQueXQFW?= =?us-ascii?Q?MfjiAMym2g4vfQ/WTuMvR/f1u6k5I/vVVZnbBkxrCxvyL6YdFdU0ydYZCwBu?= =?us-ascii?Q?h3AVmrCoo+jCtrHDopWZcZZzaX/2IBzZr5SU1WGos5sHjkh/mhXuIHyOePHr?= =?us-ascii?Q?F2cGCkRFcrSO23zHIzMrSuk1eens8xxQaw0+CisY31422CGTLrJy26v9Jy/O?= =?us-ascii?Q?7sd4/TAIDYjX1PT5sSFeH6ECTisjPbPCRpabel9yC31oxSBVUw/RXfJapNpM?= =?us-ascii?Q?W/ybgCcY/XmyB3BufOC1ChkurPkTPZOS4RU0qCfWD/SWrJpDgOBix3GSLN2u?= =?us-ascii?Q?jZH/kgvRZaLoVEZtWWZCmPqA4e1AWPgEtZmLQlHmtZ+k5lO6btOLOA6QKv1x?= =?us-ascii?Q?+ESOQFdQtL26ocM24KuB3S13OYcEEzi0y5dZXcNZcbu2AR7SPlHRi8m68k0h?= =?us-ascii?Q?eC7pTRX8h46/6S7zVnPUtPET40zd4U0q5EigS6XyDalbxH70x27HfHSWkELX?= =?us-ascii?Q?QQhBu0GjwGv0Mv0BzL1+rx2vhpWx8k1Y6iz3xtI68iV1P74M1/aBdu9CLud/?= =?us-ascii?Q?P2q8?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-AuthSource: AM5PR04MB3137.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Jan 2021 19:28:43.7500 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-Network-Message-Id: 7531e38a-6b53-490d-95bd-08d8b6671bdd X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: ZG0QSapMd0ZhAyIVUOUJaaSSOAwtKvd8DD8slkredX1+KQWZsIovrhU/sLnhEVBI2SuCYstx5tsTbvYopUJBJQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR04MB4424 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Mirela Rabulea Add bindings documentation for i.MX8QXP/QM JPEG decoder & encoder driver. Signed-off-by: Mirela Rabulea Reviewed-by: Rob Herring --- .../bindings/media/nxp,imx8-jpeg.yaml | 84 +++++++++++++++++++ 1 file changed, 84 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/nxp,imx8-jpeg.yaml diff --git a/Documentation/devicetree/bindings/media/nxp,imx8-jpeg.yaml b/Documentation/devicetree/bindings/media/nxp,imx8-jpeg.yaml new file mode 100644 index 000000000000..5d13cbb5251b --- /dev/null +++ b/Documentation/devicetree/bindings/media/nxp,imx8-jpeg.yaml @@ -0,0 +1,84 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/media/nxp,imx8-jpeg.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: i.MX8QXP/QM JPEG decoder/encoder Device Tree Bindings + +maintainers: + - Mirela Rabulea + +description: |- + The JPEG decoder/encoder present in iMX8QXP and iMX8QM SoCs is an + ISO/IEC 10918-1 JPEG standard compliant decoder/encoder, for Baseline + and Extended Sequential DCT modes. + +properties: + compatible: + items: + - enum: + # JPEG decoder + - nxp,imx8qxp-jpgdec + # JPEG encoder + - nxp,imx8qxp-jpgenc + + reg: + maxItems: 1 + + interrupts: + description: | + There are 4 slots available in the IP, which the driver may use + If a certain slot is used, it should have an associated interrupt + The interrupt with index i is assumed to be for slot i + minItems: 1 # At least one slot is needed by the driver + maxItems: 4 # The IP has 4 slots available for use + + power-domains: + description: + List of phandle and PM domain specifier as documented in + Documentation/devicetree/bindings/power/power_domain.txt + minItems: 2 # Wrapper and 1 slot + maxItems: 5 # Wrapper and 4 slots + +required: + - compatible + - reg + - interrupts + - power-domains + +additionalProperties: false + +examples: + - | + #include + #include + + jpegdec: jpegdec@58400000 { + compatible = "nxp,imx8qxp-jpgdec"; + reg = <0x58400000 0x00050000 >; + interrupts = , + , + , + ; + power-domains = <&pd IMX_SC_R_MJPEG_DEC_MP>, + <&pd IMX_SC_R_MJPEG_DEC_S0>, + <&pd IMX_SC_R_MJPEG_DEC_S1>, + <&pd IMX_SC_R_MJPEG_DEC_S2>, + <&pd IMX_SC_R_MJPEG_DEC_S3>; + }; + + jpegenc: jpegenc@58450000 { + compatible = "nxp,imx8qxp-jpgenc"; + reg = <0x58450000 0x00050000 >; + interrupts = , + , + , + ; + power-domains = <&pd IMX_SC_R_MJPEG_ENC_MP>, + <&pd IMX_SC_R_MJPEG_ENC_S0>, + <&pd IMX_SC_R_MJPEG_ENC_S1>, + <&pd IMX_SC_R_MJPEG_ENC_S2>, + <&pd IMX_SC_R_MJPEG_ENC_S3>; + }; +... -- 2.17.1