Message ID | cover.1697597713.git.ming.qian@nxp.com (mailing list archive) |
---|---|
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2AE9BCDB47E for <linux-arm-kernel@archiver.kernel.org>; Thu, 19 Oct 2023 02:49:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version: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:In-Reply-To:References: List-Owner; bh=9ZO0J/iBuUfjt8l64lk4W7j3MJ+YNqwWknkVLLtPctw=; b=Mnny7mM+41elns hacWM/mNnl9HsJyfZ1GgCnJf6uPBgD/850MWmCuNfCPqp+i2xnTvtF6uw8CUu41Jm47bqPr8SLiZI NCxKr5pvAB2uoKj4kB4Xn3oJoSy6NlJmpercrg5whVYDnX5z/A4hpBYndkGOfi36o59nyZa46DE9m pZggo9Fpw/NNMYgOU/45ILA8w4n0nGEImtn3kd9m6BOrsWbZyDgRKK6HrHu+qESqwW6SnQq5Q5Z6C tqSWOm0En4FsZDsBw6wnzJAnzuuDqsjUc7GhpzS1FfdOOqMwApG+bVqsCzrwVF6gEvA2tFYESL8ur 5EdnZFLDlLfl6Fw353xA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qtJ5Q-00GA0A-03; Thu, 19 Oct 2023 02:48:36 +0000 Received: from mail-db5eur01on061d.outbound.protection.outlook.com ([2a01:111:f400:fe02::61d] helo=EUR01-DB5-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qtJ5K-00G9yR-3C for linux-arm-kernel@lists.infradead.org; Thu, 19 Oct 2023 02:48:34 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gsRKTAVyAqm0HTWMJESvYebpra6UzNmPk9O7RBcsUBrt67bA3uLMXZnm1kKaf5Ej/cH+zXiTWXP2AOXqc2QpsQQaFeodN0agsEpKxT4THv7fbC77sY6deHxKyjMPBQDnWNTIKvBDnHtlc3/lsGqkugYou3EFH0N8nWwGEQl7dsX8pt/sWuixRb5VM1Gt9JvAo9g2ZC3iptbMo52iUmsCpYj+iHOjojFcV0iaHxyaEcDY2H2HCP4ituDkfCv7s1a15lvgB0ECwY5AvzuAbXxdHvYh7PKtnw6pNIzwUekhG1PZu//AQ45RLE6PTJcync8B9vtIKmI4JU6jhyt/K0uJ0Q== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Eyynim2anQ84B90m57RBhLrpHIhOLcB7Ur6osaWy2E8=; b=BWyAziNv6d9+Ef/6NOK0yPmhcT1Yr2xSDc/hMipHsvQwMV81qSgV1bWjvLhJWGMAlBRgfhyvsFOZ/aNnN6Tk+NP9yrC795uyOimUwFVHTixiH76ApLvyjmLCbhPrIOjMo5VwnmPii5T4UJi5D1NVO7szoODg5F9O4EGJKpNBk0xFJKecEDFKP2G95L/JQozKyUSmUbNcofUl5F5n95w1VanUw+iwL93AsvV15wdh/zvEi0pqM3N21XDc5Yh6mGkwoZn7F0zxKkDx19lFo4szHAsJphRVFCqrB+3Wew+/oRa7BwTF7qs0BkTXE6zDkOlM+z1Jrb5nWVdCH3GH/mqMag== 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=Eyynim2anQ84B90m57RBhLrpHIhOLcB7Ur6osaWy2E8=; b=cJqUgAbB9vQPgl7y/Y7oLxNDy1Rv3Lq5yO9Py6nJb0aEs3fhdFY4zqBrRGmhJlWkY1Gz4eD1R4o8nP8Ie1mAqOM7FyrC+zxnqM4fXH94B0oep0QRO4+TwnubWYYpiU479VBABoSGabv6TUnl9hg4J02jJMSR7YgBcLYD2hXuqxk= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from AM6PR04MB6341.eurprd04.prod.outlook.com (2603:10a6:20b:d8::14) by AS5PR04MB10000.eurprd04.prod.outlook.com (2603:10a6:20b:682::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6863.46; Thu, 19 Oct 2023 02:48:23 +0000 Received: from AM6PR04MB6341.eurprd04.prod.outlook.com ([fe80::6e53:39fc:f010:30d5]) by AM6PR04MB6341.eurprd04.prod.outlook.com ([fe80::6e53:39fc:f010:30d5%4]) with mapi id 15.20.6907.021; Thu, 19 Oct 2023 02:48:23 +0000 From: "Ming Qian (OSS)" <ming.qian@oss.nxp.com> To: mirela.rabulea@oss.nxp.com, robh+dt@kernel.org, shawnguo@kernel.org Cc: krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, mchehab@kernel.org, hverkuil-cisco@xs4all.nl, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, xiahong.bao@nxp.com, eagle.zhou@nxp.com, tao.jiang_2@nxp.com, ming.qian@nxp.com, linux-imx@nxp.com, devicetree@vger.kernel.org, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v5 0/3] media: imx-jpeg: Assign a single slot Date: Thu, 19 Oct 2023 10:47:59 +0800 Message-Id: <cover.1697597713.git.ming.qian@nxp.com> X-Mailer: git-send-email 2.38.1 X-ClientProxiedBy: SG2PR01CA0169.apcprd01.prod.exchangelabs.com (2603:1096:4:28::25) To AM6PR04MB6341.eurprd04.prod.outlook.com (2603:10a6:20b:d8::14) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM6PR04MB6341:EE_|AS5PR04MB10000:EE_ X-MS-Office365-Filtering-Correlation-Id: 66e2c82e-7030-453d-bcb6-08dbd04ddc23 X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: q4l5BtlnRByotquWwNlTBzcSTkVhKsgVxbwlSN3pBfzzZSQlEPaV7TQUju1RozMxWRhXm1Tf5o8zJErPgJlkcGRlXrPT/e8uYNstRgd6sLf+rW555n+IvXYvRNjkCb4zBtAlhuC6If4hzxFuTZeHYxoAw9LQCIOs3tuKCPrbGKw1vPaESwLqA3KOMk5BauvzxyvJRrMfQRVQJB7/MFBSNlKbGPq5fB2/pyXNZr/aHMgr/9/HPaqhTFG5oUus234346ZFXcOGbBUfsaogNADIpsR99Z2qLRSZAn8YzOfZiP7DItHY8lgaLfuVXXLBd+pAnYU2aJ/1/UL41SZDLrUcoqxv3kAnUrxEE7Qd2+R0uaL1Ytmvdg3Jpc9VqjbTZDEOgn3sOKgKyi2leZdVm4sDsENiPoMes5uoXq3kPpLn3zntzDNgDWRxDoxK2gP/oukGDhgCrSIGglPidlvzA1qAQlAYf8YR9qV/vtWWQibEgKuCiAJ7AZsdNzrxRtHWfqnGcfrlPTLmsyNkg9ZuyvAW/gezl1+W5xJghkgDYlHZLvSxOzpiRwofUG3dWCLSrRwSzQD8Fucv7XnoEH7YaMiUSo9YwwvqUV0lDJ9SmA7IXIozGEo7qmdb0Rqw84DrVuED 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:(13230031)(346002)(39860400002)(376002)(136003)(366004)(396003)(230922051799003)(1800799009)(186009)(64100799003)(451199024)(38350700005)(6512007)(86362001)(36756003)(9686003)(8676002)(66476007)(66946007)(38100700002)(316002)(83380400001)(52116002)(6506007)(6666004)(66556008)(41300700001)(6486002)(478600001)(8936002)(7416002)(5660300002)(4326008)(2906002)(26005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: IsMs2GnuTjVCVPdKD2axjhsmI3tRVMumJ/V5s0er6Dm90kCHRaQgsDew1+mUwFJ89dmQxrdpa44O7jhs5UuV5lOrUQOvemB6uyalHfVYr99ImI9IFwDPdyXIHabR1+8oj3CHzRV6dr8icqs/y5qXscZICZzxDeqA9WSK78TIM6P52eVm2Em08bc00d3xK/fmyhyEyMMPflAdFW6uzvRWBYHDWMVDeqpDODkYVlnm0pcbVIFEeNJCG0QW1v7FvB+gXCVReY0foBd1XIqJ3fzDEbXbLzi1hDTqLB+qWBtjx79Sc3so984aszdnNTNgM8b8wJArSi91YraWnMn4X4x2bZSxk+b7Xo5C3BnOCRe4VJVyDwARV/daOMiRPzdnuk9LSwpUb4u10/7bE2RrqwaK7a1ihcSjJMU0PzR6QHarh6i6m+sZMixwzGB5Yvxhc/p2oK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YNwVudFt130ZB2Kq7MBbbTE6y0rDlDoOgeB5srmwQ0t5uUp7rMnTP6+Lfove4Cs X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 66e2c82e-7030-453d-bcb6-08dbd04ddc23 X-MS-Exchange-CrossTenant-AuthSource: AM6PR04MB6341.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Oct 2023 02:48:23.1787 (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: qx1wWRXF48/02SUMzB7aZYPzfs/YGbZ30shWm3J4KCNu1s05B0UNQo0gM0lDR+JIv30tDX9/LETQlB3D1GEV9Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS5PR04MB10000 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231018_194831_097735_F2B58FFC X-CRM114-Status: GOOD ( 13.78 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series | media: imx-jpeg: Assign a single slot | expand |
From: Ming Qian <ming.qian@nxp.com> This IP includes a jpeg wrapper and a jpeg engine, the wrapper is working on descriptor based manner. It supports up to 4 slots, each slot can have its own chained descriptors. Host won't configure the engine directly, but fill some descriptors to encode or decode one jpeg picture. Then configure the descriptors to certain slot register. The jpeg wrapper will schedule between different slots. When some slot is finished, the slot interrupt will be triggered. The purpose of slot is that engine can be shared across multiple VMS and os. Currently, power domains and interrupts are enabled for all 4 slots, but only one slot is used. There is no benefit in using more that one slot from within the same OS, as the slots are scheduled in round-robin manner and not executed in parallel. Use the property "nxp,slot" to assign a single slot, and just expose the parts of the h/w for the assigned slot. For example, only put slot 1's power-domains entry in the DT when slot 1 is assigned. If not specified, 0 is used by default. v5 - improve commit message - improve property description in bindings document - update patch based on linux-next next-20231017 (DTS patch already upstream) v4 - improve commit message - drop line making the property required, to avoid ABI break v3 - add vender prefix, change property slot to nxp,slot - add type for property slot in bindings document v2 - add a new property in bindings document Ming Qian (3): dt-bindings: media: imx-jpeg: Assign slot for imx jpeg encoder/decoder arm64: dts: imx8-ss-img: Add vendor prefix in slot property media: imx-jpeg: Add vendor prefix in slot property .../bindings/media/nxp,imx8-jpeg.yaml | 46 +++++++++---------- .../arm64/boot/dts/freescale/imx8-ss-img.dtsi | 4 +- .../media/platform/nxp/imx-jpeg/mxc-jpeg.c | 2 +- 3 files changed, 25 insertions(+), 27 deletions(-) base-commit: 4d5ab2376ec576af173e5eac3887ed0b51bd8566 prerequisite-patch-id: ecdb5f6c6975c1c8f10a56ef7fdb96d9f7d16720