]> git.kernelconcepts.de Git - karo-tx-linux.git/blob - Documentation/devicetree/bindings/video/renesas,du.txt
Merge remote-tracking branches 'spi/topic/s3c64xx', 'spi/topic/ti-qspi' and 'spi...
[karo-tx-linux.git] / Documentation / devicetree / bindings / video / 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-r8a7779" for R8A7779 (R-Car H1) compatible DU
7     - "renesas,du-r8a7790" for R8A7790 (R-Car H2) compatible DU
8     - "renesas,du-r8a7791" for R8A7791 (R-Car M2) compatible DU
9
10   - reg: A list of base address and length of each memory resource, one for
11     each entry in the reg-names property.
12   - reg-names: Name of the memory resources. The DU requires one memory
13     resource for the DU core (named "du") and one memory resource for each
14     LVDS encoder (named "lvds.x" with "x" being the LVDS controller numerical
15     index).
16
17   - interrupt-parent: phandle of the parent interrupt controller.
18   - interrupts: Interrupt specifiers for the DU interrupts.
19
20   - clocks: A list of phandles + clock-specifier pairs, one for each entry in
21     the clock-names property.
22   - clock-names: Name of the clocks. This property is model-dependent.
23     - R8A7779 uses a single functional clock. The clock doesn't need to be
24       named.
25     - R8A7790 and R8A7791 use one functional clock per channel and one clock
26       per LVDS encoder. The functional clocks must be named "du.x" with "x"
27       being the channel numerical index. The LVDS clocks must be named
28       "lvds.x" with "x" being the LVDS encoder numerical index.
29     - In addition to the functional and encoder clocks, all DU versions also
30       support externally supplied pixel clocks. Those clocks are optional.
31       When supplied they must be named "dclkin.x" with "x" being the input
32       clock numerical index.
33
34 Required nodes:
35
36 The connections to the DU output video ports are modeled using the OF graph
37 bindings specified in Documentation/devicetree/bindings/graph.txt.
38
39 The following table lists for each supported model the port number
40 corresponding to each DU output.
41
42                 Port 0          Port1           Port2
43 -----------------------------------------------------------------------------
44  R8A7779 (H1)   DPAD 0          DPAD 1          -
45  R8A7790 (H2)   DPAD            LVDS 0          LVDS 1
46  R8A7791 (M2)   DPAD            LVDS 0          -
47
48
49 Example: R8A7790 (R-Car H2) DU
50
51         du: du@feb00000 {
52                 compatible = "renesas,du-r8a7790";
53                 reg = <0 0xfeb00000 0 0x70000>,
54                       <0 0xfeb90000 0 0x1c>,
55                       <0 0xfeb94000 0 0x1c>;
56                 reg-names = "du", "lvds.0", "lvds.1";
57                 interrupt-parent = <&gic>;
58                 interrupts = <0 256 IRQ_TYPE_LEVEL_HIGH>,
59                              <0 268 IRQ_TYPE_LEVEL_HIGH>,
60                              <0 269 IRQ_TYPE_LEVEL_HIGH>;
61                 clocks = <&mstp7_clks R8A7790_CLK_DU0>,
62                          <&mstp7_clks R8A7790_CLK_DU1>,
63                          <&mstp7_clks R8A7790_CLK_DU2>,
64                          <&mstp7_clks R8A7790_CLK_LVDS0>,
65                          <&mstp7_clks R8A7790_CLK_LVDS1>;
66                 clock-names = "du.0", "du.1", "du.2", "lvds.0", "lvds.1";
67
68                 ports {
69                         #address-cells = <1>;
70                         #size-cells = <0>;
71
72                         port@0 {
73                                 reg = <0>;
74                                 du_out_rgb: endpoint {
75                                 };
76                         };
77                         port@1 {
78                                 reg = <1>;
79                                 du_out_lvds0: endpoint {
80                                 };
81                         };
82                         port@2 {
83                                 reg = <2>;
84                                 du_out_lvds1: endpoint {
85                                 };
86                         };
87                 };
88         };