summaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree/bindings/soc/amlogic/amlogic,canvas.txt
blob: e876f3ce54f6de6bc1f8f76e9bbc45192e379cec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
Amlogic Canvas
================================

A canvas is a collection of metadata that describes a pixel buffer.
Those metadata include: width, height, phyaddr, wrapping and block mode.
Starting with GXBB the endianness can also be described.

Many IPs within Amlogic SoCs rely on canvas indexes to read/write pixel data
rather than use the phy addresses directly. For instance, this is the case for
the video decoders and the display.

Amlogic SoCs have 256 canvas.

Device Tree Bindings:
---------------------

Video Lookup Table
--------------------------

Required properties:
- compatible: has to be one of:
		- "amlogic,meson8-canvas", "amlogic,canvas" on Meson8
		- "amlogic,meson8b-canvas", "amlogic,canvas" on Meson8b
		- "amlogic,meson8m2-canvas", "amlogic,canvas" on Meson8m2
		- "amlogic,canvas" on GXBB and newer
- reg: Base physical address and size of the canvas registers.

Example:

canvas: video-lut@48 {
	compatible = "amlogic,canvas";
	reg = <0x0 0x48 0x0 0x14>;
};