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: 13397378 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 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 0CA6ECE7A8C for ; Mon, 25 Sep 2023 07:42:30 +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=WgC19k7ZbqUELc9KAus6FF/Z63v3irs/vycen0j0eac=; b=rryLGGMPDwkAlF zOeIsdtDh2RF7gY7Qk0WbPsoWLy7fR04l8hZxxECTvbiUBvlOypyUeDAAojVnrKCHUePTUC8ZysgW Mqr3qfqJE1M/Z8pEbnK2SrruA9d/mL/PwXV0t92A9djhYk5t+14eooQBIsAYfcvcKpDY3QG7uh+Uu 2CtaNysk5hiBXoQDi4vdSQy3uDxP8Y/SENH3sgq0IkSlCA2G8ACB4BuRYDixKv92Ijo59MrxTcORF GylUp8H/FN0rN5gDnjh9PjFM3tIWqo4DrOUcH/kF5S4Eb/z7FkdNNd3j+jLm/PDNzdl/UHqoj57Uc bNgP3T+Zap7NvIs1z8jQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qkgEF-00Ddhu-0T; Mon, 25 Sep 2023 07:42:03 +0000 Received: from mail-vi1eur04on062d.outbound.protection.outlook.com ([2a01:111:f400:fe0e::62d] helo=EUR04-VI1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qkgEC-00Ddgs-1O for linux-arm-kernel@lists.infradead.org; Mon, 25 Sep 2023 07:42:01 +0000 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/UiXGz78pnKoYZ7wh39dlTjJZYb2nP9jCsUMNzaqv65FYCcn/P+0LuKHBNZgOyrTTpd7C64AOzQBE32+oguVTKX8Vo4hV7nHLE0AGfS80ujeNM2VTeGRAQh86twSc3qFrqjc8hJ532vgp9uxb4DM699xxrOLbWvYvCZndLqAP2wtrUfuikKH4Z+/6TClvi/OvdNCRF60Q2yXtpfsJDR59h3nQOaCoo/Pcr+LkphJAiwQNbsAUgbMg6pdcaPjNfUREUdVDLIWZi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ange-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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230925_004200_557953_67AD218A X-CRM114-Status: GOOD ( 10.44 ) 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 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 {