From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Google-Smtp-Source: AB8JxZpayyiwpHNUPL4Lw40+ktZ1e/D0BtT9TB86H8RpoefDS3Es5afFCOf1fvJP+wh2bUWcrVlF ARC-Seal: i=1; a=rsa-sha256; t=1525697256; cv=none; d=google.com; s=arc-20160816; b=mdDAJQy/swUyFeXWOKIEIUteFAKsezjxfN0sQp/6VwAHAUx4SQAp1sF+ZjGqK9kVy5 G9GgNOTiCWGHAkv60gNKZNgczO7yYzkHbGKbbxv93g2c4WCPQ9MWhlK5m/M1Ap+npTtR alf9gmcOyZwLKCjC9ZtAxJkYmPhcwqB5pLtl72h680BFFbRf5HFeD2z7UGFAAxI5BPnn OMbiBPRhtE+kkM8uGWop+SITEJ2KHMNAFDu6Xb5gSuJHuqSvz40A1TOYnC/KWCqQHXiY dkJkP9j2z7EVYKLUVvZtUmX+sGAH2Cxi1DFhM87VzTkbuzwn/eb5NvGDSQVgJ6eKuAB8 Z7iw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=sgxIwCx7V0yiftA4rAZtA9D+vl5NcBd3lFkmF+K+sk4=; b=uSYxEBIs7vSHZJdQ3p/MO0Dy2fdJF0/5TuXuyZScAy8H/zReAEHB6EDbr4T5CNmfyc dqWmBCvmoAEDoYM6rriR20OyNQa0pxfwozd5T80MPdrN4GKhjVCWCkAL9QY7dq92Cllf NxXmk3AwTc7qx/DmO2VoC8QL1QJSdkLJJWl4Tb5wouIBHjrfDO4NT3ZdtOKCzgI9ltAV Sj2zH98Wv8uf4bfYNp08db5jiJB5ee1G9qJqhxBG6/UQnxBK/cerv6D5ZpPyf6WqyitJ qfPicQq19Ta7CTrSQvdjFz6kEofKqeVfnSVtEEFSf9U+4wqRgEV9ydluQYu4XUDzJM2G 2Oyg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of paul.kocialkowski@bootlin.com designates 62.4.15.54 as permitted sender) smtp.mailfrom=paul.kocialkowski@bootlin.com Authentication-Results: mx.google.com; spf=pass (google.com: domain of paul.kocialkowski@bootlin.com designates 62.4.15.54 as permitted sender) smtp.mailfrom=paul.kocialkowski@bootlin.com From: Paul Kocialkowski To: linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Mauro Carvalho Chehab , Rob Herring , Mark Rutland , Maxime Ripard , Chen-Yu Tsai , Paul Kocialkowski , Greg Kroah-Hartman , "David S . Miller" , Andrew Morton , Linus Walleij , Randy Dunlap , Hans Verkuil , Arnd Bergmann , Stanimir Varbanov , Sakari Ailus , Philipp Zabel , Ramesh Shanmugasundaram , Yannick Fertre , Thomas Gleixner , Hugues Fruchet , Alexandre Courbot , Florent Revest , Tomasz Figa , Ricardo Ribalda Delgado , Smitha T Murthy , Andy Shevchenko , Sylwester Nawrocki , Randy Li Subject: [PATCH v3 10/14] dt-bindings: media: Document bindings for the Sunxi-Cedrus VPU driver Date: Mon, 7 May 2018 14:44:56 +0200 Message-Id: <20180507124500.20434-11-paul.kocialkowski@bootlin.com> X-Mailer: git-send-email 2.16.3 In-Reply-To: <20180507124500.20434-1-paul.kocialkowski@bootlin.com> References: <20180507124500.20434-1-paul.kocialkowski@bootlin.com> X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: =?utf-8?q?1599809526277615436?= X-GMAIL-MSGID: =?utf-8?q?1599809526277615436?= X-Mailing-List: linux-kernel@vger.kernel.org List-ID: 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 | 58 ++++++++++++++++++++++ 1 file changed, 58 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..4c3f2b596ded --- /dev/null +++ b/Documentation/devicetree/bindings/media/sunxi-cedrus.txt @@ -0,0 +1,58 @@ +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 : must be one of the following compatibles: + - "allwinner,sun4i-a10-video-engine" + - "allwinner,sun5i-a13-video-engine" + - "allwinner,sun7i-a20-video-engine" + - "allwinner,sun8i-a33-video-engine" +- reg : register base and length of VE; +- 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 : VE interrupt number; +- allwinner,sram : SRAM region to use with the VE. + +Optional properties: +- memory-region : CMA pool to use for buffers allocation instead of the + default CMA pool. + +Example: + +reserved-memory { + #address-cells = <1>; + #size-cells = <1>; + ranges; + + /* Address must be kept in the lower 256 MiBs of DRAM for VE. */ + cma_pool: cma@4a000000 { + compatible = "shared-dma-pool"; + size = <0x6000000>; + alloc-ranges = <0x4a000000 0x6000000>; + reusable; + linux,cma-default; + }; +}; + +video-codec@1c0e000 { + compatible = "allwinner,sun7i-a20-video-engine"; + reg = <0x01c0e000 0x1000>; + + 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 = ; + allwinner,sram = <&ve_sram 1>; +}; -- 2.16.3