From patchwork Fri Sep 8 14:08:49 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 721300 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 94CC3EE8006 for ; Fri, 8 Sep 2023 14:09:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235086AbjIHOJh (ORCPT ); Fri, 8 Sep 2023 10:09:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41124 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233484AbjIHOJg (ORCPT ); Fri, 8 Sep 2023 10:09:36 -0400 Received: from mail-oo1-xc29.google.com (mail-oo1-xc29.google.com [IPv6:2607:f8b0:4864:20::c29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 31D0213E for ; Fri, 8 Sep 2023 07:09:32 -0700 (PDT) Received: by mail-oo1-xc29.google.com with SMTP id 006d021491bc7-56cae50792fso252404eaf.1 for ; Fri, 08 Sep 2023 07:09:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694182171; x=1694786971; 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=caQzbRb6FH27SdC/OAyGyk73pRUH2oGs6GXHL2oV8fA=; b=Mu4MbvL8OxtngqRvX9MTnFi4MEjQ7bnXO76VrQZRIm6Ku3VHVJbHs+aq4vSS1PzMAG xqQWSiHdTUFx5LXWJbt3fMQF9UIoriAkg3TyZWZZ4ZCxPP/b7wV11i1QXgrWOmBqQXdR gWTAQN5Eyb8MG+15sEWRFeLLGk+8xnB0S9Z5WdYyZL55418MAIdjOL/TZn1uK5XugUVT MFdXI0bQcYM+QyKlBqshHzhR1fHsRUT3ELoH7z7CB+SZ1FN2nl8bErkXb5DAM6W07ncD lT1+qtA0DNlfyBqILdN0Pd0UuD1UmLkJRiZBtuDm4NV0Z0GZxTKYTj/XQt6XOPaoWKfb DWpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694182171; x=1694786971; 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=caQzbRb6FH27SdC/OAyGyk73pRUH2oGs6GXHL2oV8fA=; b=OPbVE6H2gASynh4LN/a8WKp56nE5QvlEpUGBGrNSZ7YWxU53DTtE8D8+jSWcBE6FiW bBSu664EzDN3cqqZ0y0tFOg9tZHCL6ZQ14Cr041ywVB/3eAhG1Wxhtgkp6K5Gh46Z82c +e7rMtOqR3fAaYj8IdW/T7BzfIjdax98KWnMzUxYXyZ3oaXvl11hnWQyRLEdNCLCDOuG GU/xVKabOBWQZcWTiSI74oLOL9TBw1Tdpa5XdraruE0Sy9h+CS3bmyJ0gA7VdGy6dgea ydgzB/eIwPym595o8O8uR8hajnnnd79ksWPxcfMPypsLRxIXhaRQAr7uFS1D5bQ3LZvX BVfA== X-Gm-Message-State: AOJu0Yz+Y+qVD5tvUzJ29FPrfHN/lRGx4hMGuIG1OgnyIe+ynxhMRWt0 XG1rWv5aXjgtO+0oIAZ7ZqI= X-Google-Smtp-Source: AGHT+IG6O3DuTFxAoCLa5/YeFaucbi3DrIMZuSNptCmbzcm5iiEJ6JekWqEAX0Q6Vu/4tR0BsVvCUQ== X-Received: by 2002:a05:6820:a0e:b0:56e:94ed:c098 with SMTP id ch14-20020a0568200a0e00b0056e94edc098mr2563335oob.0.1694182171323; Fri, 08 Sep 2023 07:09:31 -0700 (PDT) Received: from fabio-Precision-3551.. ([2804:14c:485:4b61:71e9:644b:bd6f:e558]) by smtp.gmail.com with ESMTPSA id i10-20020a4aab0a000000b0054f85f67f31sm662669oon.46.2023.09.08.07.09.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Sep 2023 07:09:30 -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 1/2] dt-bindings: imx8-jpeg: Add clocks entries Date: Fri, 8 Sep 2023 11:08:49 -0300 Message-Id: <20230908140850.642001-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 --- .../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:08:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 720970 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 8DEDDEE800A for ; Fri, 8 Sep 2023 14:09:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238698AbjIHOJi (ORCPT ); Fri, 8 Sep 2023 10:09:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41150 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233484AbjIHOJi (ORCPT ); Fri, 8 Sep 2023 10:09:38 -0400 Received: from mail-oo1-xc2e.google.com (mail-oo1-xc2e.google.com [IPv6:2607:f8b0:4864:20::c2e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D3E7E13E for ; Fri, 8 Sep 2023 07:09:34 -0700 (PDT) Received: by mail-oo1-xc2e.google.com with SMTP id 006d021491bc7-57328758a72so440214eaf.1 for ; Fri, 08 Sep 2023 07:09:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694182174; x=1694786974; 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=tBlMch/6WY4dDP6/qYb7ezE/+18tJvWnL93tskFI6Z0=; b=V/xnBIOBjwV4jsH/7dzUnFMoEWm2JlR0t209u9b5OQVk/aOcOlcUDZKqOuKJiOZDpY uGUW1Q+Jrrh7WgWNi6nGU9xCB8DaTWUBg0hXwovlsJCQilJcVxfYdpyC/qQ4HGryZI0a n+3UD70jId7ln418ZtJVUUBkZqlo23jrkZ7+TX0FeXguE5v05jpSo7Rzi/oAPMa5hluf y175TEKX55JhwIfl7DEAcm1aysTA3lVZ2XRRwLSbRgu05kUsT26wpR2Efjz9c3w0+bL1 vQY0ODPvyuP723kMFUoaFUEjf/x1Ggy1oDwFoLLjPs33sKCtTZ4/uusMX7tfKk+x4AOx qVzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694182174; x=1694786974; 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=tBlMch/6WY4dDP6/qYb7ezE/+18tJvWnL93tskFI6Z0=; b=kpgcN62fJ0SnDpnU+7EY9jhbHtHOJwT8QqmCPegzr0ZLarx1Yj0tEuX0diPVGlqIUC ZDm0bKbwTlkuqo984bYTACP1V71D5WzfSc8jPK/uvdXdzjSvGfKX1jRZ3j1eJ/3iYlvR o+Qu8vpd/HwKNzM/up8ZrTnJaCFqtbqJss/f7r4fNqb6mG6MhUJClQqel/ga+xkw2iGn txUnpUnKYSQgaqalZ4OKgFiJnLxvJ7/YDf9B/phPSzX3KQTt0hi2LJx3zZJ8sc8OJ7Xd emPAaAvSC9hiPxGKgQh3TJyvBgblUQHpnkMUyClNlQP315bJcRvGlXh8OE4Fyca5pV1u 1/9Q== X-Gm-Message-State: AOJu0YwctRn+96BJtZ4HGIGilY0mQIVNEcM7xvR7HPFVnHkuv6Qs7qaO n3AUk85RXXmRF3+gntsIh+8= X-Google-Smtp-Source: AGHT+IGlr1ZjxiUcSlhTrVkS979Z48aaAKoKBBNWY7OV7mXf8T9Nlg8QL+304ys1mbfEuGmVKoQVig== X-Received: by 2002:a05:6820:555:b0:571:1906:47f0 with SMTP id n21-20020a056820055500b00571190647f0mr2928535ooj.1.1694182174114; Fri, 08 Sep 2023 07:09:34 -0700 (PDT) Received: from fabio-Precision-3551.. ([2804:14c:485:4b61:71e9:644b:bd6f:e558]) by smtp.gmail.com with ESMTPSA id i10-20020a4aab0a000000b0054f85f67f31sm662669oon.46.2023.09.08.07.09.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Sep 2023 07:09:33 -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 2/2] arm64: imx8qm-ss-img: Fix jpegenc compatible entry Date: Fri, 8 Sep 2023 11:08:50 -0300 Message-Id: <20230908140850.642001-2-festevam@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230908140850.642001-1-festevam@gmail.com> References: <20230908140850.642001-1-festevam@gmail.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org From: Fabio Estevam 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 --- 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"; };