Laurent Pinchart | cd8968f | 2014-08-27 18:26:39 +0200 | [diff] [blame] | 1 | * Renesas R-Car Display Unit (DU) |
| 2 | |
| 3 | Required Properties: |
| 4 | |
| 5 | - compatible: must be one of the following. |
Fabrizio Castro | faf4a3f | 2017-10-13 16:22:19 +0100 | [diff] [blame] | 6 | - "renesas,du-r8a7743" for R8A7743 (RZ/G1M) compatible DU |
| 7 | - "renesas,du-r8a7745" for R8A7745 (RZ/G1E) compatible DU |
Fabrizio Castro | aab2b52 | 2018-09-21 19:08:27 +0100 | [diff] [blame^] | 8 | - "renesas,du-r8a77470" for R8A77470 (RZ/G1C) compatible DU |
Laurent Pinchart | cd8968f | 2014-08-27 18:26:39 +0200 | [diff] [blame] | 9 | - "renesas,du-r8a7779" for R8A7779 (R-Car H1) compatible DU |
| 10 | - "renesas,du-r8a7790" for R8A7790 (R-Car H2) compatible DU |
Laurent Pinchart | f1ceb84a | 2015-07-17 10:44:33 +0300 | [diff] [blame] | 11 | - "renesas,du-r8a7791" for R8A7791 (R-Car M2-W) compatible DU |
Sergei Shtylyov | 73323dd | 2016-08-04 15:01:02 -0700 | [diff] [blame] | 12 | - "renesas,du-r8a7792" for R8A7792 (R-Car V2H) compatible DU |
Laurent Pinchart | f1ceb84a | 2015-07-17 10:44:33 +0300 | [diff] [blame] | 13 | - "renesas,du-r8a7793" for R8A7793 (R-Car M2-N) compatible DU |
Laurent Pinchart | 090425c | 2015-07-17 10:44:33 +0300 | [diff] [blame] | 14 | - "renesas,du-r8a7794" for R8A7794 (R-Car E2) compatible DU |
Laurent Pinchart | 2427b30 | 2015-09-07 17:34:26 +0300 | [diff] [blame] | 15 | - "renesas,du-r8a7795" for R8A7795 (R-Car H3) compatible DU |
Laurent Pinchart | 63b5053 | 2016-09-06 02:11:43 +0300 | [diff] [blame] | 16 | - "renesas,du-r8a7796" for R8A7796 (R-Car M3-W) compatible DU |
Kieran Bingham | dc81429 | 2018-04-26 17:53:31 +0100 | [diff] [blame] | 17 | - "renesas,du-r8a77965" for R8A77965 (R-Car M3-N) compatible DU |
Sergei Shtylyov | 88fb4a0 | 2018-01-19 00:05:58 +0300 | [diff] [blame] | 18 | - "renesas,du-r8a77970" for R8A77970 (R-Car V3M) compatible DU |
Sergei Shtylyov | 4ffe5aa | 2018-06-04 22:04:59 +0300 | [diff] [blame] | 19 | - "renesas,du-r8a77980" for R8A77980 (R-Car V3H) compatible DU |
Laurent Pinchart | f48097d | 2018-08-20 17:07:25 +0300 | [diff] [blame] | 20 | - "renesas,du-r8a77990" for R8A77990 (R-Car E3) compatible DU |
Kieran Bingham | b378b35 | 2018-02-15 08:38:17 +0000 | [diff] [blame] | 21 | - "renesas,du-r8a77995" for R8A77995 (R-Car D3) compatible DU |
Laurent Pinchart | cd8968f | 2014-08-27 18:26:39 +0200 | [diff] [blame] | 22 | |
Laurent Pinchart | 6d2ca85 | 2018-01-10 16:05:46 +0200 | [diff] [blame] | 23 | - reg: the memory-mapped I/O registers base address and length |
Laurent Pinchart | cd8968f | 2014-08-27 18:26:39 +0200 | [diff] [blame] | 24 | |
Laurent Pinchart | cd8968f | 2014-08-27 18:26:39 +0200 | [diff] [blame] | 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. |
Laurent Pinchart | 6d2ca85 | 2018-01-10 16:05:46 +0200 | [diff] [blame] | 32 | - 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 Pinchart | cd8968f | 2014-08-27 18:26:39 +0200 | [diff] [blame] | 39 | |
Laurent Pinchart | fd57d77 | 2017-07-12 11:43:36 +0300 | [diff] [blame] | 40 | - 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 Pinchart | 06711e6 | 2017-03-27 12:51:04 +0300 | [diff] [blame] | 44 | |
Laurent Pinchart | cd8968f | 2014-08-27 18:26:39 +0200 | [diff] [blame] | 45 | Required nodes: |
| 46 | |
| 47 | The connections to the DU output video ports are modeled using the OF graph |
| 48 | bindings specified in Documentation/devicetree/bindings/graph.txt. |
| 49 | |
| 50 | The following table lists for each supported model the port number |
| 51 | corresponding to each DU output. |
| 52 | |
Kieran Bingham | a4af842 | 2018-04-26 17:53:30 +0100 | [diff] [blame] | 53 | Port0 Port1 Port2 Port3 |
Laurent Pinchart | cd8968f | 2014-08-27 18:26:39 +0200 | [diff] [blame] | 54 | ----------------------------------------------------------------------------- |
Kieran Bingham | a4af842 | 2018-04-26 17:53:30 +0100 | [diff] [blame] | 55 | R8A7743 (RZ/G1M) DPAD 0 LVDS 0 - - |
| 56 | R8A7745 (RZ/G1E) DPAD 0 DPAD 1 - - |
Fabrizio Castro | aab2b52 | 2018-09-21 19:08:27 +0100 | [diff] [blame^] | 57 | R8A77470 (RZ/G1C) DPAD 0 DPAD 1 LVDS 0 - |
Kieran Bingham | a4af842 | 2018-04-26 17:53:30 +0100 | [diff] [blame] | 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 - |
Kieran Bingham | dc81429 | 2018-04-26 17:53:31 +0100 | [diff] [blame] | 66 | R8A77965 (R-Car M3-N) DPAD 0 HDMI 0 LVDS 0 - |
Kieran Bingham | a4af842 | 2018-04-26 17:53:30 +0100 | [diff] [blame] | 67 | R8A77970 (R-Car V3M) DPAD 0 LVDS 0 - - |
Sergei Shtylyov | 4ffe5aa | 2018-06-04 22:04:59 +0300 | [diff] [blame] | 68 | R8A77980 (R-Car V3H) DPAD 0 LVDS 0 - - |
Laurent Pinchart | f48097d | 2018-08-20 17:07:25 +0300 | [diff] [blame] | 69 | R8A77990 (R-Car E3) DPAD 0 LVDS 0 LVDS 1 - |
Kieran Bingham | a4af842 | 2018-04-26 17:53:30 +0100 | [diff] [blame] | 70 | R8A77995 (R-Car D3) DPAD 0 LVDS 0 LVDS 1 - |
Laurent Pinchart | cd8968f | 2014-08-27 18:26:39 +0200 | [diff] [blame] | 71 | |
| 72 | |
Laurent Pinchart | fd57d77 | 2017-07-12 11:43:36 +0300 | [diff] [blame] | 73 | Example: R8A7795 (R-Car H3) ES2.0 DU |
Laurent Pinchart | cd8968f | 2014-08-27 18:26:39 +0200 | [diff] [blame] | 74 | |
Laurent Pinchart | fd57d77 | 2017-07-12 11:43:36 +0300 | [diff] [blame] | 75 | du: display@feb00000 { |
| 76 | compatible = "renesas,du-r8a7795"; |
Laurent Pinchart | 6d2ca85 | 2018-01-10 16:05:46 +0200 | [diff] [blame] | 77 | reg = <0 0xfeb00000 0 0x80000>; |
Laurent Pinchart | fd57d77 | 2017-07-12 11:43:36 +0300 | [diff] [blame] | 78 | 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 Pinchart | 6d2ca85 | 2018-01-10 16:05:46 +0200 | [diff] [blame] | 85 | <&cpg CPG_MOD 721>; |
| 86 | clock-names = "du.0", "du.1", "du.2", "du.3"; |
Laurent Pinchart | fd57d77 | 2017-07-12 11:43:36 +0300 | [diff] [blame] | 87 | vsps = <&vspd0 0>, <&vspd1 0>, <&vspd2 0>, <&vspd0 1>; |
Laurent Pinchart | cd8968f | 2014-08-27 18:26:39 +0200 | [diff] [blame] | 88 | |
| 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 Pinchart | fd57d77 | 2017-07-12 11:43:36 +0300 | [diff] [blame] | 100 | du_out_hdmi0: endpoint { |
| 101 | remote-endpoint = <&dw_hdmi0_in>; |
Laurent Pinchart | cd8968f | 2014-08-27 18:26:39 +0200 | [diff] [blame] | 102 | }; |
| 103 | }; |
| 104 | port@2 { |
| 105 | reg = <2>; |
Laurent Pinchart | fd57d77 | 2017-07-12 11:43:36 +0300 | [diff] [blame] | 106 | du_out_hdmi1: endpoint { |
| 107 | remote-endpoint = <&dw_hdmi1_in>; |
| 108 | }; |
| 109 | }; |
| 110 | port@3 { |
| 111 | reg = <3>; |
| 112 | du_out_lvds0: endpoint { |
Laurent Pinchart | cd8968f | 2014-08-27 18:26:39 +0200 | [diff] [blame] | 113 | }; |
| 114 | }; |
| 115 | }; |
| 116 | }; |