blob: eaa34ef517a65ad4791f37a45eb8bf9a97450925 [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
Fabrizio Castroaab2b522018-09-21 19:08:27 +01008 - "renesas,du-r8a77470" for R8A77470 (RZ/G1C) compatible DU
Laurent Pinchartcd8968f2014-08-27 18:26:39 +02009 - "renesas,du-r8a7779" for R8A7779 (R-Car H1) compatible DU
10 - "renesas,du-r8a7790" for R8A7790 (R-Car H2) compatible DU
Laurent Pinchartf1ceb84a2015-07-17 10:44:33 +030011 - "renesas,du-r8a7791" for R8A7791 (R-Car M2-W) compatible DU
Sergei Shtylyov73323dd2016-08-04 15:01:02 -070012 - "renesas,du-r8a7792" for R8A7792 (R-Car V2H) compatible DU
Laurent Pinchartf1ceb84a2015-07-17 10:44:33 +030013 - "renesas,du-r8a7793" for R8A7793 (R-Car M2-N) compatible DU
Laurent Pinchart090425c2015-07-17 10:44:33 +030014 - "renesas,du-r8a7794" for R8A7794 (R-Car E2) compatible DU
Laurent Pinchart2427b302015-09-07 17:34:26 +030015 - "renesas,du-r8a7795" for R8A7795 (R-Car H3) compatible DU
Laurent Pinchart63b50532016-09-06 02:11:43 +030016 - "renesas,du-r8a7796" for R8A7796 (R-Car M3-W) compatible DU
Kieran Binghamdc814292018-04-26 17:53:31 +010017 - "renesas,du-r8a77965" for R8A77965 (R-Car M3-N) compatible DU
Sergei Shtylyov88fb4a02018-01-19 00:05:58 +030018 - "renesas,du-r8a77970" for R8A77970 (R-Car V3M) compatible DU
Sergei Shtylyov4ffe5aa2018-06-04 22:04:59 +030019 - "renesas,du-r8a77980" for R8A77980 (R-Car V3H) compatible DU
Laurent Pinchartf48097d2018-08-20 17:07:25 +030020 - "renesas,du-r8a77990" for R8A77990 (R-Car E3) compatible DU
Kieran Binghamb378b352018-02-15 08:38:17 +000021 - "renesas,du-r8a77995" for R8A77995 (R-Car D3) compatible DU
Laurent Pinchartcd8968f2014-08-27 18:26:39 +020022
Laurent Pinchart6d2ca852018-01-10 16:05:46 +020023 - reg: the memory-mapped I/O registers base address and length
Laurent Pinchartcd8968f2014-08-27 18:26:39 +020024
Laurent Pinchartcd8968f2014-08-27 18:26:39 +020025 - 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.
Laurent Pinchart6d2ca852018-01-10 16:05:46 +020032 - All other DU instances use one functional clock per channel The
33 functional clocks must be named "du.x" with "x" being the channel
34 numerical index.
35 - In addition to the functional clocks, all DU versions also support
36 externally supplied pixel clocks. Those clocks are optional. When
37 supplied they must be named "dclkin.x" with "x" being the input clock
38 numerical index.
Laurent Pinchartcd8968f2014-08-27 18:26:39 +020039
Laurent Pinchartfd57d772017-07-12 11:43:36 +030040 - vsps: A list of phandle and channel index tuples to the VSPs that handle
41 the memory interfaces for the DU channels. The phandle identifies the VSP
42 instance that serves the DU channel, and the channel index identifies the
43 LIF instance in that VSP.
Laurent Pinchart06711e62017-03-27 12:51:04 +030044
Laurent Pinchartcd8968f2014-08-27 18:26:39 +020045Required nodes:
46
47The connections to the DU output video ports are modeled using the OF graph
48bindings specified in Documentation/devicetree/bindings/graph.txt.
49
50The following table lists for each supported model the port number
51corresponding to each DU output.
52
Kieran Binghama4af8422018-04-26 17:53:30 +010053 Port0 Port1 Port2 Port3
Laurent Pinchartcd8968f2014-08-27 18:26:39 +020054-----------------------------------------------------------------------------
Kieran Binghama4af8422018-04-26 17:53:30 +010055 R8A7743 (RZ/G1M) DPAD 0 LVDS 0 - -
56 R8A7745 (RZ/G1E) DPAD 0 DPAD 1 - -
Fabrizio Castroaab2b522018-09-21 19:08:27 +010057 R8A77470 (RZ/G1C) DPAD 0 DPAD 1 LVDS 0 -
Kieran Binghama4af8422018-04-26 17:53:30 +010058 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 -
Kieran Binghamdc814292018-04-26 17:53:31 +010066 R8A77965 (R-Car M3-N) DPAD 0 HDMI 0 LVDS 0 -
Kieran Binghama4af8422018-04-26 17:53:30 +010067 R8A77970 (R-Car V3M) DPAD 0 LVDS 0 - -
Sergei Shtylyov4ffe5aa2018-06-04 22:04:59 +030068 R8A77980 (R-Car V3H) DPAD 0 LVDS 0 - -
Laurent Pinchartf48097d2018-08-20 17:07:25 +030069 R8A77990 (R-Car E3) DPAD 0 LVDS 0 LVDS 1 -
Kieran Binghama4af8422018-04-26 17:53:30 +010070 R8A77995 (R-Car D3) DPAD 0 LVDS 0 LVDS 1 -
Laurent Pinchartcd8968f2014-08-27 18:26:39 +020071
72
Laurent Pinchartfd57d772017-07-12 11:43:36 +030073Example: R8A7795 (R-Car H3) ES2.0 DU
Laurent Pinchartcd8968f2014-08-27 18:26:39 +020074
Laurent Pinchartfd57d772017-07-12 11:43:36 +030075 du: display@feb00000 {
76 compatible = "renesas,du-r8a7795";
Laurent Pinchart6d2ca852018-01-10 16:05:46 +020077 reg = <0 0xfeb00000 0 0x80000>;
Laurent Pinchartfd57d772017-07-12 11:43:36 +030078 interrupts = <GIC_SPI 256 IRQ_TYPE_LEVEL_HIGH>,
79 <GIC_SPI 268 IRQ_TYPE_LEVEL_HIGH>,
80 <GIC_SPI 269 IRQ_TYPE_LEVEL_HIGH>,
81 <GIC_SPI 270 IRQ_TYPE_LEVEL_HIGH>;
82 clocks = <&cpg CPG_MOD 724>,
83 <&cpg CPG_MOD 723>,
84 <&cpg CPG_MOD 722>,
Laurent Pinchart6d2ca852018-01-10 16:05:46 +020085 <&cpg CPG_MOD 721>;
86 clock-names = "du.0", "du.1", "du.2", "du.3";
Laurent Pinchartfd57d772017-07-12 11:43:36 +030087 vsps = <&vspd0 0>, <&vspd1 0>, <&vspd2 0>, <&vspd0 1>;
Laurent Pinchartcd8968f2014-08-27 18:26:39 +020088
89 ports {
90 #address-cells = <1>;
91 #size-cells = <0>;
92
93 port@0 {
94 reg = <0>;
95 du_out_rgb: endpoint {
96 };
97 };
98 port@1 {
99 reg = <1>;
Laurent Pinchartfd57d772017-07-12 11:43:36 +0300100 du_out_hdmi0: endpoint {
101 remote-endpoint = <&dw_hdmi0_in>;
Laurent Pinchartcd8968f2014-08-27 18:26:39 +0200102 };
103 };
104 port@2 {
105 reg = <2>;
Laurent Pinchartfd57d772017-07-12 11:43:36 +0300106 du_out_hdmi1: endpoint {
107 remote-endpoint = <&dw_hdmi1_in>;
108 };
109 };
110 port@3 {
111 reg = <3>;
112 du_out_lvds0: endpoint {
Laurent Pinchartcd8968f2014-08-27 18:26:39 +0200113 };
114 };
115 };
116 };