arm,pl11x.txt 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. * ARM PrimeCell Color LCD Controller PL110/PL111
  2. See also Documentation/devicetree/bindings/arm/primecell.txt
  3. Required properties:
  4. - compatible: must be one of:
  5. "arm,pl110", "arm,primecell"
  6. "arm,pl111", "arm,primecell"
  7. - reg: base address and size of the control registers block
  8. - interrupt-names: either the single entry "combined" representing a
  9. combined interrupt output (CLCDINTR), or the four entries
  10. "mbe", "vcomp", "lnbu", "fuf" representing the individual
  11. CLCDMBEINTR, CLCDVCOMPINTR, CLCDLNBUINTR, CLCDFUFINTR interrupts
  12. - interrupts: contains an interrupt specifier for each entry in
  13. interrupt-names
  14. - clock-names: should contain "clcdclk" and "apb_pclk"
  15. - clocks: contains phandle and clock specifier pairs for the entries
  16. in the clock-names property. See
  17. Documentation/devicetree/binding/clock/clock-bindings.txt
  18. Optional properties:
  19. - memory-region: phandle to a node describing memory (see
  20. Documentation/devicetree/bindings/reserved-memory/reserved-memory.txt)
  21. to be used for the framebuffer; if not present, the framebuffer
  22. may be located anywhere in the memory
  23. - max-memory-bandwidth: maximum bandwidth in bytes per second that the
  24. cell's memory interface can handle; if not present, the memory
  25. interface is fast enough to handle all possible video modes
  26. Required sub-nodes:
  27. - port: describes LCD panel signals, following the common binding
  28. for video transmitter interfaces; see
  29. Documentation/devicetree/bindings/media/video-interfaces.txt;
  30. when it is a TFT panel, the port's endpoint must define the
  31. following property:
  32. - arm,pl11x,tft-r0g0b0-pads: an array of three 32-bit values,
  33. defining the way CLD pads are wired up; first value
  34. contains index of the "CLD" external pin (pad) used
  35. as R0 (first bit of the red component), second value
  36. index of the pad used as G0, third value index of the
  37. pad used as B0, see also "LCD panel signal multiplexing
  38. details" paragraphs in the PL110/PL111 Technical
  39. Reference Manuals; this implicitly defines available
  40. color modes, for example:
  41. - PL111 TFT 4:4:4 panel:
  42. arm,pl11x,tft-r0g0b0-pads = <4 15 20>;
  43. - PL110 TFT (1:)5:5:5 panel:
  44. arm,pl11x,tft-r0g0b0-pads = <1 7 13>;
  45. - PL111 TFT (1:)5:5:5 panel:
  46. arm,pl11x,tft-r0g0b0-pads = <3 11 19>;
  47. - PL111 TFT 5:6:5 panel:
  48. arm,pl11x,tft-r0g0b0-pads = <3 10 19>;
  49. - PL110 and PL111 TFT 8:8:8 panel:
  50. arm,pl11x,tft-r0g0b0-pads = <0 8 16>;
  51. - PL110 and PL111 TFT 8:8:8 panel, R & B components swapped:
  52. arm,pl11x,tft-r0g0b0-pads = <16 8 0>;
  53. Example:
  54. clcd@10020000 {
  55. compatible = "arm,pl111", "arm,primecell";
  56. reg = <0x10020000 0x1000>;
  57. interrupt-names = "combined";
  58. interrupts = <0 44 4>;
  59. clocks = <&oscclk1>, <&oscclk2>;
  60. clock-names = "clcdclk", "apb_pclk";
  61. max-memory-bandwidth = <94371840>; /* Bps, 1024x768@60 16bpp */
  62. port {
  63. clcd_pads: endpoint {
  64. remote-endpoint = <&clcd_panel>;
  65. arm,pl11x,tft-r0g0b0-pads = <0 8 16>;
  66. };
  67. };
  68. };
  69. panel {
  70. compatible = "panel-dpi";
  71. port {
  72. clcd_panel: endpoint {
  73. remote-endpoint = <&clcd_pads>;
  74. };
  75. };
  76. panel-timing {
  77. clock-frequency = <25175000>;
  78. hactive = <640>;
  79. hback-porch = <40>;
  80. hfront-porch = <24>;
  81. hsync-len = <96>;
  82. vactive = <480>;
  83. vback-porch = <32>;
  84. vfront-porch = <11>;
  85. vsync-len = <2>;
  86. };
  87. };