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: 13377491 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 B241FEE8006 for ; Fri, 8 Sep 2023 14:10:01 +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=dedHV925BJGINigodrp22oIEDfuZJmwfXblTM+WqPTs=; b=rl5/kSu4HMmHj0 2vO64RnQMierOYan+fcjDdkVMehPhITvFwCeWe2TGOT5OFa7nPNOQct3WtsAuibben6PI9qKhFz2a BKxqhAPVtHIY8zw528RB46BnFw+Si21Y+z8CUwjevMPIo4OzsWgrNuvJdmUrfjPJbHng2bRgSbzPv bPw13u1yMWeZRKAMiDzIGVtCGyW/OF/A404c70JKDxA2VlvXCAqQWsSQIjw4rqQVxZV99yKnAOSUF b6FL3bA4vT3ZoPEW+Er9oE24EoXFiGkgKDU/NyUU0MZDheyeJswayk9xtsi4l1UvS+IGzQh5t7IJy ooV5zsF9WHqIM/zLeVbA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qecAy-00DtSf-28; Fri, 08 Sep 2023 14:09:36 +0000 Received: from mail-oo1-xc2c.google.com ([2607:f8b0:4864:20::c2c]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qecAv-00DtSC-1O for linux-arm-kernel@lists.infradead.org; Fri, 08 Sep 2023 14:09:35 +0000 Received: by mail-oo1-xc2c.google.com with SMTP id 006d021491bc7-56cae50792fso252405eaf.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=lists.infradead.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=ctdLXRJC90s3O+St4HBtNqoP0HC+kNxSHuplD9t9SyHlvkwlbcETwxCcJeilnsGrg2 2Yuk00H9LteYzogGGgcq2yiET2X7q1wrSWTvSEpuHeKiBuCPbnAwQAdv0O54U3RhTQDG dxPjluTBg2tLrOoXVovSRGCK8xM67XzGq5cFuyzFIgNYpiMm3XtIub/dYT4gBr0G0wgz hfRs50RZx8872/AswbFt5rtELPqQPjz2qM+DiuMt32GfNYsfJdu9Mfd7UOhkMF9A8OfO 0nqkCy8456hlRc9xUcqF8sWgsTC5uFk5pF7vC5ebokYkceWvqlyTEieNBzPx/57dMpEc M9ng== 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=MmptpK4v5c5zCNAoBaQVy4jcclmEfeepGrNdKr86Fj/EedRB6AOUFOLJddyc8j4Vo/ LdrsHfUXftJEmLJMIK9HBdq7knMWqQBYzEymqMDZf026cHMkrC9FpmQTJQdyc8jUhwTR 8fuDmqf+23regmVTGbxolFZECOGwC6UKKHqsuacfKQNMWQO5seowEYAXOzXjzTWD/xY9 7W8YJ/TA8wOfnfNA/dqxcDfsA+YopLy9WpC9iFCnTBzW/2HLOYujuPOgt313DUf+WTWa fKBxb8bEw5N0/zT+RTk+y/2aDAFqPWBeWtNIbR7vp6EEY2cFzoCsIxHsZdIQ7pFsOVj0 XIAw== X-Gm-Message-State: AOJu0YyNJVWchV2T+G7ffzaDxJk24jiEUcniClVxvu1SN4QbnYlKCmpY bBG8KbMHJ2aV4WTKv7w3TIo= 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230908_070933_476110_71B93F9D X-CRM114-Status: GOOD ( 11.55 ) 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 --- .../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 = , , ,