From patchwork Sat May 22 21:10:54 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mirela Rabulea OSS X-Patchwork-Id: 446325 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3399EC2B9FB for ; Sat, 22 May 2021 21:12:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1610661163 for ; Sat, 22 May 2021 21:12:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231434AbhEVVNp (ORCPT ); Sat, 22 May 2021 17:13:45 -0400 Received: from mail-eopbgr70051.outbound.protection.outlook.com ([40.107.7.51]:12614 "EHLO EUR04-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S231386AbhEVVNo (ORCPT ); Sat, 22 May 2021 17:13:44 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Wz8ZnFsrCutDoVbu8b9lsQgnNZZhdnJiuaToCj1Eh1mwWn8hqFzos7q7fwhoLCF6n39BxqLeAxEV9BF7iw9EPi6vGBePT0DWP2pVZlxXeHf00CK0SWJTwl0V8BiBbjg09Y1nR9fWmPFqAK0+TpeeSI3FjPq3ZdpC5LlvU6x+KRwrWrRgDK5xbPbKOTgvdVdvArsIOoRAOmKGFTCl7HVXmDWwsT8s+I6tUn0ftpV/GY6otzqoeT0oDBNYZEZNeuikax/xBEWLjzWYyJy+91F+DcS3N8p/bx6AKejC68BKu4b0vhN0DIVESkFGYYRYkrLyf06uHlI5D33LsDL3nGTSOg== 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=MGYVtezWPnqL7lFkXRGaTma91I8r7WP+UEekj5s5HXA=; b=BDkmRYy/xCb7c1OcuaipqRDGlIujDURnn74RYgEA3tMBLmGCFQvBT95/yg1xm8tU3tOA/QXFqfUjfxCHPLsQAkw1/GXle86Y0rJpkOVaFOLEqBmAubkFpYrFeAzuj9J8ridfP9UUSomo1jEiS/KviJnAoPFhGhsSXSZ1Cj505YSPHKiGwtjWmeiEk2Q4bCpuuFtzNfTENeZfaQvTfDv0AmIOcZiZEB79FcDwn4BjqSRR10O6IFcn95zMutdx0H5zAaz6RSexSxGmLJJPdQ4BtkEM9IfUCp3xJCIP/kfE4uSFXBOs6Ri/RLTC9RJ6AX+qEVi0ZvMFFRAUJe7YQn1GFg== 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=MGYVtezWPnqL7lFkXRGaTma91I8r7WP+UEekj5s5HXA=; b=W8ywCdJhOes0lZahZtvnZDWYDJItSucdsm+lXbNrDztnomCQs90vi3pzFN1N4iVzMuf6SR/uIq+JCywquFcaz34K1shbehZdqsWPoKfC0taJYYgLJbuA7rHlH7HwaxFUkjW/+S/H9GYQVhSz2Qrk5Mrq1mWLMxs6KNrmPC7MzUA= 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 HE1PR04MB3146.eurprd04.prod.outlook.com (2603:10a6:7:21::17) by HE1PR04MB3260.eurprd04.prod.outlook.com (2603:10a6:7:1c::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4150.27; Sat, 22 May 2021 21:12:14 +0000 Received: from HE1PR04MB3146.eurprd04.prod.outlook.com ([fe80::4564:419a:6e63:24b7]) by HE1PR04MB3146.eurprd04.prod.outlook.com ([fe80::4564:419a:6e63:24b7%4]) with mapi id 15.20.4150.027; Sat, 22 May 2021 21:12:14 +0000 From: "Mirela Rabulea (OSS)" To: robh+dt@kernel.org, shawnguo@kernel.org, aisheng.dong@nxp.com, guoniu.zhou@nxp.com, linux-arm-kernel@lists.infradead.org, mchehab@kernel.org Cc: peng.fan@nxp.com, s.hauer@pengutronix.de, linux-imx@nxp.com, devicetree@vger.kernel.org, hverkuil-cisco@xs4all.nl, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, paul.kocialkowski@bootlin.com, daniel.baluta@nxp.com, robert.chiras@nxp.com, laurentiu.palcu@nxp.com, p.zabel@pengutronix.de, ezequiel@collabora.com, kernel@pengutronix.de, Mirela Rabulea Subject: [PATCH v13 1/2] media: dt-bindings: imx-jpeg: Add compatible for i.MX8QM JPEG codec Date: Sun, 23 May 2021 00:10:54 +0300 Message-Id: <20210522211055.15988-2-mirela.rabulea@oss.nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210522211055.15988-1-mirela.rabulea@oss.nxp.com> References: <20210522211055.15988-1-mirela.rabulea@oss.nxp.com> X-Originating-IP: [86.124.171.30] X-ClientProxiedBy: VI1P190CA0028.EURP190.PROD.OUTLOOK.COM (2603:10a6:802:2b::41) To HE1PR04MB3146.eurprd04.prod.outlook.com (2603:10a6:7:21::17) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from fsr-ub1664-134.ea.freescale.net (86.124.171.30) by VI1P190CA0028.EURP190.PROD.OUTLOOK.COM (2603:10a6:802:2b::41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4150.23 via Frontend Transport; Sat, 22 May 2021 21:12:12 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a0f16c38-cd48-4cc0-56ad-08d91d664565 X-MS-TrafficTypeDiagnostic: HE1PR04MB3260: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:935; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: iI2W/ws/VsAz7I8/bbD1uSBc4b/1ajaiPurSEHCj4quVkBn82sJ+JsuH2yi+uYq5pV9FWb7u2iSlNM5D8nYvZm3fmXolsGcWgggrYyyzYT/Rg87lrCUtmTUn+FwgMbJZJ0ZEi1mhDcZ9+SQdPXwic1IKZlwQxi4nHDJeyjBIzPNgXwEd2EWaQ1C5RisATjKMwmvSTgFv3bL/gHIyYElqB8dQSmpwQG3nFjwlhxwJIu4eytEU+n0T4JYHW1qh0Gjc7RGezLW5FLAV/7cUIaUNrNoh2ZHNc3YHqLRLZioNbtm9JWlJyZrHS903yw+RwMSsXvFIuEie4wB9lHSpI6xMQwDlbWW+SDaWqeb6rJcyhsqDNBHfbLdg6vWqqbuYDx2x6SKMCluZTSRLSnDEEFmvVh8HOrONQPzme5N8/V1YLsRQXLDlurIz2QcvyGRTIqGrddXCj0YFLlygJ1kyJTf74Yx3duTgkyZu/pU4mILZ0fodrtznqkzN1shXR81KpRPsbc4/H0oZcasjZymcfAH3yXQbEuj9sEfa4atZcsPwHHdKAIxC0JTbopj9zNeio9qR/uCd0flKTro4a2YFL+6aYCfT2jc7cgpblUIpMGqOVsCTrraDgSff2/nuH5CB5kQi+XnXg3q2Av7pJFVMxsWNbI5MuUaRMkZf8q1XarYziJ4= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:HE1PR04MB3146.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(376002)(366004)(346002)(136003)(39850400004)(396003)(8676002)(26005)(2906002)(5660300002)(478600001)(6506007)(316002)(52116002)(7416002)(4326008)(38350700002)(38100700002)(66556008)(6486002)(6512007)(66946007)(66476007)(8936002)(186003)(83380400001)(86362001)(16526019)(956004)(2616005)(1076003)(6666004); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: OhkOSoq2bPfk0kMSyIFLvB71Fs/g60X/94smgwbhVjp4zwPbbRjYzZkk+Cn/43G8PPLfdyUK4sDGetT0qUAGVT7OG5C2xhlJ296HrrxUmpicQskyqvq5hTkYQyb0dRT8UzVhLNQQ4356nFwFFzLFWBE0+4PrAToSxsX7q2ct0B3qshnH6fA1alpRQ8agctCI27VYywpAAHnvY9Vv4UJOY0DY7QAf1qMYOrkfj0YIzGMAz5kPqJEnWHgRhbLP61qrd5sELVNIeiHE1IdI4g5aWbaYZgkfCN4qLcKN7yLd3UPrkoq9TFmOHCwqqW8+Fz1NuelzeA39gjEjneofmYj+59sOBmyw0jFk9OPd6j3GOA0IXwur6IAvtWAAvzIGmAYXGXAFUSy4FF/XK/ftWZC+xpPbxu569SU88UqaR7jzDcg4gn7NPlSH7i7Q10Yl6uQxlSx4v7FlJTBUthZ8QPUZhnfuuRxDxPKO9UceGtfbrtXijo2xOkE+vPbwGf59PRiG0/oTWlliBS0uObEhb0nwiNYHDf3WpzJjSsLkYCLmxdijgs3lM+rTO3Wus5d5nbhfdxHbrE0Uig6j7bZXMeo3LPsoKORlAan8mSk4hvKsu2jSca94fHppeT72fDKzS741cuKUsGYzaPVc5P8I/4xTkNe9PMJaq3cUxIDdx4boOTegnRbwvH3/cCUv5Kp5VPshrl+liWF10U0hJudgPejWWez+WmFTmPYqhfKoth7wG5U6pqF0KXdE9hGj//+dq28KgTWC3GlYtX886T9HN8ywywpWDD04u8ZcHzsQ4xCT0IcF82HdX2gTENJQf8KdPphfAg3hsvgcM3I5qukXjvmpkl5pUAtBCLkkGHnvT8aXaN0/la/0wDCy6qNUd2NdseOYAUS+EjStIZWiWKRPhfICkqPggZLVGvn02BBuVc75hjUw83nl4isDNcBAWfzjOl1kAYzs9byVN9LGLXYMQEFPPVYHjZfXwSsZW7RYqLD5IJG8/dk2nDIWKCy9bPhBEmBPMBJomL3QdnsGY1CE5cJFSG7unLmL2B+Uyasc6PvP6whj6GIvi7mBOY+ex6CG9uvS0SqBpoNnRjE6Trs0vis+FUCAV/FKDugwk99EqpPY6hJzUCEM7hChsFxnqj0Zb5DLQQ0s4QQJMpKohKzRyt3rxE9BqaS+j4GHVXVCAV1HZeKpIovkPei2Z25KJVz4sZanh7obmeWWk32rWevJnXIIYp9GHtO1EsDT5NC2gyno53Kpl+YI5DRZKLRtqsKo9YouK0ikyP3tR5F5cZpTxHLG4dtiTOUY8PLMfKwzLw01Re1wLoN7J80riPIIaGnjxcSZ X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: a0f16c38-cd48-4cc0-56ad-08d91d664565 X-MS-Exchange-CrossTenant-AuthSource: HE1PR04MB3146.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 May 2021 21:12:14.2172 (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: 9bLzdXm3bt986LUGgROQMqY8QvzyaQxGxrH+F980H3+0tvjg3aE8N1PY8f3ElOAlq/6kpWRW1DjiWoqdZ0k0Ww== X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR04MB3260 Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org From: Mirela Rabulea Add two more compatibles: "nxp,imx8qm-jpgdec" and " nxp,imx8qm-jpgenc". Also update the compatible property to ensure mutually exclusive usage of encoder and decoder compatibles. Update examples. Signed-off-by: Mirela Rabulea --- .../bindings/media/nxp,imx8-jpeg.yaml | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/Documentation/devicetree/bindings/media/nxp,imx8-jpeg.yaml b/Documentation/devicetree/bindings/media/nxp,imx8-jpeg.yaml index 5d13cbb5251b..5cc7b6a94c44 100644 --- a/Documentation/devicetree/bindings/media/nxp,imx8-jpeg.yaml +++ b/Documentation/devicetree/bindings/media/nxp,imx8-jpeg.yaml @@ -16,12 +16,15 @@ description: |- properties: compatible: - items: - - enum: - # JPEG decoder - - nxp,imx8qxp-jpgdec - # JPEG encoder - - nxp,imx8qxp-jpgenc + oneOf: + - items: + anyOf: + - const: nxp,imx8qxp-jpgdec + - const: nxp,imx8qm-jpgdec + - items: + anyOf: + - const: nxp,imx8qxp-jpgenc + - const: nxp,imx8qm-jpgenc reg: maxItems: 1 @@ -69,7 +72,7 @@ examples: }; jpegenc: jpegenc@58450000 { - compatible = "nxp,imx8qxp-jpgenc"; + compatible = "nxp,imx8qm-jpgenc", "nxp,imx8qxp-jpgenc"; reg = <0x58450000 0x00050000 >; interrupts = , , From patchwork Sat May 22 21:10:55 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mirela Rabulea OSS X-Patchwork-Id: 446076 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI,MSGID_FROM_MTA_HEADER,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 46B50C2B9F2 for ; Sat, 22 May 2021 21:12:23 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 240C9610A6 for ; Sat, 22 May 2021 21:12:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231449AbhEVVNr (ORCPT ); Sat, 22 May 2021 17:13:47 -0400 Received: from mail-eopbgr70051.outbound.protection.outlook.com ([40.107.7.51]:12614 "EHLO EUR04-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S231423AbhEVVNq (ORCPT ); Sat, 22 May 2021 17:13:46 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kJRCYHg3afBVEaG7JenPkNRJzjgKhciI+Nzh3mO2aov618B6f8fXliDswwbM9LKgPMgG0h7lK/fasHcqrjpLxgR6m0dcNNBpuFmdOqLN5mkIUoanck9bWqmmya/BBc/NqVXHptn1fFZMk207+2RkkAooBRIH2nake+eVPqJ0V8kvi9TP3wUfPlpa8XD0j34wFG1XSXq8pNTBjdwaq49jM31pIY07fzG37mTFveJmUcCsOzxM02f/rrCwM0/YfABz8o40T3TVcWHxChja/CX73oLDNGdl4WwKNSZHjzRCXjSbSi4Z056R1GSyUgapNeV+7zPQDUKBlHXfCftK68cCCw== 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=Pdu3BKBa0SwVW8Y0GcRQEJsE760uJtALiqL0Dgnz7Pc=; b=ChcRtOaE18aoKKWljTy1nuAYggZ14uE3ZDk25vuUFpZIptRBPUR62hA3ooJDpgN82zAAGqRYu4jG1jqiySL6Kfz2h+th23YpX7Pf3bgbCnfnE83pY+a/YU8htBBTgWpErcKSeHIlwg9ltxpDyEzyy2uZOGrbwieuY29E26TORawMDfrKsDQ7DLZ+nFwUCoN/UcATxqRgSy29asKPCwY6F0tdMxBKETBCYwpSiYEaEFwWEXIiaw6pfPEePIYVbvpUNEhwdGrACxOuaXJWvOmIzN91K2n9KNXVfjIkDI7dNSKZzz8TOAXsA5CtO9xTUboeIhOXDjbt3GfeF75gQZZ4xQ== 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=Pdu3BKBa0SwVW8Y0GcRQEJsE760uJtALiqL0Dgnz7Pc=; b=fzpHjoPky2M03JzmSBMlpqBK1+B2aH5r2yd5Dj6IFHZU562UQtwIX794oSlakPU9VlifvtBbGDWBh087AfKbYZsfcxv0uQAu+jRzFSWI6CjMAOy7g3USgJqnifH37XCCtHdxiMt/6rnNq/FnpWE3vphf8n7XMMA7TSTSoMpBSis= 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 HE1PR04MB3146.eurprd04.prod.outlook.com (2603:10a6:7:21::17) by HE1PR04MB3260.eurprd04.prod.outlook.com (2603:10a6:7:1c::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4150.27; Sat, 22 May 2021 21:12:18 +0000 Received: from HE1PR04MB3146.eurprd04.prod.outlook.com ([fe80::4564:419a:6e63:24b7]) by HE1PR04MB3146.eurprd04.prod.outlook.com ([fe80::4564:419a:6e63:24b7%4]) with mapi id 15.20.4150.027; Sat, 22 May 2021 21:12:18 +0000 From: "Mirela Rabulea (OSS)" To: robh+dt@kernel.org, shawnguo@kernel.org, aisheng.dong@nxp.com, guoniu.zhou@nxp.com, linux-arm-kernel@lists.infradead.org, mchehab@kernel.org Cc: peng.fan@nxp.com, s.hauer@pengutronix.de, linux-imx@nxp.com, devicetree@vger.kernel.org, hverkuil-cisco@xs4all.nl, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, paul.kocialkowski@bootlin.com, daniel.baluta@nxp.com, robert.chiras@nxp.com, laurentiu.palcu@nxp.com, p.zabel@pengutronix.de, ezequiel@collabora.com, kernel@pengutronix.de, Mirela Rabulea Subject: [PATCH v13 2/2] arm64: dts: imx: Add jpeg encoder/decoder nodes Date: Sun, 23 May 2021 00:10:55 +0300 Message-Id: <20210522211055.15988-3-mirela.rabulea@oss.nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210522211055.15988-1-mirela.rabulea@oss.nxp.com> References: <20210522211055.15988-1-mirela.rabulea@oss.nxp.com> X-Originating-IP: [86.124.171.30] X-ClientProxiedBy: VI1P190CA0028.EURP190.PROD.OUTLOOK.COM (2603:10a6:802:2b::41) To HE1PR04MB3146.eurprd04.prod.outlook.com (2603:10a6:7:21::17) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from fsr-ub1664-134.ea.freescale.net (86.124.171.30) by VI1P190CA0028.EURP190.PROD.OUTLOOK.COM (2603:10a6:802:2b::41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4150.23 via Frontend Transport; Sat, 22 May 2021 21:12:16 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: cdbe77a0-ebf6-45d7-88f2-08d91d664810 X-MS-TrafficTypeDiagnostic: HE1PR04MB3260: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:288; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 3a4wD5vHnlwZfaL7olliLX7kA6a5hPawhCrQZFe2AuIl0L43P2/4Ja7KRU09R8F8oHyT1hUxAqcWCSlBsG8m8SfQHXxv8kv/KZ80q6vTw/W1lu6SkTI9PgKniG8NFonYN0DW71KEL0o+fhsc7VIZKLCVZm9LxcSamxLjAOVpS/dQF07IDgfWaA1xg1E8se2QJ4MAe/wwNI4mFraYjOXn7DIoTA/789m2sBcdVm7KH+g+GG+jP3XsYFpXMyMZyTJEGTLB3EkmVSqdmu+nv+khzH8OoRxXhwSe2oAF9AczZg07iL4oklI1VKNXrNFpj2RKFIt+4kT82P0eXsE1Mp+74juyu+1MwjBmvDUPbIWUuxXQQXU845CId8QE9wntGvDi0LIMxFFqjmPCOklRJwncLESiFrNLwC1Glt16c+pTyaCJ93/95gEUSlnYGApgTCpIGi0JN1KqLUcRRfeKTjGYh305wOcg6R2plAWxsxA/oCiDZncaujcjZy3RtYCKTvxolm3W/YVZAUBnZXIKgog2FpXI+gDp7w42AYjtTbqlAKco2U99Ni3O1VVwMSBFyUP8ghr1LWjRZEKz0CpVGsXnmM1LhTvlpXn5Vg0cZepcCzTACnj/xmQglCb2Ps5eckz9IGIe03Mq1A6UMNtv9YoVPw== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:HE1PR04MB3146.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(376002)(366004)(346002)(136003)(39850400004)(396003)(8676002)(26005)(2906002)(5660300002)(478600001)(6506007)(316002)(52116002)(7416002)(4326008)(38350700002)(38100700002)(66556008)(6486002)(6512007)(66946007)(66476007)(8936002)(186003)(83380400001)(86362001)(16526019)(956004)(2616005)(1076003)(6666004); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: H3bxFedHkOXT1ZYzlTroWDqFtLIYao+46E2AEX6uCoovLEAJ+XNZ3W03GMv5+b9Mc69LfNFn3P66lTWlcnydamF9aYqdVIX4IORNJmBEG2VWD9FCwhqwQRHuYqMg/y3u+7RVz6mg/bKWDWmT7hEoVgYGG0KMRR8SV6Edd2F8Sc7qp8dBIy93v3lFCb7he5/T4VjYH4mkp/9N+Rag/mE7hS86hUghC9JypCV97FKxnI+vRmSzMWcQ809OGqgMx32+/IyIA8w3OR+VEKgDmKgxjkly/A6hFLZ0uFrsIni1s4OOUWu3zRoaVW2+j8B8Xs+Q7XboBg/fb2suIm4MuOnZ5pN3LAuldpmEat70rcD7ZIwRRyEWY69NnMrc20DvqXGUXjdJqQSjW8LvWMTqGqktqLy3CERw73ItFSFGUuuAmXBVfRlQWJ0dyxRCqGRYDpkpBpgOUDu95jcikxRdRi7LUr0C4y0Y5cbACH8c+wwj2Ns6zVlyxNCurKeJ/xUDdojar+n1ryrZsA7y95WOf9SG0i+6PON8fBPnDn8a1UwGkwi97pVJpLCJRZzPpKRBV9NY1xRVgJGcaVYLewpxFaE1tVlK4P28n93ulrZOYU3Y0ywUsJHg7poT5VXkcnRerfUktmJgFjSJq0gnV/qzaevKyWE5F5DYECQa5BlxSoPB+AM9Kvq8wXH34/LIjfonL/A6viTEZltxtzsqV7QqCQkySyJRzTtzJP2oGW/eLPIwaMwTtaRR+5os2m0FdczMQ5hrfBj2RgZFJUcX+EeH0fhYZ3PbwDw6p5vPjQrwxQMaZOaFZpMbw/yaubbXTM9D/87xoPUYqjBkRuCvIkFHsTXv7yWmYjWtZsau3BNAqPPCD5bPxT2oqa7kM9t5levB+wWAFxo+2gzEbcfrulPaV0pDbDYiX9KkIOhY9jBW6wbirfvTywGXwWAz8ItFwO2gAAohpkjSm/CNfnCLpl7g/09JI8i1F1pmrPuARUBcW+iGYup2AP4q8MJbkuVoXUIx/uufXO6mm0Y8piPUYJT7gTNffk3HLY70grTWK+DDErA7KOXA9Jc+orDAUD3y7qQ6TxNt3a0TqwZ6ZySGPxofMu2qUsgxR0MGg6Q0LXjVniNk+4kLGh0fpJiLDRN9beOEQ4LzQ1Lr56F3x1IidOVi+vMj+ChTTgmSQyGdNaBrq7Ox2GCNH+2UMSB8HpN0bSrlHgiX9jCVA6GBhTIOQxtX5rEFTfBXZO3Xnj56Ugnxk5gmcfgkW0EL57TwcdGixwsLHsaV1maKg6pEmqev03JzMdnbu8PoUXsctq7pNULV/0vuT74Kj9ia4epfev0cVsrzizrW X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: cdbe77a0-ebf6-45d7-88f2-08d91d664810 X-MS-Exchange-CrossTenant-AuthSource: HE1PR04MB3146.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 May 2021 21:12:18.4457 (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: c56+H+NG+wpkgc8N//NF/erB7Cu3LmH45yVynjtkq+e7ZOboG6Wk4xMz+Bo7X7M18NOv12lAZjSG3zzYZHwGWg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR04MB3260 Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org From: Mirela Rabulea Add dts for imaging subsytem, include jpeg nodes here. Tested on imx8qxp/qm. Signed-off-by: Mirela Rabulea --- Changes in v13: Adress feedback from Aisheng Dong and update the commit message: - Move jpeg compatibles from imx8-ss-img.dtsi to imx8qxp-ss-img.dtsi - Add imx8qm-ss-img.dtsi for i.MX8QM .../arm64/boot/dts/freescale/imx8-ss-img.dtsi | 80 +++++++++++++++++++ .../boot/dts/freescale/imx8qm-ss-img.dtsi | 12 +++ arch/arm64/boot/dts/freescale/imx8qm.dtsi | 2 + .../boot/dts/freescale/imx8qxp-ss-img.dtsi | 13 +++ arch/arm64/boot/dts/freescale/imx8qxp.dtsi | 2 + 5 files changed, 109 insertions(+) create mode 100644 arch/arm64/boot/dts/freescale/imx8-ss-img.dtsi create mode 100644 arch/arm64/boot/dts/freescale/imx8qm-ss-img.dtsi create mode 100644 arch/arm64/boot/dts/freescale/imx8qxp-ss-img.dtsi diff --git a/arch/arm64/boot/dts/freescale/imx8-ss-img.dtsi b/arch/arm64/boot/dts/freescale/imx8-ss-img.dtsi new file mode 100644 index 000000000000..4b8456bb4712 --- /dev/null +++ b/arch/arm64/boot/dts/freescale/imx8-ss-img.dtsi @@ -0,0 +1,80 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Copyright 2019-2021 NXP + * Zhou Guoniu + */ +img_subsys: bus@58000000 { + compatible = "simple-bus"; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0x58000000 0x0 0x58000000 0x1000000>; + + img_ipg_clk: clock-img-ipg { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <200000000>; + clock-output-names = "img_ipg_clk"; + }; + + jpegdec: jpegdec@58400000 { + reg = <0x58400000 0x00050000 >; + interrupts = , + , + , + ; + clocks = <&img_jpeg_dec_lpcg IMX_LPCG_CLK_0>, + <&img_jpeg_dec_lpcg IMX_LPCG_CLK_4>; + clock-names = "per", "ipg"; + assigned-clocks = <&img_jpeg_dec_lpcg IMX_LPCG_CLK_0>, + <&img_jpeg_dec_lpcg IMX_LPCG_CLK_4>; + assigned-clock-rates = <200000000>, <200000000>; + 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 { + reg = <0x58450000 0x00050000 >; + interrupts = , + , + , + ; + clocks = <&img_jpeg_enc_lpcg IMX_LPCG_CLK_0>, + <&img_jpeg_enc_lpcg IMX_LPCG_CLK_4>; + clock-names = "per", "ipg"; + assigned-clocks = <&img_jpeg_enc_lpcg IMX_LPCG_CLK_0>, + <&img_jpeg_enc_lpcg IMX_LPCG_CLK_4>; + assigned-clock-rates = <200000000>, <200000000>; + 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>; + }; + + img_jpeg_dec_lpcg: clock-controller@585d0000 { + compatible = "fsl,imx8qxp-lpcg"; + reg = <0x585d0000 0x10000>; + #clock-cells = <1>; + clocks = <&img_ipg_clk>, <&img_ipg_clk>; + clock-indices = , + ; + clock-output-names = "img_jpeg_dec_lpcg_clk", + "img_jpeg_dec_lpcg_ipg_clk"; + power-domains = <&pd IMX_SC_R_MJPEG_DEC_MP>; + }; + + img_jpeg_enc_lpcg: clock-controller@585f0000 { + compatible = "fsl,imx8qxp-lpcg"; + reg = <0x585f0000 0x10000>; + #clock-cells = <1>; + clocks = <&img_ipg_clk>, <&img_ipg_clk>; + clock-indices = , + ; + clock-output-names = "img_jpeg_enc_lpcg_clk", + "img_jpeg_enc_lpcg_ipg_clk"; + power-domains = <&pd IMX_SC_R_MJPEG_ENC_MP>; + }; +}; diff --git a/arch/arm64/boot/dts/freescale/imx8qm-ss-img.dtsi b/arch/arm64/boot/dts/freescale/imx8qm-ss-img.dtsi new file mode 100644 index 000000000000..7764b4146e0a --- /dev/null +++ b/arch/arm64/boot/dts/freescale/imx8qm-ss-img.dtsi @@ -0,0 +1,12 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Copyright 2021 NXP + */ + +&jpegdec { + compatible = "nxp,imx8qm-jpgdec", "nxp,imx8qxp-jpgdec"; +}; + +&jpegenc { + compatible = "nxp,imx8qm-jpgdec", "nxp,imx8qxp-jpgenc"; +}; diff --git a/arch/arm64/boot/dts/freescale/imx8qm.dtsi b/arch/arm64/boot/dts/freescale/imx8qm.dtsi index 12cd059b339b..aebbe2b84aa1 100644 --- a/arch/arm64/boot/dts/freescale/imx8qm.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8qm.dtsi @@ -166,11 +166,13 @@ }; /* sorted in register address */ + #include "imx8-ss-img.dtsi" #include "imx8-ss-dma.dtsi" #include "imx8-ss-conn.dtsi" #include "imx8-ss-lsio.dtsi" }; +#include "imx8qm-ss-img.dtsi" #include "imx8qm-ss-dma.dtsi" #include "imx8qm-ss-conn.dtsi" #include "imx8qm-ss-lsio.dtsi" diff --git a/arch/arm64/boot/dts/freescale/imx8qxp-ss-img.dtsi b/arch/arm64/boot/dts/freescale/imx8qxp-ss-img.dtsi new file mode 100644 index 000000000000..3a087317591d --- /dev/null +++ b/arch/arm64/boot/dts/freescale/imx8qxp-ss-img.dtsi @@ -0,0 +1,13 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Copyright 2021 NXP + * Dong Aisheng + */ + +&jpegdec { + compatible = "nxp,imx8qxp-jpgdec"; +}; + +&jpegenc { + compatible = "nxp,imx8qxp-jpgenc"; +}; diff --git a/arch/arm64/boot/dts/freescale/imx8qxp.dtsi b/arch/arm64/boot/dts/freescale/imx8qxp.dtsi index 1e6b4995091e..a625fb6bdc62 100644 --- a/arch/arm64/boot/dts/freescale/imx8qxp.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8qxp.dtsi @@ -258,12 +258,14 @@ }; /* sorted in register address */ + #include "imx8-ss-img.dtsi" #include "imx8-ss-adma.dtsi" #include "imx8-ss-conn.dtsi" #include "imx8-ss-ddr.dtsi" #include "imx8-ss-lsio.dtsi" }; +#include "imx8qxp-ss-img.dtsi" #include "imx8qxp-ss-adma.dtsi" #include "imx8qxp-ss-conn.dtsi" #include "imx8qxp-ss-lsio.dtsi"