Received: by 10.192.165.156 with SMTP id m28csp866168imm; Thu, 19 Apr 2018 08:49:40 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+TiuK1TIAbp5cI8hhzyXo2N3uDpaRt6yiHEmn2JQT7mbSPY6UrF2g+XfPxzAzFyo/VN/qs X-Received: by 10.101.80.131 with SMTP id r3mr5536492pgp.284.1524152980648; Thu, 19 Apr 2018 08:49:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524152980; cv=none; d=google.com; s=arc-20160816; b=h1kui/BH4+e4nNtgctFCG8MpMh2vafjeijMAaTXD698vIzLBxTeb37VOZQwyRxagK1 9LXVaCS51EFj5eDUW4iRxFjXKexwc9pLtgSJf/CjJ49acSd8G/R/axqlNHKiEbmV2TFT zvN5is6XiByoZ3wiTHCLIvPWTZarvwFijmq7pNhp0UO/NZ43a3lZe0XkITdfwR4rtkZz zBw08mlWvbHEUjF5l+9EYBQAXQJ2EpK9e+kleAY9lOu9oc59/HOpn6rmJhOOdFnRTUR+ +kGMQH96vNX4n1UMZOjzRRmRbkegKSZyXQYxnVSK07ZHBIxR1XHMU3JhI6VF8HPFseKp nElg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=K+U/fIeuB6QJNY0sPnV+pRpTRtGgFg2gxqIMfAkwU3c=; b=cy/bficFXi2v5xgrrQ1e69KyrwtiF2zs/9ugdsvhcLEt7obMNeym/Z4NgBVh85CLMf ZNo4dzod1HObfOVstW8rGGkBHiJhtNVdeASQFMlqNtBDBfvHjM5DlJOkxjOzsIIB9dQw ZULzYOJOchXRsdOd0LENirxq4R2fMYQmDc0cmT3JqIjV2YRDJaofdzM0yhlQ8IEFi8fl GdgABzllz7NtAzdWiwpmWovOXcEpdlWF1np5PsD/oE8yte/rYioArQRcrf2sI5mCBdkE Y6E3SXxGo1thHzfyfATI4BbdFwF4p93+SYc0KdrsnfrhT4yXgSi85UVJdHsQGd8T3/ic LKUg== 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 h16-v6si3715878pli.474.2018.04.19.08.49.25; Thu, 19 Apr 2018 08:49:40 -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 S1753469AbeDSPrB (ORCPT + 99 others); Thu, 19 Apr 2018 11:47:01 -0400 Received: from mail.bootlin.com ([62.4.15.54]:42937 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753442AbeDSPq6 (ORCPT ); Thu, 19 Apr 2018 11:46:58 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 9EDFC20893; Thu, 19 Apr 2018 17:46:56 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.0 Received: from localhost.localdomain (LStLambert-657-1-97-87.w90-63.abo.wanadoo.fr [90.63.216.87]) by mail.bootlin.com (Postfix) with ESMTPSA id 2E91220824; Thu, 19 Apr 2018 17:46:56 +0200 (CEST) From: Paul Kocialkowski To: linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com Cc: Mauro Carvalho Chehab , Rob Herring , Mark Rutland , Maxime Ripard , Chen-Yu Tsai , Pawel Osciak , Marek Szyprowski , Kyungmin Park , Hans Verkuil , Sakari Ailus , Philipp Zabel , Arnd Bergmann , Alexandre Courbot , Tomasz Figa , Paul Kocialkowski Subject: [PATCH v2 08/10] dt-bindings: media: Document bindings for the Sunxi-Cedrus VPU driver Date: Thu, 19 Apr 2018 17:45:34 +0200 Message-Id: <20180419154536.17846-4-paul.kocialkowski@bootlin.com> X-Mailer: git-send-email 2.16.3 In-Reply-To: <20180419154124.17512-1-paul.kocialkowski@bootlin.com> References: <20180419154124.17512-1-paul.kocialkowski@bootlin.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. + +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 { + compatible = "allwinner,sun4i-a10-video-engine"; + reg = <0x01c0e000 0x1000>; + memory-region = <&ve_memory>; + + clocks = <&ccu CLK_AHB_VE>, <&ccu CLK_VE>, + <&ccu CLK_DRAM_VE>; + clock-names = "ahb", "mod", "ram"; + + assigned-clocks = <&ccu CLK_VE>; + assigned-clock-rates = <320000000>; + + resets = <&ccu RST_VE>; + + interrupts = ; +}; -- 2.16.3