From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.0 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D3049C28CC1 for ; Sat, 1 Jun 2019 09:18:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id AA8D8271AB for ; Sat, 1 Jun 2019 09:18:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726210AbfFAJSf (ORCPT ); Sat, 1 Jun 2019 05:18:35 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:46338 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726089AbfFAJSf (ORCPT ); Sat, 1 Jun 2019 05:18:35 -0400 Received: from localhost (unknown [IPv6:2a01:e0a:2c:6930:5cf4:84a1:2763:fe0d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: bbrezillon) by bhuna.collabora.co.uk (Postfix) with ESMTPSA id EA29127FDAE; Sat, 1 Jun 2019 10:18:32 +0100 (BST) Date: Sat, 1 Jun 2019 11:18:29 +0200 From: Boris Brezillon To: Philipp Zabel Cc: linux-media@vger.kernel.org, Mauro Carvalho Chehab , Hans Verkuil , Ezequiel Garcia , Nicolas Dufresne , Jonas Karlman , devicetree@vger.kernel.org, kernel@pengutronix.de Subject: Re: [PATCH v3 07/10] media: dt-bindings: Document i.MX8MQ and i.MX8MM VPU bindings Message-ID: <20190601111829.5643f57d@collabora.com> In-Reply-To: <20190531085523.10892-8-p.zabel@pengutronix.de> References: <20190531085523.10892-1-p.zabel@pengutronix.de> <20190531085523.10892-8-p.zabel@pengutronix.de> Organization: Collabora X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org On Fri, 31 May 2019 10:55:20 +0200 Philipp Zabel wrote: > Add devicetree binding documentation for the Hantro G1/G2 VPU on i.MX8MQ > and for the Hantro G1/G2/H1 VPU on i.MX8MM. > > Signed-off-by: Philipp Zabel > --- > .../devicetree/bindings/media/imx8m-vpu.txt | 56 +++++++++++++++++++ Hm, shouldn't we have a single bindings file for all hantro-based VPUs? > 1 file changed, 56 insertions(+) > create mode 100644 Documentation/devicetree/bindings/media/imx8m-vpu.txt > > diff --git a/Documentation/devicetree/bindings/media/imx8m-vpu.txt b/Documentation/devicetree/bindings/media/imx8m-vpu.txt > new file mode 100644 > index 000000000000..659bd28dd002 > --- /dev/null > +++ b/Documentation/devicetree/bindings/media/imx8m-vpu.txt > @@ -0,0 +1,56 @@ > +device-tree bindings for Hantro G1/G2/H1 VPU codecs implemented on i.MX8M SoCs > + > +Required properties: > +- compatible: value should be one of the following > + "nxp,imx8mq-vpu", > + "nxp,imx8mm-vpu"; > +- regs: VPU core and control block register ranges > +- reg-names: should be > + "g1", "g2", "ctrl" on i.MX8MQ, > + "g1", "g2", "h1", "ctrl" on i.MX8MM. > +- interrupts: encoding and decoding interrupt specifiers > +- interrupt-names: should be > + "g1", "g2" on i.MX8MQ, > + "g1", "g2", "h1" on i.MX8MM. > +- clocks: phandle to VPU core clocks and bus clock > +- clock-names: should be > + "g1", "g2", "bus" on i.MX8MQ, > + "g1", "g2", "h1", "bus" on i.MX8MM. > +- power-domains: phandle to power domain node > + > +Examples: > + > + vpu: vpu@38300000 { > + compatible = "nxp,imx8mq-vpu"; > + reg = <0x38300000 0x10000>, > + <0x38310000 0x10000>, > + <0x38320000 0x10000>; > + reg-names = "g1", "g2", "ctrl"; > + interrupts = , > + ; > + interrupt-names = "g1", "g2"; > + clocks = <&clk IMX8MQ_CLK_VPU_G1_ROOT>, > + <&clk IMX8MQ_CLK_VPU_G2_ROOT>, > + <&clk IMX8MQ_CLK_VPU_DEC_ROOT>; > + clock-names = "g1", "g2", "bus"; > + power-domains = <&pgc_vpu>; > + }; > + > + vpu: vpu@38300000 { > + compatible = "nxp,imx8mm-vpu"; > + reg = <0x38300000 0x10000>, > + <0x38310000 0x10000>, > + <0x38320000 0x10000>; > + <0x38330000 0x10000>; > + reg-names = "g1", "g2", "h1", "ctrl"; > + interrupts = , > + ; > + ; > + interrupt-names = "g1", "g2", "h1"; > + clocks = <&clk IMX8MQ_CLK_VPU_G1_ROOT>, > + <&clk IMX8MQ_CLK_VPU_G2_ROOT>, > + <&clk IMX8MQ_CLK_VPU_H1_ROOT>, > + <&clk IMX8MQ_CLK_VPU_DEC_ROOT>; > + clock-names = "g1", "g2", "h1", "bus"; > + power-domains = <&pgc_vpu>; > + };