From patchwork Thu Sep 21 06:36:20 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ming Qian X-Patchwork-Id: 13394099 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5E09CE7D0A3 for ; Thu, 21 Sep 2023 17:10:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230089AbjIURK5 (ORCPT ); Thu, 21 Sep 2023 13:10:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39486 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230201AbjIURE7 (ORCPT ); Thu, 21 Sep 2023 13:04:59 -0400 Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on20620.outbound.protection.outlook.com [IPv6:2a01:111:f400:7e1b::620]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A22681BC9; Thu, 21 Sep 2023 10:02:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dIlcu6YP7TuqWQKdmqg8j1+RYeUCSjh1tN6NbY8Z4AolYBLsJfc9ETitiDGxJuGHWCsmMQYY9C32RRXPn7F7j6/FwGTGbAjf1OoXH5mRgbSx4djwoVAz+8f/r7FywRDeJOTrsJbdhYFSj7aC7UwvKn6/cgPYnru2nWPMSapGgnONPjImylNSMLedMS9cumBYuow/RLKDHt02e3heW5ARCio0spzyQ947wZz7BAk06g8Ktn+vleN0gsD9maez9QKU50o2b3OzuEkonjJBYytWyEZy6Snv59JgShENql55mB5/Sw3H8p9KNQBk5SvhT5qpEdHqq3vlsIvzhekJ7cCsSg== 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=ar48PPT+QBOh5OZCMdyv/m2L8UjG49SAuoYB1SeSTtM=; b=leAfu+wmz4uEA6zkbqQTb7lPezfTQOUpwG+uXUMCBmj25BABt0JEtMtDy2vrU42jv1UavSRr5YIJgI7zRJdBRRV2jJ1SvsmPTwvITwk+0I9JJU0Ic2vj/qTdXtDZA486XWhMexYm7AJIRDZnt5r/Fv1+MuQTqXQLjiHfEKXCRPAytcXzgVdwWd/RSLWG/Ni1Z9WxUyHWimPJFABBgd6rhy/6y+LDNCLWtn4TRJZ/ZPTwoEMs8wEgY8gqxrlcMfl4o56AHo+xfM/UNF+OaauZ2vsIzPdwy1jbf+x/7MtBFOOmHGhEcc9h3PEFb7v/m90DdydGz51NcJQol4BJ85XMxw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ar48PPT+QBOh5OZCMdyv/m2L8UjG49SAuoYB1SeSTtM=; b=iRCfQrzxbmahvmmO8MnsrxiTGaE8hSgoFffNGZ2gTnNLhu3ulFX/eR3wHUb9g5xmB2PM3BPrs6QRlc6bQqF7MBZK2SyLrnh0rO69PBa4miwfsP8C6cnxz2vyqQCrCAzeVfdRKADSUqWDUm2/if2zRoVTBSFX8sagp2PGpqs3yFE= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AM6PR04MB6341.eurprd04.prod.outlook.com (2603:10a6:20b:d8::14) by AM9PR04MB8414.eurprd04.prod.outlook.com (2603:10a6:20b:3ef::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6792.27; Thu, 21 Sep 2023 06:36:52 +0000 Received: from AM6PR04MB6341.eurprd04.prod.outlook.com ([fe80::71e6:21de:ecb2:560f]) by AM6PR04MB6341.eurprd04.prod.outlook.com ([fe80::71e6:21de:ecb2:560f%4]) with mapi id 15.20.6813.017; Thu, 21 Sep 2023 06:36:52 +0000 From: Ming Qian To: mirela.rabulea@oss.nxp.com, robh+dt@kernel.org, shawnguo@kernel.org Cc: 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, linux-imx@nxp.com, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 2/2] dt-bindings: media: imx-jpeg: Assign slot for imx jpeg encoder/decoder Date: Thu, 21 Sep 2023 14:36:20 +0800 Message-Id: <20230921063620.22962-2-ming.qian@nxp.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230921063620.22962-1-ming.qian@nxp.com> References: <20230921063620.22962-1-ming.qian@nxp.com> X-ClientProxiedBy: SI2PR01CA0027.apcprd01.prod.exchangelabs.com (2603:1096:4:192::7) To AM6PR04MB6341.eurprd04.prod.outlook.com (2603:10a6:20b:d8::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM6PR04MB6341:EE_|AM9PR04MB8414:EE_ X-MS-Office365-Filtering-Correlation-Id: bb3c394e-15a6-4b94-e0d8-08dbba6d23c4 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: FAc4A/tKpBKrOIbTEPgsLC6MU0GLuMvNjCwqMWtfOQhz4rh2bILbdYdJS6vioATpR9tULyXPPz9yddAQuKISlvMb4IoPxyGuZImYfZFxhVCQnD7ac2j05xxHMdcYNsswnudD7nSp149gpBQVMM05oz+tIHWtjWdwOq072RwQwoMDPJ4D+t1pG8JzS1POpQizhn0KbdZKpMhYCelvL7S8rL7EGdwd1PHR2F7kIhZnb+66pGK6c3BHlYq97XsEF3fCiSRO4CV4AvC0QlBfdnSxh4yl9IfyNayNYN4Fdz3wt4DtWq9ebTSOGfl5TR/SPfQkDa12F71+k3t2nA+Cq2QOtCJeELBgmUKTd0XdQjvnj3gj0ioNSmQZcjZTznj94D9JxuJs1Zu3ugpzHNxneylXo2UClW3uBSCrALG/SQNy3MS8iS46Q2r1CblWBp95oufoWLeWLgXL0ft+6dYyFfel3LSc5HVaIJIDNyiYCK1cy3I3HDFoERIPacXnZICNUVNZOt0TcyUdb6TLb9Jw5UAMxrE7bryEB1VLomWMroFn9efZRfQ66Jl9NtjO5seUUffAtzPBeIr4MaYbpcKf6fnosBI3Nwmr5dq3kaP2B9EUS9Rc6FUfTvuttq8pbgdSTuME 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)(376002)(366004)(39860400002)(396003)(136003)(346002)(1800799009)(451199024)(186009)(26005)(316002)(8936002)(8676002)(1076003)(41300700001)(2616005)(52116002)(6486002)(36756003)(6666004)(6512007)(86362001)(83380400001)(38350700002)(38100700002)(4326008)(66476007)(66946007)(66556008)(6506007)(478600001)(2906002)(7416002)(44832011)(5660300002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: R4MDnDadelXGKmWNNLFiKTySay5l8y0taWL2FBo96o1cZgMZo3Unxr8MaR+Y5XME7jIogkCVxOCyHNISbF0HgJ2AHyVaDZTArzZpt3rpuE6l7uaD3ut/Hofn81XVLKCP4jShL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0vyS3Nf+CWU5aQ0a69QP/hD3MPuVZwsh84GxKAlMcTE4orUoDRwPzblMyIZUuV8L8grjpVMutSnqLWWJ+rblQaABM6kMACd28iNC7mR/8lNYK51C9PDWfQWa/eJ5rkT6euyBz3DsGYWHEPuUG3G8xw97bvATh5JHik8hBqCAw6PmrA9jCqKvtkuWJqg2q05JagPZI7tDETmvAqUR8lVDcmfuSGn3U7akspyGkbAgwX1vK8Q0EWG3PzwArpviYvsazRUIVy81ly19VD4qoJ1NrWkm8iz6ffKmq0tbZ43g8CEaw/NTW9R+SKh8ZXOafFN0TdUtZ3uWZ+O7IH93CrL6IkOqOYp5D2NMqtvk3V0EgLazLq6zXQ0SaBoswNlfqt9KCIg4CCidvB X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: bb3c394e-15a6-4b94-e0d8-08dbba6d23c4 X-MS-Exchange-CrossTenant-AuthSource: AM6PR04MB6341.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Sep 2023 06:36:51.9506 (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: ewjRI7fFyETt3sOaxucIcDEmkir40Z8fpV3z2laUUhCX9RqkMnqOKKx6drMaQd/jzR9yXek0RCOgC20ezhAg/Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR04MB8414 Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org There are total 4 slots available in the IP, and we only need to use one slot in one os, assign a single slot, configure interrupt and power domain only for 1 slot, not for the all 4 slots. Signed-off-by: Ming Qian --- .../bindings/media/nxp,imx8-jpeg.yaml | 40 ++++++++----------- 1 file changed, 16 insertions(+), 24 deletions(-) diff --git a/Documentation/devicetree/bindings/media/nxp,imx8-jpeg.yaml b/Documentation/devicetree/bindings/media/nxp,imx8-jpeg.yaml index 3d9d1db37040..5f0e2fc1ea9c 100644 --- a/Documentation/devicetree/bindings/media/nxp,imx8-jpeg.yaml +++ b/Documentation/devicetree/bindings/media/nxp,imx8-jpeg.yaml @@ -32,25 +32,27 @@ properties: 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 + description: + Interrupt number for slot + maxItems: 1 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 + minItems: 1 # VPUMIX + maxItems: 2 # Wrapper and 1 slot + + slot: + description: + Integer number of slot index used. the value range is from 0 to 3 required: - compatible - reg - interrupts - power-domains + - slot additionalProperties: false @@ -62,28 +64,18 @@ examples: jpegdec: jpegdec@58400000 { compatible = "nxp,imx8qxp-jpgdec"; reg = <0x58400000 0x00050000 >; - interrupts = , - , - , - ; + 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>; + <&pd IMX_SC_R_MJPEG_DEC_S0>; + slot = <0>; }; jpegenc: jpegenc@58450000 { compatible = "nxp,imx8qm-jpgenc", "nxp,imx8qxp-jpgenc"; reg = <0x58450000 0x00050000 >; - interrupts = , - , - , - ; + 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>; + <&pd IMX_SC_R_MJPEG_ENC_S0>; + slot = <0>; }; ...