sun4i-drm.txt 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307
  1. Allwinner A10 Display Pipeline
  2. ==============================
  3. The Allwinner A10 Display pipeline is composed of several components
  4. that are going to be documented below:
  5. TV Encoder
  6. ----------
  7. The TV Encoder supports the composite and VGA output. It is one end of
  8. the pipeline.
  9. Required properties:
  10. - compatible: value should be "allwinner,sun4i-a10-tv-encoder".
  11. - reg: base address and size of memory-mapped region
  12. - clocks: the clocks driving the TV encoder
  13. - resets: phandle to the reset controller driving the encoder
  14. - ports: A ports node with endpoint definitions as defined in
  15. Documentation/devicetree/bindings/media/video-interfaces.txt. The
  16. first port should be the input endpoint.
  17. TCON
  18. ----
  19. The TCON acts as a timing controller for RGB, LVDS and TV interfaces.
  20. Required properties:
  21. - compatible: value must be either:
  22. * allwinner,sun5i-a13-tcon
  23. * allwinner,sun6i-a31-tcon
  24. * allwinner,sun6i-a31s-tcon
  25. * allwinner,sun8i-a33-tcon
  26. - reg: base address and size of memory-mapped region
  27. - interrupts: interrupt associated to this IP
  28. - clocks: phandles to the clocks feeding the TCON. Three are needed:
  29. - 'ahb': the interface clocks
  30. - 'tcon-ch0': The clock driving the TCON channel 0
  31. - resets: phandles to the reset controllers driving the encoder
  32. - "lcd": the reset line for the TCON channel 0
  33. - clock-names: the clock names mentioned above
  34. - reset-names: the reset names mentioned above
  35. - clock-output-names: Name of the pixel clock created
  36. - ports: A ports node with endpoint definitions as defined in
  37. Documentation/devicetree/bindings/media/video-interfaces.txt. The
  38. first port should be the input endpoint, the second one the output
  39. The output may have multiple endpoints. The TCON has two channels,
  40. usually with the first channel being used for the panels interfaces
  41. (RGB, LVDS, etc.), and the second being used for the outputs that
  42. require another controller (TV Encoder, HDMI, etc.). The endpoints
  43. will take an extra property, allwinner,tcon-channel, to specify the
  44. channel the endpoint is associated to. If that property is not
  45. present, the endpoint number will be used as the channel number.
  46. On SoCs other than the A33, there is one more clock required:
  47. - 'tcon-ch1': The clock driving the TCON channel 1
  48. DRC
  49. ---
  50. The DRC (Dynamic Range Controller), found in the latest Allwinner SoCs
  51. (A31, A23, A33), allows to dynamically adjust pixel
  52. brightness/contrast based on histogram measurements for LCD content
  53. adaptive backlight control.
  54. Required properties:
  55. - compatible: value must be one of:
  56. * allwinner,sun8i-a33-drc
  57. - reg: base address and size of the memory-mapped region.
  58. - interrupts: interrupt associated to this IP
  59. - clocks: phandles to the clocks feeding the DRC
  60. * ahb: the DRC interface clock
  61. * mod: the DRC module clock
  62. * ram: the DRC DRAM clock
  63. - clock-names: the clock names mentioned above
  64. - resets: phandles to the reset line driving the DRC
  65. - ports: A ports node with endpoint definitions as defined in
  66. Documentation/devicetree/bindings/media/video-interfaces.txt. The
  67. first port should be the input endpoints, the second one the outputs
  68. Display Engine Backend
  69. ----------------------
  70. The display engine backend exposes layers and sprites to the
  71. system.
  72. Required properties:
  73. - compatible: value must be one of:
  74. * allwinner,sun5i-a13-display-backend
  75. * allwinner,sun6i-a31-display-backend
  76. * allwinner,sun8i-a33-display-backend
  77. - reg: base address and size of the memory-mapped region.
  78. - clocks: phandles to the clocks feeding the frontend and backend
  79. * ahb: the backend interface clock
  80. * mod: the backend module clock
  81. * ram: the backend DRAM clock
  82. - clock-names: the clock names mentioned above
  83. - resets: phandles to the reset controllers driving the backend
  84. - ports: A ports node with endpoint definitions as defined in
  85. Documentation/devicetree/bindings/media/video-interfaces.txt. The
  86. first port should be the input endpoints, the second one the output
  87. On the A33, some additional properties are required:
  88. - reg needs to have an additional region corresponding to the SAT
  89. - reg-names need to be set, with "be" and "sat"
  90. - clocks and clock-names need to have a phandle to the SAT bus
  91. clocks, whose name will be "sat"
  92. - resets and reset-names need to have a phandle to the SAT bus
  93. resets, whose name will be "sat"
  94. Display Engine Frontend
  95. -----------------------
  96. The display engine frontend does formats conversion, scaling,
  97. deinterlacing and color space conversion.
  98. Required properties:
  99. - compatible: value must be one of:
  100. * allwinner,sun5i-a13-display-frontend
  101. * allwinner,sun6i-a31-display-frontend
  102. * allwinner,sun8i-a33-display-frontend
  103. - reg: base address and size of the memory-mapped region.
  104. - interrupts: interrupt associated to this IP
  105. - clocks: phandles to the clocks feeding the frontend and backend
  106. * ahb: the backend interface clock
  107. * mod: the backend module clock
  108. * ram: the backend DRAM clock
  109. - clock-names: the clock names mentioned above
  110. - resets: phandles to the reset controllers driving the backend
  111. - ports: A ports node with endpoint definitions as defined in
  112. Documentation/devicetree/bindings/media/video-interfaces.txt. The
  113. first port should be the input endpoints, the second one the outputs
  114. Display Engine Pipeline
  115. -----------------------
  116. The display engine pipeline (and its entry point, since it can be
  117. either directly the backend or the frontend) is represented as an
  118. extra node.
  119. Required properties:
  120. - compatible: value must be one of:
  121. * allwinner,sun5i-a13-display-engine
  122. * allwinner,sun6i-a31-display-engine
  123. * allwinner,sun6i-a31s-display-engine
  124. * allwinner,sun8i-a33-display-engine
  125. - allwinner,pipelines: list of phandle to the display engine
  126. frontends available.
  127. Example:
  128. panel: panel {
  129. compatible = "olimex,lcd-olinuxino-43-ts";
  130. #address-cells = <1>;
  131. #size-cells = <0>;
  132. port {
  133. #address-cells = <1>;
  134. #size-cells = <0>;
  135. panel_input: endpoint {
  136. remote-endpoint = <&tcon0_out_panel>;
  137. };
  138. };
  139. };
  140. tve0: tv-encoder@01c0a000 {
  141. compatible = "allwinner,sun4i-a10-tv-encoder";
  142. reg = <0x01c0a000 0x1000>;
  143. clocks = <&ahb_gates 34>;
  144. resets = <&tcon_ch0_clk 0>;
  145. port {
  146. #address-cells = <1>;
  147. #size-cells = <0>;
  148. tve0_in_tcon0: endpoint@0 {
  149. reg = <0>;
  150. remote-endpoint = <&tcon0_out_tve0>;
  151. };
  152. };
  153. };
  154. tcon0: lcd-controller@1c0c000 {
  155. compatible = "allwinner,sun5i-a13-tcon";
  156. reg = <0x01c0c000 0x1000>;
  157. interrupts = <44>;
  158. resets = <&tcon_ch0_clk 1>;
  159. reset-names = "lcd";
  160. clocks = <&ahb_gates 36>,
  161. <&tcon_ch0_clk>,
  162. <&tcon_ch1_clk>;
  163. clock-names = "ahb",
  164. "tcon-ch0",
  165. "tcon-ch1";
  166. clock-output-names = "tcon-pixel-clock";
  167. ports {
  168. #address-cells = <1>;
  169. #size-cells = <0>;
  170. tcon0_in: port@0 {
  171. #address-cells = <1>;
  172. #size-cells = <0>;
  173. reg = <0>;
  174. tcon0_in_be0: endpoint@0 {
  175. reg = <0>;
  176. remote-endpoint = <&be0_out_tcon0>;
  177. };
  178. };
  179. tcon0_out: port@1 {
  180. #address-cells = <1>;
  181. #size-cells = <0>;
  182. reg = <1>;
  183. tcon0_out_panel: endpoint@0 {
  184. reg = <0>;
  185. remote-endpoint = <&panel_input>;
  186. };
  187. tcon0_out_tve0: endpoint@1 {
  188. reg = <1>;
  189. remote-endpoint = <&tve0_in_tcon0>;
  190. };
  191. };
  192. };
  193. };
  194. fe0: display-frontend@1e00000 {
  195. compatible = "allwinner,sun5i-a13-display-frontend";
  196. reg = <0x01e00000 0x20000>;
  197. interrupts = <47>;
  198. clocks = <&ahb_gates 46>, <&de_fe_clk>,
  199. <&dram_gates 25>;
  200. clock-names = "ahb", "mod",
  201. "ram";
  202. resets = <&de_fe_clk>;
  203. ports {
  204. #address-cells = <1>;
  205. #size-cells = <0>;
  206. fe0_out: port@1 {
  207. #address-cells = <1>;
  208. #size-cells = <0>;
  209. reg = <1>;
  210. fe0_out_be0: endpoint {
  211. remote-endpoint = <&be0_in_fe0>;
  212. };
  213. };
  214. };
  215. };
  216. be0: display-backend@1e60000 {
  217. compatible = "allwinner,sun5i-a13-display-backend";
  218. reg = <0x01e60000 0x10000>;
  219. clocks = <&ahb_gates 44>, <&de_be_clk>,
  220. <&dram_gates 26>;
  221. clock-names = "ahb", "mod",
  222. "ram";
  223. resets = <&de_be_clk>;
  224. ports {
  225. #address-cells = <1>;
  226. #size-cells = <0>;
  227. be0_in: port@0 {
  228. #address-cells = <1>;
  229. #size-cells = <0>;
  230. reg = <0>;
  231. be0_in_fe0: endpoint@0 {
  232. reg = <0>;
  233. remote-endpoint = <&fe0_out_be0>;
  234. };
  235. };
  236. be0_out: port@1 {
  237. #address-cells = <1>;
  238. #size-cells = <0>;
  239. reg = <1>;
  240. be0_out_tcon0: endpoint@0 {
  241. reg = <0>;
  242. remote-endpoint = <&tcon0_in_be0>;
  243. };
  244. };
  245. };
  246. };
  247. display-engine {
  248. compatible = "allwinner,sun5i-a13-display-engine";
  249. allwinner,pipelines = <&fe0>;
  250. };