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: 142944 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp5162246vqi; Thu, 21 Sep 2023 14:58:05 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEbjkstpQG307O8mEUZurpvk9vEkUlQxUm0NZgk0eifFrBFGfvPEaIL6MXvaYmXIIW04F30 X-Received: by 2002:a17:90a:7c01:b0:273:f584:40ca with SMTP id v1-20020a17090a7c0100b00273f58440camr6860000pjf.16.1695333485361; Thu, 21 Sep 2023 14:58:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1695333485; cv=pass; d=google.com; s=arc-20160816; b=huHe+91izQGWU2KHzQH5m4sRiuLN6fRLvXH0k9cRCw94r0kQblWJ9UKqpieg9Iyqrb 7D20mYwamTuCEdXbILYxDxJ0fNqztjYfJ7EnLZVePst8f/arZgN5q8omN9RzU0WheeHW c5PaCWdJr6RrH93EnEVgHuCIIbEIOhJS6joyi+t+4O9BX8TZgSd48yii9hZ4LySGvUpO ih75b9tuaTOD1BanrV4XqazuYxfR0+SboLDz2WJyPr/Tk2bbnKIPm9Z3jeHB1vF010/R Oxfuib9fEzQ7EO6HCEjmgX4ZR0ejqvcfyGwA8ja9Qg68mdBO9XM+VKgvjcIKT1VEynPp EAdQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ar48PPT+QBOh5OZCMdyv/m2L8UjG49SAuoYB1SeSTtM=; fh=IXphUfglptVyp3GOsAjj9movxmmGNsr/PRFirsfvxSo=; b=gq3z1C184oYKiGXadgMI5MEJjBlF7bKYA1z0ULNOwsqmRq6//0liQ+nWmpBIcL1Vq6 Ne+tyGRDy/MiVvDbH90Nyqvu7NPjCql6kZffpYlpMnQDqRACQxDpN8Kgd/Zgq3mZIVYd K72RLNCsePFuAe2B9sObuXUCOWnEdcw399h9SnAvUS40nZUHCAo+utgVnto/sfEDVeSQ vfC/0wPIaCpsyD5QARNi3y92Pt43t7Ytj3Qr6km6COjNMgC4MPzkv4hEttlLXHiHtMff wp4UkA8d1SDMfRpBoYZOEOG4V7gt2en39MBd1kNTGxPhuyFW5+dMf9geHs9OrDC2GyVR PZ9Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=iRCfQrzx; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id u9-20020a17090a410900b00276ac140106si4583774pjf.165.2023.09.21.14.57.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Sep 2023 14:58:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=iRCfQrzx; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 60398807D439; Thu, 21 Sep 2023 10:15:15 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229699AbjIURKu (ORCPT + 29 others); Thu, 21 Sep 2023 13:10:50 -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/Hofn81XVLKCP4jShLOfpD0b0wdFjxp10TR6tQkhtScw8h14bCHfHSow5yu5rD/wl05d6WV150RoOwWyyXrc8+X2S32z6dvCgVcT9KLxtKrLS2T7qsemeph5et/TsQwRRjFk1tp5cyinaUAJLr6HOetrcryCRZRkiCVPbAyKMJ9DwgL90Y6fkZU0Hm6fwEaHtjo0GTitZIroRY7kYv3zDWz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I7tDETmvAqUR8lVDcmfuSGn3U7akspyGkbAgwX1vK8Q0EWG3PzwArpviYvsazRUIVy81ly19VD4qoJ1NrWkm8iz6ffKmq0tbZ43g8CEaw/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-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Thu, 21 Sep 2023 10:15:17 -0700 (PDT) X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777669556799009997 X-GMAIL-MSGID: 1777686004640547088 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>; }; ...