From patchwork Mon Apr 8 07:58:06 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mirela Rabulea X-Patchwork-Id: 13620707 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 92640C67861 for ; Mon, 8 Apr 2024 07:58:41 +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=xK4V/1ZJ9r/tpLE/wwpvOlfsENjz7+/7xe6CjAlvGms=; b=ukeHZLa+XOELiV ZlXpbmdPPQFpR8RRZigJElhV5oQVLFvM7fOXxvojJ3FFVGP0qI6rgq5iZ371MlsbTI/YaRU+qlmQf j/zEE8nPutTdsyWYIftiZNFeWxqtVid6MhEx1cIW2JIWtgSIxIcLOrlotdOWYJxE/53HKe3aNYTxM GkhF042dufsst0HMOd0HR6L0hMRoFJbpm6u94/ftyQO6HQB+1xv9SnZFbfwfjRqiXmJtGV7eASyLY iRDaaOWQRovSQXZkk0RCbAxJ2S8TJZ2RtI/dsOfVm4Otwp0JaL62wby/RkajncMj45vmgVBiEWn5A D4/wD+LIr1KxgYyBluTQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rtjtb-0000000EnU9-3ZP1; Mon, 08 Apr 2024 07:58:27 +0000 Received: from mail-db8eur05on20708.outbound.protection.outlook.com ([2a01:111:f400:7e1a::708] helo=EUR05-DB8-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rtjtX-0000000EnRO-0R21 for linux-arm-kernel@lists.infradead.org; Mon, 08 Apr 2024 07:58:25 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=A8Lp0A7EA4Y8rdA4GWg54kiVMika26MijZaLs9As6WtZJvyD2qnK66wjKtspV5G+AMp9cHCq82b4xN+dAMKeA8hW3l37abMtlMWFB+1MTQ0kVinhlwQE8+cDgg9UbHbIpk8EkLJnIXRoB3xEwFX0gqkDQbTxaKcpT0KdgzI9XrbtQ246hkoqgQGSZdAz/Os8+YD09ahR2t42TrjSeeZgP0lvgLEb3FgkDgIPm9EZP8w3K0JDXefH+tywONUoL0uo0O9ML+GSkY+N20vOyCHU2x0pPmSE1QfyAFqFFfIv0qyNd/bv1nqjhasrDgmWtJJShCkxI4W8dvHKNj6AWGpPMg== 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=Yw+zR2FYL4uZyJWN7bTdu5W2MNsOZCTJW+JQOSh69gA=; b=JFb7M+GOs0ehLqZDk+QLcxceTr/rrkj8+5O94gNynoGASsW8Pz7yUpBGZUzoKeLBjqzI/QnY9yQANUXR6iqjXqlWk4aKomG0yh4ThsQ2TszVrmyly2J4vm02pc87EsI1s/gQpQpzhuMjJgD6xFAJaPS1Yg0NDsDtUA8oefWsV1Jd248pA1nT99Rj/6l9r2tMttuVYHopvjqO0yERcr1P0EpSx0KkRhna+OMusuY8cgU1tjWfrM0H0vblMyRM77CQR625FeFa+RvZvn/OliOJJMwjkUqDdGjciJ5nclwPbTkCoIFklazTV1ppbgnSgb73q0peNQlowQGP/pY8odYWYg== 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=Yw+zR2FYL4uZyJWN7bTdu5W2MNsOZCTJW+JQOSh69gA=; b=SkF4/67EyYmuoM3yXdObs6Uo9x0znxrj75KJCULp0rkTouqMRgRtqf5Lawod2hy/rXF9fdxlvOeSHrNtMwvqQMNdB0p19pZ1X8412uZrcl7F76EayvDIddygYZjfIQ2wuEb7YwK42oC+QRi+VQf/WDK6WL3lXA1gLr1SduLP4h4= Received: from PAXPR04MB9231.eurprd04.prod.outlook.com (2603:10a6:102:2bb::10) by AS1PR04MB9359.eurprd04.prod.outlook.com (2603:10a6:20b:4db::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.55; Mon, 8 Apr 2024 07:58:17 +0000 Received: from PAXPR04MB9231.eurprd04.prod.outlook.com ([fe80::c2ee:dfc0:577:cc57]) by PAXPR04MB9231.eurprd04.prod.outlook.com ([fe80::c2ee:dfc0:577:cc57%3]) with mapi id 15.20.7409.042; Mon, 8 Apr 2024 07:58:17 +0000 From: Mirela Rabulea To: shawnguo@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, festevam@denx.de, festevam@gmail.com, alexander.stein@ew.tq-group.com, Frank.li@nxp.com, ming.qian@nxp.com Cc: conor+dt@kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, s.hauer@pengutronix.de, kernel@pengutronix.de, mchehab@kernel.org, hverkuil@xs4all.nl, linux-media@vger.kernel.org, imx@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH v5 1/2] media: dt-bindings: nxp,imx8-jpeg:: Add clocks entries Date: Mon, 8 Apr 2024 10:58:06 +0300 Message-Id: <20240408075806.1194297-1-mirela.rabulea@nxp.com> X-Mailer: git-send-email 2.25.1 X-ClientProxiedBy: VI1PR03CA0057.eurprd03.prod.outlook.com (2603:10a6:803:50::28) To PAXPR04MB9231.eurprd04.prod.outlook.com (2603:10a6:102:2bb::10) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9231:EE_|AS1PR04MB9359:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: oISNo1D+XLChmSNObMgH/iupJAKakIPE+xr9D1dFjndmJvKI1e3TITOe7MT+6EUpfpHs6QflmQk3Na5hHKWHjKML/a0Qml9hEfu/MWRNfYC3GykiaLyRPBER3VLM0ztxeg8M+nBmzH+uny3cgThH4m+gW47w4QjIH9aiINAauJ1wYOZAuZwzamGzFHXfNaqD42n/DPbxiRIT5GwIvSRxxRyLfQzOSdU9zjw374cneuCbTC2xkkkNnBvKemksSNKsuPgOcC9bC8Bk3At8XSC+sP+HHj4xPSKkTswwp9mDKg8fEQG45xY2l9F6YIDGOl/hmmdnoDRFJNs4TUF75MXml8q8v2LF0+UakJivuovikZpbgzhICMhBD7E9Vlr4uXbOu6h8pNEBrINCl5mLek+nQ/VqNC1dRQy9E/kDIVCTMZGQQghbYm644ofYIt68ZV/rtpO6khgnRdQyDg3OC5IrpCJXOIesyd6qY/s/DgzwpzwhOSlj6i2DrhQnfSbHq3M58JBrzmroR7tIMCaX3nem1ZxMIjZjz93Nwcdn73QGeJ+D7SgjktiRTBXnA/WlsLu5kA4efX1JMEnYeWrymXSNs+5meQpEwEVRviOvr4DKllKN0o4sYl7eerTUvDj9i5m2sM67WHwFC3cVEQJSKiZwBLjtH+F4DMHx/yP2s0+JYq8= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB9231.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(52116005)(376005)(7416005)(1800799015)(366007)(38350700005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: CoKYB4qhhX38uxTzR4rSX6bKr7uWNSne1ALleAOimnom1nP4odoPse4VqXykb3I/zFRC4P1E4ujF193AtYkWTOJUjmXRgatOUmlcYEfrO6MYU25tqu1CdRMTTQf9nR9AVVwMxz75JelfSkIwy/luKQrobng1PaX72uc7CL/IP49q5djU+/B1kfaupaM/ytrYeFX/a35kTACgF5K1Oj/FrlyIPlkKCbiSZANVEHmW8lePiBQ2Kx42BVI1IGvPpWZt/FY7qBsb043b84x8klkiWZrbX+eMHQE9D5FhJhlZiB8VZr+CE+IjBykMGTB4522YyhT5Wmor2yJ4MHQfIQI3wwhMOg4EigWupvYwS0uZRumz3xEHp7Oy+o+0/0Nv3pluaQ7Ngu2dLHL7q67BycUtrTQCybQCLQVal2vnQA3QdBGR5M+jLqf3OWF1x0emYRLLrOmodjw2EAfWj4z83I6RhcHeunYzkbcMEuOuienNDMGNdSVaR5LSH8qef05q1O2j7qR3WAHWWFS9G6dYes4Cdk3iDb5WN4LRiTSLVOlmiaC8vegMkoF3Y7+DTgYxHt7sNpRX8Xz8bM8zCmS+oIB0WMk2+PyIs+I/K6q9rFVssxBzw5HIITwCYC1C/XZLDbMM6ra9mlSEDOHofzMZAC+U3TkOHiuhgYmjJa/oyfJmW8YdDtb7VZMN7i0eA8fMHXBUnle32XmGsJFvWHNmSfH+yG0EJiwE7bOQ8RXxnGI4RDZFvHa0A0ourkhuFTNQALITv3541BBv3RZc/UyPOTn2Nh4jZGxTpUc+StcwznOClbsp5Cbi5XCU/fwULqqcYmOHJpDquewAajaMSd8GTcLv+Pn8lGe4I0Icvu8tbqasbZcmZUFoPS9rdbO/iAFcZ87IXBdyjm9X0ttMseGQM/OdfIeC46vH2twm43/mDBg9rYFwBiul0vsQRF+zgLuor+7P1LW8X9iPY90fo7Y9BkuPa1DyGDeLwPYRamFUTxkbD0+DojRJHgq68TuU48++DF7O5BwD63rsads++JhlKBkfNyMnuicpqmPIUm1wUUujyrHriEAm7H4S2q+/LGIGI0AK5LozVNBTBhZXa+MtBQpgD6OK515hiqyr6TUUZyLPmhQanIwbylHaQYzWmat6vx61eQuhOMKWk6pWaekZdlX5yr36cEZMQjkcLeEjwkj01XvLcTf6jgsnvBzZFA7HlVYVX9g974Cuhnynh7uUQA1MgkGZgvUwUnhQEnjDdU9/6C21CPmHUwH0xb14bAhxp66+oIFDEIUO9GIBp6WzTQupqjoiwjHkw7uyjD4w2zIeBNCyzUqSK4514q2ezL35UdPXDoQrsMvcSVnTaBZlYqY/hoFMa5D+oBTZgxheVIfrjSpp3Oeup8OQQKt/6lvXawVQofym5xzQCms3rM/b0T2lnOZXvNPLxTzZnLhceKII4lqZ2yS8YmPXpef+pxQjH2oEwqz5JECBsILrE5pYuzPy7p/2U3olBFBSXjy2Dpjm+n5vAXSu0FO0Wevxo26reEeq9FZNFjBnEkq07z0ihb2jSrJL472k8XzieLcTwSa0VYyrk7DicD36W9SqddYX6q2o X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5846a223-265a-43c0-bc09-08dc57a1a671 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9231.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Apr 2024 07:58:17.5594 (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: oTojo9ETMa7kcDjPQVEoUB/di7zfaHsFvaMnuA72VvQhkUKRJmtwRyXkB+kdAYZ2K66qzgsOFOTDW/gUajm40w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS1PR04MB9359 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240408_005823_965043_482323B6 X-CRM114-Status: GOOD ( 13.70 ) 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 From: Fabio Estevam The JPEG decoder/encoder present in iMX8QXP and iMX8QM SoCs need the PER and IPG clocks to be functional, so add the clock entries. This also fixes the following schema warning: imx8qm-apalis-eval.dtb: jpegdec@58400000: 'assigned-clock-rates', 'assigned-clocks', 'clock-names', 'clocks' do not match any of the regexes: 'pinctrl-[0-9]+' from schema $id: http://devicetree.org/schemas/media/nxp,imx8-jpeg.yaml# Signed-off-by: Fabio Estevam Signed-off-by: Mirela Rabulea --- Changes since v4: - Remove redundant description and update subject prefix (per Krzysztof's feddback) Changes since v3: - Add items for clocks (per Krzysztof's feddback) - Add description for clocks (per Conor's feddback to the other similar patch from Alexander) - Add "media:" to the subject - Add Mirela's signed-off - For the similar patches that were sent for this issue, should Co-developed-by/Signed-off-by be added? Alexander Stein? Frank Li? Changes since v2: - Remove clock-names. (Mirela) .../devicetree/bindings/media/nxp,imx8-jpeg.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Documentation/devicetree/bindings/media/nxp,imx8-jpeg.yaml b/Documentation/devicetree/bindings/media/nxp,imx8-jpeg.yaml index 3d9d1db37040..2be30c5fdc83 100644 --- a/Documentation/devicetree/bindings/media/nxp,imx8-jpeg.yaml +++ b/Documentation/devicetree/bindings/media/nxp,imx8-jpeg.yaml @@ -31,6 +31,11 @@ properties: reg: maxItems: 1 + clocks: + items: + - description: AXI DMA engine clock for fetching JPEG bitstream from memory (per) + - description: IP bus clock for register access (ipg) + interrupts: description: | There are 4 slots available in the IP, which the driver may use @@ -49,6 +54,7 @@ properties: required: - compatible - reg + - clocks - interrupts - power-domains @@ -56,12 +62,15 @@ additionalProperties: false examples: - | + #include #include #include jpegdec: jpegdec@58400000 { compatible = "nxp,imx8qxp-jpgdec"; reg = <0x58400000 0x00050000 >; + clocks = <&img_jpeg_dec_lpcg IMX_LPCG_CLK_0>, + <&img_jpeg_dec_lpcg IMX_LPCG_CLK_4>; interrupts = , , , @@ -76,6 +85,8 @@ examples: jpegenc: jpegenc@58450000 { compatible = "nxp,imx8qm-jpgenc", "nxp,imx8qxp-jpgenc"; reg = <0x58450000 0x00050000 >; + clocks = <&img_jpeg_enc_lpcg IMX_LPCG_CLK_0>, + <&img_jpeg__lpcg IMX_LPCG_CLK_4>; interrupts = , , ,