exynos_dp.txt 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. The Exynos display port interface should be configured based on
  2. the type of panel connected to it.
  3. We use two nodes:
  4. -dp-controller node
  5. -dptx-phy node(defined inside dp-controller node)
  6. For the DP-PHY initialization, we use the dptx-phy node.
  7. Required properties for dptx-phy: deprecated, use phys and phy-names
  8. -reg: deprecated
  9. Base address of DP PHY register.
  10. -samsung,enable-mask: deprecated
  11. The bit-mask used to enable/disable DP PHY.
  12. For the Panel initialization, we read data from dp-controller node.
  13. Required properties for dp-controller:
  14. -compatible:
  15. should be "samsung,exynos5-dp".
  16. -reg:
  17. physical base address of the controller and length
  18. of memory mapped region.
  19. -interrupts:
  20. interrupt combiner values.
  21. -clocks:
  22. from common clock binding: handle to dp clock.
  23. -clock-names:
  24. from common clock binding: Shall be "dp".
  25. -phys:
  26. from general PHY binding: the phandle for the PHY device.
  27. -phy-names:
  28. from general PHY binding: Should be "dp".
  29. Optional properties for dp-controller:
  30. -interlaced:
  31. interlace scan mode.
  32. Progressive if defined, Interlaced if not defined
  33. -vsync-active-high:
  34. VSYNC polarity configuration.
  35. High if defined, Low if not defined
  36. -hsync-active-high:
  37. HSYNC polarity configuration.
  38. High if defined, Low if not defined
  39. -samsung,hpd-gpio:
  40. Hotplug detect GPIO.
  41. Indicates which GPIO should be used for hotplug
  42. detection
  43. -video interfaces: Device node can contain video interface port
  44. nodes according to [1].
  45. - display-timings: timings for the connected panel as described by
  46. Documentation/devicetree/bindings/display/panel/display-timing.txt
  47. For the below properties, please refer to Analogix DP binding document:
  48. * Documentation/devicetree/bindings/display/bridge/analogix_dp.txt
  49. -phys (required)
  50. -phy-names (required)
  51. -hpd-gpios (optional)
  52. force-hpd (optional)
  53. Deprecated properties for DisplayPort:
  54. -interlaced: deprecated prop that can parsed from drm_display_mode.
  55. -vsync-active-high: deprecated prop that can parsed from drm_display_mode.
  56. -hsync-active-high: deprecated prop that can parsed from drm_display_mode.
  57. -samsung,ycbcr-coeff: deprecated prop that can parsed from drm_display_mode.
  58. -samsung,dynamic-range: deprecated prop that can parsed from drm_display_mode.
  59. -samsung,color-space: deprecated prop that can parsed from drm_display_info.
  60. -samsung,color-depth: deprecated prop that can parsed from drm_display_info.
  61. -samsung,link-rate: deprecated prop that can reading from monitor by dpcd method.
  62. -samsung,lane-count: deprecated prop that can reading from monitor by dpcd method.
  63. -samsung,hpd-gpio: deprecated name for hpd-gpios.
  64. -------------------------------------------------------------------------------
  65. Example:
  66. SOC specific portion:
  67. dp-controller {
  68. compatible = "samsung,exynos5-dp";
  69. reg = <0x145b0000 0x10000>;
  70. interrupts = <10 3>;
  71. interrupt-parent = <&combiner>;
  72. clocks = <&clock 342>;
  73. clock-names = "dp";
  74. phys = <&dp_phy>;
  75. phy-names = "dp";
  76. };
  77. Board Specific portion:
  78. dp-controller {
  79. display-timings {
  80. native-mode = <&lcd_timing>;
  81. lcd_timing: 1366x768 {
  82. clock-frequency = <70589280>;
  83. hactive = <1366>;
  84. vactive = <768>;
  85. hfront-porch = <40>;
  86. hback-porch = <40>;
  87. hsync-len = <32>;
  88. vback-porch = <10>;
  89. vfront-porch = <12>;
  90. vsync-len = <6>;
  91. };
  92. };
  93. ports {
  94. port@0 {
  95. dp_out: endpoint {
  96. remote-endpoint = <&bridge_in>;
  97. };
  98. };
  99. };
  100. };