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: 12274679 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=-17.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, 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 80037C2B9F2 for ; Sat, 22 May 2021 21:15:26 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id F180161163 for ; Sat, 22 May 2021 21:15:25 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org F180161163 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=oss.nxp.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; 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=dfa9BvIv4Rwvvs0TuyiWcRBCnUxHK26UkH76Hld9Q4Y=; b=EtZ2HvyuDoSkEXx3+86zdW7V8z UuF/XZW4SG0ALHlB7xAULiB0DUjJ4LdCfFF4Sq/N2okgvU51hOONdtOhXRZ7983PY9rPHwVzXLjbU KBO+glevOWp8bui77vJOPr284pa+t19ZZnW5tWzZ0j3wsiXJ4f0n28DDYvPw1IgYTG84UugpdX8Mf 7tETUrgV0a2r57FpXEU/vqo56c7A4k9zuK0S/SUvd9ma5zgGCYFjhCVw7JyZwrHtdoWN+bVZtt6vM 9/B8DGTjQBmUYKRd/mqsx8MQYDqJZLeUsmSXlN9n1p3IxcKbp+8y53ZH091liPHV75IbhBarnAQk5 ArjpJfPA==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lkYvE-0037SU-LG; Sat, 22 May 2021 21:12:36 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lkYv4-0037S2-5z for linux-arm-kernel@desiato.infradead.org; Sat, 22 May 2021 21:12:26 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=MIME-Version:Content-Type:References: In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=MGYVtezWPnqL7lFkXRGaTma91I8r7WP+UEekj5s5HXA=; b=F5kiWtLV62hxqh8Ygk9lRruxir hc9lejx04MilLuUwQq/7NVe0gqnKGPeo0sHr0vPH1Uf7XjC2is6T2R4KlgqVozXlpE44JbNl2OoQH 1Bo4H/a3sB3cUAwyZj7yuQome94dqxJEj9G/jvshVKXI/TtIvHSNJnRAhfQZUUIA6387pjggq96X7 ZIs9wnakjFcNu0eryk0e64+G2hB3Ps9oSVqFHdldABxrGSCE3ZFw0YAvgUuRmtSQuqWtK8qpzAY7b QErtZV9uW5b3PlUxraZkkVYoMZP5/u18A0rfbhMiWXt0sxnHmW40wT1A2x7sK1LgwaL1byZKr4fne RtrHTc3g==; Received: from mail-eopbgr140072.outbound.protection.outlook.com ([40.107.14.72] helo=EUR01-VE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lkYv1-000CtO-Bu for linux-arm-kernel@lists.infradead.org; Sat, 22 May 2021 21:12:24 +0000 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210522_141223_414867_18CA2B78 X-CRM114-Status: UNSURE ( 7.97 ) X-CRM114-Notice: Please train this message. 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 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: 12274681 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=-17.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, 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 2326FC2B9F2 for ; Sat, 22 May 2021 21:16:12 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 79F0E61019 for ; Sat, 22 May 2021 21:16:11 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 79F0E61019 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=oss.nxp.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; 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=YN0x1prgdUr+BP/mjGqvH+7wjtzjK5MsZRPKYtR/2T8=; b=IDIC6QgFuBO8NoD1OJ3u9pJ4J9 AAIl/o0PEQS0xpNI6gLFJkIlSwh6mnhlaMEP1dYuVfsC3mnSQeVLTSuKUsDrJsnVQ8i6DK44JIcwC mxSw2MzLlSO7M2C59jfs0zH6HwcOlzeFmiMVH6+TFaiYyiXe/0suUGM5omsdId9ZCEP92o2BJa6+M roVrsozPvydxUzBsw/dVbWKzWoy8LCu0uhfCEHKtlXWafgic14ZaC/udFZJNabuREYK/7jtq3s3+r bVbFBt8AC8gv150EcayaXahOsYVb/Q5RkDqoV1VRje3ffaj7XfpuO7SSypwPrEeIYH7+H9/mYElBW KLrepV4g==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lkYvz-0037WB-VT; Sat, 22 May 2021 21:13:34 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lkYv6-0037S5-0y for linux-arm-kernel@desiato.infradead.org; Sat, 22 May 2021 21:12:30 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=MIME-Version:Content-Type:References: In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=Pdu3BKBa0SwVW8Y0GcRQEJsE760uJtALiqL0Dgnz7Pc=; b=AKhcw6Ceo+AagUtFuO0ZiFIB9V JJwOX4f+aZ/uqiHrJ9i2v6BgQf7lyhYBaBRKQB+DFDqIUw0bKdZ1RkaK6szbxtnwfSrGw3GoVOrjD 6Qeec5LNAHELaQEhlIFTWQXFGBao9uRw05Aq7m+8nDjZoOLsyM7lqfzODyDgQqGK4FiZWsM6XaP8S Vo0yy35V+dxEq8RyrQTyxufl6mi9wLZIf55kmz6AwcU0iZmusgJP1lZ6BD6Iqn0DeBX3w7jhP3owv koCSiFmpb6xQ5u9R1YQkb3kIVqWHcUZlqNC0W27qxHvXlThPv64cRakFIRrw8W4MfAuUHWxPOoXF2 Kb25B3fg==; Received: from mail-eopbgr140072.outbound.protection.outlook.com ([40.107.14.72] helo=EUR01-VE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lkYv3-000CtO-9X for linux-arm-kernel@lists.infradead.org; Sat, 22 May 2021 21:12:26 +0000 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210522_141225_343580_4A017C79 X-CRM114-Status: GOOD ( 15.09 ) 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 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"