Received: by 10.223.164.202 with SMTP id h10csp1404668wrb; Sat, 11 Nov 2017 06:23:10 -0800 (PST) X-Google-Smtp-Source: AGs4zMY0PwttsAOdXK+nQ1lYWynTqilGpPDzEitBR6xgYPfASbVFIrKyykw0qaJN6J3sxm1cwd7+ X-Received: by 10.99.110.196 with SMTP id j187mr3522156pgc.393.1510410190157; Sat, 11 Nov 2017 06:23:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510410190; cv=none; d=google.com; s=arc-20160816; b=r0QYflUNxoYA110LufV1cZ4VOFm/NYQZQF5W4KkDypa0CeXnYEFPphMww/fJ+U8BKz 2n/d/jILYENW1QIF5RDlEBAC07+ZiTZ2kCQP46IPvOEh7IBJr4+91HQxWtV+1bbKPGv8 wsTD54KdgeBjVDWA1Bkxb4JD7PebDLF6wCqqOnO/TbVzaebpjO2eQxkS7h2JoPuR0t6u JwQLYmWTOapE6BWps1rgx2Dyhte9X6qUeP/8B3kyGSAKKJu9e+7U5AqC/zhkAPQ8vS/N rhZtjPBOVXjmUPlZVQZ7Csh6+m3/F2MJzPjOxtb9Yte84sHpne8xTjKwLfqGJ5WmLd3x PEBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject:arc-authentication-results; bh=ZDSiWEBAVToobTz3F0ICUqTYElA9gJlrYECehlhEaIE=; b=Wx+hw2dVf30EamMIdWh4ZngQtKjOQNVQNXdrBpbHKnXagfMgmaCfMlvZ51Wz18wmZJ f5HCZwGTsFXc3PxI6HwxrwZH9jd2nrPYhLs8zzepe05O7rrC2++Ks6l/RLBSMp9Tj1ju z3wKUclaoPav5pa2QoaY6Zx+yqnwmipm0lZMYxoDKBiYBNToFlrsAg8qntTz+8UEB8hG 8qdA957qYBxT6PesV1xPHAGLmIwua58lpp2RJ4jXdtK7ks7QKPSFn+Z9YN4+lt8tbKHb dqpHeS6IZR5IQbqNEClAzU4zRHFLxuQWSDy6+ZwPm0fkd7pluTOvLoyXf6b+D1bMh20b SZPA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b1si10764841pgq.727.2017.11.11.06.22.58; Sat, 11 Nov 2017 06:23:10 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751408AbdKKOVP (ORCPT + 83 others); Sat, 11 Nov 2017 09:21:15 -0500 Received: from mleia.com ([178.79.152.223]:53742 "EHLO mail.mleia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750746AbdKKOVK (ORCPT ); Sat, 11 Nov 2017 09:21:10 -0500 Received: from mail.mleia.com (localhost [127.0.0.1]) by mail.mleia.com (Postfix) with ESMTP id 2DB843D7412; Sat, 11 Nov 2017 14:22:26 +0000 (GMT) Received: from [192.168.10.36] (91-159-128-161.elisa-laajakaista.fi [91.159.128.161]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.mleia.com (Postfix) with ESMTPSA id 69F573D4683; Sat, 11 Nov 2017 14:22:25 +0000 (GMT) Subject: Re: [PATCH v4 2/5] media: dt: bindings: Add binding for NVIDIA Tegra Video Decoder Engine To: Dmitry Osipenko , Thierry Reding , Jonathan Hunter , Greg Kroah-Hartman , Rob Herring , Mauro Carvalho Chehab , Stephen Warren References: 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 From: Vladimir Zapolskiy Message-ID: <6492d1af-19fa-253f-2b75-2c37ccd44cbe@mleia.com> Date: Sat, 11 Nov 2017 16:21:07 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-49551924 X-CRM114-CacheID: sfid-20171111_142226_224309_246AA76C X-CRM114-Status: GOOD ( 21.15 ) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Dmitry, On 10/20/2017 12:34 AM, Dmitry Osipenko wrote: > 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 > --- > .../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 I've already mentioned it in my review of the driver code, but the version from v3 with a single region is more preferable. Also it implies that "reg-names" property will be removed. > +- 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>; > +}; > -- With best wishes, Vladimir From 1582370543849499308@xxx Fri Oct 27 01:02:26 +0000 2017 X-GM-THRID: 1581727893714678178 X-Gmail-Labels: Inbox,Category Forums