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: 13377494 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 5ECB0EE8006 for ; Fri, 8 Sep 2023 14:13:17 +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=EVNsgnVz458uNnCq38f3YxPDLndh58m+Yf/luiOFEqA=; b=MKoChFHDdG8k8L o8F7c3qa8wsxz1DAfIxkV4rfnMgrjMSdMmlYGBPSEAecXD635LtFK2iqBDwKIb9HdO7YVTWiKvqfx CYK6zmd2o+uRmjXrsIwF/NXNHEffE4oLgJuDydiI8ft9HdNscU3R8ZLBTeNOxXykaZEKpQwcy1Mj5 0arPX0rsm9i/EqWc7OWQeMWK2rQQgU8PUYKf53hbzDb+9N9ptn11PAq88gQnhLAskHn2xGKw/OEnm Mz4InBhusbPc4lGfLChz8gpgJbbnld79woXLGgha3ugJ3fAbxkMR1MSsRGSJk2X8DQNGYJxkgFKTh lw/6Ul4KUL9QV9lfC3Pg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qecE6-00Dtk0-2K; Fri, 08 Sep 2023 14:12:50 +0000 Received: from mail-ot1-x32e.google.com ([2607:f8b0:4864:20::32e]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qecE2-00Dtij-1w for linux-arm-kernel@lists.infradead.org; Fri, 08 Sep 2023 14:12:48 +0000 Received: by mail-ot1-x32e.google.com with SMTP id 46e09a7af769-6bf106fb6a0so303555a34.0 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=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=HzihPKehuLLf5Ziw4aq+UFoETeZFoITfVyzhodM3aAc=; b=VFl2YjThkWpvItfjxpl8jv3OdvE4axdoefjfvbDjluoSPhLLCPLoGiHt1QDqYubsYw 5VAgHIzBGJeKIpasTCkhaDoWO1piJOZnXb91Uv1vMcgcTMpwpYoitwdhCRn2ZI5zW9Sd ru9m62ATEsqHQLDJIpKTRD9z3SdeUet4CLY9jAWJ4lH2YgskmWiayBTVSE5SKc6lXGeC Vdb8Ep1ilp7ddCNpGguwV0q3U32TgcOMu7y1QzNq+m2Mrl3w8vc8lUiPZaFV6UCXtbFe 0ylSEpC8vFqZM6TkD/xj9pxDn9U5rdYEsjRQr2x80Nip2Xif6j1LDWJ6u6lOWFMVoyUF g5Zg== 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=GCOF5RBNZA/83io5JvcZOnPl614l4zQLLw+tRZipxZO6EJovwwTb06Cza2QHXcMQIM dIv1GmMiMNos9EcAXvfUBj0JPNxfdB3H7sQyvhvuCtzGilicoRCJ8NC4tTzHUOMmwuuh LE9tn9ZhuKNYZ5YiJiAxpP+MZlz+8+dj6ATxseVwyfrGGtQ4iDSqnqbtcHSCIX09gn0x +588LmNAzUXMq6TxaFf197K50aTnankoVHmIpzZhdei9bx2zk9wz0Sm7MOGPyGvPXpk0 fyTvGMpal8hXmyGyijWRZSjYmyVduoodC7PAaNoOm5c6vMjitwPfuAkIY9kS9TffUO5x XnkQ== X-Gm-Message-State: AOJu0YxBS951/QHyrFYFJJD2pwnWFbo1cM0TiNiaHy30S5G9Wst0gJq0 U4D4wbADlSRUROxJrpHAq2w= 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230908_071246_640326_1F699E6A X-CRM114-Status: GOOD ( 11.47 ) 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 Reviewed-by: Krzysztof Kozlowski --- 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 = , , ,