Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp185482pxb; Thu, 12 Nov 2020 00:38:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJxS4VfiXVVIDPtsDjW+HKGEzsJoENQafXPpkOAk4wiIpueBNTKhK52aBoAbv/njTy1zqsBG X-Received: by 2002:a17:906:329a:: with SMTP id 26mr1458213ejw.227.1605170329258; Thu, 12 Nov 2020 00:38:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605170329; cv=none; d=google.com; s=arc-20160816; b=O6v7SxKPgC1gI/Vqx5+1cLKFPhISMrdhRoB9dfTNkgBiJ66EmuIUYDcZoYv4TD8vGk gcIpS+JGNfB4vc79Z6a8BeXPY2+5WQ8AV8l1uWzbBZU6aXEnyEVtfioNRMkIq1qX/9xN gctQk8bO1qRdSxFmFpRJLzk7eSa3oK583dUpyCNpamLEjkNIzMCC/oPcP7zD6/U5SSx0 iP95KWChIwRba6O2GOmWm+l870NqjKSROdvl7f003T4EJaBUFE5iqM5mZFZEDVqAwiTs b6ymc2WoqOkePW4ym/toUWYfsDjOlcdQTTU9LC5OgU7xrOlJGEjglJ5atOaBxl2XLrKv IZjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:organization:references:in-reply-to:date:cc:to:from :subject:message-id; bh=Hl99eqkfo4ZXTf3kqa8Q/DPz1tV56ITxwwFeFJS+XDg=; b=J+8mbDV83ODX8nL2su5yNGCOby4KWvjnzYui+lrgTKykLjutc0NNDLdvxRnhlpOmoG 7lkm8uW8EC9164Dp/joZ3wKUTRYvoYj5OQCDgpVp1Sm3ecwO7VgfEJNA9nt20Ni+uVX0 bumez2NJAWE6Y0my6IubSrtJhBRCwyiZ+D6A61ly5u198MVHL96cw4dIMuGqcPfBBAWR ZN76r8ktj8uxFHJP+ga26emWIwxVc0bOgUtUezsgq/WTLvzRZ3vWadVBZqrkfEoawkVw LpJOtAAxHsuNkw6QtJ1dtdGo16TkNNIPenouuyYVXw87zC3j8zsewEHymExvHq4YhCrs SZ4w== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y13si3894538edp.325.2020.11.12.00.38.25; Thu, 12 Nov 2020 00:38:49 -0800 (PST) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726105AbgKLIg5 (ORCPT + 99 others); Thu, 12 Nov 2020 03:36:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60696 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725928AbgKLIg4 (ORCPT ); Thu, 12 Nov 2020 03:36:56 -0500 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e3e3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 79E36C0613D1; Thu, 12 Nov 2020 00:36:56 -0800 (PST) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: ezequiel) with ESMTPSA id E6CE41F4610D Message-ID: Subject: Re: [PATCH v5 05/10] arm64: dts: imx8qxp: Add jpeg encoder/decoder nodes From: Ezequiel Garcia To: "Mirela Rabulea (OSS)" , mchehab@kernel.org, hverkuil-cisco@xs4all.nl, shawnguo@kernel.org, robh+dt@kernel.org, p.zabel@pengutronix.de Cc: paul.kocialkowski@bootlin.com, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-imx@nxp.com, s.hauer@pengutronix.de, aisheng.dong@nxp.com, daniel.baluta@nxp.com, robert.chiras@nxp.com, laurentiu.palcu@nxp.com, mark.rutland@arm.com, devicetree@vger.kernel.org, laurent.pinchart+renesas@ideasonboard.com, niklas.soderlund+renesas@ragnatech.se, dafna.hirschfeld@collabora.com, Mirela Rabulea Date: Thu, 12 Nov 2020 05:36:41 -0300 In-Reply-To: <20201112030557.8540-6-mirela.rabulea@oss.nxp.com> References: <20201112030557.8540-1-mirela.rabulea@oss.nxp.com> <20201112030557.8540-6-mirela.rabulea@oss.nxp.com> Organization: Collabora Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.3-1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Mirela, On Thu, 2020-11-12 at 05:05 +0200, Mirela Rabulea (OSS) wrote: > From: Mirela Rabulea > > Add jpeg decoder/encoder nodes, for now on imx8qxp only. > The same should work on imx8qm, but it was not tested. > Does imx8qm need changes in the dt bindings? Unless you are aware of reasons preventing us from enabling it on imx8qm, then we could go for imx8qm as well (reusing imx8qxp- compatible). > Signed-off-by: Mirela Rabulea > --- > arch/arm64/boot/dts/freescale/imx8qxp-mek.dts | 8 ++++ > arch/arm64/boot/dts/freescale/imx8qxp.dtsi | 37 +++++++++++++++++++ > 2 files changed, 45 insertions(+) > > diff --git a/arch/arm64/boot/dts/freescale/imx8qxp-mek.dts b/arch/arm64/boot/dts/freescale/imx8qxp-mek.dts > index 46437d3c7a04..a0ad9789e9b8 100644 > --- a/arch/arm64/boot/dts/freescale/imx8qxp-mek.dts > +++ b/arch/arm64/boot/dts/freescale/imx8qxp-mek.dts > @@ -270,3 +270,11 @@ > >; > }; > }; > + > +&jpegdec { > + status = "okay"; > +}; > + > +&jpegenc { > + status = "okay"; > +}; Please drop this. See below. > diff --git a/arch/arm64/boot/dts/freescale/imx8qxp.dtsi b/arch/arm64/boot/dts/freescale/imx8qxp.dtsi > index e46faac1fe71..1d9a16388fa8 100644 > --- a/arch/arm64/boot/dts/freescale/imx8qxp.dtsi > +++ b/arch/arm64/boot/dts/freescale/imx8qxp.dtsi > @@ -629,4 +629,41 @@ > }; > }; > }; > + > + img_subsys: bus@58000000 { > + compatible = "simple-bus"; > + #address-cells = <1>; > + #size-cells = <1>; > + ranges = <0x58000000 0x0 0x58000000 0x1000000>; > + > + jpegdec: jpegdec@58400000 { > + compatible = "nxp,imx8qxp-jpgdec"; > + reg = <0x58400000 0x00050000 >; > + interrupts = , > + , > + , > + ; > + 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>; > + status = "disabled"; Pure memory-to-memory are typically not enabled per-board, but just per-platform. So you can drop the disabled status here. Thanks, Ezequiel > + }; > + > + jpegenc: jpegenc@58450000 { > + compatible = "nxp,imx8qxp-jpgenc"; > + reg = <0x58450000 0x00050000 >; > + interrupts = , > + , > + , > + ; > + 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>; > + status = "disabled"; > + }; > + }; > };