st,stm32-ltdc.txt 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. * STMicroelectronics STM32 lcd-tft display controller
  2. - ltdc: lcd-tft display controller host
  3. Required properties:
  4. - compatible: "st,stm32-ltdc"
  5. - reg: Physical base address of the IP registers and length of memory mapped region.
  6. - clocks: A list of phandle + clock-specifier pairs, one for each
  7. entry in 'clock-names'.
  8. - clock-names: A list of clock names. For ltdc it should contain:
  9. - "lcd" for the clock feeding the output pixel clock & IP clock.
  10. - resets: reset to be used by the device (defined by use of RCC macro).
  11. Required nodes:
  12. - Video port for DPI RGB output: ltdc has one video port with up to 2
  13. endpoints:
  14. - for external dpi rgb panel or bridge, using gpios.
  15. - for internal dpi input of the MIPI DSI host controller.
  16. Note: These 2 endpoints cannot be activated simultaneously.
  17. * STMicroelectronics STM32 DSI controller specific extensions to Synopsys
  18. DesignWare MIPI DSI host controller
  19. The STMicroelectronics STM32 DSI controller uses the Synopsys DesignWare MIPI
  20. DSI host controller. For all mandatory properties & nodes, please refer
  21. to the related documentation in [5].
  22. Mandatory properties specific to STM32 DSI:
  23. - #address-cells: Should be <1>.
  24. - #size-cells: Should be <0>.
  25. - compatible: "st,stm32-dsi".
  26. - clock-names:
  27. - phy pll reference clock string name, must be "ref".
  28. - resets: see [5].
  29. - reset-names: see [5].
  30. Mandatory nodes specific to STM32 DSI:
  31. - ports: A node containing DSI input & output port nodes with endpoint
  32. definitions as documented in [3] & [4].
  33. - port@0: DSI input port node, connected to the ltdc rgb output port.
  34. - port@1: DSI output port node, connected to a panel or a bridge input port.
  35. - panel or bridge node: A node containing the panel or bridge description as
  36. documented in [6].
  37. - port: panel or bridge port node, connected to the DSI output port (port@1).
  38. Note: You can find more documentation in the following references
  39. [1] Documentation/devicetree/bindings/clock/clock-bindings.txt
  40. [2] Documentation/devicetree/bindings/reset/reset.txt
  41. [3] Documentation/devicetree/bindings/media/video-interfaces.txt
  42. [4] Documentation/devicetree/bindings/graph.txt
  43. [5] Documentation/devicetree/bindings/display/bridge/dw_mipi_dsi.txt
  44. [6] Documentation/devicetree/bindings/display/mipi-dsi-bus.txt
  45. Example 1: RGB panel
  46. / {
  47. ...
  48. soc {
  49. ...
  50. ltdc: display-controller@40016800 {
  51. compatible = "st,stm32-ltdc";
  52. reg = <0x40016800 0x200>;
  53. interrupts = <88>, <89>;
  54. resets = <&rcc STM32F4_APB2_RESET(LTDC)>;
  55. clocks = <&rcc 1 CLK_LCD>;
  56. clock-names = "lcd";
  57. port {
  58. ltdc_out_rgb: endpoint {
  59. };
  60. };
  61. };
  62. };
  63. };
  64. Example 2: DSI panel
  65. / {
  66. ...
  67. soc {
  68. ...
  69. ltdc: display-controller@40016800 {
  70. compatible = "st,stm32-ltdc";
  71. reg = <0x40016800 0x200>;
  72. interrupts = <88>, <89>;
  73. resets = <&rcc STM32F4_APB2_RESET(LTDC)>;
  74. clocks = <&rcc 1 CLK_LCD>;
  75. clock-names = "lcd";
  76. port {
  77. ltdc_out_dsi: endpoint {
  78. remote-endpoint = <&dsi_in>;
  79. };
  80. };
  81. };
  82. dsi: dsi@40016c00 {
  83. #address-cells = <1>;
  84. #size-cells = <0>;
  85. compatible = "st,stm32-dsi";
  86. reg = <0x40016c00 0x800>;
  87. clocks = <&rcc 1 CLK_F469_DSI>, <&clk_hse>;
  88. clock-names = "pclk", "ref";
  89. resets = <&rcc STM32F4_APB2_RESET(DSI)>;
  90. reset-names = "apb";
  91. ports {
  92. #address-cells = <1>;
  93. #size-cells = <0>;
  94. port@0 {
  95. reg = <0>;
  96. dsi_in: endpoint {
  97. remote-endpoint = <&ltdc_out_dsi>;
  98. };
  99. };
  100. port@1 {
  101. reg = <1>;
  102. dsi_out: endpoint {
  103. remote-endpoint = <&dsi_in_panel>;
  104. };
  105. };
  106. };
  107. panel-dsi@0 {
  108. reg = <0>; /* dsi virtual channel (0..3) */
  109. compatible = ...;
  110. enable-gpios = ...;
  111. port {
  112. dsi_in_panel: endpoint {
  113. remote-endpoint = <&dsi_out>;
  114. };
  115. };
  116. };
  117. };
  118. };
  119. };