From patchwork Fri Sep 8 14:12:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 721299 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8D0C9EE8009 for ; Fri, 8 Sep 2023 14:12:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232491AbjIHOMt (ORCPT ); Fri, 8 Sep 2023 10:12:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53050 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238207AbjIHOMt (ORCPT ); Fri, 8 Sep 2023 10:12:49 -0400 Received: from mail-ot1-x32e.google.com (mail-ot1-x32e.google.com [IPv6:2607:f8b0:4864:20::32e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 734C51BF8 for ; Fri, 8 Sep 2023 07:12:45 -0700 (PDT) Received: by mail-ot1-x32e.google.com with SMTP id 46e09a7af769-6bc9353be9bso300207a34.1 for ; Fri, 08 Sep 2023 07:12:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694182365; x=1694787165; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=HzihPKehuLLf5Ziw4aq+UFoETeZFoITfVyzhodM3aAc=; b=qIxACTOOO2g/Ar+rhVCej3bBJAcbe7VRCPFH288UJM2/9LLi+XwWDohBUyw074k204 wPgO9ESBI8eFqb83lQRzqYC+iolJr6X1Y7riSZIfg0qTkFSHC6WGk/S0rn2KbLOqknx7 yTBWkqbcMqwziuj7cdN6TrmSwdIG7DMpdmEAjjBvluEoh78A0UGy0pHYd1dz2m5xW4u/ 9s0RzySFQw9lPVRM5MbDJnQbKvukQZSOrQBSAZjRWNQ10Jt1WkxY7j68Dz4k5zkkvPkL uFB8lh1Vx2l32iXC/kxbsr1EQ240Xh7z/x+MIBFaKeMX2csVCdLubPfK/XY7WqQuvFf7 qabg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694182365; x=1694787165; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=HzihPKehuLLf5Ziw4aq+UFoETeZFoITfVyzhodM3aAc=; b=JK2GZWYenU9Tkq9UxrJTRzbj0VbLYwU9RRatZ9h9nlCUC51yvlTxR2EjhRA/oGBfLF ImrZGYHLeoUksJAbtkKlz6AKmfQKX5uxqiWRlqxUYMaKomViyjc5tELCVF1LgEmS8z1D Jo8dK9cDsEN4GLPNFr2r6gqYC5GbMIFMwDXNdIC/Tsg25oPSFk7cbfj/L58dRORQMTtF RXWsP7Uhs6VwQn6o8NwQHEWLFMw4uos51+PRXpYAHb2EvSPZtqPyBh+ky15yEIphYlhc MH1+suPxFGNFSMZ0FS5arKsuOp2wkBr84dpisafy6Tri/raPCvhTjJGttuFdE2ZY3jh+ pYDg== X-Gm-Message-State: AOJu0YwrO7T39zz3fY3AGSiYdkDqqK1KPzydpo6CGNl5Vj8lf/1zulV+ 6xU0r5WHobbkqu7fiDHIayA= X-Google-Smtp-Source: AGHT+IH/4YUXTxqb14Z3oJcctpWGuiGYHIZ8JQ+3wgJNhgv/UNfvz4hwBIvAhMixaKq74bxxEWb9GQ== X-Received: by 2002:a05:6830:468d:b0:6bf:5010:9d35 with SMTP id ay13-20020a056830468d00b006bf50109d35mr2403560otb.3.1694182364765; Fri, 08 Sep 2023 07:12:44 -0700 (PDT) Received: from fabio-Precision-3551.. ([2804:14c:485:4b61:71e9:644b:bd6f:e558]) by smtp.gmail.com with ESMTPSA id y22-20020a056830109600b006b74bea76c0sm731833oto.47.2023.09.08.07.12.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Sep 2023 07:12:44 -0700 (PDT) From: Fabio Estevam To: shawnguo@kernel.org Cc: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, mirela.rabulea@nxp.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Fabio Estevam Subject: [PATCH v2 1/2] dt-bindings: imx8-jpeg: Add clocks entries Date: Fri, 8 Sep 2023 11:12:37 -0300 Message-Id: <20230908141238.642398-1-festevam@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.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 --- Changes since v1: - None .../bindings/media/nxp,imx8-jpeg.yaml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/Documentation/devicetree/bindings/media/nxp,imx8-jpeg.yaml b/Documentation/devicetree/bindings/media/nxp,imx8-jpeg.yaml index 3d9d1db37040..7899e17aff3a 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: + maxItems: 2 + + clock-names: + items: + - const: per + - const: ipg + interrupts: description: | There are 4 slots available in the IP, which the driver may use @@ -49,6 +57,8 @@ properties: required: - compatible - reg + - clocks + - clock-names - interrupts - power-domains @@ -56,12 +66,16 @@ 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>; + clock-names = "per", "ipg"; interrupts = , , , @@ -76,6 +90,9 @@ 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>; + clock-names = "per", "ipg"; interrupts = , , , From patchwork Fri Sep 8 14:12:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 720969 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C71B5EE8006 for ; Fri, 8 Sep 2023 14:12:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238207AbjIHOMx (ORCPT ); Fri, 8 Sep 2023 10:12:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37702 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243725AbjIHOMw (ORCPT ); Fri, 8 Sep 2023 10:12:52 -0400 Received: from mail-ot1-x32b.google.com (mail-ot1-x32b.google.com [IPv6:2607:f8b0:4864:20::32b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4E38B1BEA for ; Fri, 8 Sep 2023 07:12:48 -0700 (PDT) Received: by mail-ot1-x32b.google.com with SMTP id 46e09a7af769-6bf106fb6a0so303564a34.0 for ; Fri, 08 Sep 2023 07:12:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694182367; x=1694787167; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=eXNM64tRJJGEcjfINNPgEos1uZjyxcMFx/0phrRVNsQ=; b=jNJDQvfJi+D/mUetTuoKW1z1d0VtYe3rn69y1f2r68ZMiVVLFC6zRiv5N/F0kP4MTi 41sshefrfl8+7zvO5Xcr+PYxWImtpUSjHoR5OgSnrIlP8vrJvWkfsX4HuXwYFfiy/T5t AJtHzXR1vF4jFLxzrCM9EqzlaKpa5WvOnKbu+h/FZ7Rt96bwSNv5Pt/pcOz3qKDfGxqM JFF1swlh80rHkxW0y23raj0Sq+6vsstqDMoJHA/XeHAz5mlv2CrKjz4roG8SCJr2yHxz Nm6VkLc5blHctNirgUwSf++P5FEkX0tgaIK54vOENz9kIhXIe5Vq32h0RCNm8aX2FvB6 sgsw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694182367; x=1694787167; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=eXNM64tRJJGEcjfINNPgEos1uZjyxcMFx/0phrRVNsQ=; b=rcQ2jtc9Ym4sCI7+4GrTjOCdeI7uiCVvXVjmFO4zF7lI1+sKKCa0+cTaHYWvFL0dwL kP72uOgPTPKSmu7eLMmAr0v53LvknqyZTEQ+ymAwfZ9sx/maVStZjQ9VDcNvhCV+ErOG Awu9kT1c+h1lLG7InmiYHqwAe1DZMVxkDz38AGNw/F4xiAhDrcw4Z4BvBaoW40gyRlqh cZHE848xo6AHrLakDn53P0Kfx8nRwB3MI2OkynGgz79RrVS4saziHmTrpEiAk5172iUi GNzb0xZ7pDgqBJ+sp1vEyfZoExJLz8CL3gqbkqBzuFF5AcbueksRqOqPP44JOIn0Sfgg /MDQ== X-Gm-Message-State: AOJu0YwRb/cIMOpc5O77uGn85VdmlY0GsgaPBdCFMmY3coLl4VBMuXDz S2fByxKBkqGAC4bdBl7VgL0= X-Google-Smtp-Source: AGHT+IFR+KGAdBmDa+3pxXdpFdywG8cjfwj8u58SwMJ6wEONd91QQ4FbL82G09gBcyuhdSLHg8GStQ== X-Received: by 2002:a05:6830:204a:b0:6c0:c1ba:8f78 with SMTP id f10-20020a056830204a00b006c0c1ba8f78mr2825817otp.0.1694182367602; Fri, 08 Sep 2023 07:12:47 -0700 (PDT) Received: from fabio-Precision-3551.. ([2804:14c:485:4b61:71e9:644b:bd6f:e558]) by smtp.gmail.com with ESMTPSA id y22-20020a056830109600b006b74bea76c0sm731833oto.47.2023.09.08.07.12.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Sep 2023 07:12:47 -0700 (PDT) From: Fabio Estevam To: shawnguo@kernel.org Cc: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, mirela.rabulea@nxp.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Fabio Estevam Subject: [PATCH v2 2/2] arm64: imx8qm-ss-img: Fix jpegenc compatible entry Date: Fri, 8 Sep 2023 11:12:38 -0300 Message-Id: <20230908141238.642398-2-festevam@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230908141238.642398-1-festevam@gmail.com> References: <20230908141238.642398-1-festevam@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Fabio Estevam The first compatible entry for the jpegenc should be 'nxp,imx8qm-jpgenc'. Change it accordingly to fix the following schema warning: imx8qm-apalis-eval.dtb: jpegenc@58450000: compatible: 'oneOf' conditional failed, one must be fixed: 'nxp,imx8qm-jpgdec' is not one of ['nxp,imx8qxp-jpgdec', 'nxp,imx8qxp-jpgenc'] 'nxp,imx8qm-jpgenc' was expected 'nxp,imx8qxp-jpgdec' was expected Fixes: 5bb279171afc ("arm64: dts: imx8: Add jpeg encoder/decoder nodes") Signed-off-by: Fabio Estevam --- Changes since v1: - Improve the commit log. arch/arm64/boot/dts/freescale/imx8qm-ss-img.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/freescale/imx8qm-ss-img.dtsi b/arch/arm64/boot/dts/freescale/imx8qm-ss-img.dtsi index 7764b4146e0a..2bbdacb1313f 100644 --- a/arch/arm64/boot/dts/freescale/imx8qm-ss-img.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8qm-ss-img.dtsi @@ -8,5 +8,5 @@ &jpegdec { }; &jpegenc { - compatible = "nxp,imx8qm-jpgdec", "nxp,imx8qxp-jpgenc"; + compatible = "nxp,imx8qm-jpgenc", "nxp,imx8qxp-jpgenc"; };