Linux-libre 5.4.48-gnu
[librecmc/linux-libre.git] / Documentation / devicetree / bindings / display / renesas,du.txt
1 * Renesas R-Car Display Unit (DU)
2
3 Required Properties:
4
5   - compatible: must be one of the following.
6     - "renesas,du-r8a7743" for R8A7743 (RZ/G1M) compatible DU
7     - "renesas,du-r8a7744" for R8A7744 (RZ/G1N) compatible DU
8     - "renesas,du-r8a7745" for R8A7745 (RZ/G1E) compatible DU
9     - "renesas,du-r8a77470" for R8A77470 (RZ/G1C) compatible DU
10     - "renesas,du-r8a774a1" for R8A774A1 (RZ/G2M) compatible DU
11     - "renesas,du-r8a774c0" for R8A774C0 (RZ/G2E) compatible DU
12     - "renesas,du-r8a7779" for R8A7779 (R-Car H1) compatible DU
13     - "renesas,du-r8a7790" for R8A7790 (R-Car H2) compatible DU
14     - "renesas,du-r8a7791" for R8A7791 (R-Car M2-W) compatible DU
15     - "renesas,du-r8a7792" for R8A7792 (R-Car V2H) compatible DU
16     - "renesas,du-r8a7793" for R8A7793 (R-Car M2-N) compatible DU
17     - "renesas,du-r8a7794" for R8A7794 (R-Car E2) compatible DU
18     - "renesas,du-r8a7795" for R8A7795 (R-Car H3) compatible DU
19     - "renesas,du-r8a7796" for R8A7796 (R-Car M3-W) compatible DU
20     - "renesas,du-r8a77965" for R8A77965 (R-Car M3-N) compatible DU
21     - "renesas,du-r8a77970" for R8A77970 (R-Car V3M) compatible DU
22     - "renesas,du-r8a77980" for R8A77980 (R-Car V3H) compatible DU
23     - "renesas,du-r8a77990" for R8A77990 (R-Car E3) compatible DU
24     - "renesas,du-r8a77995" for R8A77995 (R-Car D3) compatible DU
25
26   - reg: the memory-mapped I/O registers base address and length
27
28   - interrupts: Interrupt specifiers for the DU interrupts.
29
30   - clocks: A list of phandles + clock-specifier pairs, one for each entry in
31     the clock-names property.
32   - clock-names: Name of the clocks. This property is model-dependent.
33     - R8A7779 uses a single functional clock. The clock doesn't need to be
34       named.
35     - All other DU instances use one functional clock per channel The
36       functional clocks must be named "du.x" with "x" being the channel
37       numerical index.
38     - In addition to the functional clocks, all DU versions also support
39       externally supplied pixel clocks. Those clocks are optional. When
40       supplied they must be named "dclkin.x" with "x" being the input clock
41       numerical index.
42
43   - vsps: A list of phandle and channel index tuples to the VSPs that handle
44     the memory interfaces for the DU channels. The phandle identifies the VSP
45     instance that serves the DU channel, and the channel index identifies the
46     LIF instance in that VSP.
47
48 Required nodes:
49
50 The connections to the DU output video ports are modeled using the OF graph
51 bindings specified in Documentation/devicetree/bindings/graph.txt.
52
53 The following table lists for each supported model the port number
54 corresponding to each DU output.
55
56                         Port0          Port1          Port2          Port3
57 -----------------------------------------------------------------------------
58  R8A7743 (RZ/G1M)       DPAD 0         LVDS 0         -              -
59  R8A7744 (RZ/G1N)       DPAD 0         LVDS 0         -              -
60  R8A7745 (RZ/G1E)       DPAD 0         DPAD 1         -              -
61  R8A77470 (RZ/G1C)      DPAD 0         DPAD 1         LVDS 0         -
62  R8A774A1 (RZ/G2M)      DPAD 0         HDMI 0         LVDS 0         -
63  R8A774C0 (RZ/G2E)      DPAD 0         LVDS 0         LVDS 1         -
64  R8A7779 (R-Car H1)     DPAD 0         DPAD 1         -              -
65  R8A7790 (R-Car H2)     DPAD 0         LVDS 0         LVDS 1         -
66  R8A7791 (R-Car M2-W)   DPAD 0         LVDS 0         -              -
67  R8A7792 (R-Car V2H)    DPAD 0         DPAD 1         -              -
68  R8A7793 (R-Car M2-N)   DPAD 0         LVDS 0         -              -
69  R8A7794 (R-Car E2)     DPAD 0         DPAD 1         -              -
70  R8A7795 (R-Car H3)     DPAD 0         HDMI 0         HDMI 1         LVDS 0
71  R8A7796 (R-Car M3-W)   DPAD 0         HDMI 0         LVDS 0         -
72  R8A77965 (R-Car M3-N)  DPAD 0         HDMI 0         LVDS 0         -
73  R8A77970 (R-Car V3M)   DPAD 0         LVDS 0         -              -
74  R8A77980 (R-Car V3H)   DPAD 0         LVDS 0         -              -
75  R8A77990 (R-Car E3)    DPAD 0         LVDS 0         LVDS 1         -
76  R8A77995 (R-Car D3)    DPAD 0         LVDS 0         LVDS 1         -
77
78
79 Example: R8A7795 (R-Car H3) ES2.0 DU
80
81         du: display@feb00000 {
82                 compatible = "renesas,du-r8a7795";
83                 reg = <0 0xfeb00000 0 0x80000>;
84                 interrupts = <GIC_SPI 256 IRQ_TYPE_LEVEL_HIGH>,
85                              <GIC_SPI 268 IRQ_TYPE_LEVEL_HIGH>,
86                              <GIC_SPI 269 IRQ_TYPE_LEVEL_HIGH>,
87                              <GIC_SPI 270 IRQ_TYPE_LEVEL_HIGH>;
88                 clocks = <&cpg CPG_MOD 724>,
89                          <&cpg CPG_MOD 723>,
90                          <&cpg CPG_MOD 722>,
91                          <&cpg CPG_MOD 721>;
92                 clock-names = "du.0", "du.1", "du.2", "du.3";
93                 vsps = <&vspd0 0>, <&vspd1 0>, <&vspd2 0>, <&vspd0 1>;
94
95                 ports {
96                         #address-cells = <1>;
97                         #size-cells = <0>;
98
99                         port@0 {
100                                 reg = <0>;
101                                 du_out_rgb: endpoint {
102                                 };
103                         };
104                         port@1 {
105                                 reg = <1>;
106                                 du_out_hdmi0: endpoint {
107                                         remote-endpoint = <&dw_hdmi0_in>;
108                                 };
109                         };
110                         port@2 {
111                                 reg = <2>;
112                                 du_out_hdmi1: endpoint {
113                                         remote-endpoint = <&dw_hdmi1_in>;
114                                 };
115                         };
116                         port@3 {
117                                 reg = <3>;
118                                 du_out_lvds0: endpoint {
119                                 };
120                         };
121                 };
122         };