samsung-fimd.txt 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. Device-Tree bindings for Samsung SoC display controller (FIMD)
  2. FIMD (Fully Interactive Mobile Display) is the Display Controller for the
  3. Samsung series of SoCs which transfers the image data from a video memory
  4. buffer to an external LCD interface.
  5. Required properties:
  6. - compatible: value should be one of the following
  7. "samsung,s3c2443-fimd"; /* for S3C24XX SoCs */
  8. "samsung,s3c6400-fimd"; /* for S3C64XX SoCs */
  9. "samsung,s5pv210-fimd"; /* for S5PV210 SoC */
  10. "samsung,exynos3250-fimd"; /* for Exynos3250/3472 SoCs */
  11. "samsung,exynos4210-fimd"; /* for Exynos4 SoCs */
  12. "samsung,exynos4415-fimd"; /* for Exynos4415 SoC */
  13. "samsung,exynos5250-fimd"; /* for Exynos5 SoCs */
  14. - reg: physical base address and length of the FIMD registers set.
  15. - interrupt-parent: should be the phandle of the fimd controller's
  16. parent interrupt controller.
  17. - interrupts: should contain a list of all FIMD IP block interrupts in the
  18. order: FIFO Level, VSYNC, LCD_SYSTEM. The interrupt specifier
  19. format depends on the interrupt controller used.
  20. - interrupt-names: should contain the interrupt names: "fifo", "vsync",
  21. "lcd_sys", in the same order as they were listed in the interrupts
  22. property.
  23. - pinctrl-0: pin control group to be used for this controller.
  24. - pinctrl-names: must contain a "default" entry.
  25. - clocks: must include clock specifiers corresponding to entries in the
  26. clock-names property.
  27. - clock-names: list of clock names sorted in the same order as the clocks
  28. property. Must contain "sclk_fimd" and "fimd".
  29. Optional Properties:
  30. - power-domains: a phandle to FIMD power domain node.
  31. - samsung,invert-vden: video enable signal is inverted
  32. - samsung,invert-vclk: video clock signal is inverted
  33. - display-timings: timing settings for FIMD, as described in document [1].
  34. Can be used in case timings cannot be provided otherwise
  35. or to override timings provided by the panel.
  36. - samsung,sysreg: handle to syscon used to control the system registers
  37. - i80-if-timings: timing configuration for lcd i80 interface support.
  38. - cs-setup: clock cycles for the active period of address signal is enabled
  39. until chip select is enabled.
  40. If not specified, the default value(0) will be used.
  41. - wr-setup: clock cycles for the active period of CS signal is enabled until
  42. write signal is enabled.
  43. If not specified, the default value(0) will be used.
  44. - wr-active: clock cycles for the active period of CS is enabled.
  45. If not specified, the default value(1) will be used.
  46. - wr-hold: clock cycles for the active period of CS is disabled until write
  47. signal is disabled.
  48. If not specified, the default value(0) will be used.
  49. The parameters are defined as:
  50. VCLK(internal) __|??????|_____|??????|_____|??????|_____|??????|_____|??
  51. : : : : :
  52. Address Output --:<XXXXXXXXXXX:XXXXXXXXXXXX:XXXXXXXXXXXX:XXXXXXXXXXXX:XX
  53. | cs-setup+1 | : : :
  54. |<---------->| : : :
  55. Chip Select ???????????????|____________:____________:____________|??
  56. | wr-setup+1 | | wr-hold+1 |
  57. |<---------->| |<---------->|
  58. Write Enable ????????????????????????????|____________|???????????????
  59. | wr-active+1|
  60. |<---------->|
  61. Video Data ----------------------------<XXXXXXXXXXXXXXXXXXXXXXXXX>--
  62. The device node can contain 'port' child nodes according to the bindings defined
  63. in [2]. The following are properties specific to those nodes:
  64. - reg: (required) port index, can be:
  65. 0 - for CAMIF0 input,
  66. 1 - for CAMIF1 input,
  67. 2 - for CAMIF2 input,
  68. 3 - for parallel output,
  69. 4 - for write-back interface
  70. [1]: Documentation/devicetree/bindings/display/display-timing.txt
  71. [2]: Documentation/devicetree/bindings/media/video-interfaces.txt
  72. Example:
  73. SoC specific DT entry:
  74. fimd@11c00000 {
  75. compatible = "samsung,exynos4210-fimd";
  76. interrupt-parent = <&combiner>;
  77. reg = <0x11c00000 0x20000>;
  78. interrupt-names = "fifo", "vsync", "lcd_sys";
  79. interrupts = <11 0>, <11 1>, <11 2>;
  80. clocks = <&clock 140>, <&clock 283>;
  81. clock-names = "sclk_fimd", "fimd";
  82. power-domains = <&pd_lcd0>;
  83. status = "disabled";
  84. };
  85. Board specific DT entry:
  86. fimd@11c00000 {
  87. pinctrl-0 = <&lcd_clk &lcd_data24 &pwm1_out>;
  88. pinctrl-names = "default";
  89. status = "okay";
  90. };