1c66ec88fSEmmanuel Vadot* Renesas R-Car Display Unit (DU) 2c66ec88fSEmmanuel Vadot 3c66ec88fSEmmanuel VadotRequired Properties: 4c66ec88fSEmmanuel Vadot 5c66ec88fSEmmanuel Vadot - compatible: must be one of the following. 6*6be33864SEmmanuel Vadot - "renesas,du-r8a7742" for R8A7742 (RZ/G1H) compatible DU 7c66ec88fSEmmanuel Vadot - "renesas,du-r8a7743" for R8A7743 (RZ/G1M) compatible DU 8c66ec88fSEmmanuel Vadot - "renesas,du-r8a7744" for R8A7744 (RZ/G1N) compatible DU 9c66ec88fSEmmanuel Vadot - "renesas,du-r8a7745" for R8A7745 (RZ/G1E) compatible DU 10c66ec88fSEmmanuel Vadot - "renesas,du-r8a77470" for R8A77470 (RZ/G1C) compatible DU 11c66ec88fSEmmanuel Vadot - "renesas,du-r8a774a1" for R8A774A1 (RZ/G2M) compatible DU 12c66ec88fSEmmanuel Vadot - "renesas,du-r8a774b1" for R8A774B1 (RZ/G2N) compatible DU 13c66ec88fSEmmanuel Vadot - "renesas,du-r8a774c0" for R8A774C0 (RZ/G2E) compatible DU 14*6be33864SEmmanuel Vadot - "renesas,du-r8a774e1" for R8A774E1 (RZ/G2H) compatible DU 15c66ec88fSEmmanuel Vadot - "renesas,du-r8a7779" for R8A7779 (R-Car H1) compatible DU 16c66ec88fSEmmanuel Vadot - "renesas,du-r8a7790" for R8A7790 (R-Car H2) compatible DU 17c66ec88fSEmmanuel Vadot - "renesas,du-r8a7791" for R8A7791 (R-Car M2-W) compatible DU 18c66ec88fSEmmanuel Vadot - "renesas,du-r8a7792" for R8A7792 (R-Car V2H) compatible DU 19c66ec88fSEmmanuel Vadot - "renesas,du-r8a7793" for R8A7793 (R-Car M2-N) compatible DU 20c66ec88fSEmmanuel Vadot - "renesas,du-r8a7794" for R8A7794 (R-Car E2) compatible DU 21c66ec88fSEmmanuel Vadot - "renesas,du-r8a7795" for R8A7795 (R-Car H3) compatible DU 22c66ec88fSEmmanuel Vadot - "renesas,du-r8a7796" for R8A7796 (R-Car M3-W) compatible DU 23*6be33864SEmmanuel Vadot - "renesas,du-r8a77961" for R8A77961 (R-Car M3-W+) compatible DU 24c66ec88fSEmmanuel Vadot - "renesas,du-r8a77965" for R8A77965 (R-Car M3-N) compatible DU 25c66ec88fSEmmanuel Vadot - "renesas,du-r8a77970" for R8A77970 (R-Car V3M) compatible DU 26c66ec88fSEmmanuel Vadot - "renesas,du-r8a77980" for R8A77980 (R-Car V3H) compatible DU 27c66ec88fSEmmanuel Vadot - "renesas,du-r8a77990" for R8A77990 (R-Car E3) compatible DU 28c66ec88fSEmmanuel Vadot - "renesas,du-r8a77995" for R8A77995 (R-Car D3) compatible DU 29c66ec88fSEmmanuel Vadot 30c66ec88fSEmmanuel Vadot - reg: the memory-mapped I/O registers base address and length 31c66ec88fSEmmanuel Vadot 32c66ec88fSEmmanuel Vadot - interrupts: Interrupt specifiers for the DU interrupts. 33c66ec88fSEmmanuel Vadot 34c66ec88fSEmmanuel Vadot - clocks: A list of phandles + clock-specifier pairs, one for each entry in 35c66ec88fSEmmanuel Vadot the clock-names property. 36c66ec88fSEmmanuel Vadot - clock-names: Name of the clocks. This property is model-dependent. 37c66ec88fSEmmanuel Vadot - R8A7779 uses a single functional clock. The clock doesn't need to be 38c66ec88fSEmmanuel Vadot named. 39c66ec88fSEmmanuel Vadot - All other DU instances use one functional clock per channel The 40c66ec88fSEmmanuel Vadot functional clocks must be named "du.x" with "x" being the channel 41c66ec88fSEmmanuel Vadot numerical index. 42c66ec88fSEmmanuel Vadot - In addition to the functional clocks, all DU versions also support 43c66ec88fSEmmanuel Vadot externally supplied pixel clocks. Those clocks are optional. When 44c66ec88fSEmmanuel Vadot supplied they must be named "dclkin.x" with "x" being the input clock 45c66ec88fSEmmanuel Vadot numerical index. 46c66ec88fSEmmanuel Vadot 47c66ec88fSEmmanuel Vadot - renesas,cmms: A list of phandles to the CMM instances present in the SoC, 48c66ec88fSEmmanuel Vadot one for each available DU channel. The property shall not be specified for 49c66ec88fSEmmanuel Vadot SoCs that do not provide any CMM (such as V3M and V3H). 50c66ec88fSEmmanuel Vadot 51c66ec88fSEmmanuel Vadot - renesas,vsps: A list of phandle and channel index tuples to the VSPs that 52c66ec88fSEmmanuel Vadot handle the memory interfaces for the DU channels. The phandle identifies the 53c66ec88fSEmmanuel Vadot VSP instance that serves the DU channel, and the channel index identifies 54c66ec88fSEmmanuel Vadot the LIF instance in that VSP. 55c66ec88fSEmmanuel Vadot 56c66ec88fSEmmanuel VadotOptional properties: 57c66ec88fSEmmanuel Vadot - resets: A list of phandle + reset-specifier pairs, one for each entry in 58c66ec88fSEmmanuel Vadot the reset-names property. 59c66ec88fSEmmanuel Vadot - reset-names: Names of the resets. This property is model-dependent. 60c66ec88fSEmmanuel Vadot - All but R8A7779 use one reset for a group of one or more successive 61c66ec88fSEmmanuel Vadot channels. The resets must be named "du.x" with "x" being the numerical 62c66ec88fSEmmanuel Vadot index of the lowest channel in the group. 63c66ec88fSEmmanuel Vadot 64c66ec88fSEmmanuel VadotRequired nodes: 65c66ec88fSEmmanuel Vadot 66c66ec88fSEmmanuel VadotThe connections to the DU output video ports are modeled using the OF graph 67c66ec88fSEmmanuel Vadotbindings specified in Documentation/devicetree/bindings/graph.txt. 68c66ec88fSEmmanuel Vadot 69c66ec88fSEmmanuel VadotThe following table lists for each supported model the port number 70c66ec88fSEmmanuel Vadotcorresponding to each DU output. 71c66ec88fSEmmanuel Vadot 72c66ec88fSEmmanuel Vadot Port0 Port1 Port2 Port3 73c66ec88fSEmmanuel Vadot----------------------------------------------------------------------------- 74*6be33864SEmmanuel Vadot R8A7742 (RZ/G1H) DPAD 0 LVDS 0 LVDS 1 - 75c66ec88fSEmmanuel Vadot R8A7743 (RZ/G1M) DPAD 0 LVDS 0 - - 76c66ec88fSEmmanuel Vadot R8A7744 (RZ/G1N) DPAD 0 LVDS 0 - - 77c66ec88fSEmmanuel Vadot R8A7745 (RZ/G1E) DPAD 0 DPAD 1 - - 78c66ec88fSEmmanuel Vadot R8A77470 (RZ/G1C) DPAD 0 DPAD 1 LVDS 0 - 79c66ec88fSEmmanuel Vadot R8A774A1 (RZ/G2M) DPAD 0 HDMI 0 LVDS 0 - 80c66ec88fSEmmanuel Vadot R8A774B1 (RZ/G2N) DPAD 0 HDMI 0 LVDS 0 - 81c66ec88fSEmmanuel Vadot R8A774C0 (RZ/G2E) DPAD 0 LVDS 0 LVDS 1 - 82*6be33864SEmmanuel Vadot R8A774E1 (RZ/G2H) DPAD 0 HDMI 0 LVDS 0 - 83c66ec88fSEmmanuel Vadot R8A7779 (R-Car H1) DPAD 0 DPAD 1 - - 84c66ec88fSEmmanuel Vadot R8A7790 (R-Car H2) DPAD 0 LVDS 0 LVDS 1 - 85c66ec88fSEmmanuel Vadot R8A7791 (R-Car M2-W) DPAD 0 LVDS 0 - - 86c66ec88fSEmmanuel Vadot R8A7792 (R-Car V2H) DPAD 0 DPAD 1 - - 87c66ec88fSEmmanuel Vadot R8A7793 (R-Car M2-N) DPAD 0 LVDS 0 - - 88c66ec88fSEmmanuel Vadot R8A7794 (R-Car E2) DPAD 0 DPAD 1 - - 89c66ec88fSEmmanuel Vadot R8A7795 (R-Car H3) DPAD 0 HDMI 0 HDMI 1 LVDS 0 90c66ec88fSEmmanuel Vadot R8A7796 (R-Car M3-W) DPAD 0 HDMI 0 LVDS 0 - 91*6be33864SEmmanuel Vadot R8A77961 (R-Car M3-W+) DPAD 0 HDMI 0 LVDS 0 - 92c66ec88fSEmmanuel Vadot R8A77965 (R-Car M3-N) DPAD 0 HDMI 0 LVDS 0 - 93c66ec88fSEmmanuel Vadot R8A77970 (R-Car V3M) DPAD 0 LVDS 0 - - 94c66ec88fSEmmanuel Vadot R8A77980 (R-Car V3H) DPAD 0 LVDS 0 - - 95c66ec88fSEmmanuel Vadot R8A77990 (R-Car E3) DPAD 0 LVDS 0 LVDS 1 - 96c66ec88fSEmmanuel Vadot R8A77995 (R-Car D3) DPAD 0 LVDS 0 LVDS 1 - 97c66ec88fSEmmanuel Vadot 98c66ec88fSEmmanuel Vadot 99c66ec88fSEmmanuel VadotExample: R8A7795 (R-Car H3) ES2.0 DU 100c66ec88fSEmmanuel Vadot 101c66ec88fSEmmanuel Vadot du: display@feb00000 { 102c66ec88fSEmmanuel Vadot compatible = "renesas,du-r8a7795"; 103c66ec88fSEmmanuel Vadot reg = <0 0xfeb00000 0 0x80000>; 104c66ec88fSEmmanuel Vadot interrupts = <GIC_SPI 256 IRQ_TYPE_LEVEL_HIGH>, 105c66ec88fSEmmanuel Vadot <GIC_SPI 268 IRQ_TYPE_LEVEL_HIGH>, 106c66ec88fSEmmanuel Vadot <GIC_SPI 269 IRQ_TYPE_LEVEL_HIGH>, 107c66ec88fSEmmanuel Vadot <GIC_SPI 270 IRQ_TYPE_LEVEL_HIGH>; 108c66ec88fSEmmanuel Vadot clocks = <&cpg CPG_MOD 724>, 109c66ec88fSEmmanuel Vadot <&cpg CPG_MOD 723>, 110c66ec88fSEmmanuel Vadot <&cpg CPG_MOD 722>, 111c66ec88fSEmmanuel Vadot <&cpg CPG_MOD 721>; 112c66ec88fSEmmanuel Vadot clock-names = "du.0", "du.1", "du.2", "du.3"; 113c66ec88fSEmmanuel Vadot resets = <&cpg 724>, <&cpg 722>; 114c66ec88fSEmmanuel Vadot reset-names = "du.0", "du.2"; 115c66ec88fSEmmanuel Vadot renesas,cmms = <&cmm0>, <&cmm1>, <&cmm2>, <&cmm3>; 116c66ec88fSEmmanuel Vadot renesas,vsps = <&vspd0 0>, <&vspd1 0>, <&vspd2 0>, <&vspd0 1>; 117c66ec88fSEmmanuel Vadot 118c66ec88fSEmmanuel Vadot ports { 119c66ec88fSEmmanuel Vadot #address-cells = <1>; 120c66ec88fSEmmanuel Vadot #size-cells = <0>; 121c66ec88fSEmmanuel Vadot 122c66ec88fSEmmanuel Vadot port@0 { 123c66ec88fSEmmanuel Vadot reg = <0>; 124c66ec88fSEmmanuel Vadot du_out_rgb: endpoint { 125c66ec88fSEmmanuel Vadot }; 126c66ec88fSEmmanuel Vadot }; 127c66ec88fSEmmanuel Vadot port@1 { 128c66ec88fSEmmanuel Vadot reg = <1>; 129c66ec88fSEmmanuel Vadot du_out_hdmi0: endpoint { 130c66ec88fSEmmanuel Vadot remote-endpoint = <&dw_hdmi0_in>; 131c66ec88fSEmmanuel Vadot }; 132c66ec88fSEmmanuel Vadot }; 133c66ec88fSEmmanuel Vadot port@2 { 134c66ec88fSEmmanuel Vadot reg = <2>; 135c66ec88fSEmmanuel Vadot du_out_hdmi1: endpoint { 136c66ec88fSEmmanuel Vadot remote-endpoint = <&dw_hdmi1_in>; 137c66ec88fSEmmanuel Vadot }; 138c66ec88fSEmmanuel Vadot }; 139c66ec88fSEmmanuel Vadot port@3 { 140c66ec88fSEmmanuel Vadot reg = <3>; 141c66ec88fSEmmanuel Vadot du_out_lvds0: endpoint { 142c66ec88fSEmmanuel Vadot }; 143c66ec88fSEmmanuel Vadot }; 144c66ec88fSEmmanuel Vadot }; 145c66ec88fSEmmanuel Vadot }; 146