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 |
Laurent Pinchart | cd8968f | 2014-08-27 18:26:39 +0200 | [diff] [blame] | 8 | - "renesas,du-r8a7779" for R8A7779 (R-Car H1) compatible DU |
| 9 | - "renesas,du-r8a7790" for R8A7790 (R-Car H2) compatible DU |
Laurent Pinchart | f1ceb84a | 2015-07-17 10:44:33 +0300 | [diff] [blame] | 10 | - "renesas,du-r8a7791" for R8A7791 (R-Car M2-W) compatible DU |
Sergei Shtylyov | 73323dd | 2016-08-04 15:01:02 -0700 | [diff] [blame] | 11 | - "renesas,du-r8a7792" for R8A7792 (R-Car V2H) compatible DU |
Laurent Pinchart | f1ceb84a | 2015-07-17 10:44:33 +0300 | [diff] [blame] | 12 | - "renesas,du-r8a7793" for R8A7793 (R-Car M2-N) compatible DU |
Laurent Pinchart | 090425c | 2015-07-17 10:44:33 +0300 | [diff] [blame] | 13 | - "renesas,du-r8a7794" for R8A7794 (R-Car E2) compatible DU |
Laurent Pinchart | 2427b30 | 2015-09-07 17:34:26 +0300 | [diff] [blame] | 14 | - "renesas,du-r8a7795" for R8A7795 (R-Car H3) compatible DU |
Laurent Pinchart | 63b5053 | 2016-09-06 02:11:43 +0300 | [diff] [blame] | 15 | - "renesas,du-r8a7796" for R8A7796 (R-Car M3-W) compatible DU |
Laurent Pinchart | cd8968f | 2014-08-27 18:26:39 +0200 | [diff] [blame] | 16 | |
| 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 Castro | faf4a3f | 2017-10-13 16:22:19 +0100 | [diff] [blame^] | 32 | - 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 Pinchart | 1b30dbd | 2014-12-09 00:24:49 +0200 | [diff] [blame] | 36 | - 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 Pinchart | cd8968f | 2014-08-27 18:26:39 +0200 | [diff] [blame] | 40 | |
Laurent Pinchart | fd57d77 | 2017-07-12 11:43:36 +0300 | [diff] [blame] | 41 | - 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 Pinchart | 06711e6 | 2017-03-27 12:51:04 +0300 | [diff] [blame] | 45 | |
Laurent Pinchart | cd8968f | 2014-08-27 18:26:39 +0200 | [diff] [blame] | 46 | Required nodes: |
| 47 | |
| 48 | The connections to the DU output video ports are modeled using the OF graph |
| 49 | bindings specified in Documentation/devicetree/bindings/graph.txt. |
| 50 | |
| 51 | The following table lists for each supported model the port number |
| 52 | corresponding to each DU output. |
| 53 | |
Fabrizio Castro | faf4a3f | 2017-10-13 16:22:19 +0100 | [diff] [blame^] | 54 | Port0 Port1 Port2 Port3 |
Laurent Pinchart | cd8968f | 2014-08-27 18:26:39 +0200 | [diff] [blame] | 55 | ----------------------------------------------------------------------------- |
Fabrizio Castro | faf4a3f | 2017-10-13 16:22:19 +0100 | [diff] [blame^] | 56 | 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 Pinchart | cd8968f | 2014-08-27 18:26:39 +0200 | [diff] [blame] | 66 | |
| 67 | |
Laurent Pinchart | fd57d77 | 2017-07-12 11:43:36 +0300 | [diff] [blame] | 68 | Example: R8A7795 (R-Car H3) ES2.0 DU |
Laurent Pinchart | cd8968f | 2014-08-27 18:26:39 +0200 | [diff] [blame] | 69 | |
Laurent Pinchart | fd57d77 | 2017-07-12 11:43:36 +0300 | [diff] [blame] | 70 | 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 Pinchart | cd8968f | 2014-08-27 18:26:39 +0200 | [diff] [blame] | 86 | |
| 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 Pinchart | fd57d77 | 2017-07-12 11:43:36 +0300 | [diff] [blame] | 98 | du_out_hdmi0: endpoint { |
| 99 | remote-endpoint = <&dw_hdmi0_in>; |
Laurent Pinchart | cd8968f | 2014-08-27 18:26:39 +0200 | [diff] [blame] | 100 | }; |
| 101 | }; |
| 102 | port@2 { |
| 103 | reg = <2>; |
Laurent Pinchart | fd57d77 | 2017-07-12 11:43:36 +0300 | [diff] [blame] | 104 | du_out_hdmi1: endpoint { |
| 105 | remote-endpoint = <&dw_hdmi1_in>; |
| 106 | }; |
| 107 | }; |
| 108 | port@3 { |
| 109 | reg = <3>; |
| 110 | du_out_lvds0: endpoint { |
Laurent Pinchart | cd8968f | 2014-08-27 18:26:39 +0200 | [diff] [blame] | 111 | }; |
| 112 | }; |
| 113 | }; |
| 114 | }; |