blob: cd48aba3bc8c97630613ac6142f1be23b1a1a501 [file] [log] [blame]
Laurent Pinchartcd8968f2014-08-27 18:26:39 +02001* Renesas R-Car Display Unit (DU)
2
3Required Properties:
4
5 - compatible: must be one of the following.
Fabrizio Castrofaf4a3f2017-10-13 16:22:19 +01006 - "renesas,du-r8a7743" for R8A7743 (RZ/G1M) compatible DU
7 - "renesas,du-r8a7745" for R8A7745 (RZ/G1E) compatible DU
Laurent Pinchartcd8968f2014-08-27 18:26:39 +02008 - "renesas,du-r8a7779" for R8A7779 (R-Car H1) compatible DU
9 - "renesas,du-r8a7790" for R8A7790 (R-Car H2) compatible DU
Laurent Pinchartf1ceb84a2015-07-17 10:44:33 +030010 - "renesas,du-r8a7791" for R8A7791 (R-Car M2-W) compatible DU
Sergei Shtylyov73323dd2016-08-04 15:01:02 -070011 - "renesas,du-r8a7792" for R8A7792 (R-Car V2H) compatible DU
Laurent Pinchartf1ceb84a2015-07-17 10:44:33 +030012 - "renesas,du-r8a7793" for R8A7793 (R-Car M2-N) compatible DU
Laurent Pinchart090425c2015-07-17 10:44:33 +030013 - "renesas,du-r8a7794" for R8A7794 (R-Car E2) compatible DU
Laurent Pinchart2427b302015-09-07 17:34:26 +030014 - "renesas,du-r8a7795" for R8A7795 (R-Car H3) compatible DU
Laurent Pinchart63b50532016-09-06 02:11:43 +030015 - "renesas,du-r8a7796" for R8A7796 (R-Car M3-W) compatible DU
Laurent Pinchartcd8968f2014-08-27 18:26:39 +020016
17 - reg: A list of base address and length of each memory resource, one for
18 each entry in the reg-names property.
19 - reg-names: Name of the memory resources. The DU requires one memory
20 resource for the DU core (named "du") and one memory resource for each
21 LVDS encoder (named "lvds.x" with "x" being the LVDS controller numerical
22 index).
23
24 - interrupt-parent: phandle of the parent interrupt controller.
25 - interrupts: Interrupt specifiers for the DU interrupts.
26
27 - clocks: A list of phandles + clock-specifier pairs, one for each entry in
28 the clock-names property.
29 - clock-names: Name of the clocks. This property is model-dependent.
30 - R8A7779 uses a single functional clock. The clock doesn't need to be
31 named.
Fabrizio Castrofaf4a3f2017-10-13 16:22:19 +010032 - All other DU instances use one functional clock per channel and one
33 clock per LVDS encoder (if available). The functional clocks must be
34 named "du.x" with "x" being the channel numerical index. The LVDS clocks
35 must be named "lvds.x" with "x" being the LVDS encoder numerical index.
Laurent Pinchart1b30dbd2014-12-09 00:24:49 +020036 - In addition to the functional and encoder clocks, all DU versions also
37 support externally supplied pixel clocks. Those clocks are optional.
38 When supplied they must be named "dclkin.x" with "x" being the input
39 clock numerical index.
Laurent Pinchartcd8968f2014-08-27 18:26:39 +020040
Laurent Pinchartfd57d772017-07-12 11:43:36 +030041 - vsps: A list of phandle and channel index tuples to the VSPs that handle
42 the memory interfaces for the DU channels. The phandle identifies the VSP
43 instance that serves the DU channel, and the channel index identifies the
44 LIF instance in that VSP.
Laurent Pinchart06711e62017-03-27 12:51:04 +030045
Laurent Pinchartcd8968f2014-08-27 18:26:39 +020046Required nodes:
47
48The connections to the DU output video ports are modeled using the OF graph
49bindings specified in Documentation/devicetree/bindings/graph.txt.
50
51The following table lists for each supported model the port number
52corresponding to each DU output.
53
Fabrizio Castrofaf4a3f2017-10-13 16:22:19 +010054 Port0 Port1 Port2 Port3
Laurent Pinchartcd8968f2014-08-27 18:26:39 +020055-----------------------------------------------------------------------------
Fabrizio Castrofaf4a3f2017-10-13 16:22:19 +010056 R8A7743 (RZ/G1M) DPAD 0 LVDS 0 - -
57 R8A7745 (RZ/G1E) DPAD 0 DPAD 1 - -
58 R8A7779 (R-Car H1) DPAD 0 DPAD 1 - -
59 R8A7790 (R-Car H2) DPAD 0 LVDS 0 LVDS 1 -
60 R8A7791 (R-Car M2-W) DPAD 0 LVDS 0 - -
61 R8A7792 (R-Car V2H) DPAD 0 DPAD 1 - -
62 R8A7793 (R-Car M2-N) DPAD 0 LVDS 0 - -
63 R8A7794 (R-Car E2) DPAD 0 DPAD 1 - -
64 R8A7795 (R-Car H3) DPAD 0 HDMI 0 HDMI 1 LVDS 0
65 R8A7796 (R-Car M3-W) DPAD 0 HDMI 0 LVDS 0 -
Laurent Pinchartcd8968f2014-08-27 18:26:39 +020066
67
Laurent Pinchartfd57d772017-07-12 11:43:36 +030068Example: R8A7795 (R-Car H3) ES2.0 DU
Laurent Pinchartcd8968f2014-08-27 18:26:39 +020069
Laurent Pinchartfd57d772017-07-12 11:43:36 +030070 du: display@feb00000 {
71 compatible = "renesas,du-r8a7795";
72 reg = <0 0xfeb00000 0 0x80000>,
73 <0 0xfeb90000 0 0x14>;
74 reg-names = "du", "lvds.0";
75 interrupts = <GIC_SPI 256 IRQ_TYPE_LEVEL_HIGH>,
76 <GIC_SPI 268 IRQ_TYPE_LEVEL_HIGH>,
77 <GIC_SPI 269 IRQ_TYPE_LEVEL_HIGH>,
78 <GIC_SPI 270 IRQ_TYPE_LEVEL_HIGH>;
79 clocks = <&cpg CPG_MOD 724>,
80 <&cpg CPG_MOD 723>,
81 <&cpg CPG_MOD 722>,
82 <&cpg CPG_MOD 721>,
83 <&cpg CPG_MOD 727>;
84 clock-names = "du.0", "du.1", "du.2", "du.3", "lvds.0";
85 vsps = <&vspd0 0>, <&vspd1 0>, <&vspd2 0>, <&vspd0 1>;
Laurent Pinchartcd8968f2014-08-27 18:26:39 +020086
87 ports {
88 #address-cells = <1>;
89 #size-cells = <0>;
90
91 port@0 {
92 reg = <0>;
93 du_out_rgb: endpoint {
94 };
95 };
96 port@1 {
97 reg = <1>;
Laurent Pinchartfd57d772017-07-12 11:43:36 +030098 du_out_hdmi0: endpoint {
99 remote-endpoint = <&dw_hdmi0_in>;
Laurent Pinchartcd8968f2014-08-27 18:26:39 +0200100 };
101 };
102 port@2 {
103 reg = <2>;
Laurent Pinchartfd57d772017-07-12 11:43:36 +0300104 du_out_hdmi1: endpoint {
105 remote-endpoint = <&dw_hdmi1_in>;
106 };
107 };
108 port@3 {
109 reg = <3>;
110 du_out_lvds0: endpoint {
Laurent Pinchartcd8968f2014-08-27 18:26:39 +0200111 };
112 };
113 };
114 };