renesas,du.txt 2.9 KB

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