From patchwork Thu Oct 19 21:34:22 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Osipenko X-Patchwork-Id: 10018341 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 8E8B460224 for ; Thu, 19 Oct 2017 21:38:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 82A5828E50 for ; Thu, 19 Oct 2017 21:38:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 779AC28E6E; Thu, 19 Oct 2017 21:38:15 +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=-6.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM autolearn=unavailable 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 2EA0F28E50 for ; Thu, 19 Oct 2017 21:38:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752442AbdJSVhj (ORCPT ); Thu, 19 Oct 2017 17:37:39 -0400 Received: from mail-wr0-f193.google.com ([209.85.128.193]:43685 "EHLO mail-wr0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752061AbdJSVhf (ORCPT ); Thu, 19 Oct 2017 17:37:35 -0400 Received: by mail-wr0-f193.google.com with SMTP id w105so343305wrc.0; Thu, 19 Oct 2017 14:37:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=B7thFY1ia8yOsxR/xNVBccMPY9Pv5ItRjouyIrAiAlc=; b=gapnkJmveQh/yNB44onOfiyF2VtLWBwz4yeFxB4gbnzNOV/GMQbjAFc1zQ2PrfllJR 7oKVvq1xApqVgyYKhmJywh0QOvzHz4Immb8uxStPxT3f90cY4QhH2hGSrJheXqEgcoZ2 L9YcQWDEMw5uyWdwoPvUR1m4YWrqodaxGbi/3M5BSkow5YzjKrJwA/5Jrd9fyDhTQnVa 3DFsLonHgw0FWB6fMOkvwYq2VqV2AqkikofycU/OuOjHcWWT4Q5+rQJRfSAhnZPVKuBe TAPM++JfrsjTcQs/Ey10weX1tm09QMKXDg6Z44nZ0tVxusHNJusuIV1lDif1Y5sixIcI XZLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=B7thFY1ia8yOsxR/xNVBccMPY9Pv5ItRjouyIrAiAlc=; b=ZNdaN5U7qGZz/xvKUYe2w1O8zMAqeNIUZo8p5Knt/wMizRw2ACdHEiO2CirNWX/y1i Hi9wkI9mAmJKz44IfqzqkqrEJdOL9PV2ua5ecEobZDxsPTz2YWfayi+2kePrJ8ZeB8Gq LOLLSgy7b0uWI8LDz2PPmkoYR4paHm31zHKbk2AToENUek88trJFhkSGwt2e4lZNSBNY 0vIpWm2XTmcX46ERArqyeJLwaiokH8HmLRjCQjeiuffv7kAalZ4txA3MmTeiPvtAugE5 O+MAZff5/oVL6yl3TBYyLDX+NXLVfe196PVwWOwzJ7q2oPEWODGf5iiWJw3cJd3EhKDk vlTA== X-Gm-Message-State: AMCzsaXe0L9LsGbLIUjN1h7tweidxfGZhVKLocQYuprAHxonSKPcq+Rs RN2HSos2sDId1jFmv4BWFHw= X-Google-Smtp-Source: ABhQp+QLHKtuv914zW8xVWW0jrL+se9lGuSHdaHp0ZGrDnIUzyt6Ahg52A/2ASHs4s+/nB/UPrmW3A== X-Received: by 10.223.197.19 with SMTP id q19mr2958143wrf.272.1508449053374; Thu, 19 Oct 2017 14:37:33 -0700 (PDT) Received: from localhost.localdomain (ppp109-252-91-27.pppoe.spdop.ru. [109.252.91.27]) by smtp.gmail.com with ESMTPSA id q74sm7349086wrb.51.2017.10.19.14.37.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 Oct 2017 14:37:32 -0700 (PDT) From: Dmitry Osipenko To: Thierry Reding , Jonathan Hunter , Greg Kroah-Hartman , Rob Herring , Mauro Carvalho Chehab , Stephen Warren , Vladimir Zapolskiy Cc: Dan Carpenter , linux-media@vger.kernel.org, linux-tegra@vger.kernel.org, devel@driverdev.osuosl.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v4 2/5] media: dt: bindings: Add binding for NVIDIA Tegra Video Decoder Engine Date: Fri, 20 Oct 2017 00:34:22 +0300 Message-Id: X-Mailer: git-send-email 2.14.2 In-Reply-To: References: In-Reply-To: References: 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 binding documentation for the Video Decoder Engine which is found on NVIDIA Tegra20/30/114/124/132 SoC's. Signed-off-by: Dmitry Osipenko Acked-by: Rob Herring --- .../devicetree/bindings/media/nvidia,tegra-vde.txt | 55 ++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/nvidia,tegra-vde.txt diff --git a/Documentation/devicetree/bindings/media/nvidia,tegra-vde.txt b/Documentation/devicetree/bindings/media/nvidia,tegra-vde.txt new file mode 100644 index 000000000000..470237ed6fe5 --- /dev/null +++ b/Documentation/devicetree/bindings/media/nvidia,tegra-vde.txt @@ -0,0 +1,55 @@ +NVIDIA Tegra Video Decoder Engine + +Required properties: +- compatible : Must contain one of the following values: + - "nvidia,tegra20-vde" + - "nvidia,tegra30-vde" + - "nvidia,tegra114-vde" + - "nvidia,tegra124-vde" + - "nvidia,tegra132-vde" +- reg : Must contain an entry for each entry in reg-names. +- reg-names : Must include the following entries: + - sxe + - bsev + - mbe + - ppe + - mce + - tfe + - ppb + - vdma + - frameid +- iram : Must contain phandle to the mmio-sram device node that represents + IRAM region used by VDE. +- interrupts : Must contain an entry for each entry in interrupt-names. +- interrupt-names : Must include the following entries: + - sync-token + - bsev + - sxe +- clocks : Must include the following entries: + - vde +- resets : Must include the following entries: + - vde + +Example: + +video-codec@6001a000 { + compatible = "nvidia,tegra20-vde"; + reg = <0x6001a000 0x1000 /* Syntax Engine */ + 0x6001b000 0x1000 /* Video Bitstream Engine */ + 0x6001c000 0x100 /* Macroblock Engine */ + 0x6001c200 0x100 /* Post-processing Engine */ + 0x6001c400 0x100 /* Motion Compensation Engine */ + 0x6001c600 0x100 /* Transform Engine */ + 0x6001c800 0x100 /* Pixel prediction block */ + 0x6001ca00 0x100 /* Video DMA */ + 0x6001d800 0x300 /* Video frame controls */>; + reg-names = "sxe", "bsev", "mbe", "ppe", "mce", + "tfe", "ppb", "vdma", "frameid"; + iram = <&vde_pool>; /* IRAM region */ + interrupts = , /* Sync token interrupt */ + , /* BSE-V interrupt */ + ; /* SXE interrupt */ + interrupt-names = "sync-token", "bsev", "sxe"; + clocks = <&tegra_car TEGRA20_CLK_VDE>; + resets = <&tegra_car 61>; +};