Received: by 10.192.165.148 with SMTP id m20csp165708imm; Thu, 19 Apr 2018 18:41:07 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+5eJ6bfqRYVUyjqUDWdLex8Y92PC+uwtoBnCXArcy9YUfbinShOxYR+gFvtgAVv4Vr5zys X-Received: by 10.99.98.66 with SMTP id w63mr6721735pgb.377.1524188467422; Thu, 19 Apr 2018 18:41:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524188467; cv=none; d=google.com; s=arc-20160816; b=qQgBKh2er6iFZ061dizv5xAWC4mcM49PvdPhfTSvCnxhvyx+r1sB6Khu+um/OFqdae +nsORkBSGhl7VdVDDe1l+6qe28lVJrWDMoERVU+cCxg9yfPlSfsJ4QZPDWpWSCH0QubG /eSxxXyi6vDOvPVo7Yne1NqsH8929ZGX5RAJ8MeDW4jEjn2+he0rPh+xEnaCG4FeVeuG coqijO30+eu1BFmGtJDEnodY5b3w3yWTKlOrGzduP7ULGIdhVPFrZHNnAAmM90/yDnDz tbzYzRXsMp1h3B5ad2kD9f45Je3pcVwSzOjB5my/wfw3FRWLk6FFuFhNF9dUrYY96w69 lzrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature :arc-authentication-results; bh=UaQWII0IOsMyQYEKhxgLTa0ECEaLpDGgVS+4+mEH260=; b=HHz405CTdCc1n6VKDlcAzQaEM7HeX5rDDEeXWudCjlKDu3rkKf6ynEiEjmlp2UNg1f wssxmRFMfi4RhaMY0E0FcIXO2M9ZjjE5bDCzvz8XY7tPQYig3pYRkMXYHpVZVOLIF+4k kGpRzxWmXwwhSOB7knf72Zxgz8mlwa/4/2KBK/BI3VmMbUhT2WqMqrWdhvu280vFusDS cZO3IeOhRQC+ZiqoGQlLYvL+wRDe/wBQpTloctBKIP5FPzFJibhM0D6SczBJEIio4YTN 7Ky59Pz9wl2/QmaEVD5ElTf7s95XQTZdp3VIFewwkxxYS26Tf4HuGG5E76ssZIfHqHqh FWRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=aADn777W; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o14-v6si4739521pli.13.2018.04.19.18.40.53; Thu, 19 Apr 2018 18:41:07 -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; dkim=pass header.i=@chromium.org header.s=google header.b=aADn777W; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754063AbeDTBjJ (ORCPT + 99 others); Thu, 19 Apr 2018 21:39:09 -0400 Received: from mail-ua0-f195.google.com ([209.85.217.195]:43179 "EHLO mail-ua0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753761AbeDTBjI (ORCPT ); Thu, 19 Apr 2018 21:39:08 -0400 Received: by mail-ua0-f195.google.com with SMTP id s15so4719497uae.10 for ; Thu, 19 Apr 2018 18:39:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=UaQWII0IOsMyQYEKhxgLTa0ECEaLpDGgVS+4+mEH260=; b=aADn777W/nUmDNIoRC0xFaMGOk6JmMo4lueP3GLpGPcIJGlwxISHgQYn+o9zTPUT5U QqTWlCdc9SVcstq7edxBdX3++ZXukSnv6+/xkTD7yp61BtqQFAnmDc8DmeGFKgF6s6+E 0c+qduqBc/aLc6Otf3YUa2M7/t0y1+6rWo5gE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=UaQWII0IOsMyQYEKhxgLTa0ECEaLpDGgVS+4+mEH260=; b=hZBe5A4QIJez8oZjNDjI5eEDB1vp8CEaAWc25v+PxjliWwAN4ZWM7BhN9XcldCCwwP TV+l0Xx9iQkUm6J8okTOHvDgD8gWs9skTufsz+TwWdLUbr8sNGl8vTG87A9SNuoWjRy7 cF37IPJ3rDf4EqwJLFens0LESWEMaz0Bw9bSD143DSy6AOo2vlOv6M8A/pu2qrDFXqR5 u6d3szpQQfR48UDxsihHWyshcSxe56wjVRvblt6vnftM3isvjBwKuVCZo5izaEVLKdop wahK6E3nfAtCArO3GGQJa1KtlG4EDcU27v3b5mAWIjS8HIwSlFuKy0ziBhc0Rwe0uboo 1p8A== X-Gm-Message-State: ALQs6tARxg0VV60uNvxm60dbj5rrBWgEaouiQGSEzpqL6KPPpUQDWp3n fFAmjvs42r2Ib/hQD7TFpRUY3uF2a90= X-Received: by 10.176.32.13 with SMTP id v13mr6791747uak.150.1524188347355; Thu, 19 Apr 2018 18:39:07 -0700 (PDT) Received: from mail-vk0-f41.google.com (mail-vk0-f41.google.com. [209.85.213.41]) by smtp.gmail.com with ESMTPSA id d5sm1078893uad.30.2018.04.19.18.39.07 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 Apr 2018 18:39:07 -0700 (PDT) Received: by mail-vk0-f41.google.com with SMTP id 203so4347721vka.12 for ; Thu, 19 Apr 2018 18:39:07 -0700 (PDT) X-Received: by 10.31.188.13 with SMTP id m13mr6017358vkf.86.1524187929959; Thu, 19 Apr 2018 18:32:09 -0700 (PDT) MIME-Version: 1.0 References: <20180419154124.17512-1-paul.kocialkowski@bootlin.com> <20180419154536.17846-4-paul.kocialkowski@bootlin.com> <1524153860.3416.9.camel@pengutronix.de> In-Reply-To: <1524153860.3416.9.camel@pengutronix.de> From: Tomasz Figa Date: Fri, 20 Apr 2018 01:31:59 +0000 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 08/10] dt-bindings: media: Document bindings for the Sunxi-Cedrus VPU driver To: Philipp Zabel , Paul Kocialkowski Cc: 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 , Rob Herring , Mark Rutland , Maxime Ripard , wens@csie.org, Pawel Osciak , Marek Szyprowski , Kyungmin Park , Hans Verkuil , Sakari Ailus , Arnd Bergmann , Alexandre Courbot Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. > > + > > +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". Best regards, Tomasz