xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/soc/amlogic/amlogic,canvas.yaml (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2*4882a593Smuzhiyun# Copyright 2019 BayLibre, SAS
3*4882a593Smuzhiyun%YAML 1.2
4*4882a593Smuzhiyun---
5*4882a593Smuzhiyun$id: "http://devicetree.org/schemas/soc/amlogic/amlogic,canvas.yaml#"
6*4882a593Smuzhiyun$schema: "http://devicetree.org/meta-schemas/core.yaml#"
7*4882a593Smuzhiyun
8*4882a593Smuzhiyuntitle: Amlogic Canvas Video Lookup Table
9*4882a593Smuzhiyun
10*4882a593Smuzhiyunmaintainers:
11*4882a593Smuzhiyun  - Neil Armstrong <narmstrong@baylibre.com>
12*4882a593Smuzhiyun  - Maxime Jourdan <mjourdan@baylibre.com>
13*4882a593Smuzhiyun
14*4882a593Smuzhiyundescription: |
15*4882a593Smuzhiyun  A canvas is a collection of metadata that describes a pixel buffer.
16*4882a593Smuzhiyun  Those metadata include: width, height, phyaddr, wrapping and block mode.
17*4882a593Smuzhiyun  Starting with GXBB the endianness can also be described.
18*4882a593Smuzhiyun
19*4882a593Smuzhiyun  Many IPs within Amlogic SoCs rely on canvas indexes to read/write pixel data
20*4882a593Smuzhiyun  rather than use the phy addresses directly. For instance, this is the case for
21*4882a593Smuzhiyun  the video decoders and the display.
22*4882a593Smuzhiyun
23*4882a593Smuzhiyun  Amlogic SoCs have 256 canvas.
24*4882a593Smuzhiyun
25*4882a593Smuzhiyunproperties:
26*4882a593Smuzhiyun  compatible:
27*4882a593Smuzhiyun    oneOf:
28*4882a593Smuzhiyun      - items:
29*4882a593Smuzhiyun          - enum:
30*4882a593Smuzhiyun              - amlogic,meson8-canvas
31*4882a593Smuzhiyun              - amlogic,meson8b-canvas
32*4882a593Smuzhiyun              - amlogic,meson8m2-canvas
33*4882a593Smuzhiyun          - const: amlogic,canvas
34*4882a593Smuzhiyun      - const: amlogic,canvas # GXBB and newer SoCs
35*4882a593Smuzhiyun
36*4882a593Smuzhiyun  reg:
37*4882a593Smuzhiyun    maxItems: 1
38*4882a593Smuzhiyun
39*4882a593Smuzhiyunrequired:
40*4882a593Smuzhiyun  - compatible
41*4882a593Smuzhiyun  - reg
42*4882a593Smuzhiyun
43*4882a593SmuzhiyunadditionalProperties: false
44*4882a593Smuzhiyun
45*4882a593Smuzhiyunexamples:
46*4882a593Smuzhiyun  - |
47*4882a593Smuzhiyun    canvas: video-lut@48 {
48*4882a593Smuzhiyun        compatible = "amlogic,canvas";
49*4882a593Smuzhiyun        reg = <0x48 0x14>;
50*4882a593Smuzhiyun    };
51*4882a593Smuzhiyun
52