From patchwork Mon Sep 25 07:41:30 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ming Qian X-Patchwork-Id: 144435 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:6359:6f87:b0:13f:353d:d1ed with SMTP id tl7csp1131427rwb; Mon, 25 Sep 2023 07:11:29 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFK3JjWBz8mjU4AxbuRxXSfX8FR9X4SlQSNnr63LuXs/MUPKPCqo/I+Y3/mRMUt3AXpdeiK X-Received: by 2002:a05:6358:7e81:b0:143:810c:3803 with SMTP id o1-20020a0563587e8100b00143810c3803mr6802555rwn.4.1695651088876; Mon, 25 Sep 2023 07:11:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1695651088; cv=pass; d=google.com; s=arc-20160816; b=yxH1fAEqaPoYJELXk7W2XcztzenPI93Ell5C5LpAS6d/KCI2CVCE9bnwdbWXxNKzFC 7npPnVdV7LSAFi5meYcb4rJb80D6R4Qd42aaFmvhqk9xp4N4pJo0iPL0uVAto5arnfcm q795HGQSWM1uwpQzicAo6+XbQS5WOT6V+e2NtQl0/wZcCxTmHlvL4Z4N1I6nWpxlxmpd 0dLpekpcQA15xmEO4dI8f/42wILzZcN74nQk2rXVApRfNSKp6sKkxtd5LW4lSJWP/wFI aFRvY999vm1YX2A8mgk9yCNH8n21Q7MmND2vyIGrRzU6t1sGfG47JDhVyZpeVlGHI6kt By9A== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=/Cz0ga+f/D+gXGXJyWWMdxP/dfG05Spg63Yu835pajU=; fh=UU68I5YO4VdQ5I+IVkM0Qh5bAObkOO+8rIsAGfEuozM=; b=yzrfpIvI2ZyB1bXfgjX3BYvvgmKFsOjwScmNRSp2b9dJXxRugZqYQVozBtDSqIn0ut chlDkltxvUHA5iyNovsKUL2VE1HBf1KE2ViXECHxN3jG7oJGgffMEggNlJVQ3XGE2N18 tdbw63tQboz3mjPPXo5ogIvgtsjakCdhIb3rl1FLOpJHsKKPWWS/8OaslUqRgKvrlxdD E8HyCeciVNGtmBqdtHM9Pmqu7pmoQETUkFrTOt7IzBEzlc9BjqkmFDaZiWn5x+t6iD2D YRiUDka4b9jCMsaylwA8tCBEJ2CoPzgILvfyDxJT4fNLQri9eGE1kU7d+PHyqHFeuU3n 6XMA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=YbC+f7RI; 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:1 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 morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id p19-20020a639513000000b005824bad8f81si3109008pgd.853.2023.09.25.07.11.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Sep 2023 07:11:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=YbC+f7RI; 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:1 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 morse.vger.email (Postfix) with ESMTP id 58D6A807C570; Mon, 25 Sep 2023 00:42:12 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229561AbjIYHmF (ORCPT + 30 others); Mon, 25 Sep 2023 03:42:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48068 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232253AbjIYHmE (ORCPT ); Mon, 25 Sep 2023 03:42:04 -0400 Received: from EUR02-VI1-obe.outbound.protection.outlook.com (mail-vi1eur02on2068.outbound.protection.outlook.com [40.107.241.68]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 658CEE3; Mon, 25 Sep 2023 00:41:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Annb5OLt1bPVlDsFGcJV2A/CHZsA7KNAYfGlYKA13hWcO7HVmeLJ9LuQjdGLi+1Pd5m/lqJ/JIWQP2YpdTPH0vzfYxhmDHeiWA9fK7DDobO+dCgwZ6gU+eDi3Ed+dw4eE8HCpaf5eXB7M1HC9MBfu7dLP+VfVhmbGNmuT2b6K7Nsfx1gh7wQ2LFmOGk9Nk8VaO7Z7Hq0iBRPThnvYgsjCOM3TyMP41Q6onz/GPa2vZNGRQH63lkE4w5kpigPmGsf9tX/JXpdWsz8Y/WMuK1+ZIg9n+L99KDL4M2yh4TnIDMEx22ugtyuf9vGX8aLLfKgmUh8IZQiIEdEIcthpzuyZQ== 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=/Cz0ga+f/D+gXGXJyWWMdxP/dfG05Spg63Yu835pajU=; b=WiCxrXWfUMJEZDVIAYmT43aoVpfBeHk4VHePHOVxGEzXPxnM+2e1MvLYig1xvvsk55sTmzhQypuCERA8GHPC58uFzH9qSQgv8T3RRqOXWg64ZBqlO0rPwDMnTxe6CbmDgSi5RcOd0+0OuLh8a2b4N1LqtWEGlm6DFE8VIF9Htsix1J99+mnOLKDwcr+V/w5Mg4k6/zqX1PxoN0XhqvjlGBxh8X1LnMf2MUXbJTNzXR/ZnVubR7IYGYLN9m5xmA8ZPaKZTA1ftWMMPUc48Ws8AwUdyG07T8m+Fv8VIvA7Tkq5K44APKXHq9LBb87XMKlA7fPQcQZvIA4NeBobXJB0zA== 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=/Cz0ga+f/D+gXGXJyWWMdxP/dfG05Spg63Yu835pajU=; b=YbC+f7RI5IixwoDKvqZq8WJNvatuJIJnAKos6gbTQ1vbnHDxdG2UEu26+4Gqgnfv1bUcsbXlnvMvmG7ucHZkJeySSj6pTL4kr//PhcCO+kteOTI62qF9+q7ASPLhFe7mQzH4SRl5yGSZUgK5QrvKYqLnMya0qdeexhqzCB96h5s= 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 DB9PR04MB8218.eurprd04.prod.outlook.com (2603:10a6:10:24a::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6813.28; Mon, 25 Sep 2023 07:41:54 +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.027; Mon, 25 Sep 2023 07:41:54 +0000 From: Ming Qian 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, 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 v3 1/2] arm64: dts: imx8-ss-img: Assign slot for imx jpeg encoder/decoder Date: Mon, 25 Sep 2023 15:41:30 +0800 Message-Id: <20230925074131.10133-1-ming.qian@nxp.com> X-Mailer: git-send-email 2.38.1 X-ClientProxiedBy: SI2PR02CA0028.apcprd02.prod.outlook.com (2603:1096:4:195::8) To AM6PR04MB6341.eurprd04.prod.outlook.com (2603:10a6:20b:d8::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM6PR04MB6341:EE_|DB9PR04MB8218:EE_ X-MS-Office365-Filtering-Correlation-Id: 796e50a0-c195-4c15-60ef-08dbbd9ae37c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ku+E82jYaisEdUzVV030WEY7ymItABceY4VTUSXB2gAnB0TbkIUUCygpNcjUMH9rZuvugUAGooklAhvpg/+l5ayazLy3/8SKiH12ja9maYBXsaaOJx8P5soGV11YdABxuFNusJ8Oc1ExSo3ZWtLL8r1WHQXvbUARKltS2hKSvH7WhgNKpET710qXE5PIX1umpmXB4r+g7LvPyr23WGxEH61asO/jnL4Y04O03n6LKx9TQCooC5yEFIY60nR/4q+q+WOymZoLTVvU7FI2ibJlSbeYy64RzcfDgM+d6APNh2BoGfc10fC9ZV8YifOmBG96mH+mzWsaWUUg47u52P/OpUmEc7Ps2sEnIUUG145GU11nxcKa4awgyNUxSEEv9hUVr39USNKxY7OiFvzQaFyknvrjFv5q9ElAvPkph+qmDrAzDoAqpJlpqgPFuJuBKg3dq9XYKmAsvwFxmgJB79QraabfBd7VB+7NZuVo53Fv/EaoINLi1iLjpWg1jJVBBDMnSU0t4sfjddoBqQW/DXaZ27InmrSVwAgJqkM6NdqGAZAjsZOZrUPuSLdT5HBT4vSb9UKLNnBY3pWGwc4YmuDdv5Av+cdo1qNh8M8WEVeBp1S9ZcQOFnylc81M/oPwy8/q 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)(39860400002)(346002)(366004)(396003)(376002)(136003)(230922051799003)(451199024)(1800799009)(186009)(316002)(7416002)(41300700001)(26005)(2906002)(5660300002)(8676002)(478600001)(66556008)(44832011)(66476007)(66946007)(4326008)(8936002)(6486002)(6666004)(6506007)(52116002)(6512007)(36756003)(1076003)(2616005)(83380400001)(38100700002)(38350700002)(86362001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: LNMiqKQBJSLQ39AikKqZtCcT1cF1DwZ6ZWRe4zIS7v9JIS3qVLNGlvgJpc/Yf1cUy4ubHmYxo6QKUfKPBxpkSPALHc8z9y57VffQ37OQRQ7CENwg3+TYJBs1U3mnY2orJVQqSdGpGFjSL53CCVywrZWy8LKL1pbDdO1WNGZD5oawFzJBB09JmGdhHsPxRkV3K+6Cdh5pqT+V7Tg8G8hGmyzEdSqXWiVMi2Ek95zbeisQq3vl/g5OGuSknEBgqFCFD+PI6PFwHb1U/PII16kIjV6j2H43W8S/UiXGz78pnKoYZ7wh39dlTjJZYb2nP9jC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Vjb7zbvS5iSo7E4co5eC/8QgMhmJOH14xDbSl3ARl8XvhxI5qxde9OvgVGmsq8dXeFMRM7uAb5t7Lz3zmZ449vBDwg2ZK426c1BUdTgouMfTxflVezGQooUBL2I6OZ7lHUuKxtwKh/GV131oD+4dYiCcvLqFFGOl3ImlH9HBJ9na5M8N2ZnrT3jzX6A2mLUXr/jBRlxYB60vK X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 796e50a0-c195-4c15-60ef-08dbbd9ae37c X-MS-Exchange-CrossTenant-AuthSource: AM6PR04MB6341.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Sep 2023 07:41:54.4834 (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: jg7eqbj2rDN1Vg9jH+yycEyDcDEWukGBfAIFGH3CtIwlL+N9PqnY1Ak8XnNKKxJ69jzWbRXI62zhr1W5kjSIFg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR04MB8218 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email 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 (morse.vger.email [0.0.0.0]); Mon, 25 Sep 2023 00:42:12 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1778000539099139735 X-GMAIL-MSGID: 1778019035742114566 There are total 4 slots available in the IP, and we only need to use one slot in one os, assign a single slot for imx jpeg device node, configure interrupt and power domain only for 1 slot, not for the all 4 slots. Signed-off-by: Ming Qian --- .../arm64/boot/dts/freescale/imx8-ss-img.dtsi | 22 +++++-------------- 1 file changed, 6 insertions(+), 16 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/imx8-ss-img.dtsi b/arch/arm64/boot/dts/freescale/imx8-ss-img.dtsi index a90654155a88..3043c416c43e 100644 --- a/arch/arm64/boot/dts/freescale/imx8-ss-img.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8-ss-img.dtsi @@ -18,10 +18,7 @@ img_ipg_clk: clock-img-ipg { jpegdec: jpegdec@58400000 { reg = <0x58400000 0x00050000>; - interrupts = , - , - , - ; + interrupts = ; clocks = <&img_jpeg_dec_lpcg IMX_LPCG_CLK_0>, <&img_jpeg_dec_lpcg IMX_LPCG_CLK_4>; clock-names = "per", "ipg"; @@ -29,18 +26,13 @@ jpegdec: jpegdec@58400000 { <&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>; + <&pd IMX_SC_R_MJPEG_DEC_S0>; + nxp,slot = <0>; }; jpegenc: jpegenc@58450000 { reg = <0x58450000 0x00050000>; - interrupts = , - , - , - ; + interrupts = ; clocks = <&img_jpeg_enc_lpcg IMX_LPCG_CLK_0>, <&img_jpeg_enc_lpcg IMX_LPCG_CLK_4>; clock-names = "per", "ipg"; @@ -48,10 +40,8 @@ jpegenc: jpegenc@58450000 { <&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>; + <&pd IMX_SC_R_MJPEG_ENC_S0>; + nxp,slot = <0>; }; img_jpeg_dec_lpcg: clock-controller@585d0000 { From patchwork Mon Sep 25 07:41:31 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ming Qian X-Patchwork-Id: 144479 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:cae8:0:b0:403:3b70:6f57 with SMTP id r8csp1316401vqu; Mon, 25 Sep 2023 09:01:45 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEyCTm4dET2Wj4q9s4ba8nMET7GbPqrKIGy6gEBUY+xnHtSVeHspzYrIFJSSgohzaZokDnz X-Received: by 2002:a17:902:dac4:b0:1c4:72c9:64fc with SMTP id q4-20020a170902dac400b001c472c964fcmr5852157plx.22.1695657704856; Mon, 25 Sep 2023 09:01:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1695657704; cv=pass; d=google.com; s=arc-20160816; b=N+p/0lZvMKELPBSBqdxCQp0WHiCT+ibmtZTEYMnhEc7hO1sLZntambGsxd58NR9Zhp QCrB2QrR7j5if8biEmzFIumW2MFLZii4WjM6kxDu0XxgRqlXooAQqBTtTOW/fzyMkL6C yWIouJ+OVEOdupGWWDc3b6znoD43qt+TbsDDaJpQA5sVumQmZWEvXT9oX8WXWJgQllWd stzQFVMHwNLoUTcm0DlfnK84jS0iZKwAz5vDlxKoMDGTR9mj3FJEE2aQoypJufmcLNEj /NNJrI4N23ddbtRN/TX2YJOPIP35fDNcme0FwfIyRJ2Adws6Q7im7iH85f/ezyGlEi7B llpw== 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=mvNzXaz4qs0RO3jVy9j44DkVR/y4UCbTBiwWZFrbgOM=; fh=UU68I5YO4VdQ5I+IVkM0Qh5bAObkOO+8rIsAGfEuozM=; b=CjDQrggrZYNrhW9ZcQwGTPXZMtghcxt8WN4RJFT0fonaDZOIKSkBwrDcV27atQnkLA PTt6aFROeUutmYSOey8DM3n07ZbR73jVtiqtVRguPDgVbId1UgxuK5YDjV1hfIfRhXB+ 8mkpk7tyAWA9iM54QvwLkJAUw+kqjKqjoni4TXPMR2jllnwLv1rVAsQoxA/xZGvhf1Lm 4v1DDfGeA4AgbANAzHBOrpvKM83tM8jrHCF49my2gqjWf//cKgLYqYC3j4nTIuQZ2P6y tOCZOYXlBDvkM4MN9f2QzVr/FHKLAiY1x8xdjIl6fe+HN2wDFWBzsh1KHofoIMuL8V3b ZoBg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=bG1lKdob; 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 23.128.96.31 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 morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id c4-20020a170902d48400b001c382ba4f5bsi11504353plg.434.2023.09.25.09.01.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Sep 2023 09:01:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=bG1lKdob; 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 23.128.96.31 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 morse.vger.email (Postfix) with ESMTP id DED61807C568; Mon, 25 Sep 2023 00:42:18 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232380AbjIYHmN (ORCPT + 30 others); Mon, 25 Sep 2023 03:42:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48160 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232320AbjIYHmJ (ORCPT ); Mon, 25 Sep 2023 03:42:09 -0400 Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on2075.outbound.protection.outlook.com [40.107.13.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8F656E3; Mon, 25 Sep 2023 00:42:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=H6GQ6gKB7RzCMmUSHEGlZZctOGLP7RQoIdUSvblR35g/5DchBbfBOnNzmWvG27BBL7y839mjYxlAcTe0e6/aA8ZAbJ4ehCqKBY9K4+l6MEIQWYkYuKTT4E1g4l16JBJufYN78MJonwZZdtwRi7bBDBdqVvVRxWANRD/bQ/LJl1z5ScX/gFxLn73IZa/O8bJfo1qREXeJjs14NniKrOurknfoi9ozmuSAnluLe+QaDbpDlEkZI6Qk/Lri2IxnaBbsDKnvXHcfDpmYEoQq+f0MoKUWz8668d4FnHg8afzQxq4VO5plYm8LKyd8p8nQySlmXdzGitVXl1BkWN0tAkNJkQ== 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=mvNzXaz4qs0RO3jVy9j44DkVR/y4UCbTBiwWZFrbgOM=; b=nCYH+cm0BZhG6PkO0OaiD6qxsbEhzQd8XJ1h+Efl4yG38K7QfTip7pxNoVaUgym8mGaGAIzMnbnJzCJ9A+VfymnDqbBlQ/XqFsZ614LatMG35zBYUBUN1XGaswsPX1dmiBg4EiR5+MKIDX1HxJJ8sVC9H8ORG7swEiLGxLeB2HC9fQnSQqYYFFCLN5DGw63FigpehGAdtzzXwkR2srYLoKN0hrEW2QD0oIdmfMsqNOONwxzaJ/gTkjjWPL5WSbqpu15kyWqb27WS0PUJwritQcWOqpSx4YAkO0ub14N4ABygHdrPQ/gXRAwy37t8EMavPyi1GsIb25k3pU0hNbgOKA== 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=mvNzXaz4qs0RO3jVy9j44DkVR/y4UCbTBiwWZFrbgOM=; b=bG1lKdobJOdub0OCxy/kqyBsMbiEpMXTZOAY9ZUUo77c2g+QS+Cy39E7wBodV71cG7XHBWCmCmQtvWmfhf8zgN3wVrVXiYI/vPn+iRSlczB1tKFzu5zR/hG6BsAUvx3CR42Cd9gvplwsPYcehgQ7sOpER0Nrl95V6szKhwCpr3k= 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 DB9PR04MB8218.eurprd04.prod.outlook.com (2603:10a6:10:24a::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6813.28; Mon, 25 Sep 2023 07:41:59 +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.027; Mon, 25 Sep 2023 07:41:59 +0000 From: Ming Qian 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, 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 v3 2/2] dt-bindings: media: imx-jpeg: Assign slot for imx jpeg encoder/decoder Date: Mon, 25 Sep 2023 15:41:31 +0800 Message-Id: <20230925074131.10133-2-ming.qian@nxp.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20230925074131.10133-1-ming.qian@nxp.com> References: <20230925074131.10133-1-ming.qian@nxp.com> X-ClientProxiedBy: SI2PR02CA0028.apcprd02.prod.outlook.com (2603:1096:4:195::8) To AM6PR04MB6341.eurprd04.prod.outlook.com (2603:10a6:20b:d8::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM6PR04MB6341:EE_|DB9PR04MB8218:EE_ X-MS-Office365-Filtering-Correlation-Id: 178ef689-ca87-4958-e2ff-08dbbd9ae693 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: QAWANUUPo5H7iDh8RNna8HInS3pyiA2Z58y9VghZgVukfgixKlEWop9baQLXcB145OohxbSrmZEMRd9tRyFpZ4XNcJoiDDf+IHyyGIJELSlS7Md4isqP+1POFPTqI6/B8oVWcksXugPbt/OZjJFil99dA0khvhm8VsCTSakXTOCjKakCu2vct2zg4jESF6vQ2S6IJbSfgQ84cBDR4joObe3IgrYONp1NkBJWUESq+OgIoh/u75wIUIM4pKIqCsUVwwSud5H1S06V9UafY+z6TJtq21U+KN4cA295/01mmUe0taz4IFGxloPyZ7YbCoIBrpTsSHkEZX14L13hWD3xSt2Dx0pReK2CMa8fK+UW7FRwQDQyUIVcII6a+5ea4mHO/8llm0RtjMndbpUzfVAdX+MHW5n1/TfgJLUAmNSpqeEvk7iTYW5GqHsKk+2EH/0dxiYTsodKovWEQqco3d9BSfDambM6OjmB4+0s1vFaUE/Q+QDzoAFBZBkbTLlIu9dHgpQCLEUOS61XLI9bS+a3cXFN2BNITJEdkNskcmDemES0WIxY9UEnvumJxvoDJ5bP27McRyP0T4gDE9JIwvmmk0benPI98fC8AWt0wGW9q2uMa578ng7nzSlAiCZzeoYY 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)(39860400002)(346002)(366004)(396003)(376002)(136003)(230922051799003)(451199024)(1800799009)(186009)(316002)(7416002)(41300700001)(26005)(2906002)(5660300002)(8676002)(478600001)(66556008)(44832011)(66476007)(66946007)(4326008)(8936002)(6486002)(6666004)(6506007)(52116002)(6512007)(36756003)(1076003)(2616005)(83380400001)(38100700002)(38350700002)(86362001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 17N43uHzzobW1QlUVdgRfoAOrUrQL60Wr3EuzVP10lAEpj07fDP9B+mxfLLIGRWQQshuFIPI+e+lnSPisyhk5+bfseZ91Djr6X05VkfxvoWwgNoHCQ+OQpLVJvKJEFrphGX5KvCotTuRQTQQzM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FjGEfhO5yFiEiMlmqceCoeNsClyY84hJUN+p6l8i8jhKy+5v6oeRLYsjFF4pyWKlr6CZZc311phsodazHhcDVazBOT7kjVaCxPEQmfzUKcGLjVGL2Ja5cOVS78Og4kzl3BqqWOi6IHAiJzDp1rM+BgyBznJSzrgF3yVx9tbzrUnzuSV7BBDzMBClyyca6ZVXFaHnGYm/wMBouDQ4LyVSFzj6CQMRAW3c3x40q4Y4/B8QOEkOLcLzAql+BUzDjahLmLI779tlL8l6ChZhdUB57nLXwCIRPYHjfE6Fk95jlOHVMi3MNMcqNRBMKyKGmcl1IYVGGIQ7EXmoJbiDwX57G2+zRB4OIjS3gE4xItzE6oXszzOhzi6GQPibrmdQGz0rifF88n X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 178ef689-ca87-4958-e2ff-08dbbd9ae693 X-MS-Exchange-CrossTenant-AuthSource: AM6PR04MB6341.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Sep 2023 07:41:59.6103 (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: Hdmyi7m9w529BSsaGNnEhwHAzJnDIs5w3zb/BgK1aRj6U1UpqDW9p3DsX++d+uzStisiFjpLi3g4rAxAEsZveQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR04MB8218 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email 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 (morse.vger.email [0.0.0.0]); Mon, 25 Sep 2023 00:42:18 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1778000780951092873 X-GMAIL-MSGID: 1778025973555842209 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 | 42 ++++++++----------- 1 file changed, 18 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..df381b21336d 100644 --- a/Documentation/devicetree/bindings/media/nxp,imx8-jpeg.yaml +++ b/Documentation/devicetree/bindings/media/nxp,imx8-jpeg.yaml @@ -32,25 +32,29 @@ 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 + + nxp,slot: + $ref: /schemas/types.yaml#/definitions/uint32 + description: Integer number of slot index used. + minimum: 0 + maximum: 3 required: - compatible - reg - interrupts - power-domains + - nxp,slot additionalProperties: false @@ -62,28 +66,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>; + nxp,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>; + nxp,slot = <0>; }; ...