Received: by 10.192.165.148 with SMTP id m20csp226150imm; Thu, 26 Apr 2018 20:05:56 -0700 (PDT) X-Google-Smtp-Source: AB8JxZq/fJqQnnse1T2+BEsnWtp87afbh3MDeNYlEUsBKbZCT0w1hE9cKNDbdcLi1RkStfbaEio5 X-Received: by 2002:a17:902:bc08:: with SMTP id n8-v6mr598934pls.97.1524798356707; Thu, 26 Apr 2018 20:05:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524798356; cv=none; d=google.com; s=arc-20160816; b=xb1nJbw5BS2qfzGg6osV5qgqZ+kASs2vQXfF4lYCSpFrnRb/wJ3JhCFojWfvokdt2V 8EuClMcoCWZZp4SyQMsOThtmsPRnkSDBCv3rpOQf73U0SX1vIRD1DJBs6bgkCpYNgvhe xDlE35jwnONo8ybJXhgPg9fcC2NR4XkHO5dwZEqDKxv6nSxtaT2Fexzp3vYICA2dJKZC k7fuS9rnjDDZNdrgEDajyK2i/S1yOL/sQrhg1MV22vuz+YC5wd5QzA0eelIQ1wRZz6cj vXGJZMN0No4ihFexYr/XaMv8MI08HiCWj6GhEKjQKU7Q6EU4BzpTEL7b3qURAjoyj0h+ sjpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=O5fEz2WtqJd8WlJuTCPIUhksIrgGvxOtyIGyGZGvQNQ=; b=UuH4UGSJ4jyIeImX2PKuE8S9fTExK2/UW2jo2AiZcrkJDTSAyAe9eGO9Zo3NTC47nI 1kn6JkzSAr1Lo6l0kFcxbxksaK4ISIWLHKJtdIXCUF36CkZQ5qynehzTUdl7vLzL6I3c QcG8QBDmUipzSnldSQw7MuHwMFyiOhGJxaJdnwVkHlhRZKEnXjER4P5qMHmKVtyxtJjP iQGD4pt+xaaJGWMGb2sa9dYKKH0YcFjDxWl31YviW1Ble1Ktn/DRNj8CcXii8uU2Ixqd LVeKAGxa3mVApDJLNgttbt3LXEncsRGV3TLCgVGs/EdQ+42D3upKedZUi20IFFkDan8C ExTw== 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 c86si330820pfl.319.2018.04.26.20.05.42; Thu, 26 Apr 2018 20:05:56 -0700 (PDT) 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 S1757328AbeD0DEj (ORCPT + 99 others); Thu, 26 Apr 2018 23:04:39 -0400 Received: from mail-oi0-f67.google.com ([209.85.218.67]:41420 "EHLO mail-oi0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757046AbeD0DEh (ORCPT ); Thu, 26 Apr 2018 23:04:37 -0400 Received: by mail-oi0-f67.google.com with SMTP id 11-v6so372681ois.8; Thu, 26 Apr 2018 20:04:37 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=O5fEz2WtqJd8WlJuTCPIUhksIrgGvxOtyIGyGZGvQNQ=; b=XY29ufgSKpIQfR2TzBBBzPQsv3np9tNNgxkPrbwZ7mI+zQHyu8S87MIsBz5H5XPVHG Kwcxl4mi8RS0tXpf8B7cRVmhEcws7jcsT5hxV90ISVhz9aWXoAiTte9WECw3wP+8C7FD 7wa/5WH2Rm8dH2lmz0YcEZr/U2bjfCI9LG3a5PqWWvC9LmwGR/x54OemwCRXcveHWmmZ MBzsBylA+cK9EAA4ChimlHAtXzCiKAvTyIac6Gq8c1rxA/GgLuMOqNgW8z6GiPsJFPmC 9+sqJ6rU3leEDTRWwsv+Fq0u+lkTf6BGoNi+wj4BpRS/x304Jjxk/vT5W3MxNXQ5+JwU 70QA== X-Gm-Message-State: ALQs6tAqJT9kgIsHL4EstbaIJINMIAIn3+YEQVh/8pllxmA8dNybvfdK v4VIXLoXcAGzppl6mp8R3w== X-Received: by 2002:aca:384:: with SMTP id 126-v6mr307403oid.8.1524798277187; Thu, 26 Apr 2018 20:04:37 -0700 (PDT) Received: from localhost (216-188-254-6.dyn.grandenetworks.net. [216.188.254.6]) by smtp.gmail.com with ESMTPSA id t197-v6sm202139oih.36.2018.04.26.20.04.36 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 26 Apr 2018 20:04:36 -0700 (PDT) Date: Thu, 26 Apr 2018 22:04:36 -0500 From: Rob Herring To: Paul Kocialkowski Cc: Tomasz Figa , Philipp Zabel , Linux Media Mailing List , devicetree@vger.kernel.org, "list@263.net:IOMMU DRIVERS , Joerg Roedel ," , Linux Kernel Mailing List , linux-sunxi@googlegroups.com, Mauro Carvalho Chehab , Mark Rutland , Maxime Ripard , wens@csie.org, Pawel Osciak , Marek Szyprowski , Kyungmin Park , Hans Verkuil , Sakari Ailus , Arnd Bergmann , Alexandre Courbot Subject: Re: [PATCH v2 08/10] dt-bindings: media: Document bindings for the Sunxi-Cedrus VPU driver Message-ID: <20180427030436.3ptrb2ldhtnssipj@rob-hp-laptop> References: <20180419154124.17512-1-paul.kocialkowski@bootlin.com> <20180419154536.17846-4-paul.kocialkowski@bootlin.com> <1524153860.3416.9.camel@pengutronix.de> <5fa80b1e88ad2a215f51ea3a2b9b62274fa9b1ec.camel@bootlin.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5fa80b1e88ad2a215f51ea3a2b9b62274fa9b1ec.camel@bootlin.com> User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 20, 2018 at 09:22:20AM +0200, Paul Kocialkowski wrote: > Hi and thanks for the review, > > On Fri, 2018-04-20 at 01:31 +0000, Tomasz Figa wrote: > > Hi Paul, Philipp, > > > > On Fri, Apr 20, 2018 at 1:04 AM Philipp Zabel > > wrote: > > > > > Hi Paul, > > > On Thu, 2018-04-19 at 17:45 +0200, Paul Kocialkowski wrote: > > > > This adds a device-tree binding document that specifies the > > > > properties > > > > used by the Sunxi-Cedurs VPU driver, as well as examples. > > > > > > > > Signed-off-by: Paul Kocialkowski > > > > --- > > > > .../devicetree/bindings/media/sunxi-cedrus.txt | 50 > > > > ++++++++++++++++++++++ > > > > 1 file changed, 50 insertions(+) > > > > create mode 100644 > > > > Documentation/devicetree/bindings/media/sunxi-cedrus.txt > > > > > > > > diff --git a/Documentation/devicetree/bindings/media/sunxi- > > > > cedrus.txt > > > > b/Documentation/devicetree/bindings/media/sunxi-cedrus.txt > > > > new file mode 100644 > > > > index 000000000000..71ad3f9c3352 > > > > --- /dev/null > > > > +++ b/Documentation/devicetree/bindings/media/sunxi-cedrus.txt > > > > @@ -0,0 +1,50 @@ > > > > +Device-tree bindings for the VPU found in Allwinner SoCs, > > > > referred to > > > > as the > > > > +Video Engine (VE) in Allwinner literature. > > > > + > > > > +The VPU can only access the first 256 MiB of DRAM, that are DMA- > > > > mapped > > > > starting > > > > +from the DRAM base. This requires specific memory allocation and > > > > handling. > > > > And no IOMMU? Brings back memories. > > Exactly, no IOMMU so we don't have much choice but cope with that > hardware limitation... > > > > > + > > > > +Required properties: > > > > +- compatible : "allwinner,sun4i-a10-video-engine"; > > > > +- memory-region : DMA pool for buffers allocation; > > > > +- clocks : list of clock specifiers, corresponding to > > > > entries in > > > > + the clock-names property; > > > > +- clock-names : should contain "ahb", "mod" and > > > > "ram" > > > > entries; > > > > +- assigned-clocks : list of clocks assigned to the VE; > > > > +- assigned-clocks-rates : list of clock rates for the clocks > > > > assigned > > > > to the VE; > > > > +- resets : phandle for reset; > > > > +- interrupts : should contain VE interrupt number; > > > > +- reg : should contain register base and > > > > length > > > > of VE. > > > > + > > > > +Example: > > > > + > > > > +reserved-memory { > > > > + #address-cells = <1>; > > > > + #size-cells = <1>; > > > > + ranges; > > > > + > > > > + /* Address must be kept in the lower 256 MiBs of DRAM for > > > > VE. */ > > > > + ve_memory: cma@4a000000 { > > > > + compatible = "shared-dma-pool"; > > > > + reg = <0x4a000000 0x6000000>; > > > > + no-map; > > > > + linux,cma-default; > > > > + }; > > > > +}; > > > > + > > > > +video-engine@1c0e000 { > > > This is not really required by any specification, and not as common > > > as > > > gpu@..., but could this reasonably be called "vpu@1c0e000" to follow > > > somewhat-common practice? > > > > AFAIR the name is supposed to be somewhat readable for someone that > > doesn't know the hardware. To me, "video-engine" sounds more obvious > > than "vpu", but we actually use "codec" already, in case of MFC and > > JPEG codec on Exynos. If encode/decode is the only functionality of > > this block, I'd personally go with "codec". If it can do other things, > > e.g. scaling/rotation without encode/decode, I'd probably call it > > "video-processor". > > I agree that the term VPU is more commonly associated with video > decoding, while video engine could mean a number of things. > > The reason I went with "video-engine" here (while still presenting the > driver as a VPU driver) is that Video Engine is the term used in > Allwinner's litterature. Other nodes in Allwinner device-trees generally > stick to these terms (for instance, we have "display-engine" nodes). > This also makes it easier to find the matching parts in the > documentation. 'video-codec' is what is defined in the DT spec. Rob