From patchwork Fri May 24 14:04:57 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philipp Zabel X-Patchwork-Id: 10959939 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id AA0CD6C5 for ; Fri, 24 May 2019 14:05:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9B107286DD for ; Fri, 24 May 2019 14:05:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8F7AE2891B; Fri, 24 May 2019 14:05:31 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3675D286DD for ; Fri, 24 May 2019 14:05:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404056AbfEXOF1 (ORCPT ); Fri, 24 May 2019 10:05:27 -0400 Received: from metis.ext.pengutronix.de ([85.220.165.71]:48507 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2403997AbfEXOF1 (ORCPT ); Fri, 24 May 2019 10:05:27 -0400 Received: from dude02.hi.pengutronix.de ([2001:67c:670:100:1d::28] helo=dude02.pengutronix.de.) by metis.ext.pengutronix.de with esmtp (Exim 4.89) (envelope-from ) id 1hUAp3-0002Dk-IB; Fri, 24 May 2019 16:05:25 +0200 From: Philipp Zabel To: linux-media@vger.kernel.org Cc: Mauro Carvalho Chehab , Hans Verkuil , Boris Brezillon , Ezequiel Garcia , Nicolas Dufresne , Jonas Karlman , devicetree@vger.kernel.org, kernel@pengutronix.de Subject: [PATCH 08/10] media: dt-bindings: Document i.MX8MQ and i.MX8MM VPU bindings Date: Fri, 24 May 2019 16:04:57 +0200 Message-Id: <20190524140459.4002-9-p.zabel@pengutronix.de> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190524140459.4002-1-p.zabel@pengutronix.de> References: <20190524140459.4002-1-p.zabel@pengutronix.de> MIME-Version: 1.0 X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::28 X-SA-Exim-Mail-From: p.zabel@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-media@vger.kernel.org Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 +++++++++++++++++++ 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>; + };