From patchwork Mon Apr 8 03:07:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mirela Rabulea X-Patchwork-Id: 13620516 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 EF482CD1292 for ; Mon, 8 Apr 2024 03:08:20 +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=8GX8zlP5ezpSrwqJx+LCpuwQZ/tDbFa/UdYrg7y7r/M=; b=4IzOH9RJu+Jjmo riXlrPteR0C1TEUQrdlRUcYubpidz1iZ9AV9rrif0Zmm86S2xe7KYem4R3IBAk+guGuTseumJM8XP wgXCjwTW7YyKINMIuiyVPhUzpqURf4ghOP4KlmWir0zyT2uhgN26QGJAEc9NGhjBEHElCL2k5M3aV 2dHaF9uJS2opl5pLf3B2TXADWg0gXw9bjBxo/5fUvIvrxV26vaYRvGIFIoc4+agKewyZq4/Kt0+EG 2h3fvZOseZFKlQf+KKtLKKzjfrfeznDXulSRqFM9tqQEqhJViNQu/gASEBJhiLElpOThNsuSVD6QM cJ5ResKVRqYHi0frKA5Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rtfMf-0000000E9L0-2RSr; Mon, 08 Apr 2024 03:08:09 +0000 Received: from mail-db8eur05on20729.outbound.protection.outlook.com ([2a01:111:f400:7e1a::729] helo=EUR05-DB8-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rtfMU-0000000E9Ew-02sI for linux-arm-kernel@lists.infradead.org; Mon, 08 Apr 2024 03:08:07 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IV5nvqy5XUMl8aIQZOdu9tDQXsv+u6YhJPYR9Vn5HF2VdKmUxgH6jUquS+bvwG+Ea5YWntLJKNas3aegZKmsTqWiCuw5G9ApVMAfur0QmqzW0ZlbZaMvT5peUK7N/mdyqdLArJ0/ZFpHF4nM3qZPGpMR9h4zDvi3cnzAjzhxl097YvGUbZkee+L2yGBbPOA30E4uPFhXQ8L2lihcKp6y730suQaRePl54f0I6RFa9wZBBpQyhsOaXlTC+m76AorXhCnH4IGnVgD3IM8zB14vn1uvo8hb64Z2cz1/W3Za/TXiKCjzXXksq2eM9MJJbDY2CD7OGsEhwMX7+O+jd+Je+A== 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=EPVUd+25D4BBiF/1iv7dQhG1F/OANy8Q7W8+fYBYOaQ=; b=e2Iu9oAk4D3qoQX4okW+DSqlHZwqt/DhfCEM72FSJIHVkNNX0l9I1VNLJchRenVFGLIJIruPCfTxZJPbo9d/yy6d61OLYw+5xmndYektrExmWy/coxHjjlo4f9rMMaSPtQP+01sOMwwdy4EByGYnug8MoEmt8RK6fuBU8KMa/divS15RZ23rW+5j3KKkEsQdIARDBa/yrOkUImSVaIKh/qh11XRTN3dNQamd7vSsz4qEZE9OyntaUQpAFbykSG8+yWHM96n/hnLLX/c0rp9uzpu4bH1u/Rd2O/MLZD8pk+RugVAn/S1u2zkCTE6ZpJfcGIzTInrcwSTs7HpK7AoQIw== 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=EPVUd+25D4BBiF/1iv7dQhG1F/OANy8Q7W8+fYBYOaQ=; b=sOO0o+szykpz98LLcoabvsUkOSMuz7+ZN5YLZOwVHcI+0H86fnibvwerNzhIBO2y6jDuMSJFT3v0J7JGk5aBBdIweUvYZb23UjWv+VyGK4nil1nYb8SZM6sxW/B3nZ8ctLIQi1qCaIhJINWrEflM8aNKS/4Hn059OW/Xum2Bz2o= Received: from PAXPR04MB9231.eurprd04.prod.outlook.com (2603:10a6:102:2bb::10) by DBBPR04MB7561.eurprd04.prod.outlook.com (2603:10a6:10:209::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.46; Mon, 8 Apr 2024 03:07:46 +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 03:07:46 +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 v4 1/2] dt-bindings: media: imx8-jpeg: Add clocks entries Date: Mon, 8 Apr 2024 06:07:33 +0300 Message-Id: <20240408030734.1191069-1-mirela.rabulea@nxp.com> X-Mailer: git-send-email 2.25.1 X-ClientProxiedBy: VI1PR07CA0230.eurprd07.prod.outlook.com (2603:10a6:802:58::33) To PAXPR04MB9231.eurprd04.prod.outlook.com (2603:10a6:102:2bb::10) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9231:EE_|DBBPR04MB7561:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 54A+21/JmArOUC/6xjWBPOP9NYKfTC0g+MT6ZN4ipaFtJNRME4VAqSf+8ADJHlsJzskJQ0WhYK5bDnOridNK35pJP/XzR+vXmvU6qKasUkno3iHq3hyV6lxsCTwHPVklSmx5LZp15WWpl+fFYKmHZJnKUX+SwCjieBdD+BbC1feXadAPevhbysQzUAmfO8/aP7I1wgy/CgOSba2ZR8dlJVqCEupkjO7NTwTYwSInErcDZ4920EWaSmI5vBedhAigEv+Xy1n+0SqGWk9EqwyrvC9xZQ6X/Yadg4odq2l057BvlExJGD+ICxsDMPoTahTUsyB41pRMRSmG7LfUPtl+hS/xVipFsJAhDjcy9DxgaikEs2tdY2+rnvDcWvuzlG9/66Z7SkErV4evLmkJdKEZSCnLuaSn9MtdcMAuJgosHHlUXB8iNpqf879M8QNwh1j8WzeY5t4VRsNuK8xPide4VDUssoSu9D8vXaNIn2zxr4HjJX6RokTlPujSAfRaGkBu4CYgL5CCdoUfiwyONR/tp5YnuG2tZhMUO861KtvD85n1uIOTy6b6a/AGGAYnRC7IFBOgxmhFwe+uG4vpjVf0MEJlkcL8RA3upHngJRqybtKIh4TiEOJxB0BybS4CK5ViU1NxefdUG26L149TfPuGN+9hlebW/GvHvX6cf4JO4+0= 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)(366007)(52116005)(1800799015)(376005)(7416005)(38350700005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 9OBZKNNlUf/Y2ccS4GTe6CbZvSxHw2oUmqzYBMttmP1vJkt/Lw0L+/iZZwIm7wMyVVI0DDGUnrgju7kpHISBH2I8li0HZsSuPF2w8AelWQ31ScIRW7SXItIjOUoSNHEUBibuDSGI7bCAEmqk7CdU15IRphur7nTWebGkatBhuf3rvVuU3zfGBZd00uKjW/3N+ZuRvjmSNzJcEgbkyeZ/4fAlEVq6hoF/8bEyKjZRDxobeEtoQAlZf7nLjcJoGHfYSGo3B9IUZBBBTBPhiaVRkIZTplLYLLluGp24ev5D+UuSX9R2jOTs/0ONpGZjwte5s0oyN5XtCiwLcp+mW+Rro1AVA+gTwGNLomzq3W9HB1PZIq0xAikX802bbK2TslQzJbYzKsepGT8sid540wGML/pnwuUlsUxsO08nh7ngio0/6lWrM27Efu/Nf0WzTn8kB5eu2MvbFlHoEDu8EXbrwY5X1rAWc0jDhOrmeqHJYI4Qx953xCbRMOLN4E1pXGj4p7o4Ws5eo9j7jCcetFGK06xg2RWLngsqNEo2UHhDoJPuu9k6xy8gp9EAndY5u4sTTCTnYWX4FqYi5LPFCiAKlchfLg73m0Mcf85IlRvdFgwPCvphK0yS/2Z+J06QvQ6PwtNnT9K7wqt5LJTkxd86wZIuFXQubJq9cmdfE+rBP+nTRRBC30w3k7njhDBx20OHJQDTqym4PUZqJMkDwpR4bYdXBN9QJ01h79LQSarzGvaXb6vXCPFRkd54adAFBSB7batPNy+Y2I1u2wWPn5jFXxpm1OyiJJVSOPZDqrepjUdT41iqYmbzid6SdcnWHwTYkfGvqNToZSyHLeppceJMFDeeXqXYR0UCJ9bcW2kFvMb8joXO3GEMoXed4mFQckQ3Okda5PQurh++DuwL8ZwT9wDaODgftfndNSoclzd98O4LOBs2+feFFq/qaGQHbOQxQbz6r9y/bJUb3a9MCuTjNUG3so4ZJKVgA89h5xYcPbc4Ob5a4eB+boM5dVyhATcPKqrdIdXWdNA8gNTfsvcwbrwsUX+YWOZyyhu1Ll/1uMgYZmBAhBizkJPMIJQmH3JMmcO070WLfdrNbRZ+LFcNzKYgGQedaRlTwxCq4F6IuTvO9b/dhEbcjAzOyZ4MiSvSY4hIjbG2MxxyrDJHgdmh7DTvRRYn5y/OiiR6UDU0IB4UONXAz5b/IQ5VtCnPUdpsOI1e40/PWxhLAgWGLHzpyBhIizBpbUZgmCl3d3qKMZogMGOwNuMBXyPJdZ91L+fxI7SOoxWmQO+TV7BJyWrTD9lSsA652O5VQgNwo8DAzra04dF6I6yRn1ZDHMKUwzPRcZ2+uzk5YYM9z8YH8bc5ikhWE5uaOUQVD7Xxmx3NZK1ex5Btai6FaabgvQg1HwgHPF96lumE/zlfm1TF7SY798Xq8qgMGr1vR+yizXwiplXgyHeBQfxF4hI9XBzx2cwEuODYYwEiUIBq4UWV9nmnaSc5lzryEv6aZ3a6ngb4+bfkKoRaGVKhBS0c9U1akgwZrixclFvJ362Db9iqFUkAHoFeMu2NKeZM69C3xwPy71H+ZO0yLrSQfC6Fu7lNxsku X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 30631981-b7a8-4ace-7a8d-08dc577910cd X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9231.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Apr 2024 03:07:46.5612 (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: Ys3oc6E56eduFu9QFSoFYyqk1aejKhBwlpLEQt7gaMIDv5piE8sDCr0Q/cIPRs+15wsjXB82BuZ/3vbCBs2BNg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR04MB7561 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240407_200800_466890_1318D6C5 X-CRM114-Status: GOOD ( 13.74 ) 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 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 | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Documentation/devicetree/bindings/media/nxp,imx8-jpeg.yaml b/Documentation/devicetree/bindings/media/nxp,imx8-jpeg.yaml index 3d9d1db37040..cc040feb77d7 100644 --- a/Documentation/devicetree/bindings/media/nxp,imx8-jpeg.yaml +++ b/Documentation/devicetree/bindings/media/nxp,imx8-jpeg.yaml @@ -31,6 +31,14 @@ properties: reg: maxItems: 1 + clocks: + description: + The JPEG decoder/encoder requires two clocks for it's wrapper (AXI and APB), + and one clock for it's core engine (AXI, same source as for the wrapper) + 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 +57,7 @@ properties: required: - compatible - reg + - clocks - interrupts - power-domains @@ -56,12 +65,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 +88,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 = , , ,