From patchwork Thu Oct 19 02:48:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: ming qian X-Patchwork-Id: 96016 X-Patchwork-Delegate: hverkuil@xs4all.nl Received: from vger.kernel.org ([23.128.96.18]) by www.linuxtv.org with esmtp (Exim 4.92) (envelope-from ) id 1qtJ5U-0026x7-CL; Thu, 19 Oct 2023 02:48:40 +0000 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229632AbjJSCsi (ORCPT + 1 other); Wed, 18 Oct 2023 22:48:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59106 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232420AbjJSCsh (ORCPT ); Wed, 18 Oct 2023 22:48:37 -0400 Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on2049.outbound.protection.outlook.com [40.107.15.49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1293A139; Wed, 18 Oct 2023 19:48:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kYjcRVkfLX1XNn6F9VSL8o/n5tR+zK7pL9xaRbFt7jjv2vBmdjOI8bIYR9RJYmfkMj7nV018JR5vVlm0AleOo26OICDphwm+L/s0Opd2CiFYUcPjzG2hWlS8Wde1RMC2t35qfAPfTgrJK4c3rjJZr21FMiPcvwHZPPorWZp/3v7Y3yy7hlMM+tgnH6GMhMwLylquhvmloosic2/tMyYcNQXS2YCyuT0Zicii17ch+NHqhp0TuEeOYTHvk4pCTuL2Am8IXRvw2BbwlN4ETU5OVQopKuAK6AwajC49mhppo6TNXaBp7pvYaNKmt94RJ35q6WBQwBBwvnPX7aZ4U/7SWw== 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=+wUPrQZEQ/CAJ6s42tJWjQagL42TzmT4oqa4/CiOmX0=; b=Clahc0ktaQJbOOTUS2D2/XdbEeqoWZqw6wCd5lhVx7MAR1Du/tQzXu87DfAGYdBU2SEp9jwzz92ne5Mfs81KMmK/QOXYeaHM/b5KM5iAWkeA3ql6LYXFdA1iPL7LahWbKiPK6tBJHBtAH3EUViwNJfEL2DgAa9bV2bHQSWZ+ZkUiBEEIm+73mQxkLI4+LB+8mLELlQZZbKu8wi5dQNMrJgEh43mvgSSRzdBSLjIEI5lsuB51TPOe9pF7LySJyWbXgDO4vMHUkXTWRj3mFzotzkXD13mYf7JnIkj1QLH5CwnNPT4B3muku5+f147qE86InyVAENdJ/vp2MkLpKdAtHQ== 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=+wUPrQZEQ/CAJ6s42tJWjQagL42TzmT4oqa4/CiOmX0=; b=Q01lzVpt2fb9l/6dKUrdO/elRiOO8meOP38B4JIfST9cztBpgvrN9BeR7vzgN7hJwt1M/T06ofAOXuxhFlesC4kl0PMKqUNdweGcH3Tb+N3GEB9W0ErQ+BiQcxJZdAc6w5Zcs9ClYOef4INqdZ/hLPhanTsRH/YwjH80hpA6WTw= 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:32 +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:32 +0000 From: "Ming Qian (OSS)" 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 2/3] arm64: dts: imx8-ss-img: Add vendor prefix in slot property Date: Thu, 19 Oct 2023 10:48:01 +0800 Message-Id: X-Mailer: git-send-email 2.38.1 In-Reply-To: References: X-ClientProxiedBy: SG2PR01CA0170.apcprd01.prod.exchangelabs.com (2603:1096:4:28::26) 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: 9ef7da54-cb98-40b6-a4b3-08dbd04de1fa 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: lon1IJMSOVl9cRyZYa4AKfXS5enScsZ4P7+UJxG2M0do7LeiIOiIB0FOtC4GrSzyRcM2HO+a0PtAD+rm7hAN2/mynSAUxzc469fS+6pAUrefucxj/WA4xWzyEabHXP0cI0sFWLsAx8c3xx3n5AmPe3EG1K6qPHL2mfzlzW8bSgP7eFRiQmJVvjJyrGa1LMeQ6CmpvMjPKk4hylKFlYrIH4Qv+h7ZdWiLClUrp3Nr/9Ccq91IuiqTkHUElAXF/AgMMlul6i3QnUcFXsYAj2IsOQoyeww4S/rciXT8n3O+Linmc05C6z7Pp7veIizoShqE0sAGf1yifWeJ1n9j4KOXz0I+4sDZrwlyhYrMX/6nVLZPEtmoAbrHU2ipaA+iSafIgklT5mEYsshXUqjhpl3PYTToctmHz2KLf5JphAfhITnTSFF/CZuwzR46pIJw9P8R2HZaLP9AevwMpT5eJV3XkSwIJt73b8CrlzCk6UvdRdYpIMP4b9yYLvO+IhxyIHjG4dgZBKLYWM3a8VvNXjYvvg6/a4RO6xbfZX3TCFqidIz2ZYwpVwfDIovtH5Jydx5xdxuxiC8yZlhesjao7ZLTWL5ZlHMbEyQxi04ebpJnWOMXEAe15ELqYdjIzT0CngO+ 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: shntg41bxcKinErcmEyv8/FFtlY1/cT5eOFpUSk+U60Q58lJEA2KYNIR/tUyIwCCN/rCiALdT049sniOB1Bp+QZuFl6dfvhMYBV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RxQBq1G5++LKfo5oYUXEPiDmgxQJI73OyPXB7KRtuYECuFcFVYe7m/Vvllnho0/dKyDNryYX34PhDD52iPZu649YEkv6guUYhymkuybdMOconFwPWwET3E+Yg5/VYbgzZ4eGhMuiR4GvlvngrY8OcpFcijb66KJ0hYKz1BHUapjs75sdH5v3fnm8ssrVKbXbJn6pJPiOvTzBV4SofGsutOX94mkG4dcfrYhdyBAOO4wX+TvBGdypja6vi96vzsd15BtyCHxTQ1cCyrE0w7WqCbt2r4MwzgaHm/6dl937oUvUvDyPaLk9X0WiLKFHIHQKAW2sgWjnLwmdEJSVdWj54RjHsCXXSBBwEzjlwyhhcbJPk02VS7rbka1A8Wldl1oudekZU5dh9ntu2z56SKd+ZiGLn6X667vzU/Dv8DTW X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9ef7da54-cb98-40b6-a4b3-08dbd04de1fa 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:32.8242 (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: 3PW7Boew1bE/zQLavxpDfzbmNTGxcYkRgFYM2vMyU3Ztm0ClWOAmeD8DnwdO2tqmf9a89kt8gTIvybDd1HQl/Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS5PR04MB10000 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-LSpam-Score: -4.7 (----) X-LSpam-Report: No, score=-4.7 required=5.0 tests=BAYES_00=-1.9,DKIMWL_WL_MED=0.001,DKIM_SIGNED=0.1,DKIM_VALID=-0.1,HEADER_FROM_DIFFERENT_DOMAINS=0.5,MAILING_LIST_MULTI=-1,RCVD_IN_DNSWL_MED=-2.3 autolearn=ham autolearn_force=no From: Ming Qian The slot property isn't generic property, add vendor prefix. Change the property name to nxp,slot. 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. Fixes: 5943de495b6d ("arm64: dts: imx8-ss-img: Assign slot for imx jpeg encoder/decoder") Signed-off-by: Ming Qian --- v5 - improve commit message - update patch based on commit 4d5ab2376ec5 v4 - improve commit message v3 - add vender prefix, change property slot to nxp,slot v2 - add a new property in bindings document arch/arm64/boot/dts/freescale/imx8-ss-img.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/imx8-ss-img.dtsi b/arch/arm64/boot/dts/freescale/imx8-ss-img.dtsi index e7783cc2d830..8ba4b0260a6b 100644 --- a/arch/arm64/boot/dts/freescale/imx8-ss-img.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8-ss-img.dtsi @@ -27,7 +27,7 @@ jpegdec: jpegdec@58400000 { assigned-clock-rates = <200000000>, <200000000>; power-domains = <&pd IMX_SC_R_MJPEG_DEC_MP>, <&pd IMX_SC_R_MJPEG_DEC_S0>; - slot = <0>; + nxp,slot = <0>; }; jpegenc: jpegenc@58450000 { @@ -41,7 +41,7 @@ jpegenc: jpegenc@58450000 { assigned-clock-rates = <200000000>, <200000000>; power-domains = <&pd IMX_SC_R_MJPEG_ENC_MP>, <&pd IMX_SC_R_MJPEG_ENC_S0>; - slot = <0>; + nxp,slot = <0>; }; img_jpeg_dec_lpcg: clock-controller@585d0000 {