From patchwork Tue Dec 12 00:26:07 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Osipenko X-Patchwork-Id: 10106065 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 4ED31602B3 for ; Tue, 12 Dec 2017 00:27:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4277B299C6 for ; Tue, 12 Dec 2017 00:27:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 36ABB299D5; Tue, 12 Dec 2017 00:27:56 +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.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, 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 CD172299C6 for ; Tue, 12 Dec 2017 00:27:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752605AbdLLA1x (ORCPT ); Mon, 11 Dec 2017 19:27:53 -0500 Received: from mail-lf0-f68.google.com ([209.85.215.68]:42141 "EHLO mail-lf0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751347AbdLLA0l (ORCPT ); Mon, 11 Dec 2017 19:26:41 -0500 Received: by mail-lf0-f68.google.com with SMTP id i2so21235563lfe.9; Mon, 11 Dec 2017 16:26:40 -0800 (PST) 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=0GAfx7WfddYGddfFhqDgxYD6Eoi7FljggWZ5oHdqHZc=; b=EVffAGqs5PGXCS8WHet79Sqf4NiRoWGSBO11OX3CixtPV2KN8wGfAsgaHhO01HzGAY RSmKWHZtjOMD8gCfTh5jG2lGajM6cieoYFrTrWNywTf0kvJEjMU8a4OaOl3ELV8eBWde XpLSNDTCbC0xwV1Fj8O2nKCJwcfdnXphPtIF8OEMG8y2VLc5VHzHg93eJS/KiuSdsRs+ +fB+TiaOHryT7pKtBKN+aeesLp9pKmTkgK6GeRAFuSfzzc2RExLiAu6hiywJuOj1FWiv Aq+08vhOH0mGyWfwLSxZg43mNIAC+DWYX+WrnV6WEfcDvSt3S0W/bvzgnu2+e/6n1JSF 6CLw== 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=0GAfx7WfddYGddfFhqDgxYD6Eoi7FljggWZ5oHdqHZc=; b=BJI2j5LWDURmF9yAs7d3AoVD9363JkHrHYCHJwC/t4/mp0RS+jvQoMjb2LTQ12VNLa er3m/QTc2L7NTU6L57Exx6UsPwEDwbzMB6yOIkRaxUDuRtdGCtod/AeZ14Hmec+g2bI2 wDzD+yxvB9akc9siQu9Jb71PRbnbo6aeJH3y3UMsoJoQk99Lo20S/dxhX5N+qP7v4pos D/WL9mobDQdouVBbXhIL5F6hv/7P7isu1EMiwWv9IQoAA+7CDC4w2B7AiG5/+AITA8LQ UMtmqFetfZgR8Zuv9PmMEqVEcmFw/FvKicNbdyY2GxGv0w0eCALXFhS5gR9ewwFont9a kQeA== X-Gm-Message-State: AKGB3mKBY6CI9saKEecFliL64gneOOyz8edvE10PTlM+0icZgZMMj0qC vfyG5mYZw8MFxkhKgpUQgfut9zqr X-Google-Smtp-Source: ACJfBouCreQ15Ov/vrJJ9RLq5SsmEd8hfTDb2ZhipV5yp5pz4qPO3Z6U53i25pW15O4fT2FMoCWYSg== X-Received: by 10.46.21.13 with SMTP id s13mr1043947ljd.70.1513038399851; Mon, 11 Dec 2017 16:26:39 -0800 (PST) Received: from localhost.localdomain (ppp109-252-55-194.pppoe.spdop.ru. [109.252.55.194]) by smtp.gmail.com with ESMTPSA id s127sm2916726lfs.45.2017.12.11.16.26.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 11 Dec 2017 16:26:39 -0800 (PST) From: Dmitry Osipenko To: Thierry Reding , Jonathan Hunter , Stephen Warren , Greg Kroah-Hartman , Mauro Carvalho Chehab , Hans Verkuil , Vladimir Zapolskiy Cc: Rob Herring , Dan Carpenter , linux-media@vger.kernel.org, devel@driverdev.osuosl.org, devicetree@vger.kernel.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v5 1/4] media: dt: bindings: Add binding for NVIDIA Tegra Video Decoder Engine Date: Tue, 12 Dec 2017 03:26:07 +0300 Message-Id: <155182bb32443b69e457adbd642c12da81b0a241.1513038011.git.digetx@gmail.com> X-Mailer: git-send-email 2.15.1 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>; +};