From: Paul Kocialkowski <paul.kocialkowski@bootlin.com>
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: Icenowy Zheng <icenowy@aosc.xyz>,
Florent Revest <revestflo@gmail.com>,
Alexandre Courbot <acourbot@chromium.org>,
Hans Verkuil <hans.verkuil@cisco.com>,
Laurent Pinchart <laurent.pinchart@ideasonboard.com>,
Sakari Ailus <sakari.ailus@linux.intel.com>,
Maxime Ripard <maxime.ripard@bootlin.com>,
Thomas van Kleef <thomas@vitsch.nl>,
"Signed-off-by : Bob Ham" <rah@settrans.net>,
Thomas Petazzoni <thomas.petazzoni@bootlin.com>,
Chen-Yu Tsai <wens@csie.org>
Subject: [PATCH 9/9] ARM: dts: sun7i: Add video engine support for the A20
Date: Fri, 9 Mar 2018 11:14:45 +0100 [thread overview]
Message-ID: <20180309101445.16190-7-paul.kocialkowski@bootlin.com> (raw)
In-Reply-To: <20180309100933.15922-3-paul.kocialkowski@bootlin.com>
From: Thomas van Kleef <thomas@vitsch.nl>
The A20 has a video engine similare to the one in the A13.
Add the device node in the A20.
Signed-off-by: Thomas van Kleef <thomas@vitsch.nl>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
---
arch/arm/boot/dts/sun7i-a20.dtsi | 47 ++++++++++++++++++++++++++++++++++++++++
1 file changed, 47 insertions(+)
diff --git a/arch/arm/boot/dts/sun7i-a20.dtsi b/arch/arm/boot/dts/sun7i-a20.dtsi
index bd0cd3204273..b0d21208af87 100644
--- a/arch/arm/boot/dts/sun7i-a20.dtsi
+++ b/arch/arm/boot/dts/sun7i-a20.dtsi
@@ -53,6 +53,35 @@
/ {
interrupt-parent = <&gic>;
+ reserved-memory {
+ #address-cells = <1>;
+ #size-cells = <1>;
+ ranges;
+
+ /*
+ * MUST TO BE IN THE LOWER 256MB of RAM for the VE!
+ * Src: http://linux-sunxi.org/Sunxi-cedrus "A
+ * limitation of the Allwinner's VPU is the need for
+ * buffers in the lower 256M of RAM. In order to
+ * allocate large sets of data in this area,
+ * "sunxi-cedrus" reserves a DMA pool that is then
+ * used by videobuf's dma-contig backend() to allocate
+ * input and output buffers easily and integrate that
+ * with the v4l QBUF/DQBUF APIs."
+ *
+ * The lower limit is 0x41000000 but the kernel has to
+ * be moved somewhere else in order to use this
+ * region.
+ */
+
+ ve_reserved: cma {
+ compatible = "shared-dma-pool";
+ reg = <0x41000000 0x9000000>;
+ no-map;
+ linux,cma-default;
+ };
+ };
+
aliases {
ethernet0 = &gmac;
};
@@ -451,6 +480,24 @@
};
};
+ ve: video-engine@01c0e000 {
+ compatible = "allwinner,sun4i-a10-video-engine";
+ memory-region = <&ve_reserved>;
+
+ 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 = <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>;
+
+ reg = <0x01c0e000 0x1000>;
+ };
+
mmc0: mmc@1c0f000 {
compatible = "allwinner,sun7i-a20-mmc";
reg = <0x01c0f000 0x1000>;
--
2.16.2
next prev parent reply other threads:[~2018-03-09 10:16 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-09 10:09 [PATCH 0/9] Sunxi-Cedrus driver for the Allwinner Video Engine, using the V4L2 request API Paul Kocialkowski
2018-03-09 10:09 ` [PATCH 1/9] media: vim2m: Try to schedule a m2m device run on request submission Paul Kocialkowski
2018-03-09 10:09 ` [PATCH 2/9] media: videobuf2-v4l2: Copy planes when needed in request qbuf Paul Kocialkowski
2018-03-09 10:14 ` [PATCH 3/9] v4l: Add sunxi Video Engine pixel format Paul Kocialkowski
2018-03-09 10:14 ` [PATCH 4/9] v4l: Add MPEG2 low-level decoder API control Paul Kocialkowski
2018-03-09 10:14 ` [PATCH 5/9] media: platform: Add Sunxi Cedrus decoder driver Paul Kocialkowski
2018-03-09 13:57 ` Maxime Ripard
2018-03-09 14:25 ` Paul Kocialkowski
2018-04-19 14:58 ` Paul Kocialkowski
2018-03-12 17:15 ` [linux-sunxi] " Joonas Kylmälä
2018-04-19 14:56 ` Paul Kocialkowski
2018-03-12 20:29 ` Joonas Kylmälä
2018-04-19 14:56 ` Paul Kocialkowski
2018-03-09 10:14 ` [PATCH 6/9] sunxi-cedrus: Add device tree binding document Paul Kocialkowski
2018-03-09 13:38 ` [linux-sunxi] " Priit Laes
2018-03-09 13:45 ` Paul Kocialkowski
2018-03-18 12:48 ` Rob Herring
2018-04-19 14:55 ` Paul Kocialkowski
2018-03-09 10:14 ` [PATCH 7/9] ARM: dts: sun5i: Use video-engine node Paul Kocialkowski
2018-03-09 10:14 ` [PATCH 8/9] ARM: dts: sun8i: add video engine support for A33 Paul Kocialkowski
2018-03-09 10:14 ` Paul Kocialkowski [this message]
2018-03-12 18:18 ` [linux-sunxi] [PATCH 2/9] media: videobuf2-v4l2: Copy planes when needed in request qbuf Joonas Kylmälä
2018-03-09 10:18 ` [PATCH 0/9] Sunxi-Cedrus driver for the Allwinner Video Engine, using the V4L2 request API Paul Kocialkowski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180309101445.16190-7-paul.kocialkowski@bootlin.com \
--to=paul.kocialkowski@bootlin.com \
--cc=acourbot@chromium.org \
--cc=devicetree@vger.kernel.org \
--cc=hans.verkuil@cisco.com \
--cc=icenowy@aosc.xyz \
--cc=laurent.pinchart@ideasonboard.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=linux-sunxi@googlegroups.com \
--cc=maxime.ripard@bootlin.com \
--cc=rah@settrans.net \
--cc=revestflo@gmail.com \
--cc=sakari.ailus@linux.intel.com \
--cc=thomas.petazzoni@bootlin.com \
--cc=thomas@vitsch.nl \
--cc=wens@csie.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).