samsung-fimd.txt 4.5 KB

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