Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3287513pxu; Tue, 15 Dec 2020 03:25:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJz9uZ4iat+CRj4oLfCnOLoZUzM/376gUu74LR6rGOYyO9ioTd9IYHw0bS0DYaE0zdTIfDDs X-Received: by 2002:a17:906:724b:: with SMTP id n11mr13156274ejk.225.1608031531199; Tue, 15 Dec 2020 03:25:31 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1608031531; cv=pass; d=google.com; s=arc-20160816; b=WXQCuOx6f53qjLXeVTeweRH96XI9fHOVNJpBlKjr+f3oe/UMBW74cloFsFM5pCbhS5 Tyoq9wTgK9JOw+5Qj7BpDQ5L6bpyLtNcWbQvCjINBTF6KhrbY+5tqw1a9pTOkyS/tUDI ZsK+qNMM5DHtgMs8QzGPJzluodgskWYiZfKGmyo6KO8AWM7vKB6MagDhVwHKFGj6Ydwc nZiY9I/oaZd4JZO6YvUOVBHb8gJ1XcSE9B4UBWkRSDNL1/n0n6WAU+jOMDGKIf/TplgC grOLnUgQ0kvy6phCXXT6K3exXk307mK5BJRawP/NA82Gwwj+YmSl7WccL3TWdKjJ5+Ll zH8Q== 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=k0V1zdrLbvgQAGNAXomG7Gqu/+o5i3YRd9YCbapA6M4=; b=QoJRU5B0S4mzpetwj3XLAO4MbR6tzLyQst1oB4Chg1/q63yfas2brWkdyf3YkdPdVd /O1bHO7b/F5nLe6VB3AL+Pv53ViBX7XrSJNwnwoHboEAv6xkG9Gp2lNeN+1TXjNf6dSw eSDc8lt/A0xeOp+S8L69b0BlCW8NsipIO2ywNOgIU09ZlPFy/PzgMn/8h9/sv2LtVhwM 8oQ/wl/OJypGzBxTQv4fSHCjPZk7lNfW5XkkptOY6I6I9dZ/pIgGcLX5Lop/YLwygoiI wY3E3KD010d7ln2HMy4CQ+k+9vdtMavaV3N/QpQQbQRsjR0tjNtGYAMTlWd57JTuBgCu zJ9g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=aD7cZSeX; 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 dp16si872733ejc.614.2020.12.15.03.25.08; Tue, 15 Dec 2020 03:25:31 -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=aD7cZSeX; 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 S1728842AbgLOLVZ (ORCPT + 99 others); Tue, 15 Dec 2020 06:21:25 -0500 Received: from mail-eopbgr130072.outbound.protection.outlook.com ([40.107.13.72]:15078 "EHLO EUR01-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728750AbgLOLUx (ORCPT ); Tue, 15 Dec 2020 06:20:53 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=C6WAwM7gTnVqo2GYHpUsG99DFDnYsqWYXM1s30zcyYYVfIwc6OCBc/ph9Op4t7oD36BVMwXlga2vUdA10/AW3SEybjRqW/GtoFxcx5YZg6+dHDnR8N8KMhdwuHNDfeSHxvZ5pXjgjn2epwWDYGU189H59ioPAebNJy/W00npeTEk9VLil3Uxt1UNES+brf7A8QQKcC+RRFQyeQ8jHhDpPPJ+PYiM10UMKf9mqhVrIPm5oTZ9tQflfp3pNgDPgGetq8/sg0ATKZkOUiMijYtYqMXxuF2Jxloxp4kUrdKt9PLJB0scbJlovFALyU/YSKQCblVH9G+rmcY3HC5VlrMqXQ== 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=k0V1zdrLbvgQAGNAXomG7Gqu/+o5i3YRd9YCbapA6M4=; b=dqbxT5eqnqLOmjGWMo9TLo5Qw7XK1+dzO7OT8+4fSy2/RZ8cQGLrtw01vs9dgSHGrh09qrVq47GHvv7pSKEHbByYX0vHbsEy7wN0dEhEfzFjRGkdUfOYzbNqPVMXWlwiBoU+5VWsfZoooCUgQnRPqn8XCxxd1J6xEgkf8ist/z9dSDOh6CzBSgqdrogEAJIEpoUGDzH0ijmAfo9uN8JL3nZOuL+I3yrHez90g3zFap/PavceXlO78BY02Rl+VkzlVT8y0Y3zGcBEZ/rX5rDYE2W5UdJ2JpRV0Oqlt+aRBy+RbA50/AHIQ6hJknf8SSQAUocLvJYThEoIoUYwKV71Ag== 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=k0V1zdrLbvgQAGNAXomG7Gqu/+o5i3YRd9YCbapA6M4=; b=aD7cZSeXPsgF0No1b5EFqent36JG0v5bN6a7fHpP4MygXI/XN4wN8aRoEjBetVHa/1C1Q0YV7D3gdXSjUmwMuJ4y4rQFfqTsY9sSG9UfXDiulY+pVeWsesXc2+m20Un3FUWS75JpoEEcRKJrLUYcdIgysmXnLx7fqikVmCsBJ4c= 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 AM5PR0402MB2737.eurprd04.prod.outlook.com (2603:10a6:203:95::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3654.17; Tue, 15 Dec 2020 11:19:14 +0000 Received: from AM5PR04MB3137.eurprd04.prod.outlook.com ([fe80::2d75:aaf5:5aa6:5de9]) by AM5PR04MB3137.eurprd04.prod.outlook.com ([fe80::2d75:aaf5:5aa6:5de9%6]) with mapi id 15.20.3654.024; Tue, 15 Dec 2020 11:19:14 +0000 From: "Mirela Rabulea (OSS)" 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, Mirela Rabulea Subject: [PATCH v6 2/9] media: dt-bindings: Add bindings for i.MX8QXP/QM JPEG driver Date: Tue, 15 Dec 2020 13:18:36 +0200 Message-Id: <20201215111843.30269-3-mirela.rabulea@oss.nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201215111843.30269-1-mirela.rabulea@oss.nxp.com> References: <20201215111843.30269-1-mirela.rabulea@oss.nxp.com> Content-Type: text/plain X-Originating-IP: [79.115.51.151] X-ClientProxiedBy: VI1PR09CA0178.eurprd09.prod.outlook.com (2603:10a6:800:120::32) To AM5PR04MB3137.eurprd04.prod.outlook.com (2603:10a6:206:c::18) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from fsr-ub1664-134.ea.freescale.net (79.115.51.151) by VI1PR09CA0178.eurprd09.prod.outlook.com (2603:10a6:800:120::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3654.12 via Frontend Transport; Tue, 15 Dec 2020 11:19:13 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 23ce50d4-97ae-4819-c1b2-08d8a0eb417a X-MS-TrafficTypeDiagnostic: AM5PR0402MB2737: 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: r3wax5oOTegX16Zut6uiEvUDSZKGRlPA+fDahOeEYxZrlE5WoRD+p4wTijP1rBde0YObgCMqwsV4UlREK9jpuOLghCE/2SW76S8GSHAy5N553NwNTkA9PZ9X/aS1spEiGTAiuxzqPEaVWQ7eQQx8DtW+D1r6hkryPdEt8GrpOn4b90sd9KNOpwzQLmHuhqSMmzTl8XnMQ59EEWCzQImii2RimKpEYXcZG7vwU2dMXaU20pih4uoNzH4J4hj23WZB1Cd6O3NLl5Z8zjpZ6pbkNE/kFbzDk2C8UYVvGSNfFIh7lPRaFajXT0p4GRo3ssI41/9G1heVofqLvsT0EC+sPOSJIyxiE6SWLVV9KVAJ6toF7uP0CYc1Z0Nugo2E9kI8l8Rk5n1XhmtoN+G1wuzsBw== 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)(366004)(6666004)(2616005)(16526019)(8936002)(52116002)(2906002)(1076003)(956004)(66946007)(6486002)(66556008)(66476007)(498600001)(6512007)(86362001)(966005)(8676002)(7416002)(6506007)(186003)(4326008)(26005)(5660300002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: =?us-ascii?Q?ICJDwJb1VhuUNiobpnKrJL7mW4cv3AogdTn7X39+t2gxRq2oPrxsG5yZhqKr?= =?us-ascii?Q?VHHdCEyUd3pc/7R7YNpmUvS5xtaNIZa3NEFMH24B/z8Ltz8Uj5nWTWDQaHLH?= =?us-ascii?Q?t0Ve4xMomkh2KJV5G2rqwjF3gfHPee6Tylaxb8wHqhyWSANh9E/4/hrcZwcW?= =?us-ascii?Q?KEeCuNKAxYWGFl2NlWtlwsaNDU2Koq50OoHeEaIM+PfO6IX5qB0+8/ZIyuO0?= =?us-ascii?Q?xEi7z/O8OIERRxvW5syd4LxpyAFSNSzkwkA4/E8G1ek7MBHA4UMV545k338n?= =?us-ascii?Q?Z9RZMgDdQ0UBnGOljOFb4NTDX9MDw5FBNBFZbIZlRclUSGHR3NwkusD0nSVL?= =?us-ascii?Q?3hsJzWjLzlg922G3ZHw6673EPKk8VDnSXZSr06ZwWLXdp0GMU39jlJfoCXw4?= =?us-ascii?Q?JLhS5k5C4jaVty4tYZlWKXgVhKTNPii0drnMFBwIbBpPlnMibYWrwjQlaUcF?= =?us-ascii?Q?YHekSlrDdzpRe85wJIIZ2slzxRCfZS9ABFZo+zFfqEVn9Sr960owY0WOaH5d?= =?us-ascii?Q?PL/6W5+XOhSNM7Xvl1ilJkEW9LPR+i29I7Slgscmkwpt+3+rKG/SHxEVMpai?= =?us-ascii?Q?aohQ8ZyrU7+9WMLlguYxpjAoPsVS+k3rF/jgJ28MJ5emdWqkYVOgYSq//Idb?= =?us-ascii?Q?5V+YTGuZ2uvv5/VUIwRPxRkxepcIgRCcEes5bqWx7alWWwzNwyw6wv9KQSP1?= =?us-ascii?Q?PwJ+6+NxIomK+vZ6QgcRIx0xHgJ9ELsDmSyvQABHDUYfqFipS0SOnH+dMhxS?= =?us-ascii?Q?NwqP1Q1t2K2dZqUyfITJ9odYBG4oI2YvKNOfD3XSG4YN+RIXtUPx/m/VN+3B?= =?us-ascii?Q?cmXiY3UfcBzHhrtX1eiFoW1w19X1la+89ijusS8kmGokawcOB553a9OMk8NW?= =?us-ascii?Q?lOnVMRzLKyh2VRIpB+XDCY4VFW6nycguUDLegxav8zyGbQCxFtMxylfEL7jT?= =?us-ascii?Q?Tw1aRZGcqrLbGD8fK6pxxcqhYXQW+eBM0Qr7JvVTgbpmcISmpCjhx+NH1vd6?= =?us-ascii?Q?ujEz?= 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: 15 Dec 2020 11:19:14.7568 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-Network-Message-Id: 23ce50d4-97ae-4819-c1b2-08d8a0eb417a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: zLNRCs/rsO3pnhJOws6ulLvUY5Efv6rwul1jaWeIgtfqH60UkDL/Lr2MYxLWjvSPEjh5YHRw3SNPxuJj/xjYbw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR0402MB2737 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 --- Changes in v6: 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