tilcdc.txt 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. Device-Tree bindings for tilcdc DRM driver
  2. Required properties:
  3. - compatible: value should be one of the following:
  4. - "ti,am33xx-tilcdc" for AM335x based boards
  5. - "ti,da850-tilcdc" for DA850/AM18x/OMAP-L138 based boards
  6. - interrupts: the interrupt number
  7. - reg: base address and size of the LCDC device
  8. Recommended properties:
  9. - ti,hwmods: Name of the hwmod associated to the LCDC
  10. Optional properties:
  11. - max-bandwidth: The maximum pixels per second that the memory
  12. interface / lcd controller combination can sustain
  13. - max-width: The maximum horizontal pixel width supported by
  14. the lcd controller.
  15. - max-pixelclock: The maximum pixel clock that can be supported
  16. by the lcd controller in KHz.
  17. - blue-and-red-wiring: Recognized values "straight" or "crossed".
  18. This property deals with the LCDC revision 2 (found on AM335x)
  19. color errata [1].
  20. - "straight" indicates normal wiring that supports RGB565,
  21. BGR888, and XBGR8888 color formats.
  22. - "crossed" indicates wiring that has blue and red wires
  23. crossed. This setup supports BGR565, RGB888 and XRGB8888
  24. formats.
  25. - If the property is not present or its value is not recognized
  26. the legacy mode is assumed. This configuration supports RGB565,
  27. RGB888 and XRGB8888 formats. However, depending on wiring, the red
  28. and blue colors are swapped in either 16 or 24-bit color modes.
  29. Optional nodes:
  30. - port/ports: to describe a connection to an external encoder. The
  31. binding follows Documentation/devicetree/bindings/graph.txt and
  32. supports a single port with a single endpoint.
  33. - See also Documentation/devicetree/bindings/display/tilcdc/panel.txt and
  34. Documentation/devicetree/bindings/display/tilcdc/tfp410.txt for connecting
  35. tfp410 DVI encoder or lcd panel to lcdc
  36. [1] There is an errata about AM335x color wiring. For 16-bit color mode
  37. the wires work as they should (LCD_DATA[0:4] is for Blue[3:7]),
  38. but for 24 bit color modes the wiring of blue and red components is
  39. crossed and LCD_DATA[0:4] is for Red[3:7] and LCD_DATA[11:15] is
  40. for Blue[3-7]. For more details see section 3.1.1 in AM335x
  41. Silicon Errata:
  42. http://www.ti.com/general/docs/lit/getliterature.tsp?baseLiteratureNumber=sprz360
  43. Example:
  44. fb: fb@4830e000 {
  45. compatible = "ti,am33xx-tilcdc", "ti,da850-tilcdc";
  46. reg = <0x4830e000 0x1000>;
  47. interrupt-parent = <&intc>;
  48. interrupts = <36>;
  49. ti,hwmods = "lcdc";
  50. blue-and-red-wiring = "crossed";
  51. port {
  52. lcdc_0: endpoint@0 {
  53. remote-endpoint = <&hdmi_0>;
  54. };
  55. };
  56. };
  57. tda19988: tda19988 {
  58. compatible = "nxp,tda998x";
  59. reg = <0x70>;
  60. pinctrl-names = "default", "off";
  61. pinctrl-0 = <&nxp_hdmi_bonelt_pins>;
  62. pinctrl-1 = <&nxp_hdmi_bonelt_off_pins>;
  63. port {
  64. hdmi_0: endpoint@0 {
  65. remote-endpoint = <&lcdc_0>;
  66. };
  67. };
  68. };