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 = , , , 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: 13377493 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 8D139EE8009 for ; Fri, 8 Sep 2023 14:13:16 +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:References:In-Reply-To: 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: List-Owner; bh=r5Q7dMomcpneXKBjZ42uih4rlrzoNj3dE49r9Bf7W4k=; b=30m1bCWpnegi0G lGucXpeVhYP06vvy00zmICaSFra486CIHyT/eNoROxD+uLCQOuk/eG9ZFFZcP91M7lkJRbJF38GOP k/tQwSKOfcRkJlGeD3z5UiIzT0s8zTLTWqDmMgsZQYX4vH7DrfWpYpORTyyKvpPcIjsK5ZUijKc66 UDLpJm4RuymXIwmZFYk1ZoCOYWTb04Z74fWR74zFReGx1PzGPbvFMgSP2y6yoHjfUUz4HSiiPzV3g HhY961qMSqDPTlb/j1Vt5AnHuAnoTFXlmAP5fEhO9BHUhUhcPHvGti6Ag1bbxTEkoQQ8bXKKduVd0 +nhoFwoHkJ7+Lw5yWGZw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qecE9-00Dtl6-15; Fri, 08 Sep 2023 14:12:53 +0000 Received: from mail-ot1-x32b.google.com ([2607:f8b0:4864:20::32b]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qecE5-00Dtj7-2Y for linux-arm-kernel@lists.infradead.org; Fri, 08 Sep 2023 14:12:51 +0000 Received: by mail-ot1-x32b.google.com with SMTP id 46e09a7af769-6bc9353be9bso300215a34.1 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=lists.infradead.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=I6RCeYQMfzWzruIV5wSM8IaksTyJLRnwiejNr+Hq/++KmEVOZvgkFgzeoECQbzWQsF LFjm7nsFgj/WBdJhDcHXJg7Dk6vUL74S7pu9IuHr6uexNWC8HPkRhUSTq3OnFkDddpsI +FjsvmzBFLF42pC9PCSAW1+pzbznMrblHTk24BRpuBgT9w11wHVO/V5ZFaNbPXgIWzCu NxIyMuoWlXv32mId/XS8eRH09NYJ5rgIS+/2ejqZsipFyXbeQhfNv8sweGKvGZ4xFa6B jF19/UUvX2Jso8o3NqdxY6jm3zOhbeuOViV84qyulv/fU8TtepGQDAwzioqJWQOxjshJ z65w== 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=ZLeBlrl0nsEyjB0f4DicGuTA/VPYBm7aabbD+YUsfiY28bw/Bd5TiuUpNgSVWCZZHX ddw7yJqMqxXZIMDC1BtFhZs3hm/i9U7mk4JAOch/+PwMnrF12Z9P0Xk/7rA8tFEBXk6W WmYEVUit5yUCiEfb/4yXbzOw92IVZi/A6w1n+MloLE9Iq+u/O/yJsb0OglYujWVMb3gV Cdx986vvxxl+5h6BgJvGk5MnyqxGNJdsNkkY6EVVZp7YOQxzaFBaduSwuY4qp7Mm95l7 kuf/n5a+9cWwarW0/wzbIJNy2ieMAGETP32WrDwI2C6MTqaSvweB3yYOeEOfWGPukXfQ 3XgQ== X-Gm-Message-State: AOJu0YzZVbYi8gJ0ZPFXkbbkFZSlInYgLvm6EpvS/9EfQn0KKg77duCg FlxXxv3asKWCQSXeHPuMbUU= 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230908_071249_832495_266D3440 X-CRM114-Status: GOOD ( 12.88 ) 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 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 Reviewed-by: Krzysztof Kozlowski Reviewed-by: Mirela Rabulea --- 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"; };