renesas,du.txt 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. * Renesas R-Car Display Unit (DU)
  2. Required Properties:
  3. - compatible: must be one of the following.
  4. - "renesas,du-r8a7779" for R8A7779 (R-Car H1) compatible DU
  5. - "renesas,du-r8a7790" for R8A7790 (R-Car H2) compatible DU
  6. - "renesas,du-r8a7791" for R8A7791 (R-Car M2-W) compatible DU
  7. - "renesas,du-r8a7793" for R8A7793 (R-Car M2-N) compatible DU
  8. - "renesas,du-r8a7794" for R8A7794 (R-Car E2) compatible DU
  9. - reg: A list of base address and length of each memory resource, one for
  10. each entry in the reg-names property.
  11. - reg-names: Name of the memory resources. The DU requires one memory
  12. resource for the DU core (named "du") and one memory resource for each
  13. LVDS encoder (named "lvds.x" with "x" being the LVDS controller numerical
  14. index).
  15. - interrupt-parent: phandle of the parent interrupt controller.
  16. - interrupts: Interrupt specifiers for the DU interrupts.
  17. - clocks: A list of phandles + clock-specifier pairs, one for each entry in
  18. the clock-names property.
  19. - clock-names: Name of the clocks. This property is model-dependent.
  20. - R8A7779 uses a single functional clock. The clock doesn't need to be
  21. named.
  22. - R8A779[0134] use one functional clock per channel and one clock per LVDS
  23. encoder (if available). The functional clocks must be named "du.x" with
  24. "x" being the channel numerical index. The LVDS clocks must be named
  25. "lvds.x" with "x" being the LVDS encoder numerical index.
  26. - In addition to the functional and encoder clocks, all DU versions also
  27. support externally supplied pixel clocks. Those clocks are optional.
  28. When supplied they must be named "dclkin.x" with "x" being the input
  29. clock numerical index.
  30. Required nodes:
  31. The connections to the DU output video ports are modeled using the OF graph
  32. bindings specified in Documentation/devicetree/bindings/graph.txt.
  33. The following table lists for each supported model the port number
  34. corresponding to each DU output.
  35. Port 0 Port1 Port2
  36. -----------------------------------------------------------------------------
  37. R8A7779 (H1) DPAD 0 DPAD 1 -
  38. R8A7790 (H2) DPAD LVDS 0 LVDS 1
  39. R8A7791 (M2-W) DPAD LVDS 0 -
  40. R8A7793 (M2-N) DPAD LVDS 0 -
  41. R8A7794 (E2) DPAD 0 DPAD 1 -
  42. Example: R8A7790 (R-Car H2) DU
  43. du: du@feb00000 {
  44. compatible = "renesas,du-r8a7790";
  45. reg = <0 0xfeb00000 0 0x70000>,
  46. <0 0xfeb90000 0 0x1c>,
  47. <0 0xfeb94000 0 0x1c>;
  48. reg-names = "du", "lvds.0", "lvds.1";
  49. interrupt-parent = <&gic>;
  50. interrupts = <0 256 IRQ_TYPE_LEVEL_HIGH>,
  51. <0 268 IRQ_TYPE_LEVEL_HIGH>,
  52. <0 269 IRQ_TYPE_LEVEL_HIGH>;
  53. clocks = <&mstp7_clks R8A7790_CLK_DU0>,
  54. <&mstp7_clks R8A7790_CLK_DU1>,
  55. <&mstp7_clks R8A7790_CLK_DU2>,
  56. <&mstp7_clks R8A7790_CLK_LVDS0>,
  57. <&mstp7_clks R8A7790_CLK_LVDS1>;
  58. clock-names = "du.0", "du.1", "du.2", "lvds.0", "lvds.1";
  59. ports {
  60. #address-cells = <1>;
  61. #size-cells = <0>;
  62. port@0 {
  63. reg = <0>;
  64. du_out_rgb: endpoint {
  65. };
  66. };
  67. port@1 {
  68. reg = <1>;
  69. du_out_lvds0: endpoint {
  70. };
  71. };
  72. port@2 {
  73. reg = <2>;
  74. du_out_lvds1: endpoint {
  75. };
  76. };
  77. };
  78. };