Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp126713pxj; Thu, 13 May 2021 00:40:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJytunZ5zQOyGcQ6x+YXmZGwjU+EzyYGTFcNwClajyuSHFf1gDnqXPODGl7upfui2hYhU+hF X-Received: by 2002:a17:907:7848:: with SMTP id lb8mr19745524ejc.494.1620891641469; Thu, 13 May 2021 00:40:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620891641; cv=none; d=google.com; s=arc-20160816; b=WX6KEe7pQA6jpLgPVaQa0pDgnH2Zm6JfXJOVqkwMR0reXVCiDAmqmJZ3+hcz/3ngnm BuTRlQRy4Xh5BuOuWxLLtIVlH0fuH0SWJcLeXERLbOcf6Vnx1M7G9vSSjaVlDWutDVo0 Vse19VPlOP3wPIa1NCjfJcChMhw3WXFFk9NKAB3XjLvgBH2ErxdU+aktKrbFdiFCAkA5 AU578IKa5pK4CEnbzlMh/VyEII8GjwbD81Q+gLPn5OVMSqcj2spZ/x9pOUrmasAdLF3n 4rDPR3mLFyalL3W8wuTi5lg2HF947oWNBOE+HDK/VShSFD3rC/eVRFStB0E7t2afgAWH oHkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=uSkmCgwGwYJ9XNC0yRs8ex1roeRHgtFs6Rj7e4oTi8s=; b=DxYsqdUbcL3wAXkOYefItdkDYkelnqipeJVQAeCS2Yhtac3NfOA+yndy1faZW5s5eL V1u2Ewq930jDKoI85t10OrwpBlsk2f3pBPMZM3/V1ksbPgLbhKO4Kg2ma1OIv1l+xKeP LjFiIEEdg+MVeATt3MksHJfpoKtzaZ/TV1uet1to0RuKSi/LmNyTdgA+7ubM0AFQsJ5R nviMRx7l1jBxcmlYbHJdPHqS/sMN3l7F9xJOgw2jPqblBdkke5xnLQHSKcWOgmbHfsVN rZ8F2tqcqVLrrgYf78K5N59wj3Kl2dua5naLfFJvSUAiXv8n1JvG7slIbtlFkHlbL8QK SIhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=IJeMRY0j; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a3si2275497ejf.699.2021.05.13.00.40.17; Thu, 13 May 2021 00:40:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=IJeMRY0j; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231658AbhEMHjv (ORCPT + 99 others); Thu, 13 May 2021 03:39:51 -0400 Received: from mail.kernel.org ([198.145.29.99]:55514 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230443AbhEMHju (ORCPT ); Thu, 13 May 2021 03:39:50 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 3322161059; Thu, 13 May 2021 07:38:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1620891521; bh=oIkrDf7r1eCbpBjzxlZjiY/RWLxK0G9GSpPDm7dmqaI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=IJeMRY0jT/wV2Grmc6dzgid6khFTsW7geka4iqlnOIGFeOMtZnQ0LOmdfK9aKgpFX ZFfPfkwN0Bh93n3ATaz4e9YZEzhbuX5F+UQvNB0Lt9IL910lsBGx2FtxInJYu2x0JS ywlmryAwAlt+HVnpjpUku4B46t5nRV71TXwFwFf0OULIMS/Zg/GfLNm8JV17aJh1z9 OsnBrpK93gtOTyKJMbs1yOFz8eMKagzM2YJFBq16zW6Z9dbuN/1yrwvKCi83mwK8QP l5w7geZJfaraynloV6j/IhDQW8o7mCYDjxfa42Bt0Obp0yG7ALpIEbbo886QdNN/1t nPrBj1J0GNtRg== Date: Thu, 13 May 2021 15:38:33 +0800 From: Shawn Guo To: "Mirela Rabulea (OSS)" Cc: robh+dt@kernel.org, aisheng.dong@nxp.com, guoniu.zhou@nxp.com, linux-arm-kernel@lists.infradead.org, peng.fan@nxp.com, s.hauer@pengutronix.de, linux-imx@nxp.com, devicetree@vger.kernel.org, mchehab@kernel.org, hverkuil-cisco@xs4all.nl, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, paul.kocialkowski@bootlin.com, daniel.baluta@nxp.com, robert.chiras@nxp.com, laurentiu.palcu@nxp.com, p.zabel@pengutronix.de, ezequiel@collabora.com, Mirela Rabulea Subject: Re: [PATCH v11] arm64: dts: imx8qxp: Add jpeg encoder/decoder nodes Message-ID: <20210513073832.GS3425@dragon> References: <20210423101414.20068-1-mirela.rabulea@oss.nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210423101414.20068-1-mirela.rabulea@oss.nxp.com> User-Agent: Mutt/1.9.4 (2018-02-28) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 23, 2021 at 01:14:14PM +0300, Mirela Rabulea (OSS) wrote: > From: Mirela Rabulea > > Add dts for imaging subsytem, include jpeg nodes here. > Tested on imx8qxp only, should work on imx8qm, but it was not tested. > > Signed-off-by: Mirela Rabulea So the bindings and driver parts have been accepted already? > --- > Changes in v11: > Adress feedback from Aisheng Dong: > - Rename img_jpeg_dec_clk/img_jpeg_enc_clk to jpeg_dec_lpcg/jpeg_enc_lpcg to make it visible it's lpcg not other type of clk > - Drop the cameradev node, not needed for jpeg > - Match assigned-clocks & assigned-clock-rates > > .../arm64/boot/dts/freescale/imx8-ss-img.dtsi | 82 +++++++++++++++++++ > arch/arm64/boot/dts/freescale/imx8qxp.dtsi | 1 + > 2 files changed, 83 insertions(+) > create mode 100644 arch/arm64/boot/dts/freescale/imx8-ss-img.dtsi > > diff --git a/arch/arm64/boot/dts/freescale/imx8-ss-img.dtsi b/arch/arm64/boot/dts/freescale/imx8-ss-img.dtsi > new file mode 100644 > index 000000000000..c508e5d0c92b > --- /dev/null > +++ b/arch/arm64/boot/dts/freescale/imx8-ss-img.dtsi > @@ -0,0 +1,82 @@ > +// SPDX-License-Identifier: GPL-2.0+ > +/* > + * Copyright 2019-2021 NXP > + * Zhou Guoniu > + */ > +img_subsys: bus@58000000 { > + compatible = "simple-bus"; > + #address-cells = <1>; > + #size-cells = <1>; > + ranges = <0x58000000 0x0 0x58000000 0x1000000>; > + > + img_ipg_clk: clock-img-ipg { > + compatible = "fixed-clock"; > + #clock-cells = <0>; > + clock-frequency = <200000000>; > + clock-output-names = "img_ipg_clk"; > + }; Hmm, not sure a fixed-clock should be in the subsystem. > + > + img_jpeg_dec_lpcg: clock-controller@585d0000 { > + compatible = "fsl,imx8qxp-lpcg"; > + reg = <0x585d0000 0x10000>; > + #clock-cells = <1>; > + clocks = <&img_ipg_clk>, <&img_ipg_clk>; > + clock-indices = , > + ; > + clock-output-names = "img_jpeg_dec_lpcg_clk", > + "img_jpeg_dec_lpcg_ipg_clk"; > + power-domains = <&pd IMX_SC_R_MJPEG_DEC_MP>; > + }; > + > + img_jpeg_enc_lpcg: clock-controller@585f0000 { > + compatible = "fsl,imx8qxp-lpcg"; > + reg = <0x585f0000 0x10000>; > + #clock-cells = <1>; > + clocks = <&img_ipg_clk>, <&img_ipg_clk>; > + clock-indices = , > + ; > + clock-output-names = "img_jpeg_enc_lpcg_clk", > + "img_jpeg_enc_lpcg_ipg_clk"; > + power-domains = <&pd IMX_SC_R_MJPEG_ENC_MP>; > + }; > + > + jpegdec: jpegdec@58400000 { Keep nodes sorted in unit address. Shawn > + compatible = "nxp,imx8qxp-jpgdec"; > + reg = <0x58400000 0x00050000 >; > + interrupts = , > + , > + , > + ; > + clocks = <&img_jpeg_dec_lpcg 0>, > + <&img_jpeg_dec_lpcg 1>; > + clock-names = "per", "ipg"; > + assigned-clocks = <&img_jpeg_dec_lpcg 0>, > + <&img_jpeg_dec_lpcg 1>; > + assigned-clock-rates = <200000000>, <200000000>; > + power-domains = <&pd IMX_SC_R_MJPEG_DEC_MP>, > + <&pd IMX_SC_R_MJPEG_DEC_S0>, > + <&pd IMX_SC_R_MJPEG_DEC_S1>, > + <&pd IMX_SC_R_MJPEG_DEC_S2>, > + <&pd IMX_SC_R_MJPEG_DEC_S3>; > + }; > + > + jpegenc: jpegenc@58450000 { > + compatible = "nxp,imx8qxp-jpgenc"; > + reg = <0x58450000 0x00050000 >; > + interrupts = , > + , > + , > + ; > + clocks = <&img_jpeg_enc_lpcg 0>, > + <&img_jpeg_enc_lpcg 1>; > + clock-names = "per", "ipg"; > + assigned-clocks = <&img_jpeg_enc_lpcg 0>, > + <&img_jpeg_enc_lpcg 1>; > + assigned-clock-rates = <200000000>, <200000000>; > + power-domains = <&pd IMX_SC_R_MJPEG_ENC_MP>, > + <&pd IMX_SC_R_MJPEG_ENC_S0>, > + <&pd IMX_SC_R_MJPEG_ENC_S1>, > + <&pd IMX_SC_R_MJPEG_ENC_S2>, > + <&pd IMX_SC_R_MJPEG_ENC_S3>; > + }; > +}; > diff --git a/arch/arm64/boot/dts/freescale/imx8qxp.dtsi b/arch/arm64/boot/dts/freescale/imx8qxp.dtsi > index 1e6b4995091e..2d9589309bd0 100644 > --- a/arch/arm64/boot/dts/freescale/imx8qxp.dtsi > +++ b/arch/arm64/boot/dts/freescale/imx8qxp.dtsi > @@ -258,6 +258,7 @@ > }; > > /* sorted in register address */ > + #include "imx8-ss-img.dtsi" > #include "imx8-ss-adma.dtsi" > #include "imx8-ss-conn.dtsi" > #include "imx8-ss-ddr.dtsi" > -- > 2.17.1 >