xref: /src/sys/contrib/device-tree/Bindings/display/allwinner,sun4i-a10-display-engine.yaml (revision 7ef62cebc2f965b0f640263e179276928885e33d)
1937eaf8bSEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0
2937eaf8bSEmmanuel Vadot%YAML 1.2
3937eaf8bSEmmanuel Vadot---
4937eaf8bSEmmanuel Vadot$id: http://devicetree.org/schemas/display/allwinner,sun4i-a10-display-engine.yaml#
5937eaf8bSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6937eaf8bSEmmanuel Vadot
7582be9a4SEmmanuel Vadottitle: Allwinner A10 Display Engine Pipeline
8937eaf8bSEmmanuel Vadot
9937eaf8bSEmmanuel Vadotmaintainers:
10937eaf8bSEmmanuel Vadot  - Chen-Yu Tsai <wens@csie.org>
11937eaf8bSEmmanuel Vadot  - Maxime Ripard <mripard@kernel.org>
12937eaf8bSEmmanuel Vadot
13937eaf8bSEmmanuel Vadotdescription: |
14937eaf8bSEmmanuel Vadot  The display engine pipeline (and its entry point, since it can be
15937eaf8bSEmmanuel Vadot  either directly the backend or the frontend) is represented as an
16937eaf8bSEmmanuel Vadot  extra node.
17937eaf8bSEmmanuel Vadot
18937eaf8bSEmmanuel Vadot  The Allwinner A10 Display pipeline is composed of several components
19937eaf8bSEmmanuel Vadot  that are going to be documented below:
20937eaf8bSEmmanuel Vadot
21937eaf8bSEmmanuel Vadot  For all connections between components up to the TCONs in the
22937eaf8bSEmmanuel Vadot  display pipeline, when there are multiple components of the same
23937eaf8bSEmmanuel Vadot  type at the same depth, the local endpoint ID must be the same as
24937eaf8bSEmmanuel Vadot  the remote component's index. For example, if the remote endpoint is
25937eaf8bSEmmanuel Vadot  Frontend 1, then the local endpoint ID must be 1.
26937eaf8bSEmmanuel Vadot
27937eaf8bSEmmanuel Vadot  Frontend 0  [0] ------- [0]  Backend 0  [0] ------- [0]  TCON 0
28937eaf8bSEmmanuel Vadot              [1] --   -- [1]             [1] --   -- [1]
29937eaf8bSEmmanuel Vadot                    \ /                         \ /
30937eaf8bSEmmanuel Vadot                     X                           X
31937eaf8bSEmmanuel Vadot                    / \                         / \
32937eaf8bSEmmanuel Vadot              [0] --   -- [0]             [0] --   -- [0]
33937eaf8bSEmmanuel Vadot  Frontend 1  [1] ------- [1]  Backend 1  [1] ------- [1]  TCON 1
34937eaf8bSEmmanuel Vadot
35937eaf8bSEmmanuel Vadot  For a two pipeline system such as the one depicted above, the lines
36937eaf8bSEmmanuel Vadot  represent the connections between the components, while the numbers
37937eaf8bSEmmanuel Vadot  within the square brackets corresponds to the ID of the local endpoint.
38937eaf8bSEmmanuel Vadot
39937eaf8bSEmmanuel Vadot  The same rule also applies to DE 2.0 mixer-TCON connections:
40937eaf8bSEmmanuel Vadot
41937eaf8bSEmmanuel Vadot  Mixer 0  [0] ----------- [0]  TCON 0
42937eaf8bSEmmanuel Vadot           [1] ----   ---- [1]
43937eaf8bSEmmanuel Vadot                   \ /
44937eaf8bSEmmanuel Vadot                    X
45937eaf8bSEmmanuel Vadot                   / \
46937eaf8bSEmmanuel Vadot           [0] ----   ---- [0]
47937eaf8bSEmmanuel Vadot  Mixer 1  [1] ----------- [1]  TCON 1
48937eaf8bSEmmanuel Vadot
49937eaf8bSEmmanuel Vadotproperties:
50937eaf8bSEmmanuel Vadot  compatible:
51937eaf8bSEmmanuel Vadot    enum:
52937eaf8bSEmmanuel Vadot      - allwinner,sun4i-a10-display-engine
53937eaf8bSEmmanuel Vadot      - allwinner,sun5i-a10s-display-engine
54937eaf8bSEmmanuel Vadot      - allwinner,sun5i-a13-display-engine
55937eaf8bSEmmanuel Vadot      - allwinner,sun6i-a31-display-engine
56937eaf8bSEmmanuel Vadot      - allwinner,sun6i-a31s-display-engine
57937eaf8bSEmmanuel Vadot      - allwinner,sun7i-a20-display-engine
58937eaf8bSEmmanuel Vadot      - allwinner,sun8i-a23-display-engine
59937eaf8bSEmmanuel Vadot      - allwinner,sun8i-a33-display-engine
60937eaf8bSEmmanuel Vadot      - allwinner,sun8i-a83t-display-engine
61937eaf8bSEmmanuel Vadot      - allwinner,sun8i-h3-display-engine
62937eaf8bSEmmanuel Vadot      - allwinner,sun8i-r40-display-engine
63937eaf8bSEmmanuel Vadot      - allwinner,sun8i-v3s-display-engine
64937eaf8bSEmmanuel Vadot      - allwinner,sun9i-a80-display-engine
650085f59dSEmmanuel Vadot      - allwinner,sun20i-d1-display-engine
66937eaf8bSEmmanuel Vadot      - allwinner,sun50i-a64-display-engine
67937eaf8bSEmmanuel Vadot      - allwinner,sun50i-h6-display-engine
68937eaf8bSEmmanuel Vadot
69937eaf8bSEmmanuel Vadot  allwinner,pipelines:
702554fe8fSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/phandle-array
712554fe8fSEmmanuel Vadot    minItems: 1
72937eaf8bSEmmanuel Vadot    maxItems: 2
739066e824SEmmanuel Vadot    items:
749066e824SEmmanuel Vadot      maxItems: 1
75937eaf8bSEmmanuel Vadot    description: |
76937eaf8bSEmmanuel Vadot      Available display engine frontends (DE 1.0) or mixers (DE
77937eaf8bSEmmanuel Vadot      2.0/3.0) available.
78937eaf8bSEmmanuel Vadot
79937eaf8bSEmmanuel Vadotrequired:
80937eaf8bSEmmanuel Vadot  - compatible
81937eaf8bSEmmanuel Vadot  - allwinner,pipelines
82937eaf8bSEmmanuel Vadot
83937eaf8bSEmmanuel VadotadditionalProperties: false
84937eaf8bSEmmanuel Vadot
85937eaf8bSEmmanuel Vadotif:
86937eaf8bSEmmanuel Vadot  properties:
87937eaf8bSEmmanuel Vadot    compatible:
88937eaf8bSEmmanuel Vadot      contains:
89937eaf8bSEmmanuel Vadot        enum:
90937eaf8bSEmmanuel Vadot          - allwinner,sun4i-a10-display-engine
91937eaf8bSEmmanuel Vadot          - allwinner,sun6i-a31-display-engine
92937eaf8bSEmmanuel Vadot          - allwinner,sun6i-a31s-display-engine
93937eaf8bSEmmanuel Vadot          - allwinner,sun7i-a20-display-engine
94937eaf8bSEmmanuel Vadot          - allwinner,sun8i-a83t-display-engine
95937eaf8bSEmmanuel Vadot          - allwinner,sun8i-r40-display-engine
96937eaf8bSEmmanuel Vadot          - allwinner,sun9i-a80-display-engine
970085f59dSEmmanuel Vadot          - allwinner,sun20i-d1-display-engine
98937eaf8bSEmmanuel Vadot          - allwinner,sun50i-a64-display-engine
99937eaf8bSEmmanuel Vadot
100937eaf8bSEmmanuel Vadotthen:
101937eaf8bSEmmanuel Vadot  properties:
102937eaf8bSEmmanuel Vadot    allwinner,pipelines:
103937eaf8bSEmmanuel Vadot      minItems: 2
104937eaf8bSEmmanuel Vadot
105937eaf8bSEmmanuel Vadotelse:
106937eaf8bSEmmanuel Vadot  properties:
107937eaf8bSEmmanuel Vadot    allwinner,pipelines:
108937eaf8bSEmmanuel Vadot      maxItems: 1
109937eaf8bSEmmanuel Vadot
110937eaf8bSEmmanuel Vadotexamples:
111937eaf8bSEmmanuel Vadot  - |
112937eaf8bSEmmanuel Vadot      de: display-engine {
113937eaf8bSEmmanuel Vadot          compatible = "allwinner,sun4i-a10-display-engine";
114937eaf8bSEmmanuel Vadot          allwinner,pipelines = <&fe0>, <&fe1>;
115937eaf8bSEmmanuel Vadot      };
116937eaf8bSEmmanuel Vadot
117937eaf8bSEmmanuel Vadot...
118