From patchwork Tue Sep 12 16:38:08 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 13381939 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 3051BCA0EEB for ; Tue, 12 Sep 2023 16:39:13 +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=d88ZcAM7lXq6sa6nZ7XMYbOXnUbowpsi2xd9bGKglWo=; b=t6JR3zDHpx1jCD crUUb+NSA1MGx1b7FSN199T9FOmFsVcUIPM8qy/O0zoTp45ztbAj4lR6+zopOTY8cfzCJsT2BTHuv oAVGNf/jYgZEOTyYw4XqDPZXy0cO66anlKSY4JfadSI2OBW5jL84fNQzvzl96mTmvjReWwlmGmNY6 05Ob6IQRYoXiwRmP4qPMtWcmY0quUlvHZGlJzhJzBTchqwg5IWa3zG5HTGuurDWYfvvIHqjtwqZ7k uJORXxT20f8DoCQO8lzM3IV1FeAheELhQufDkLWSpqz6nsqdE2WpA49/GbuYq5+ciP0p8HWdL7Uod 8wSzeJZaLRDETvkfnggA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qg6PX-003qef-2c; Tue, 12 Sep 2023 16:38:47 +0000 Received: from mail-oo1-xc2f.google.com ([2607:f8b0:4864:20::c2f]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qg6PU-003qdu-2i for linux-arm-kernel@lists.infradead.org; Tue, 12 Sep 2023 16:38:46 +0000 Received: by mail-oo1-xc2f.google.com with SMTP id 006d021491bc7-578a49f7e57so71801eaf.1 for ; Tue, 12 Sep 2023 09:38:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694536721; x=1695141521; 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=a3xRu+YNAaBODdgaeXRLq5j+CcEvpc1L8H9RF8ulaQo=; b=QEyJVwaZsPgDBl4OhZfOpbItgMHYtx2Blh7OzJDiS2ZocjvbAQbpvpO3Te6KYHPN9Q t2S5Pkp7sIeydO99+AGztMVFqcdV3SAudeN5Fn4MF/mtjPzCpehyfnwSRPGGt9hO+glG f9elq1yuJ9EUT1csw7HiNRpTvjrs6d8sRIjvUWr3+cYBiA/G5HRP3GMEDXDpJrZXu2kn YvX6EAOmu39DPSGdJg4jJa6zdV5479gCCY18F3WJZtZzn7cW6gbWH1qM1J61QF1Lykt/ TPxSR37G2SL1ynm6QsfWh2k+UzxCP1ofZZORmKxFI9bJa0DWQJ9EOCeyncxL7QoBEXCE 04fA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694536721; x=1695141521; 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=a3xRu+YNAaBODdgaeXRLq5j+CcEvpc1L8H9RF8ulaQo=; b=l7Fe1H3OTrs16nQ02RjZt3hctjF0t2A7Sjlbo/1bu6oDp/WtOSngV+3K8SGBwa1kns 5pOcJJIPGtgcrYRuv3Dg7rNU0FPRpWTzPtgN0g4gWjzQlLqpl4t1kTbb3CwwcBbiBPFH D4dcuxH2W9S51w9tAZgqu5JWNjttD46MNClyzeHbUX3BZiGCQ+dgwFFLSKF1IRQ2vQ2N q18STUew4nWhGI9tYoYr7OFILnYVpjQh0aeqyD18HR5vknVQkMDx4+/hjHdgBHXM6huZ wWR5lHPFTKTkzvQCvgKjZpYHcRbwUf78r2q/o0P0jcW+HPM55z2cbfBupCIHl7X14KEq LBGw== X-Gm-Message-State: AOJu0YykoVFNaRwBlP8buflXaw3ASB05tpaI/++3fQzI2B/hJQL6c46o H3bCIoC9PCoEajRv0u28fo8= X-Google-Smtp-Source: AGHT+IHEyDy54+csWJetTPUbx8mAityAJ+V61r74welMAlw+I8u8beU6kLbhkV9IcEAcSiFnyzfwhQ== X-Received: by 2002:a05:6820:80e:b0:576:8c96:15a2 with SMTP id bg14-20020a056820080e00b005768c9615a2mr186436oob.1.1694536720871; Tue, 12 Sep 2023 09:38:40 -0700 (PDT) Received: from fabio-Precision-3551.. ([2804:14c:485:4b61:676a:5a77:75a8:efc8]) by smtp.gmail.com with ESMTPSA id v4-20020a4aad84000000b00565fbd0d4c0sm4012426oom.28.2023.09.12.09.38.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 09:38:40 -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, alexander.stein@ew.tq-group.com, Fabio Estevam Subject: [PATCH v3 1/3] dt-bindings: imx8-jpeg: Add clocks entries Date: Tue, 12 Sep 2023 13:38:08 -0300 Message-Id: <20230912163810.1750488-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-20230912_093844_878171_1A545328 X-CRM114-Status: GOOD ( 12.10 ) 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 --- Changes since v2: - Remove clock-names. (Mirela) .../devicetree/bindings/media/nxp,imx8-jpeg.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Documentation/devicetree/bindings/media/nxp,imx8-jpeg.yaml b/Documentation/devicetree/bindings/media/nxp,imx8-jpeg.yaml index 3d9d1db37040..3383a275c94a 100644 --- a/Documentation/devicetree/bindings/media/nxp,imx8-jpeg.yaml +++ b/Documentation/devicetree/bindings/media/nxp,imx8-jpeg.yaml @@ -31,6 +31,9 @@ properties: reg: maxItems: 1 + clocks: + maxItems: 2 + interrupts: description: | There are 4 slots available in the IP, which the driver may use @@ -49,6 +52,7 @@ properties: required: - compatible - reg + - clocks - interrupts - power-domains @@ -56,12 +60,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 +83,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 = , , ,